* ldgram.y (AS_NEEDED): New token.
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
bec39cab 3# Generated by GNU Autoconf 2.59.
c906108c 4#
bec39cab 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subdirs_all="$ac_subdirs_all doc testsuite"
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
065a1afc
JB
316ac_subdirs_all="$ac_subdirs_all rdi-share"
317ac_subdirs_all="$ac_subdirs_all nlm"
bec39cab
AC
318ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os RANLIB ac_ct_RANLIB SET_MAKE ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
319ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
320
321# Initialize some variables set by options.
bec39cab
AC
322ac_init_help=
323ac_init_version=false
c906108c
SS
324# The variables have the same names as the options, with
325# dashes changed to underlines.
bec39cab 326cache_file=/dev/null
c906108c 327exec_prefix=NONE
c906108c 328no_create=
c906108c
SS
329no_recursion=
330prefix=NONE
331program_prefix=NONE
332program_suffix=NONE
333program_transform_name=s,x,x,
334silent=
335site=
336srcdir=
c906108c
SS
337verbose=
338x_includes=NONE
339x_libraries=NONE
bec39cab
AC
340
341# Installation directory options.
342# These are left unexpanded so users can "make install exec_prefix=/foo"
343# and all the variables that are supposed to be based on exec_prefix
344# by default will actually change.
345# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
346bindir='${exec_prefix}/bin'
347sbindir='${exec_prefix}/sbin'
348libexecdir='${exec_prefix}/libexec'
349datadir='${prefix}/share'
350sysconfdir='${prefix}/etc'
351sharedstatedir='${prefix}/com'
352localstatedir='${prefix}/var'
353libdir='${exec_prefix}/lib'
354includedir='${prefix}/include'
355oldincludedir='/usr/include'
356infodir='${prefix}/info'
357mandir='${prefix}/man'
358
c906108c
SS
359ac_prev=
360for ac_option
361do
c906108c
SS
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
bec39cab 369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
bec39cab 373 case $ac_option in
c906108c
SS
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 378 bindir=$ac_optarg ;;
c906108c
SS
379
380 -build | --build | --buil | --bui | --bu)
bec39cab 381 ac_prev=build_alias ;;
c906108c 382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 383 build_alias=$ac_optarg ;;
c906108c
SS
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
c906108c
SS
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
bec39cab 399 datadir=$ac_optarg ;;
c906108c
SS
400
401 -disable-* | --disable-*)
bec39cab 402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 403 # Reject names that are not valid shell variable names.
bec39cab
AC
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
c906108c
SS
409
410 -enable-* | --enable-*)
bec39cab 411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 412 # Reject names that are not valid shell variable names.
bec39cab
AC
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
419 *) ac_optarg=yes ;;
420 esac
bec39cab 421 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
bec39cab 430 exec_prefix=$ac_optarg ;;
c906108c
SS
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
bec39cab
AC
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
c906108c
SS
442
443 -host | --host | --hos | --ho)
bec39cab 444 ac_prev=host_alias ;;
c906108c 445 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 446 host_alias=$ac_optarg ;;
c906108c
SS
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 453 includedir=$ac_optarg ;;
c906108c
SS
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 458 infodir=$ac_optarg ;;
c906108c
SS
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 463 libdir=$ac_optarg ;;
c906108c
SS
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
bec39cab 470 libexecdir=$ac_optarg ;;
c906108c
SS
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 479 localstatedir=$ac_optarg ;;
c906108c
SS
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 484 mandir=$ac_optarg ;;
c906108c
SS
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 491 | --no-cr | --no-c | -n)
c906108c
SS
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 505 oldincludedir=$ac_optarg ;;
c906108c
SS
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 510 prefix=$ac_optarg ;;
c906108c
SS
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 517 program_prefix=$ac_optarg ;;
c906108c
SS
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 524 program_suffix=$ac_optarg ;;
c906108c
SS
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 541 program_transform_name=$ac_optarg ;;
c906108c
SS
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
bec39cab 551 sbindir=$ac_optarg ;;
c906108c
SS
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
bec39cab 562 sharedstatedir=$ac_optarg ;;
c906108c
SS
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
bec39cab 567 site=$ac_optarg ;;
3ace7edb 568
c906108c
SS
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 572 srcdir=$ac_optarg ;;
c906108c
SS
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 579 sysconfdir=$ac_optarg ;;
c906108c
SS
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 582 ac_prev=target_alias ;;
c906108c 583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 584 target_alias=$ac_optarg ;;
c906108c
SS
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
bec39cab
AC
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
c906108c
SS
591
592 -with-* | --with-*)
bec39cab 593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 594 # Reject names that are not valid shell variable names.
bec39cab
AC
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
c906108c 598 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
601 *) ac_optarg=yes ;;
602 esac
bec39cab 603 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
604
605 -without-* | --without-*)
bec39cab 606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 607 # Reject names that are not valid shell variable names.
bec39cab
AC
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
c906108c
SS
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 623 x_includes=$ac_optarg ;;
c906108c
SS
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 630 x_libraries=$ac_optarg ;;
c906108c 631
bec39cab
AC
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
c906108c
SS
635 ;;
636
bec39cab
AC
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
c906108c 647 *)
bec39cab
AC
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
bec39cab
AC
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
c906108c 662fi
c906108c 663
bec39cab
AC
664# Be sure to have absolute paths.
665for ac_var in exec_prefix prefix
666do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673done
c906108c 674
bec39cab
AC
675# Be sure to have absolute paths.
676for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 678do
bec39cab
AC
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
c906108c
SS
684 esac
685done
686
bec39cab
AC
687# There might be people who depend on the old broken behavior: `$host'
688# used to hold the argument of --host etc.
689# FIXME: To remove some day.
690build=$build_alias
691host=$host_alias
692target=$target_alias
693
694# FIXME: To remove some day.
695if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703fi
c906108c 704
bec39cab
AC
705ac_tool_prefix=
706test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708test "$silent" = yes && exec 6>/dev/null
c906108c 709
c906108c
SS
710
711# Find the source files, if location was not specified.
712if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
bec39cab
AC
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
c906108c
SS
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731else
732 ac_srcdir_defaulted=no
733fi
734if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
c906108c 738 else
bec39cab
AC
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
c906108c
SS
741 fi
742fi
bec39cab
AC
743(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747ac_env_build_alias_set=${build_alias+set}
748ac_env_build_alias_value=$build_alias
749ac_cv_env_build_alias_set=${build_alias+set}
750ac_cv_env_build_alias_value=$build_alias
751ac_env_host_alias_set=${host_alias+set}
752ac_env_host_alias_value=$host_alias
753ac_cv_env_host_alias_set=${host_alias+set}
754ac_cv_env_host_alias_value=$host_alias
755ac_env_target_alias_set=${target_alias+set}
756ac_env_target_alias_value=$target_alias
757ac_cv_env_target_alias_set=${target_alias+set}
758ac_cv_env_target_alias_value=$target_alias
759ac_env_CC_set=${CC+set}
760ac_env_CC_value=$CC
761ac_cv_env_CC_set=${CC+set}
762ac_cv_env_CC_value=$CC
763ac_env_CFLAGS_set=${CFLAGS+set}
764ac_env_CFLAGS_value=$CFLAGS
765ac_cv_env_CFLAGS_set=${CFLAGS+set}
766ac_cv_env_CFLAGS_value=$CFLAGS
767ac_env_LDFLAGS_set=${LDFLAGS+set}
768ac_env_LDFLAGS_value=$LDFLAGS
769ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770ac_cv_env_LDFLAGS_value=$LDFLAGS
771ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_env_CPPFLAGS_value=$CPPFLAGS
773ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775ac_env_CPP_set=${CPP+set}
776ac_env_CPP_value=$CPP
777ac_cv_env_CPP_set=${CPP+set}
778ac_cv_env_CPP_value=$CPP
c906108c 779
bec39cab
AC
780#
781# Report the --help message.
782#
783if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787\`configure' configures this package to adapt to many kinds of systems.
788
789Usage: $0 [OPTION]... [VAR=VALUE]...
790
791To assign environment variables (e.g., CC, CFLAGS...), specify them as
792VAR=VALUE. See below for descriptions of some of the useful variables.
793
794Defaults for the options are specified in brackets.
795
796Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807_ACEOF
808
809 cat <<_ACEOF
810Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816By default, \`make install' will install all the files in
817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819for instance \`--prefix=\$HOME'.
820
821For better control, use the options below.
822
823Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836_ACEOF
837
838 cat <<\_ACEOF
839
840Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
bec39cab
AC
865 --disable-nls do not use Native Language Support
866 --disable-gdbcli disable command-line interface (CLI)
867 --disable-gdbmi disable machine-interface (MI)
868 --enable-tui enable full-screen terminal user interface (TUI)
869 --enable-gdbtk enable gdbtk graphical user interface (GUI)
870 --enable-profiling enable profiling of GDB
871 --enable-build-warnings Enable build-time compiler warnings if gcc is used
872 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873 --enable-sim Link gdb with simulator
874 --enable-multi-ice build the multi-ice-gdb-server
875
876Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-included-gettext use the GNU gettext library included here
880 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
881 --with-libunwind Use libunwind frame unwinding support
882 --without-included-regex don't use included regex; this is the default
883 on systems with version 2 of the GNU C library
884 (use with caution on other system)
885 --with-sysroot=DIR Search for usr/lib et al within DIR.
886 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
887 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
888 --with-tclinclude=DIR Directory where tcl private headers are
889 --with-tkinclude=DIR Directory where tk private headers are
890 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
891 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
892 --with-x use the X Window System
893 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894
895Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
903
904Use these variables to override the choices made by `configure' or to help
905it to find libraries and programs with nonstandard names/locations.
906
907_ACEOF
908fi
909
910if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921else
922 ac_dir_suffix= ac_top_builddir=
923fi
924
925case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939esac
940
941# Do not use `cd foo && pwd` to compute absolute paths, because
942# the directories may not exist.
943case `pwd` in
944.) ac_abs_builddir="$ac_dir";;
945*)
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_builddir=${ac_top_builddir}.;;
954*)
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_srcdir=$ac_srcdir;;
963*)
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_top_srcdir=$ac_top_srcdir;;
972*)
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978esac
979
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
3ace7edb 992 else
bec39cab
AC
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 fi
995 cd $ac_popdir
996 done
997fi
998
999test -n "$ac_init_help" && exit 0
1000if $ac_init_version; then
1001 cat <<\_ACEOF
1002
1003Copyright (C) 2003 Free Software Foundation, Inc.
1004This configure script is free software; the Free Software Foundation
1005gives unlimited permission to copy, distribute and modify it.
1006_ACEOF
1007 exit 0
1008fi
1009exec 5>config.log
1010cat >&5 <<_ACEOF
1011This file contains any messages produced by compilers while
1012running configure, to aid debugging if configure makes a mistake.
1013
1014It was created by $as_me, which was
1015generated by GNU Autoconf 2.59. Invocation command line was
1016
1017 $ $0 $@
1018
1019_ACEOF
1020{
1021cat <<_ASUNAME
1022## --------- ##
1023## Platform. ##
1024## --------- ##
1025
1026hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034
1035/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042
1043_ASUNAME
1044
1045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046for as_dir in $PATH
1047do
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051done
1052
1053} >&5
1054
1055cat >&5 <<_ACEOF
1056
1057
1058## ----------- ##
1059## Core tests. ##
1060## ----------- ##
1061
1062_ACEOF
1063
1064
1065# Keep a trace of the command line.
1066# Strip out --no-create and --no-recursion so they do not pile up.
1067# Strip out --silent because we don't want to record it for future runs.
1068# Also quote any args containing shell meta-characters.
1069# Make two passes to allow for proper duplicate-argument suppression.
1070ac_configure_args=
1071ac_configure_args0=
1072ac_configure_args1=
1073ac_sep=
1074ac_must_keep_next=false
1075for ac_pass in 1 2
1076do
1077 for ac_arg
1078 do
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 2)
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1102 ;;
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1105 fi
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1109 ;;
1110 esac
1111 done
1112done
1113$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116# When interrupted or exit'd, cleanup temporary files, and complete
1117# config.log. We remove comments because anyway the quotes in there
1118# would cause problems or look ugly.
1119# WARNING: Be sure not to use single quotes in there, as some shells,
1120# such as our DU 5.0 friend, will then `close' the trap.
1121trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1123 {
1124 echo
1125
1126 cat <<\_ASBOX
1127## ---------------- ##
1128## Cache variables. ##
1129## ---------------- ##
1130_ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1133{
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 ;;
1141 *)
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ;;
1145 esac;
1146}
1147 echo
1148
1149 cat <<\_ASBOX
1150## ----------------- ##
1151## Output variables. ##
1152## ----------------- ##
1153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164## ------------- ##
1165## Output files. ##
1166## ------------- ##
1167_ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1170 do
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1175 fi
1176
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179## ----------- ##
1180## confdefs.h. ##
1181## ----------- ##
1182_ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
3ace7edb 1186 fi
bec39cab
AC
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1194 ' 0
1195for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197done
1198ac_signal=0
1199
1200# confdefs.h avoids OS command line length limits that DEFS can exceed.
1201rm -rf conftest* confdefs.h
1202# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203echo >confdefs.h
1204
1205# Predefined preprocessor variables.
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_NAME "$PACKAGE_NAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_VERSION "$PACKAGE_VERSION"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_STRING "$PACKAGE_STRING"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229_ACEOF
1230
1231
1232# Let the site file select an alternate cache file if it wants to.
1233# Prefer explicitly selected file to automatically selected ones.
1234if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1239 fi
1240fi
1241for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
bec39cab
AC
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1246 . "$ac_site_file"
1247 fi
1248done
1249
1250if test -r "$cache_file"; then
bec39cab
AC
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1260 fi
c906108c 1261else
bec39cab
AC
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1265fi
1266
1267# Check that the precious variables saved in the cache have kept the same
1268# value.
1269ac_cache_corrupted=false
1270for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1286 *)
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1308 fi
1309done
1310if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
c906108c
SS
1316fi
1317
1318ac_ext=c
c906108c 1319ac_cpp='$CPP $CPPFLAGS'
bec39cab
AC
1320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1323
1324
1325
bec39cab
AC
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342 ac_config_headers="$ac_config_headers config.h:config.in"
1343
1344echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1345echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
413ccac7
AC
1346 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1347if test "${enable_maintainer_mode+set}" = set; then
1348 enableval="$enable_maintainer_mode"
1349 USE_MAINTAINER_MODE=$enableval
1350else
1351 USE_MAINTAINER_MODE=no
bec39cab
AC
1352fi;
1353 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1354echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1355
413ccac7
AC
1356
1357if test $USE_MAINTAINER_MODE = yes; then
1358 MAINTAINER_MODE_TRUE=
1359 MAINTAINER_MODE_FALSE='#'
1360else
1361 MAINTAINER_MODE_TRUE='#'
1362 MAINTAINER_MODE_FALSE=
1363fi
85981d60 1364
413ccac7 1365 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1366
c906108c 1367
bec39cab
AC
1368
1369ac_ext=c
1370ac_cpp='$CPP $CPPFLAGS'
1371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377echo "$as_me:$LINENO: checking for $ac_word" >&5
1378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379if test "${ac_cv_prog_CC+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
1382 if test -n "$CC"; then
1383 ac_cv_prog_CC="$CC" # Let the user override the test.
1384else
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 break 2
1395 fi
1396done
1397done
1398
1399fi
1400fi
1401CC=$ac_cv_prog_CC
1402if test -n "$CC"; then
1403 echo "$as_me:$LINENO: result: $CC" >&5
1404echo "${ECHO_T}$CC" >&6
1405else
1406 echo "$as_me:$LINENO: result: no" >&5
1407echo "${ECHO_T}no" >&6
1408fi
1409
1410fi
1411if test -z "$ac_cv_prog_CC"; then
1412 ac_ct_CC=$CC
1413 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1414set dummy gcc; ac_word=$2
bec39cab
AC
1415echo "$as_me:$LINENO: checking for $ac_word" >&5
1416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420 if test -n "$ac_ct_CC"; then
1421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422else
1423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424for as_dir in $PATH
1425do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_ac_ct_CC="gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434done
1435done
1436
1437fi
1438fi
1439ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440if test -n "$ac_ct_CC"; then
1441 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1442echo "${ECHO_T}$ac_ct_CC" >&6
1443else
1444 echo "$as_me:$LINENO: result: no" >&5
1445echo "${ECHO_T}no" >&6
1446fi
1447
1448 CC=$ac_ct_CC
1449else
1450 CC="$ac_cv_prog_CC"
1451fi
1452
1453if test -z "$CC"; then
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1456set dummy ${ac_tool_prefix}cc; ac_word=$2
1457echo "$as_me:$LINENO: checking for $ac_word" >&5
1458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459if test "${ac_cv_prog_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1461else
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1464else
bec39cab
AC
1465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466for as_dir in $PATH
1467do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_CC="${ac_tool_prefix}cc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 break 2
1475 fi
1476done
1477done
1478
c906108c
SS
1479fi
1480fi
bec39cab 1481CC=$ac_cv_prog_CC
c906108c 1482if test -n "$CC"; then
bec39cab
AC
1483 echo "$as_me:$LINENO: result: $CC" >&5
1484echo "${ECHO_T}$CC" >&6
1485else
1486 echo "$as_me:$LINENO: result: no" >&5
1487echo "${ECHO_T}no" >&6
1488fi
1489
1490fi
1491if test -z "$ac_cv_prog_CC"; then
1492 ac_ct_CC=$CC
1493 # Extract the first word of "cc", so it can be a program name with args.
1494set dummy cc; ac_word=$2
1495echo "$as_me:$LINENO: checking for $ac_word" >&5
1496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499else
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502else
1503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504for as_dir in $PATH
1505do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514done
1515done
1516
1517fi
1518fi
1519ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1523else
bec39cab
AC
1524 echo "$as_me:$LINENO: result: no" >&5
1525echo "${ECHO_T}no" >&6
c906108c
SS
1526fi
1527
bec39cab
AC
1528 CC=$ac_ct_CC
1529else
1530 CC="$ac_cv_prog_CC"
1531fi
1532
1533fi
c906108c
SS
1534if test -z "$CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536set dummy cc; ac_word=$2
bec39cab
AC
1537echo "$as_me:$LINENO: checking for $ac_word" >&5
1538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1541else
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1544else
c906108c 1545 ac_prog_rejected=no
bec39cab
AC
1546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547for as_dir in $PATH
1548do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1554 ac_prog_rejected=yes
1555 continue
1556 fi
1557 ac_cv_prog_CC="cc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561done
1562done
1563
c906108c
SS
1564if test $ac_prog_rejected = yes; then
1565 # We found a bogon in the path, so make sure we never use it.
1566 set dummy $ac_cv_prog_CC
1567 shift
bec39cab 1568 if test $# != 0; then
c906108c
SS
1569 # We chose a different compiler from the bogus one.
1570 # However, it has the same basename, so the bogon will be chosen
1571 # first if we set CC to just the basename; use the full file name.
1572 shift
bec39cab 1573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1574 fi
1575fi
1576fi
1577fi
bec39cab 1578CC=$ac_cv_prog_CC
c906108c 1579if test -n "$CC"; then
bec39cab
AC
1580 echo "$as_me:$LINENO: result: $CC" >&5
1581echo "${ECHO_T}$CC" >&6
c906108c 1582else
bec39cab
AC
1583 echo "$as_me:$LINENO: result: no" >&5
1584echo "${ECHO_T}no" >&6
c906108c
SS
1585fi
1586
bec39cab
AC
1587fi
1588if test -z "$CC"; then
1589 if test -n "$ac_tool_prefix"; then
1590 for ac_prog in cl
1591 do
1592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1594echo "$as_me:$LINENO: checking for $ac_word" >&5
1595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1598else
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1601else
bec39cab
AC
1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603for as_dir in $PATH
1604do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1612 fi
1613done
1614done
1615
c906108c
SS
1616fi
1617fi
bec39cab 1618CC=$ac_cv_prog_CC
c906108c 1619if test -n "$CC"; then
bec39cab
AC
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621echo "${ECHO_T}$CC" >&6
c906108c 1622else
bec39cab
AC
1623 echo "$as_me:$LINENO: result: no" >&5
1624echo "${ECHO_T}no" >&6
c906108c 1625fi
bec39cab
AC
1626
1627 test -n "$CC" && break
1628 done
1629fi
1630if test -z "$CC"; then
1631 ac_ct_CC=$CC
1632 for ac_prog in cl
1633do
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635set dummy $ac_prog; ac_word=$2
1636echo "$as_me:$LINENO: checking for $ac_word" >&5
1637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643else
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="$ac_prog"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
c906108c 1654 fi
bec39cab
AC
1655done
1656done
1657
1658fi
1659fi
1660ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663echo "${ECHO_T}$ac_ct_CC" >&6
1664else
1665 echo "$as_me:$LINENO: result: no" >&5
1666echo "${ECHO_T}no" >&6
c906108c
SS
1667fi
1668
bec39cab
AC
1669 test -n "$ac_ct_CC" && break
1670done
c906108c 1671
bec39cab
AC
1672 CC=$ac_ct_CC
1673fi
1674
1675fi
1676
1677
1678test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1679See \`config.log' for more details." >&5
1680echo "$as_me: error: no acceptable C compiler found in \$PATH
1681See \`config.log' for more details." >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684# Provide some information about the compiler.
1685echo "$as_me:$LINENO:" \
1686 "checking for C compiler version" >&5
1687ac_compiler=`set X $ac_compile; echo $2`
1688{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703
1704cat >conftest.$ac_ext <<_ACEOF
1705/* confdefs.h. */
1706_ACEOF
1707cat confdefs.h >>conftest.$ac_ext
1708cat >>conftest.$ac_ext <<_ACEOF
1709/* end confdefs.h. */
1710
1711int
1712main ()
1713{
1714
1715 ;
1716 return 0;
1717}
1718_ACEOF
1719ac_clean_files_save=$ac_clean_files
1720ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721# Try to create an executable without -o first, disregard a.out.
1722# It will help us diagnose broken compilers, and finding out an intuition
1723# of exeext.
1724echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1725echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1726ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734# resort.
1735
1736# Be careful to initialize this variable, since it used to be cached.
1737# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738ac_cv_exeext=
1739# b.out is created by i960 compilers.
1740for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741do
1742 test -f "$ac_file" || continue
1743 case $ac_file in
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1745 ;;
1746 conftest.$ac_ext )
1747 # This is the source file.
1748 ;;
1749 [ab].out )
1750 # We found the default executable, but exeext='' is most
1751 # certainly right.
1752 break;;
1753 *.* )
1754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool,
1756 # but it would be cool to find out if it's true. Does anybody
1757 # maintain Libtool? --akim.
1758 export ac_cv_exeext
1759 break;;
1760 * )
1761 break;;
1762 esac
1763done
1764else
1765 echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769See \`config.log' for more details." >&5
1770echo "$as_me: error: C compiler cannot create executables
1771See \`config.log' for more details." >&2;}
1772 { (exit 77); exit 77; }; }
1773fi
1774
1775ac_exeext=$ac_cv_exeext
1776echo "$as_me:$LINENO: result: $ac_file" >&5
1777echo "${ECHO_T}$ac_file" >&6
1778
1779# Check the compiler produces executables we can run. If not, either
1780# the compiler is broken, or we cross compile.
1781echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784# If not cross compiling, check that we can run a simple program.
1785if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 (eval $ac_try) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1792 cross_compiling=no
c906108c 1793 else
bec39cab
AC
1794 if test "$cross_compiling" = maybe; then
1795 cross_compiling=yes
1796 else
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798If you meant to cross compile, use \`--host'.
1799See \`config.log' for more details." >&5
1800echo "$as_me: error: cannot run C compiled programs.
1801If you meant to cross compile, use \`--host'.
1802See \`config.log' for more details." >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
c906108c 1805 fi
bec39cab
AC
1806fi
1807echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
1809
1810rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811ac_clean_files=$ac_clean_files_save
1812# Check the compiler produces executables we can run. If not, either
1813# the compiler is broken, or we cross compile.
1814echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817echo "${ECHO_T}$cross_compiling" >&6
1818
1819echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828# work properly (i.e., refer to `conftest.exe'), while it won't with
1829# `rm'.
1830for ac_file in conftest.exe conftest conftest.*; do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 export ac_cv_exeext
1836 break;;
1837 * ) break;;
1838 esac
1839done
c906108c 1840else
bec39cab
AC
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842See \`config.log' for more details." >&5
1843echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
c906108c 1846fi
c906108c 1847
bec39cab
AC
1848rm -f conftest$ac_cv_exeext
1849echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1851
bec39cab
AC
1852rm -f conftest.$ac_ext
1853EXEEXT=$ac_cv_exeext
1854ac_exeext=$EXEEXT
1855echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857if test "${ac_cv_objext+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860 cat >conftest.$ac_ext <<_ACEOF
1861/* confdefs.h. */
1862_ACEOF
1863cat confdefs.h >>conftest.$ac_ext
1864cat >>conftest.$ac_ext <<_ACEOF
1865/* end confdefs.h. */
c906108c 1866
bec39cab
AC
1867int
1868main ()
1869{
c906108c 1870
bec39cab
AC
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875rm -f conftest.o conftest.obj
1876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882 case $ac_file in
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885 break;;
1886 esac
1887done
c906108c 1888else
bec39cab
AC
1889 echo "$as_me: failed program was:" >&5
1890sed 's/^/| /' conftest.$ac_ext >&5
1891
1892{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1893See \`config.log' for more details." >&5
1894echo "$as_me: error: cannot compute suffix of object files: cannot compile
1895See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
c906108c
SS
1897fi
1898
bec39cab
AC
1899rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900fi
1901echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1902echo "${ECHO_T}$ac_cv_objext" >&6
1903OBJEXT=$ac_cv_objext
1904ac_objext=$OBJEXT
1905echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1906echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1907if test "${ac_cv_c_compiler_gnu+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1909else
bec39cab
AC
1910 cat >conftest.$ac_ext <<_ACEOF
1911/* confdefs.h. */
1912_ACEOF
1913cat confdefs.h >>conftest.$ac_ext
1914cat >>conftest.$ac_ext <<_ACEOF
1915/* end confdefs.h. */
1916
1917int
1918main ()
1919{
1920#ifndef __GNUC__
1921 choke me
1922#endif
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928rm -f conftest.$ac_objext
1929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>conftest.er1
1931 ac_status=$?
1932 grep -v '^ *+' conftest.er1 >conftest.err
1933 rm -f conftest.er1
1934 cat conftest.err >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -z "$ac_c_werror_flag"
1938 || test ! -s conftest.err'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 (eval $ac_try) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1950 ac_compiler_gnu=yes
1951else
1952 echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955ac_compiler_gnu=no
1956fi
1957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958ac_cv_c_compiler_gnu=$ac_compiler_gnu
1959
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963GCC=`test $ac_compiler_gnu = yes && echo yes`
1964ac_test_CFLAGS=${CFLAGS+set}
1965ac_save_CFLAGS=$CFLAGS
1966CFLAGS="-g"
1967echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969if test "${ac_cv_prog_cc_g+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 cat >conftest.$ac_ext <<_ACEOF
1973/* confdefs.h. */
1974_ACEOF
1975cat confdefs.h >>conftest.$ac_ext
1976cat >>conftest.$ac_ext <<_ACEOF
1977/* end confdefs.h. */
1978
1979int
1980main ()
1981{
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987rm -f conftest.$ac_objext
1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
c906108c
SS
2009 ac_cv_prog_cc_g=yes
2010else
bec39cab
AC
2011 echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2013
bec39cab 2014ac_cv_prog_cc_g=no
c906108c 2015fi
bec39cab
AC
2016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2019echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2020if test "$ac_test_CFLAGS" = set; then
bec39cab 2021 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2022elif test $ac_cv_prog_cc_g = yes; then
2023 if test "$GCC" = yes; then
2024 CFLAGS="-g -O2"
2025 else
2026 CFLAGS="-g"
2027 fi
2028else
2029 if test "$GCC" = yes; then
2030 CFLAGS="-O2"
2031 else
2032 CFLAGS=
2033 fi
2034fi
bec39cab
AC
2035echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2036echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040 ac_cv_prog_cc_stdc=no
2041ac_save_CC=$CC
2042cat >conftest.$ac_ext <<_ACEOF
2043/* confdefs.h. */
2044_ACEOF
2045cat confdefs.h >>conftest.$ac_ext
2046cat >>conftest.$ac_ext <<_ACEOF
2047/* end confdefs.h. */
c906108c
SS
2048#include <stdarg.h>
2049#include <stdio.h>
2050#include <sys/types.h>
2051#include <sys/stat.h>
2052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2053struct buf { int x; };
2054FILE * (*rcsopen) (struct buf *, struct stat *, int);
2055static char *e (p, i)
2056 char **p;
2057 int i;
2058{
2059 return p[i];
2060}
2061static char *f (char * (*g) (char **, int), char **p, ...)
2062{
2063 char *s;
2064 va_list v;
2065 va_start (v,p);
2066 s = g (p, va_arg (v,int));
2067 va_end (v);
2068 return s;
2069}
bec39cab
AC
2070
2071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2072 function prototypes and stuff, but not '\xHH' hex character constants.
2073 These don't provoke an error unfortunately, instead are silently treated
2074 as 'x'. The following induces an error, until -std1 is added to get
2075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2076 array size at least. It's necessary to write '\x00'==0 to get something
2077 that's true only with -std1. */
2078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079
c906108c
SS
2080int test (int i, double x);
2081struct s1 {int (*f) (int a);};
2082struct s2 {int (*f) (double a);};
2083int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2084int argc;
2085char **argv;
bec39cab
AC
2086int
2087main ()
2088{
c906108c 2089return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094# Don't try gcc -ansi; that turns off useful extensions and
2095# breaks some systems' header files.
2096# AIX -qlanglvl=ansi
2097# Ultrix and OSF/1 -std1
2098# HP-UX 10.20 and later -Ae
2099# HP-UX older versions -Aa -D_HPUX_SOURCE
2100# SVR4 -Xc -D__EXTENSIONS__
2101for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102do
2103 CC="$ac_save_CC $ac_arg"
2104 rm -f conftest.$ac_objext
2105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 ac_cv_prog_cc_stdc=$ac_arg
2127break
c906108c 2128else
bec39cab
AC
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
c906108c 2132fi
bec39cab 2133rm -f conftest.err conftest.$ac_objext
c906108c 2134done
bec39cab
AC
2135rm -f conftest.$ac_ext conftest.$ac_objext
2136CC=$ac_save_CC
c906108c
SS
2137
2138fi
2139
bec39cab
AC
2140case "x$ac_cv_prog_cc_stdc" in
2141 x|xno)
2142 echo "$as_me:$LINENO: result: none needed" >&5
2143echo "${ECHO_T}none needed" >&6 ;;
2144 *)
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2146echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2147 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2148esac
2149
bec39cab
AC
2150# Some people use a C++ compiler to compile C. Since we use `exit',
2151# in C++ we need to declare it. In case someone uses the same compiler
2152# for both compiling C and C++ we need to have the C++ compiler decide
2153# the declaration of exit, since it's the most demanding environment.
2154cat >conftest.$ac_ext <<_ACEOF
2155#ifndef __cplusplus
2156 choke me
2157#endif
2158_ACEOF
2159rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 for ac_declaration in \
2182 '' \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2187 'void exit (int);'
2188do
2189 cat >conftest.$ac_ext <<_ACEOF
2190/* confdefs.h. */
2191_ACEOF
2192cat confdefs.h >>conftest.$ac_ext
2193cat >>conftest.$ac_ext <<_ACEOF
2194/* end confdefs.h. */
2195$ac_declaration
2196#include <stdlib.h>
2197int
2198main ()
2199{
2200exit (42);
2201 ;
2202 return 0;
2203}
2204_ACEOF
2205rm -f conftest.$ac_objext
2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag"
2215 || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 :
2228else
2229 echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2231
bec39cab 2232continue
c906108c 2233fi
bec39cab
AC
2234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat >conftest.$ac_ext <<_ACEOF
2236/* confdefs.h. */
2237_ACEOF
2238cat confdefs.h >>conftest.$ac_ext
2239cat >>conftest.$ac_ext <<_ACEOF
2240/* end confdefs.h. */
2241$ac_declaration
2242int
2243main ()
2244{
2245exit (42);
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250rm -f conftest.$ac_objext
2251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 break
2273else
2274 echo "$as_me: failed program was:" >&5
2275sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2276
bec39cab
AC
2277fi
2278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279done
2280rm -f conftest*
2281if test -n "$ac_declaration"; then
2282 echo '#ifdef __cplusplus' >>confdefs.h
2283 echo $ac_declaration >>confdefs.h
2284 echo '#endif' >>confdefs.h
c906108c
SS
2285fi
2286
bec39cab
AC
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2290
bec39cab
AC
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2298
bec39cab
AC
2299cat >>confdefs.h <<\_ACEOF
2300#define _GNU_SOURCE 1
2301_ACEOF
c906108c
SS
2302
2303
8bb2c122 2304
bec39cab
AC
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312# On Suns, sometimes $CPP names a directory.
2313if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
8bb2c122 2315fi
bec39cab
AC
2316if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2322 do
2323 ac_preproc_ok=false
2324for ac_c_preproc_warn_flag in '' yes
2325do
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338#ifdef __STDC__
2339# include <limits.h>
2340#else
2341# include <assert.h>
2342#endif
2343 Syntax error
2344_ACEOF
2345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2358 fi
8bb2c122 2359else
bec39cab 2360 ac_cpp_err=yes
8bb2c122 2361fi
bec39cab
AC
2362if test -z "$ac_cpp_err"; then
2363 :
8bb2c122 2364else
bec39cab
AC
2365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 # Broken: fails on valid input.
2369continue
2370fi
2371rm -f conftest.err conftest.$ac_ext
2372
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381#include <ac_nonexistent.h>
2382_ACEOF
2383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2396 fi
8bb2c122 2397else
bec39cab 2398 ac_cpp_err=yes
8bb2c122 2399fi
bec39cab
AC
2400if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2402continue
8bb2c122 2403else
bec39cab
AC
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2406
bec39cab
AC
2407 # Passes both tests.
2408ac_preproc_ok=:
2409break
8bb2c122 2410fi
bec39cab 2411rm -f conftest.err conftest.$ac_ext
8bb2c122 2412
bec39cab
AC
2413done
2414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415rm -f conftest.err conftest.$ac_ext
2416if $ac_preproc_ok; then
2417 break
2418fi
8bb2c122 2419
bec39cab
AC
2420 done
2421 ac_cv_prog_CPP=$CPP
ddc9cd0f 2422
c906108c 2423fi
bec39cab
AC
2424 CPP=$ac_cv_prog_CPP
2425else
2426 ac_cv_prog_CPP=$CPP
c906108c 2427fi
bec39cab
AC
2428echo "$as_me:$LINENO: result: $CPP" >&5
2429echo "${ECHO_T}$CPP" >&6
2430ac_preproc_ok=false
2431for ac_c_preproc_warn_flag in '' yes
2432do
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445#ifdef __STDC__
2446# include <limits.h>
2447#else
2448# include <assert.h>
2449#endif
2450 Syntax error
2451_ACEOF
2452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 else
2464 ac_cpp_err=
2465 fi
c906108c 2466else
bec39cab 2467 ac_cpp_err=yes
c906108c 2468fi
bec39cab
AC
2469if test -z "$ac_cpp_err"; then
2470 :
c906108c 2471else
bec39cab
AC
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 # Broken: fails on valid input.
2476continue
2477fi
2478rm -f conftest.err conftest.$ac_ext
2479
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483/* confdefs.h. */
2484_ACEOF
2485cat confdefs.h >>conftest.$ac_ext
2486cat >>conftest.$ac_ext <<_ACEOF
2487/* end confdefs.h. */
2488#include <ac_nonexistent.h>
2489_ACEOF
2490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev/null; then
2498 if test -s conftest.err; then
2499 ac_cpp_err=$ac_c_preproc_warn_flag
2500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 else
2502 ac_cpp_err=
2503 fi
c906108c 2504else
bec39cab 2505 ac_cpp_err=yes
c906108c 2506fi
bec39cab
AC
2507if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2509continue
c906108c 2510else
bec39cab
AC
2511 echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2513
bec39cab
AC
2514 # Passes both tests.
2515ac_preproc_ok=:
2516break
c906108c 2517fi
bec39cab 2518rm -f conftest.err conftest.$ac_ext
c906108c 2519
bec39cab
AC
2520done
2521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522rm -f conftest.err conftest.$ac_ext
2523if $ac_preproc_ok; then
c906108c
SS
2524 :
2525else
bec39cab
AC
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
c906108c 2531fi
c906108c 2532
bec39cab
AC
2533ac_ext=c
2534ac_cpp='$CPP $CPPFLAGS'
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540echo "$as_me:$LINENO: checking for egrep" >&5
2541echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542if test "${ac_cv_prog_egrep+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546 then ac_cv_prog_egrep='grep -E'
2547 else ac_cv_prog_egrep='egrep'
2548 fi
c906108c 2549fi
bec39cab
AC
2550echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP=$ac_cv_prog_egrep
c906108c 2553
bec39cab
AC
2554
2555
2556echo "$as_me:$LINENO: checking for AIX" >&5
2557echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558cat >conftest.$ac_ext <<_ACEOF
2559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
2564#ifdef _AIX
2565 yes
2566#endif
2567
2568_ACEOF
c906108c 2569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2570 $EGREP "yes" >/dev/null 2>&1; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572echo "${ECHO_T}yes" >&6
2573cat >>confdefs.h <<\_ACEOF
2574#define _ALL_SOURCE 1
2575_ACEOF
2576
c906108c 2577else
bec39cab
AC
2578 echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6
c906108c
SS
2580fi
2581rm -f conftest*
2582
c906108c 2583
bec39cab
AC
2584echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2588else
bec39cab
AC
2589 ac_func_search_save_LIBS=$LIBS
2590ac_cv_search_strerror=no
2591cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
c906108c 2597
bec39cab
AC
2598/* Override any gcc2 internal prototype to avoid an error. */
2599#ifdef __cplusplus
2600extern "C"
2601#endif
2602/* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604char strerror ();
2605int
2606main ()
2607{
2608strerror ();
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext conftest$ac_exeext
2614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest$ac_exeext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_search_strerror="none required"
2636else
2637 echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
2639
2640fi
2641rm -f conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643if test "$ac_cv_search_strerror" = no; then
2644 for ac_lib in cposix; do
2645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h. */
2652
2653/* Override any gcc2 internal prototype to avoid an error. */
2654#ifdef __cplusplus
2655extern "C"
2656#endif
2657/* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659char strerror ();
2660int
2661main ()
2662{
2663strerror ();
2664 ;
2665 return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691break
c906108c 2692else
bec39cab
AC
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2695
2696fi
bec39cab
AC
2697rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
c906108c 2700fi
bec39cab 2701LIBS=$ac_func_search_save_LIBS
c906108c 2702fi
bec39cab
AC
2703echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2707
c906108c
SS
2708fi
2709
c906108c 2710
c906108c 2711
bec39cab
AC
2712
2713echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2717else
bec39cab
AC
2718 am_cv_prog_cc_stdc=no
2719ac_save_CC="$CC"
2720# Don't try gcc -ansi; that turns off useful extensions and
2721# breaks some systems' header files.
2722# AIX -qlanglvl=ansi
2723# Ultrix and OSF/1 -std1
2724# HP-UX 10.20 and later -Ae
2725# HP-UX older versions -Aa -D_HPUX_SOURCE
2726# SVR4 -Xc -D__EXTENSIONS__
2727for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728do
2729 CC="$ac_save_CC $ac_arg"
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736#include <stdarg.h>
2737#include <stdio.h>
2738#include <sys/types.h>
2739#include <sys/stat.h>
2740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741struct buf { int x; };
2742FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743static char *e (p, i)
2744 char **p;
2745 int i;
2746{
2747 return p[i];
2748}
2749static char *f (char * (*g) (char **, int), char **p, ...)
2750{
2751 char *s;
2752 va_list v;
2753 va_start (v,p);
2754 s = g (p, va_arg (v,int));
2755 va_end (v);
2756 return s;
2757}
2758int test (int i, double x);
2759struct s1 {int (*f) (int a);};
2760struct s2 {int (*f) (double a);};
2761int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762int argc;
2763char **argv;
c906108c 2764
bec39cab
AC
2765int
2766main ()
2767{
c906108c 2768
bec39cab 2769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2770
bec39cab
AC
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2798else
bec39cab
AC
2799 echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2801
2802fi
bec39cab
AC
2803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804done
2805CC="$ac_save_CC"
c906108c
SS
2806
2807fi
2808
bec39cab
AC
2809if test -z "$am_cv_prog_cc_stdc"; then
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811echo "${ECHO_T}none needed" >&6
c906108c 2812else
bec39cab
AC
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2815fi
bec39cab
AC
2816case "x$am_cv_prog_cc_stdc" in
2817 x|xno) ;;
2818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819esac
c906108c 2820
c906108c 2821
bec39cab
AC
2822ac_aux_dir=
2823for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824 if test -f $ac_dir/install-sh; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 break
2828 elif test -f $ac_dir/install.sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install.sh -c"
2831 break
2832 elif test -f $ac_dir/shtool; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 break
2836 fi
2837done
2838if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
c906108c 2842fi
bec39cab
AC
2843ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2846
bec39cab
AC
2847# Make sure we can run config.sub.
2848$ac_config_sub sun4 >/dev/null 2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2852
2853echo "$as_me:$LINENO: checking build system type" >&5
2854echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 ac_cv_build_alias=$build_alias
2859test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias=`$ac_config_guess`
2861test -z "$ac_cv_build_alias" &&
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
2865ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868 { (exit 1); exit 1; }; }
2869
2870fi
2871echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872echo "${ECHO_T}$ac_cv_build" >&6
2873build=$ac_cv_build
2874build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877
2878
2879echo "$as_me:$LINENO: checking host system type" >&5
2880echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884 ac_cv_host_alias=$host_alias
2885test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias=$ac_cv_build_alias
2887ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890 { (exit 1); exit 1; }; }
2891
2892fi
2893echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894echo "${ECHO_T}$ac_cv_host" >&6
2895host=$ac_cv_host
2896host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2899
2900
2901echo "$as_me:$LINENO: checking target system type" >&5
2902echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905else
2906 ac_cv_target_alias=$target_alias
2907test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias=$ac_cv_host_alias
2909ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2913
2914fi
2915echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916echo "${ECHO_T}$ac_cv_target" >&6
2917target=$ac_cv_target
2918target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2921
c906108c 2922
bec39cab
AC
2923# The aliases save the names the user supplied, while $host etc.
2924# will get canonicalized.
2925test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
c906108c 2929
bec39cab
AC
2930# FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
2931# doesn't support cross-compilation, but the one from Autoconf 2.5x
2932# does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
2933# deal with the lossage. Note that CY_GNU_GETTEXT currently calls
2934# AC_PROG_RANLIB. This can be removed when we switch to Autoconf
2935# 2.5x.
2936if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2939echo "$as_me:$LINENO: checking for $ac_word" >&5
2940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941if test "${ac_cv_prog_RANLIB+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2943else
bec39cab
AC
2944 if test -n "$RANLIB"; then
2945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 2946else
bec39cab
AC
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958done
2959done
2960
c906108c 2961fi
c906108c 2962fi
bec39cab
AC
2963RANLIB=$ac_cv_prog_RANLIB
2964if test -n "$RANLIB"; then
2965 echo "$as_me:$LINENO: result: $RANLIB" >&5
2966echo "${ECHO_T}$RANLIB" >&6
2967else
2968 echo "$as_me:$LINENO: result: no" >&5
2969echo "${ECHO_T}no" >&6
c906108c
SS
2970fi
2971
bec39cab
AC
2972fi
2973if test -z "$ac_cv_prog_RANLIB"; then
2974 ac_ct_RANLIB=$RANLIB
2975 # Extract the first word of "ranlib", so it can be a program name with args.
2976set dummy ranlib; ac_word=$2
2977echo "$as_me:$LINENO: checking for $ac_word" >&5
2978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2981else
bec39cab
AC
2982 if test -n "$ac_ct_RANLIB"; then
2983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_ac_ct_RANLIB="ranlib"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996done
2997done
c906108c 2998
bec39cab
AC
2999 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3000fi
3001fi
3002ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3003if test -n "$ac_ct_RANLIB"; then
3004 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3005echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 3006else
bec39cab
AC
3007 echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6
c906108c 3009fi
c906108c 3010
bec39cab
AC
3011 RANLIB=$ac_ct_RANLIB
3012else
3013 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
3014fi
3015
c906108c 3016
c906108c 3017
bec39cab
AC
3018CONFIG_OBS=
3019CONFIG_DEPS=
3020CONFIG_SRCS=
3021ENABLE_CFLAGS=
c906108c 3022
bec39cab
AC
3023CONFIG_ALL=
3024CONFIG_CLEAN=
3025CONFIG_INSTALL=
3026CONFIG_UNINSTALL=
3027
3028
3029echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3030echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3031set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3032if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035 cat >conftest.make <<\_ACEOF
3036all:
3037 @echo 'ac_maketemp="$(MAKE)"'
3038_ACEOF
3039# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3040eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3041if test -n "$ac_maketemp"; then
3042 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 3043else
bec39cab 3044 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 3045fi
bec39cab
AC
3046rm -f conftest.make
3047fi
3048if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3049 echo "$as_me:$LINENO: result: yes" >&5
3050echo "${ECHO_T}yes" >&6
3051 SET_MAKE=
3052else
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3055 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
3056fi
3057
bec39cab
AC
3058if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3060set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3061echo "$as_me:$LINENO: checking for $ac_word" >&5
3062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063if test "${ac_cv_prog_RANLIB+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065else
3066 if test -n "$RANLIB"; then
3067 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081done
c906108c 3082
bec39cab
AC
3083fi
3084fi
3085RANLIB=$ac_cv_prog_RANLIB
3086if test -n "$RANLIB"; then
3087 echo "$as_me:$LINENO: result: $RANLIB" >&5
3088echo "${ECHO_T}$RANLIB" >&6
c906108c 3089else
bec39cab
AC
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
c906108c
SS
3092fi
3093
bec39cab
AC
3094fi
3095if test -z "$ac_cv_prog_RANLIB"; then
3096 ac_ct_RANLIB=$RANLIB
3097 # Extract the first word of "ranlib", so it can be a program name with args.
3098set dummy ranlib; ac_word=$2
3099echo "$as_me:$LINENO: checking for $ac_word" >&5
3100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104 if test -n "$ac_ct_RANLIB"; then
3105 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_RANLIB="ranlib"
3115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118done
c906108c 3119done
bec39cab
AC
3120
3121 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3122fi
3123fi
3124ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3125if test -n "$ac_ct_RANLIB"; then
3126 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3127echo "${ECHO_T}$ac_ct_RANLIB" >&6
3128else
3129 echo "$as_me:$LINENO: result: no" >&5
3130echo "${ECHO_T}no" >&6
c906108c
SS
3131fi
3132
bec39cab 3133 RANLIB=$ac_ct_RANLIB
c906108c 3134else
bec39cab
AC
3135 RANLIB="$ac_cv_prog_RANLIB"
3136fi
3137
3138echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3139echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3140if test "${ac_cv_header_stdc+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3142else
bec39cab
AC
3143 cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h. */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h. */
3149#include <stdlib.h>
3150#include <stdarg.h>
3151#include <string.h>
3152#include <float.h>
3153
3154int
c906108c
SS
3155main ()
3156{
bec39cab
AC
3157
3158 ;
3159 return 0;
c906108c 3160}
bec39cab
AC
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_header_stdc=yes
c906108c 3185else
bec39cab
AC
3186 echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3188
bec39cab 3189ac_cv_header_stdc=no
c906108c 3190fi
bec39cab 3191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3192
bec39cab
AC
3193if test $ac_cv_header_stdc = yes; then
3194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3195 cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h. */
3201#include <string.h>
c906108c 3202
bec39cab
AC
3203_ACEOF
3204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3205 $EGREP "memchr" >/dev/null 2>&1; then
3206 :
c906108c 3207else
bec39cab 3208 ac_cv_header_stdc=no
c906108c 3209fi
bec39cab 3210rm -f conftest*
c906108c 3211
bec39cab 3212fi
c906108c 3213
bec39cab
AC
3214if test $ac_cv_header_stdc = yes; then
3215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3216 cat >conftest.$ac_ext <<_ACEOF
3217/* confdefs.h. */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h. */
3222#include <stdlib.h>
c906108c 3223
bec39cab
AC
3224_ACEOF
3225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3226 $EGREP "free" >/dev/null 2>&1; then
3227 :
c906108c 3228else
bec39cab 3229 ac_cv_header_stdc=no
c906108c
SS
3230fi
3231rm -f conftest*
c906108c 3232
c906108c 3233fi
c906108c 3234
bec39cab
AC
3235if test $ac_cv_header_stdc = yes; then
3236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3237 if test "$cross_compiling" = yes; then
bec39cab 3238 :
c906108c 3239else
bec39cab
AC
3240 cat >conftest.$ac_ext <<_ACEOF
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */
3246#include <ctype.h>
3247#if ((' ' & 0x0FF) == 0x020)
3248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3250#else
3251# define ISLOWER(c) \
3252 (('a' <= (c) && (c) <= 'i') \
3253 || ('j' <= (c) && (c) <= 'r') \
3254 || ('s' <= (c) && (c) <= 'z'))
3255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3256#endif
c906108c 3257
bec39cab
AC
3258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3259int
3260main ()
3261{
3262 int i;
3263 for (i = 0; i < 256; i++)
3264 if (XOR (islower (i), ISLOWER (i))
3265 || toupper (i) != TOUPPER (i))
3266 exit(2);
3267 exit (0);
3268}
3269_ACEOF
3270rm -f conftest$ac_exeext
3271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3272 (eval $ac_link) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 (eval $ac_try) 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3281 :
3282else
3283 echo "$as_me: program exited with status $ac_status" >&5
3284echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3286
bec39cab
AC
3287( exit $ac_status )
3288ac_cv_header_stdc=no
3289fi
3290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3291fi
3292fi
3293fi
3294echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3295echo "${ECHO_T}$ac_cv_header_stdc" >&6
3296if test $ac_cv_header_stdc = yes; then
c906108c 3297
bec39cab
AC
3298cat >>confdefs.h <<\_ACEOF
3299#define STDC_HEADERS 1
3300_ACEOF
c906108c 3301
bec39cab 3302fi
c906108c 3303
bec39cab
AC
3304echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3305echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3306if test "${ac_cv_c_const+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309 cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
c906108c 3315
bec39cab
AC
3316int
3317main ()
3318{
3319/* FIXME: Include the comments suggested by Paul. */
3320#ifndef __cplusplus
3321 /* Ultrix mips cc rejects this. */
3322 typedef int charset[2];
3323 const charset x;
3324 /* SunOS 4.1.1 cc rejects this. */
3325 char const *const *ccp;
3326 char **p;
3327 /* NEC SVR4.0.2 mips cc rejects this. */
3328 struct point {int x, y;};
3329 static struct point const zero = {0,0};
3330 /* AIX XL C 1.02.0.0 rejects this.
3331 It does not let you subtract one const X* pointer from another in
3332 an arm of an if-expression whose if-part is not a constant
3333 expression */
3334 const char *g = "string";
3335 ccp = &g + (g ? g-g : 0);
3336 /* HPUX 7.0 cc rejects these. */
3337 ++ccp;
3338 p = (char**) ccp;
3339 ccp = (char const *const *) p;
3340 { /* SCO 3.2v4 cc rejects this. */
3341 char *t;
3342 char const *s = 0 ? (char *) 0 : (char const *) 0;
3343
3344 *t++ = 0;
3345 }
3346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3347 int x[] = {25, 17};
3348 const int *foo = &x[0];
3349 ++foo;
3350 }
3351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3352 typedef const int *iptr;
3353 iptr p = 0;
3354 ++p;
3355 }
3356 { /* AIX XL C 1.02.0.0 rejects this saying
3357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3358 struct s { int j; const int *ap[3]; };
3359 struct s *b; b->j = 5;
3360 }
3361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3362 const int foo = 10;
3363 }
3364#endif
c906108c 3365
bec39cab
AC
3366 ;
3367 return 0;
3368}
3369_ACEOF
3370rm -f conftest.$ac_objext
3371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_c_const=yes
c906108c 3393else
bec39cab
AC
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3396
bec39cab
AC
3397ac_cv_c_const=no
3398fi
3399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3400fi
bec39cab
AC
3401echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3402echo "${ECHO_T}$ac_cv_c_const" >&6
3403if test $ac_cv_c_const = no; then
c906108c 3404
bec39cab
AC
3405cat >>confdefs.h <<\_ACEOF
3406#define const
3407_ACEOF
c906108c
SS
3408
3409fi
3410
bec39cab
AC
3411echo "$as_me:$LINENO: checking for inline" >&5
3412echo $ECHO_N "checking for inline... $ECHO_C" >&6
3413if test "${ac_cv_c_inline+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3415else
bec39cab
AC
3416 ac_cv_c_inline=no
3417for ac_kw in inline __inline__ __inline; do
3418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
3424#ifndef __cplusplus
3425typedef int foo_t;
3426static $ac_kw foo_t static_foo () {return 0; }
3427$ac_kw foo_t foo () {return 0; }
c906108c
SS
3428#endif
3429
bec39cab
AC
3430_ACEOF
3431rm -f conftest.$ac_objext
3432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag"
3441 || test ! -s conftest.err'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_cv_c_inline=$ac_kw; break
c906108c 3454else
bec39cab
AC
3455 echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3457
c906108c 3458fi
bec39cab 3459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3460done
3461
bec39cab
AC
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3464echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3465
c906108c 3466
bec39cab
AC
3467case $ac_cv_c_inline in
3468 inline | yes) ;;
3469 *)
3470 case $ac_cv_c_inline in
3471 no) ac_val=;;
3472 *) ac_val=$ac_cv_c_inline;;
3473 esac
3474 cat >>confdefs.h <<_ACEOF
3475#ifndef __cplusplus
3476#define inline $ac_val
c906108c 3477#endif
bec39cab
AC
3478_ACEOF
3479 ;;
3480esac
c906108c 3481
bec39cab 3482# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3483
c906108c 3484
c906108c 3485
c906108c 3486
c906108c 3487
c906108c 3488
c906108c 3489
c906108c 3490
c906108c 3491
bec39cab
AC
3492for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3493 inttypes.h stdint.h unistd.h
3494do
3495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496echo "$as_me:$LINENO: checking for $ac_header" >&5
3497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500else
3501 cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
3507$ac_includes_default
3508
3509#include <$ac_header>
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 eval "$as_ac_Header=yes"
3534else
3535 echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538eval "$as_ac_Header=no"
3539fi
3540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541fi
3542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545 cat >>confdefs.h <<_ACEOF
3546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3547_ACEOF
c906108c 3548
c906108c
SS
3549fi
3550
bec39cab 3551done
c906108c 3552
c906108c 3553
bec39cab
AC
3554echo "$as_me:$LINENO: checking for off_t" >&5
3555echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3556if test "${ac_cv_type_off_t+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3558else
bec39cab
AC
3559 cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h. */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h. */
3565$ac_includes_default
3566int
3567main ()
3568{
3569if ((off_t *) 0)
3570 return 0;
3571if (sizeof (off_t))
3572 return 0;
3573 ;
3574 return 0;
3575}
3576_ACEOF
3577rm -f conftest.$ac_objext
3578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_type_off_t=yes
3600else
3601 echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604ac_cv_type_off_t=no
c906108c 3605fi
bec39cab 3606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3607fi
bec39cab
AC
3608echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3609echo "${ECHO_T}$ac_cv_type_off_t" >&6
3610if test $ac_cv_type_off_t = yes; then
3611 :
c906108c 3612else
bec39cab
AC
3613
3614cat >>confdefs.h <<_ACEOF
3615#define off_t long
3616_ACEOF
3617
3618fi
3619
3620echo "$as_me:$LINENO: checking for size_t" >&5
3621echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3622if test "${ac_cv_type_size_t+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625 cat >conftest.$ac_ext <<_ACEOF
3626/* confdefs.h. */
3627_ACEOF
3628cat confdefs.h >>conftest.$ac_ext
3629cat >>conftest.$ac_ext <<_ACEOF
3630/* end confdefs.h. */
3631$ac_includes_default
3632int
3633main ()
3634{
3635if ((size_t *) 0)
3636 return 0;
3637if (sizeof (size_t))
3638 return 0;
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_type_size_t=yes
c906108c 3666else
bec39cab
AC
3667 echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670ac_cv_type_size_t=no
c906108c 3671fi
bec39cab 3672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3673fi
bec39cab
AC
3674echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3675echo "${ECHO_T}$ac_cv_type_size_t" >&6
3676if test $ac_cv_type_size_t = yes; then
3677 :
3678else
c906108c 3679
bec39cab
AC
3680cat >>confdefs.h <<_ACEOF
3681#define size_t unsigned
3682_ACEOF
c906108c 3683
c906108c 3684fi
bec39cab
AC
3685
3686# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3687# for constant arguments. Useless!
3688echo "$as_me:$LINENO: checking for working alloca.h" >&5
3689echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3690if test "${ac_cv_working_alloca_h+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
3693 cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h. */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h. */
3699#include <alloca.h>
3700int
3701main ()
3702{
3703char *p = (char *) alloca (2 * sizeof (int));
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_working_alloca_h=yes
3731else
3732 echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735ac_cv_working_alloca_h=no
3736fi
3737rm -f conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3739fi
3740echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3741echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3742if test $ac_cv_working_alloca_h = yes; then
3743
3744cat >>confdefs.h <<\_ACEOF
3745#define HAVE_ALLOCA_H 1
3746_ACEOF
c906108c
SS
3747
3748fi
bec39cab
AC
3749
3750echo "$as_me:$LINENO: checking for alloca" >&5
3751echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3752if test "${ac_cv_func_alloca_works+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3754else
bec39cab
AC
3755 cat >conftest.$ac_ext <<_ACEOF
3756/* confdefs.h. */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h. */
3761#ifdef __GNUC__
3762# define alloca __builtin_alloca
3763#else
3764# ifdef _MSC_VER
3765# include <malloc.h>
3766# define alloca _alloca
3767# else
3768# if HAVE_ALLOCA_H
3769# include <alloca.h>
3770# else
3771# ifdef _AIX
3772 #pragma alloca
3773# else
3774# ifndef alloca /* predefined by HP cc +Olibcalls */
3775char *alloca ();
3776# endif
3777# endif
3778# endif
3779# endif
3780#endif
c906108c 3781
bec39cab
AC
3782int
3783main ()
3784{
3785char *p = (char *) alloca (1);
3786 ;
3787 return 0;
3788}
3789_ACEOF
3790rm -f conftest.$ac_objext conftest$ac_exeext
3791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag"
3800 || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest$ac_exeext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_func_alloca_works=yes
c906108c 3813else
bec39cab
AC
3814 echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817ac_cv_func_alloca_works=no
c906108c 3818fi
bec39cab
AC
3819rm -f conftest.err conftest.$ac_objext \
3820 conftest$ac_exeext conftest.$ac_ext
c906108c 3821fi
bec39cab
AC
3822echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3823echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3824
3825if test $ac_cv_func_alloca_works = yes; then
3826
3827cat >>confdefs.h <<\_ACEOF
3828#define HAVE_ALLOCA 1
3829_ACEOF
c906108c 3830
c906108c 3831else
bec39cab
AC
3832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3833# that cause trouble. Some versions do not even contain alloca or
3834# contain a buggy version. If you still want to use their alloca,
3835# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3836
bec39cab 3837ALLOCA=alloca.$ac_objext
c906108c 3838
bec39cab
AC
3839cat >>confdefs.h <<\_ACEOF
3840#define C_ALLOCA 1
3841_ACEOF
c906108c 3842
bec39cab
AC
3843
3844echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3845echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3846if test "${ac_cv_os_cray+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3848else
bec39cab
AC
3849 cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
3855#if defined(CRAY) && ! defined(CRAY2)
3856webecray
3857#else
3858wenotbecray
3859#endif
3860
3861_ACEOF
3862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863 $EGREP "webecray" >/dev/null 2>&1; then
3864 ac_cv_os_cray=yes
c906108c 3865else
bec39cab 3866 ac_cv_os_cray=no
c906108c 3867fi
bec39cab
AC
3868rm -f conftest*
3869
3870fi
3871echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3872echo "${ECHO_T}$ac_cv_os_cray" >&6
3873if test $ac_cv_os_cray = yes; then
3874 for ac_func in _getb67 GETB67 getb67; do
3875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3876echo "$as_me:$LINENO: checking for $ac_func" >&5
3877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3878if eval "test \"\${$as_ac_var+set}\" = set"; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h. */
3887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3889#define $ac_func innocuous_$ac_func
3890
c906108c 3891/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3892 which can conflict with char $ac_func (); below.
3893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 <limits.h> exists even on freestanding compilers. */
3895
3896#ifdef __STDC__
3897# include <limits.h>
3898#else
3899# include <assert.h>
3900#endif
c906108c 3901
bec39cab 3902#undef $ac_func
c906108c 3903
bec39cab
AC
3904/* Override any gcc2 internal prototype to avoid an error. */
3905#ifdef __cplusplus
3906extern "C"
3907{
3908#endif
3909/* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3911char $ac_func ();
c906108c
SS
3912/* The GNU C library defines this for functions which it implements
3913 to always fail with ENOSYS. Some functions are actually named
3914 something starting with __ and the normal name is an alias. */
3915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3916choke me
3917#else
bec39cab
AC
3918char (*f) () = $ac_func;
3919#endif
3920#ifdef __cplusplus
3921}
c906108c
SS
3922#endif
3923
bec39cab
AC
3924int
3925main ()
3926{
3927return f != $ac_func;
3928 ;
3929 return 0;
3930}
3931_ACEOF
3932rm -f conftest.$ac_objext conftest$ac_exeext
3933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest$ac_exeext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 eval "$as_ac_var=yes"
3955else
3956 echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959eval "$as_ac_var=no"
3960fi
3961rm -f conftest.err conftest.$ac_objext \
3962 conftest$ac_exeext conftest.$ac_ext
3963fi
3964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3966if test `eval echo '${'$as_ac_var'}'` = yes; then
3967
3968cat >>confdefs.h <<_ACEOF
3969#define CRAY_STACKSEG_END $ac_func
3970_ACEOF
c906108c 3971
bec39cab 3972 break
c906108c 3973fi
c906108c 3974
c906108c 3975 done
c906108c 3976fi
bec39cab
AC
3977
3978echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3979echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3980if test "${ac_cv_c_stack_direction+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3982else
bec39cab
AC
3983 if test "$cross_compiling" = yes; then
3984 ac_cv_c_stack_direction=0
3985else
3986 cat >conftest.$ac_ext <<_ACEOF
3987/* confdefs.h. */
3988_ACEOF
3989cat confdefs.h >>conftest.$ac_ext
3990cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h. */
3992int
3993find_stack_direction ()
3994{
3995 static char *addr = 0;
3996 auto char dummy;
3997 if (addr == 0)
3998 {
3999 addr = &dummy;
4000 return find_stack_direction ();
4001 }
4002 else
4003 return (&dummy > addr) ? 1 : -1;
4004}
c906108c 4005
bec39cab
AC
4006int
4007main ()
4008{
4009 exit (find_stack_direction () < 0);
4010}
4011_ACEOF
4012rm -f conftest$ac_exeext
4013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_c_stack_direction=1
c906108c 4024else
bec39cab
AC
4025 echo "$as_me: program exited with status $ac_status" >&5
4026echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029( exit $ac_status )
4030ac_cv_c_stack_direction=-1
4031fi
4032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 4033fi
c906108c 4034fi
bec39cab
AC
4035echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4036echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4037
4038cat >>confdefs.h <<_ACEOF
4039#define STACK_DIRECTION $ac_cv_c_stack_direction
4040_ACEOF
c906108c 4041
c906108c 4042
c906108c
SS
4043fi
4044
4045
c906108c 4046
bec39cab
AC
4047for ac_header in stdlib.h unistd.h
4048do
4049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051 echo "$as_me:$LINENO: checking for $ac_header" >&5
4052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4053if eval "test \"\${$as_ac_Header+set}\" = set"; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055fi
4056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4058else
4059 # Is the header compilable?
4060echo "$as_me:$LINENO: checking $ac_header usability" >&5
4061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4062cat >conftest.$ac_ext <<_ACEOF
4063/* confdefs.h. */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h. */
4068$ac_includes_default
4069#include <$ac_header>
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 (eval $ac_try) 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_header_compiler=yes
4094else
4095 echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098ac_header_compiler=no
4099fi
4100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4102echo "${ECHO_T}$ac_header_compiler" >&6
4103
4104# Is the header present?
4105echo "$as_me:$LINENO: checking $ac_header presence" >&5
4106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4107cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
4113#include <$ac_header>
4114_ACEOF
4115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null; then
4123 if test -s conftest.err; then
4124 ac_cpp_err=$ac_c_preproc_warn_flag
4125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4126 else
4127 ac_cpp_err=
4128 fi
c906108c 4129else
bec39cab 4130 ac_cpp_err=yes
c906108c 4131fi
bec39cab
AC
4132if test -z "$ac_cpp_err"; then
4133 ac_header_preproc=yes
c906108c 4134else
bec39cab
AC
4135 echo "$as_me: failed program was:" >&5
4136sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 ac_header_preproc=no
c906108c 4139fi
bec39cab
AC
4140rm -f conftest.err conftest.$ac_ext
4141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4142echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4143
bec39cab
AC
4144# So? What about this header?
4145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4146 yes:no: )
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4150echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4151 ac_header_preproc=yes
4152 ;;
4153 no:yes:* )
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4159echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4161echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4163echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4165echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4166 (
4167 cat <<\_ASBOX
4168## ------------------------------------------ ##
4169## Report this to the AC_PACKAGE_NAME lists. ##
4170## ------------------------------------------ ##
4171_ASBOX
4172 ) |
4173 sed "s/^/$as_me: WARNING: /" >&2
4174 ;;
4175esac
4176echo "$as_me:$LINENO: checking for $ac_header" >&5
4177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181 eval "$as_ac_Header=\$ac_header_preproc"
4182fi
4183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4185
4186fi
4187if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188 cat >>confdefs.h <<_ACEOF
4189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190_ACEOF
4191
4192fi
4193
4194done
4195
4196
4197for ac_func in getpagesize
4198do
4199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4200echo "$as_me:$LINENO: checking for $ac_func" >&5
4201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4202if eval "test \"\${$as_ac_var+set}\" = set"; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h. */
4211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4213#define $ac_func innocuous_$ac_func
4214
4215/* System header to define __stub macros and hopefully few prototypes,
4216 which can conflict with char $ac_func (); below.
4217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 <limits.h> exists even on freestanding compilers. */
4219
4220#ifdef __STDC__
4221# include <limits.h>
4222#else
4223# include <assert.h>
4224#endif
4225
4226#undef $ac_func
4227
4228/* Override any gcc2 internal prototype to avoid an error. */
4229#ifdef __cplusplus
4230extern "C"
4231{
4232#endif
4233/* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4235char $ac_func ();
4236/* The GNU C library defines this for functions which it implements
4237 to always fail with ENOSYS. Some functions are actually named
4238 something starting with __ and the normal name is an alias. */
4239#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4240choke me
4241#else
4242char (*f) () = $ac_func;
4243#endif
4244#ifdef __cplusplus
4245}
4246#endif
4247
4248int
4249main ()
4250{
4251return f != $ac_func;
4252 ;
4253 return 0;
4254}
4255_ACEOF
4256rm -f conftest.$ac_objext conftest$ac_exeext
4257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258 (eval $ac_link) 2>conftest.er1
4259 ac_status=$?
4260 grep -v '^ *+' conftest.er1 >conftest.err
4261 rm -f conftest.er1
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag"
4266 || test ! -s conftest.err'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 (eval $ac_try) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 eval "$as_ac_var=yes"
4279else
4280 echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283eval "$as_ac_var=no"
4284fi
4285rm -f conftest.err conftest.$ac_objext \
4286 conftest$ac_exeext conftest.$ac_ext
4287fi
4288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4290if test `eval echo '${'$as_ac_var'}'` = yes; then
4291 cat >>confdefs.h <<_ACEOF
4292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4293_ACEOF
4294
4295fi
4296done
4297
4298echo "$as_me:$LINENO: checking for working mmap" >&5
4299echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4300if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303 if test "$cross_compiling" = yes; then
4304 ac_cv_func_mmap_fixed_mapped=no
4305else
4306 cat >conftest.$ac_ext <<_ACEOF
4307/* confdefs.h. */
4308_ACEOF
4309cat confdefs.h >>conftest.$ac_ext
4310cat >>conftest.$ac_ext <<_ACEOF
4311/* end confdefs.h. */
4312$ac_includes_default
4313/* malloc might have been renamed as rpl_malloc. */
4314#undef malloc
4315
4316/* Thanks to Mike Haertel and Jim Avera for this test.
4317 Here is a matrix of mmap possibilities:
4318 mmap private not fixed
4319 mmap private fixed at somewhere currently unmapped
4320 mmap private fixed at somewhere already mapped
4321 mmap shared not fixed
4322 mmap shared fixed at somewhere currently unmapped
4323 mmap shared fixed at somewhere already mapped
4324 For private mappings, we should verify that changes cannot be read()
4325 back from the file, nor mmap's back from the file at a different
4326 address. (There have been systems where private was not correctly
4327 implemented like the infamous i386 svr4.0, and systems where the
4328 VM page cache was not coherent with the file system buffer cache
4329 like early versions of FreeBSD and possibly contemporary NetBSD.)
4330 For shared mappings, we should conversely verify that changes get
4331 propagated back to all the places they're supposed to be.
4332
4333 Grep wants private fixed already mapped.
4334 The main things grep needs to know about mmap are:
4335 * does it exist and is it safe to write into the mmap'd area
4336 * how to use it (BSD variants) */
4337
4338#include <fcntl.h>
4339#include <sys/mman.h>
4340
4341#if !STDC_HEADERS && !HAVE_STDLIB_H
4342char *malloc ();
4343#endif
4344
4345/* This mess was copied from the GNU getpagesize.h. */
4346#if !HAVE_GETPAGESIZE
4347/* Assume that all systems that can run configure have sys/param.h. */
4348# if !HAVE_SYS_PARAM_H
4349# define HAVE_SYS_PARAM_H 1
4350# endif
4351
4352# ifdef _SC_PAGESIZE
4353# define getpagesize() sysconf(_SC_PAGESIZE)
4354# else /* no _SC_PAGESIZE */
4355# if HAVE_SYS_PARAM_H
4356# include <sys/param.h>
4357# ifdef EXEC_PAGESIZE
4358# define getpagesize() EXEC_PAGESIZE
4359# else /* no EXEC_PAGESIZE */
4360# ifdef NBPG
4361# define getpagesize() NBPG * CLSIZE
4362# ifndef CLSIZE
4363# define CLSIZE 1
4364# endif /* no CLSIZE */
4365# else /* no NBPG */
4366# ifdef NBPC
4367# define getpagesize() NBPC
4368# else /* no NBPC */
4369# ifdef PAGESIZE
4370# define getpagesize() PAGESIZE
4371# endif /* PAGESIZE */
4372# endif /* no NBPC */
4373# endif /* no NBPG */
4374# endif /* no EXEC_PAGESIZE */
4375# else /* no HAVE_SYS_PARAM_H */
4376# define getpagesize() 8192 /* punt totally */
4377# endif /* no HAVE_SYS_PARAM_H */
4378# endif /* no _SC_PAGESIZE */
4379
4380#endif /* no HAVE_GETPAGESIZE */
4381
4382int
4383main ()
4384{
4385 char *data, *data2, *data3;
4386 int i, pagesize;
4387 int fd;
4388
4389 pagesize = getpagesize ();
4390
4391 /* First, make a file with some known garbage in it. */
4392 data = (char *) malloc (pagesize);
4393 if (!data)
4394 exit (1);
4395 for (i = 0; i < pagesize; ++i)
4396 *(data + i) = rand ();
4397 umask (0);
4398 fd = creat ("conftest.mmap", 0600);
4399 if (fd < 0)
4400 exit (1);
4401 if (write (fd, data, pagesize) != pagesize)
4402 exit (1);
4403 close (fd);
4404
4405 /* Next, try to mmap the file at a fixed address which already has
4406 something else allocated at it. If we can, also make sure that
4407 we see the same garbage. */
4408 fd = open ("conftest.mmap", O_RDWR);
4409 if (fd < 0)
4410 exit (1);
4411 data2 = (char *) malloc (2 * pagesize);
4412 if (!data2)
4413 exit (1);
4414 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4415 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4416 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4417 exit (1);
4418 for (i = 0; i < pagesize; ++i)
4419 if (*(data + i) != *(data2 + i))
4420 exit (1);
4421
4422 /* Finally, make sure that changes to the mapped area do not
4423 percolate back to the file as seen by read(). (This is a bug on
4424 some variants of i386 svr4.0.) */
4425 for (i = 0; i < pagesize; ++i)
4426 *(data2 + i) = *(data2 + i) + 1;
4427 data3 = (char *) malloc (pagesize);
4428 if (!data3)
4429 exit (1);
4430 if (read (fd, data3, pagesize) != pagesize)
4431 exit (1);
4432 for (i = 0; i < pagesize; ++i)
4433 if (*(data + i) != *(data3 + i))
4434 exit (1);
4435 close (fd);
4436 exit (0);
4437}
4438_ACEOF
4439rm -f conftest$ac_exeext
4440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_func_mmap_fixed_mapped=yes
4451else
4452 echo "$as_me: program exited with status $ac_status" >&5
4453echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456( exit $ac_status )
4457ac_cv_func_mmap_fixed_mapped=no
4458fi
4459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4460fi
4461fi
4462echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4463echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4464if test $ac_cv_func_mmap_fixed_mapped = yes; then
4465
4466cat >>confdefs.h <<\_ACEOF
4467#define HAVE_MMAP 1
4468_ACEOF
4469
4470fi
4471rm -f conftest.mmap
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4484unistd.h values.h sys/param.h
4485do
4486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4487if eval "test \"\${$as_ac_Header+set}\" = set"; then
4488 echo "$as_me:$LINENO: checking for $ac_header" >&5
4489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4490if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492fi
4493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495else
4496 # Is the header compilable?
4497echo "$as_me:$LINENO: checking $ac_header usability" >&5
4498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4499cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h. */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h. */
4505$ac_includes_default
4506#include <$ac_header>
4507_ACEOF
4508rm -f conftest.$ac_objext
4509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag"
4518 || test ! -s conftest.err'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try='test -s conftest.$ac_objext'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; }; then
4530 ac_header_compiler=yes
4531else
4532 echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535ac_header_compiler=no
4536fi
4537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4539echo "${ECHO_T}$ac_header_compiler" >&6
4540
4541# Is the header present?
4542echo "$as_me:$LINENO: checking $ac_header presence" >&5
4543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4544cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */
4546_ACEOF
4547cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */
4550#include <$ac_header>
4551_ACEOF
4552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } >/dev/null; then
4560 if test -s conftest.err; then
4561 ac_cpp_err=$ac_c_preproc_warn_flag
4562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4563 else
4564 ac_cpp_err=
4565 fi
4566else
4567 ac_cpp_err=yes
4568fi
4569if test -z "$ac_cpp_err"; then
4570 ac_header_preproc=yes
4571else
4572 echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ac_header_preproc=no
4576fi
4577rm -f conftest.err conftest.$ac_ext
4578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4579echo "${ECHO_T}$ac_header_preproc" >&6
4580
4581# So? What about this header?
4582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4583 yes:no: )
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4588 ac_header_preproc=yes
4589 ;;
4590 no:yes:* )
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4603 (
4604 cat <<\_ASBOX
4605## ------------------------------------------ ##
4606## Report this to the AC_PACKAGE_NAME lists. ##
4607## ------------------------------------------ ##
4608_ASBOX
4609 ) |
4610 sed "s/^/$as_me: WARNING: /" >&2
4611 ;;
4612esac
4613echo "$as_me:$LINENO: checking for $ac_header" >&5
4614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4615if eval "test \"\${$as_ac_Header+set}\" = set"; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618 eval "$as_ac_Header=\$ac_header_preproc"
4619fi
4620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4622
4623fi
4624if test `eval echo '${'$as_ac_Header'}'` = yes; then
4625 cat >>confdefs.h <<_ACEOF
4626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627_ACEOF
4628
4629fi
4630
4631done
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4644__argz_count __argz_stringify __argz_next
4645do
4646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4647echo "$as_me:$LINENO: checking for $ac_func" >&5
4648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4649if eval "test \"\${$as_ac_var+set}\" = set"; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652 cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
4658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4660#define $ac_func innocuous_$ac_func
4661
4662/* System header to define __stub macros and hopefully few prototypes,
4663 which can conflict with char $ac_func (); below.
4664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 <limits.h> exists even on freestanding compilers. */
4666
4667#ifdef __STDC__
4668# include <limits.h>
4669#else
4670# include <assert.h>
4671#endif
4672
4673#undef $ac_func
4674
4675/* Override any gcc2 internal prototype to avoid an error. */
4676#ifdef __cplusplus
4677extern "C"
4678{
4679#endif
4680/* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682char $ac_func ();
4683/* The GNU C library defines this for functions which it implements
4684 to always fail with ENOSYS. Some functions are actually named
4685 something starting with __ and the normal name is an alias. */
4686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4687choke me
4688#else
4689char (*f) () = $ac_func;
4690#endif
4691#ifdef __cplusplus
4692}
4693#endif
4694
4695int
4696main ()
4697{
4698return f != $ac_func;
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703rm -f conftest.$ac_objext conftest$ac_exeext
4704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4705 (eval $ac_link) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 eval "$as_ac_var=yes"
4726else
4727 echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730eval "$as_ac_var=no"
4731fi
4732rm -f conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext conftest.$ac_ext
4734fi
4735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4737if test `eval echo '${'$as_ac_var'}'` = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4740_ACEOF
4741
4742fi
4743done
4744
4745
4746 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4747
4748for ac_func in stpcpy
4749do
4750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4751echo "$as_me:$LINENO: checking for $ac_func" >&5
4752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4753if eval "test \"\${$as_ac_var+set}\" = set"; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756 cat >conftest.$ac_ext <<_ACEOF
4757/* confdefs.h. */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h. */
4762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4764#define $ac_func innocuous_$ac_func
4765
4766/* System header to define __stub macros and hopefully few prototypes,
4767 which can conflict with char $ac_func (); below.
4768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769 <limits.h> exists even on freestanding compilers. */
4770
4771#ifdef __STDC__
4772# include <limits.h>
4773#else
4774# include <assert.h>
4775#endif
4776
4777#undef $ac_func
4778
4779/* Override any gcc2 internal prototype to avoid an error. */
4780#ifdef __cplusplus
4781extern "C"
4782{
4783#endif
4784/* We use char because int might match the return type of a gcc2
4785 builtin and then its argument prototype would still apply. */
4786char $ac_func ();
4787/* The GNU C library defines this for functions which it implements
4788 to always fail with ENOSYS. Some functions are actually named
4789 something starting with __ and the normal name is an alias. */
4790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4791choke me
4792#else
4793char (*f) () = $ac_func;
4794#endif
4795#ifdef __cplusplus
4796}
4797#endif
4798
4799int
4800main ()
4801{
4802return f != $ac_func;
4803 ;
4804 return 0;
4805}
4806_ACEOF
4807rm -f conftest.$ac_objext conftest$ac_exeext
4808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest$ac_exeext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_var=yes"
4830else
4831 echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834eval "$as_ac_var=no"
4835fi
4836rm -f conftest.err conftest.$ac_objext \
4837 conftest$ac_exeext conftest.$ac_ext
4838fi
4839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4840echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4841if test `eval echo '${'$as_ac_var'}'` = yes; then
4842 cat >>confdefs.h <<_ACEOF
4843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4844_ACEOF
4845
4846fi
4847done
4848
4849 fi
4850 if test "${ac_cv_func_stpcpy}" = "yes"; then
4851
4852cat >>confdefs.h <<\_ACEOF
4853#define HAVE_STPCPY 1
4854_ACEOF
4855
4856 fi
4857
4858 if test $ac_cv_header_locale_h = yes; then
4859 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4860echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4861if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
4870#include <locale.h>
4871int
4872main ()
4873{
4874return LC_MESSAGES
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879rm -f conftest.$ac_objext conftest$ac_exeext
4880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 am_cv_val_LC_MESSAGES=yes
4902else
4903 echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906am_cv_val_LC_MESSAGES=no
4907fi
4908rm -f conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4910fi
4911echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4912echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4913 if test $am_cv_val_LC_MESSAGES = yes; then
4914
4915cat >>confdefs.h <<\_ACEOF
4916#define HAVE_LC_MESSAGES 1
4917_ACEOF
4918
4919 fi
4920 fi
4921 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4922echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4923 # Check whether --enable-nls or --disable-nls was given.
4924if test "${enable_nls+set}" = set; then
4925 enableval="$enable_nls"
4926 USE_NLS=$enableval
4927else
4928 USE_NLS=yes
4929fi;
4930 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4931echo "${ECHO_T}$USE_NLS" >&6
4932
4933
4934 USE_INCLUDED_LIBINTL=no
4935
4936 if test "$USE_NLS" = "yes"; then
4937
4938cat >>confdefs.h <<\_ACEOF
4939#define ENABLE_NLS 1
4940_ACEOF
4941
4942 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4943echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4944
4945# Check whether --with-included-gettext or --without-included-gettext was given.
4946if test "${with_included_gettext+set}" = set; then
4947 withval="$with_included_gettext"
4948 nls_cv_force_use_gnu_gettext=$withval
4949else
4950 nls_cv_force_use_gnu_gettext=no
4951fi;
4952 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4953echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4954
4955 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4956 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4957 nls_cv_header_intl=
4958 nls_cv_header_libgt=
4959 CATOBJEXT=NONE
4960
4961 if test "${ac_cv_header_libintl_h+set}" = set; then
4962 echo "$as_me:$LINENO: checking for libintl.h" >&5
4963echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4964if test "${ac_cv_header_libintl_h+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966fi
4967echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4968echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4969else
4970 # Is the header compilable?
4971echo "$as_me:$LINENO: checking libintl.h usability" >&5
4972echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4973cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979$ac_includes_default
4980#include <libintl.h>
4981_ACEOF
4982rm -f conftest.$ac_objext
4983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -z "$ac_c_werror_flag"
4992 || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_header_compiler=yes
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009ac_header_compiler=no
5010fi
5011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5013echo "${ECHO_T}$ac_header_compiler" >&6
5014
5015# Is the header present?
5016echo "$as_me:$LINENO: checking libintl.h presence" >&5
5017echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5018cat >conftest.$ac_ext <<_ACEOF
5019/* confdefs.h. */
5020_ACEOF
5021cat confdefs.h >>conftest.$ac_ext
5022cat >>conftest.$ac_ext <<_ACEOF
5023/* end confdefs.h. */
5024#include <libintl.h>
5025_ACEOF
5026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } >/dev/null; then
5034 if test -s conftest.err; then
5035 ac_cpp_err=$ac_c_preproc_warn_flag
5036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5037 else
5038 ac_cpp_err=
5039 fi
5040else
5041 ac_cpp_err=yes
5042fi
5043if test -z "$ac_cpp_err"; then
5044 ac_header_preproc=yes
5045else
5046 echo "$as_me: failed program was:" >&5
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ac_header_preproc=no
5050fi
5051rm -f conftest.err conftest.$ac_ext
5052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5053echo "${ECHO_T}$ac_header_preproc" >&6
5054
5055# So? What about this header?
5056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5057 yes:no: )
5058 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5059echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5060 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5061echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5062 ac_header_preproc=yes
5063 ;;
5064 no:yes:* )
5065 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5066echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5068echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5070echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5072echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5074echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5076echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5077 (
5078 cat <<\_ASBOX
5079## ------------------------------------------ ##
5080## Report this to the AC_PACKAGE_NAME lists. ##
5081## ------------------------------------------ ##
5082_ASBOX
5083 ) |
5084 sed "s/^/$as_me: WARNING: /" >&2
5085 ;;
5086esac
5087echo "$as_me:$LINENO: checking for libintl.h" >&5
5088echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5089if test "${ac_cv_header_libintl_h+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091else
5092 ac_cv_header_libintl_h=$ac_header_preproc
5093fi
5094echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5095echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5096
5097fi
5098if test $ac_cv_header_libintl_h = yes; then
5099 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5100echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5101if test "${gt_cv_func_gettext_libc+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h. */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h. */
5110#include <libintl.h>
5111int
5112main ()
5113{
5114return (int) gettext ("")
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext conftest$ac_exeext
5120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5121 (eval $ac_link) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest$ac_exeext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 gt_cv_func_gettext_libc=yes
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146gt_cv_func_gettext_libc=no
5147fi
5148rm -f conftest.err conftest.$ac_objext \
5149 conftest$ac_exeext conftest.$ac_ext
5150fi
5151echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5152echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5153
5154 if test "$gt_cv_func_gettext_libc" != "yes"; then
5155 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5156echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5157if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160 ac_check_lib_save_LIBS=$LIBS
5161LIBS="-lintl $LIBS"
5162cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h. */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h. */
5168
5169/* Override any gcc2 internal prototype to avoid an error. */
5170#ifdef __cplusplus
5171extern "C"
5172#endif
5173/* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5175char bindtextdomain ();
5176int
5177main ()
5178{
5179bindtextdomain ();
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
5185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest$ac_exeext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_lib_intl_bindtextdomain=yes
5207else
5208 echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
5211ac_cv_lib_intl_bindtextdomain=no
5212fi
5213rm -f conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215LIBS=$ac_check_lib_save_LIBS
5216fi
5217echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5218echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5219if test $ac_cv_lib_intl_bindtextdomain = yes; then
5220 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5221echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5222if test "${gt_cv_func_gettext_libintl+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h. */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h. */
5231
5232int
5233main ()
5234{
5235return (int) gettext ("")
5236 ;
5237 return 0;
5238}
5239_ACEOF
5240rm -f conftest.$ac_objext conftest$ac_exeext
5241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 gt_cv_func_gettext_libintl=yes
5263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267gt_cv_func_gettext_libintl=no
5268fi
5269rm -f conftest.err conftest.$ac_objext \
5270 conftest$ac_exeext conftest.$ac_ext
5271fi
5272echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5273echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5274fi
5275
5276 fi
5277
5278 if test "$gt_cv_func_gettext_libc" = "yes" \
5279 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5280
5281cat >>confdefs.h <<\_ACEOF
5282#define HAVE_GETTEXT 1
5283_ACEOF
5284
5285 # Extract the first word of "msgfmt", so it can be a program name with args.
5286set dummy msgfmt; ac_word=$2
5287echo "$as_me:$LINENO: checking for $ac_word" >&5
5288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289if test "${ac_cv_path_MSGFMT+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292 case "$MSGFMT" in
5293 /*)
5294 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5295 ;;
5296 *)
5297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5298 for ac_dir in $PATH; do
5299 test -z "$ac_dir" && ac_dir=.
5300 if test -f $ac_dir/$ac_word; then
5301 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5302 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5303 break
5304 fi
5305 fi
5306 done
5307 IFS="$ac_save_ifs"
5308 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5309 ;;
5310esac
5311fi
5312MSGFMT="$ac_cv_path_MSGFMT"
5313if test -n "$MSGFMT"; then
5314 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5315echo "${ECHO_T}$MSGFMT" >&6
5316else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319fi
5320 if test "$MSGFMT" != "no"; then
5321
5322for ac_func in dcgettext
5323do
5324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5325echo "$as_me:$LINENO: checking for $ac_func" >&5
5326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5327if eval "test \"\${$as_ac_var+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329else
5330 cat >conftest.$ac_ext <<_ACEOF
5331/* confdefs.h. */
5332_ACEOF
5333cat confdefs.h >>conftest.$ac_ext
5334cat >>conftest.$ac_ext <<_ACEOF
5335/* end confdefs.h. */
5336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5338#define $ac_func innocuous_$ac_func
5339
5340/* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func (); below.
5342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5343 <limits.h> exists even on freestanding compilers. */
5344
5345#ifdef __STDC__
5346# include <limits.h>
5347#else
5348# include <assert.h>
5349#endif
5350
5351#undef $ac_func
5352
5353/* Override any gcc2 internal prototype to avoid an error. */
5354#ifdef __cplusplus
5355extern "C"
5356{
5357#endif
5358/* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5360char $ac_func ();
5361/* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5365choke me
5366#else
5367char (*f) () = $ac_func;
5368#endif
5369#ifdef __cplusplus
5370}
5371#endif
5372
5373int
5374main ()
5375{
5376return f != $ac_func;
5377 ;
5378 return 0;
5379}
5380_ACEOF
5381rm -f conftest.$ac_objext conftest$ac_exeext
5382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 eval "$as_ac_var=yes"
5404else
5405 echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408eval "$as_ac_var=no"
5409fi
5410rm -f conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412fi
5413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5414echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5415if test `eval echo '${'$as_ac_var'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5418_ACEOF
5419
5420fi
5421done
5422
5423 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5424set dummy gmsgfmt; ac_word=$2
5425echo "$as_me:$LINENO: checking for $ac_word" >&5
5426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427if test "${ac_cv_path_GMSGFMT+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430 case $GMSGFMT in
5431 [\\/]* | ?:[\\/]*)
5432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5433 ;;
5434 *)
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446done
5447done
5448
5449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5450 ;;
5451esac
5452fi
5453GMSGFMT=$ac_cv_path_GMSGFMT
5454
5455if test -n "$GMSGFMT"; then
5456 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5457echo "${ECHO_T}$GMSGFMT" >&6
5458else
5459 echo "$as_me:$LINENO: result: no" >&5
5460echo "${ECHO_T}no" >&6
5461fi
5462
5463 # Extract the first word of "xgettext", so it can be a program name with args.
5464set dummy xgettext; ac_word=$2
5465echo "$as_me:$LINENO: checking for $ac_word" >&5
5466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467if test "${ac_cv_path_XGETTEXT+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 case "$XGETTEXT" in
5471 /*)
5472 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5473 ;;
5474 *)
5475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5476 for ac_dir in $PATH; do
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f $ac_dir/$ac_word; then
5479 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5480 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5481 break
5482 fi
5483 fi
5484 done
5485 IFS="$ac_save_ifs"
5486 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5487 ;;
5488esac
5489fi
5490XGETTEXT="$ac_cv_path_XGETTEXT"
5491if test -n "$XGETTEXT"; then
5492 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5493echo "${ECHO_T}$XGETTEXT" >&6
5494else
5495 echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497fi
5498
5499 cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h. */
5505
5506int
5507main ()
5508{
5509extern int _nl_msg_cat_cntr;
5510 return _nl_msg_cat_cntr
5511 ;
5512 return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext conftest$ac_exeext
5516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -z "$ac_c_werror_flag"
5525 || test ! -s conftest.err'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest$ac_exeext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 CATOBJEXT=.gmo
5538 DATADIRNAME=share
5539else
5540 echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
5543CATOBJEXT=.mo
5544 DATADIRNAME=lib
5545fi
5546rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 INSTOBJEXT=.mo
5549 fi
5550 fi
5551
5552fi
5553
5554
5555
5556
5557 if test "$CATOBJEXT" = "NONE"; then
5558 nls_cv_use_gnu_gettext=yes
5559 fi
5560 fi
5561
5562 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5563 INTLOBJS="\$(GETTOBJS)"
5564 # Extract the first word of "msgfmt", so it can be a program name with args.
5565set dummy msgfmt; ac_word=$2
5566echo "$as_me:$LINENO: checking for $ac_word" >&5
5567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568if test "${ac_cv_path_MSGFMT+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571 case "$MSGFMT" in
5572 /*)
5573 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5574 ;;
5575 *)
5576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5577 for ac_dir in $PATH; do
5578 test -z "$ac_dir" && ac_dir=.
5579 if test -f $ac_dir/$ac_word; then
5580 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5581 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5582 break
5583 fi
5584 fi
5585 done
5586 IFS="$ac_save_ifs"
5587 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5588 ;;
5589esac
5590fi
5591MSGFMT="$ac_cv_path_MSGFMT"
5592if test -n "$MSGFMT"; then
5593 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5594echo "${ECHO_T}$MSGFMT" >&6
5595else
5596 echo "$as_me:$LINENO: result: no" >&5
5597echo "${ECHO_T}no" >&6
5598fi
5599
5600 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5601set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5602echo "$as_me:$LINENO: checking for $ac_word" >&5
5603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604if test "${ac_cv_path_GMSGFMT+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 case $GMSGFMT in
5608 [\\/]* | ?:[\\/]*)
5609 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5610 ;;
5611 *)
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624done
5625
5626 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5627 ;;
5628esac
5629fi
5630GMSGFMT=$ac_cv_path_GMSGFMT
5631
5632if test -n "$GMSGFMT"; then
5633 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5634echo "${ECHO_T}$GMSGFMT" >&6
5635else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
5639
5640 # Extract the first word of "xgettext", so it can be a program name with args.
5641set dummy xgettext; ac_word=$2
5642echo "$as_me:$LINENO: checking for $ac_word" >&5
5643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644if test "${ac_cv_path_XGETTEXT+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647 case "$XGETTEXT" in
5648 /*)
5649 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5650 ;;
5651 *)
5652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5653 for ac_dir in $PATH; do
5654 test -z "$ac_dir" && ac_dir=.
5655 if test -f $ac_dir/$ac_word; then
5656 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5657 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5658 break
5659 fi
5660 fi
5661 done
5662 IFS="$ac_save_ifs"
5663 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5664 ;;
5665esac
5666fi
5667XGETTEXT="$ac_cv_path_XGETTEXT"
5668if test -n "$XGETTEXT"; then
5669 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5670echo "${ECHO_T}$XGETTEXT" >&6
5671else
5672 echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
5674fi
5675
5676
5677 USE_INCLUDED_LIBINTL=yes
5678 CATOBJEXT=.gmo
5679 INSTOBJEXT=.mo
5680 DATADIRNAME=share
5681 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5682 INTLLIBS=$INTLDEPS
5683 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5684 nls_cv_header_intl=libintl.h
5685 nls_cv_header_libgt=libgettext.h
5686 fi
5687
5688 if test "$XGETTEXT" != ":"; then
5689 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5690 : ;
5691 else
5692 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5693echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5694 XGETTEXT=":"
5695 fi
5696 fi
5697
5698 # We need to process the po/ directory.
5699 POSUB=po
5700 else
5701 DATADIRNAME=share
5702 nls_cv_header_intl=libintl.h
5703 nls_cv_header_libgt=libgettext.h
5704 fi
5705
5706 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5707 # because some of the sources are only built for this goal.
5708 if test "$PACKAGE" = gettext; then
5709 USE_NLS=yes
5710 USE_INCLUDED_LIBINTL=yes
5711 fi
5712
5713 for lang in $ALL_LINGUAS; do
5714 GMOFILES="$GMOFILES $lang.gmo"
5715 POFILES="$POFILES $lang.po"
5716 done
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 if test "x$CATOBJEXT" != "x"; then
5732 if test "x$ALL_LINGUAS" = "x"; then
5733 LINGUAS=
5734 else
5735 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5736echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5737 NEW_LINGUAS=
5738 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5739 case "$ALL_LINGUAS" in
5740 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5741 esac
5742 done
5743 LINGUAS=$NEW_LINGUAS
5744 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5745echo "${ECHO_T}$LINGUAS" >&6
5746 fi
5747
5748 if test -n "$LINGUAS"; then
5749 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5750 fi
5751 fi
5752
5753 if test $ac_cv_header_locale_h = yes; then
5754 INCLUDE_LOCALE_H="#include <locale.h>"
5755 else
5756 INCLUDE_LOCALE_H="\
5757/* The system does not provide the header <locale.h>. Take care yourself. */"
5758 fi
5759
5760
5761 if test -f $srcdir/po2tbl.sed.in; then
5762 if test "$CATOBJEXT" = ".cat"; then
5763 if test "${ac_cv_header_linux_version_h+set}" = set; then
5764 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5765echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5766if test "${ac_cv_header_linux_version_h+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768fi
5769echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5770echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5771else
5772 # Is the header compilable?
5773echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5774echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5775cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781$ac_includes_default
5782#include <linux/version.h>
5783_ACEOF
5784rm -f conftest.$ac_objext
5785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag"
5794 || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_header_compiler=yes
5807else
5808 echo "$as_me: failed program was:" >&5
5809sed 's/^/| /' conftest.$ac_ext >&5
5810
5811ac_header_compiler=no
5812fi
5813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5815echo "${ECHO_T}$ac_header_compiler" >&6
5816
5817# Is the header present?
5818echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5819echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5820cat >conftest.$ac_ext <<_ACEOF
5821/* confdefs.h. */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h. */
5826#include <linux/version.h>
5827_ACEOF
5828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null; then
5836 if test -s conftest.err; then
5837 ac_cpp_err=$ac_c_preproc_warn_flag
5838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5839 else
5840 ac_cpp_err=
5841 fi
5842else
5843 ac_cpp_err=yes
5844fi
5845if test -z "$ac_cpp_err"; then
5846 ac_header_preproc=yes
5847else
5848 echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 ac_header_preproc=no
5852fi
5853rm -f conftest.err conftest.$ac_ext
5854echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5855echo "${ECHO_T}$ac_header_preproc" >&6
5856
5857# So? What about this header?
5858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5859 yes:no: )
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5861echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5863echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5864 ac_header_preproc=yes
5865 ;;
5866 no:yes:* )
5867 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5868echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5870echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5872echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5874echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5876echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5878echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5879 (
5880 cat <<\_ASBOX
5881## ------------------------------------------ ##
5882## Report this to the AC_PACKAGE_NAME lists. ##
5883## ------------------------------------------ ##
5884_ASBOX
5885 ) |
5886 sed "s/^/$as_me: WARNING: /" >&2
5887 ;;
5888esac
5889echo "$as_me:$LINENO: checking for linux/version.h" >&5
5890echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5891if test "${ac_cv_header_linux_version_h+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894 ac_cv_header_linux_version_h=$ac_header_preproc
5895fi
5896echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5897echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5898
5899fi
5900if test $ac_cv_header_linux_version_h = yes; then
5901 msgformat=linux
5902else
5903 msgformat=xopen
5904fi
5905
5906
5907
5908 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5909 fi
5910 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5911 $srcdir/po2tbl.sed.in > po2tbl.sed
5912 fi
5913
5914 if test "$PACKAGE" = "gettext"; then
5915 GT_NO="#NO#"
5916 GT_YES=
5917 else
5918 GT_NO=
5919 GT_YES="#YES#"
5920 fi
5921
5922
5923
5924 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5925
5926
5927 l=
5928
5929
5930 if test -f $srcdir/po/POTFILES.in; then
5931 test -d po || mkdir po
5932 if test "x$srcdir" != "x."; then
5933 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5934 posrcprefix="$srcdir/"
5935 else
5936 posrcprefix="../$srcdir/"
5937 fi
5938 else
5939 posrcprefix="../"
5940 fi
5941 rm -f po/POTFILES
5942 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5943 < $srcdir/po/POTFILES.in > po/POTFILES
5944 fi
5945
5946
5947localedir='${datadir}/locale'
5948
5949
5950if test "x$POSUB" != x; then
5951
5952 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5953echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5954 # Look for .po and .gmo files in the source directory.
5955 CATALOGS=
5956 XLINGUAS=
5957 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5958 # If there aren't any .gmo files the shell will give us the
5959 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5960 # weeded out.
5961 case "$cat" in *\**)
5962 continue;;
5963 esac
5964 # The quadruple backslash is collapsed to a double backslash
5965 # by the backticks, then collapsed again by the double quotes,
5966 # leaving us with one backslash in the sed expression (right
5967 # before the dot that mustn't act as a wildcard).
5968 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5969 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5970 # The user is allowed to set LINGUAS to a list of languages to
5971 # install catalogs for. If it's empty that means "all of them."
5972 if test "x$LINGUAS" = x; then
5973 CATALOGS="$CATALOGS $cat"
5974 XLINGUAS="$XLINGUAS $lang"
5975 else
5976 case "$LINGUAS" in *$lang*)
5977 CATALOGS="$CATALOGS $cat"
5978 XLINGUAS="$XLINGUAS $lang"
5979 ;;
5980 esac
5981 fi
5982 done
5983 LINGUAS="$XLINGUAS"
5984 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5985echo "${ECHO_T}$LINGUAS" >&6
5986
5987 CONFIG_ALL="$CONFIG_ALL all-po"
5988 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5989 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5990 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5991fi
5992
5993PACKAGE=gdb
5994
5995cat >>confdefs.h <<_ACEOF
5996#define PACKAGE "$PACKAGE"
5997_ACEOF
5998
5999
6000
6001debugdir=${libdir}/debug
6002
6003
6004# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6005if test "${with_separate_debug_dir+set}" = set; then
6006 withval="$with_separate_debug_dir"
6007 debugdir="${withval}"
6008fi;
6009
6010
6011 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6013 ac_define_dir=`eval echo $debugdir`
6014 ac_define_dir=`eval echo $ac_define_dir`
6015
6016cat >>confdefs.h <<_ACEOF
6017#define DEBUGDIR "$ac_define_dir"
6018_ACEOF
6019
6020
6021#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6022
6023
6024
6025subdirs="$subdirs doc testsuite"
6026
6027
6028. $srcdir/configure.host
6029
6030. $srcdir/configure.tgt
6031
6032# Fetch the default architecture and default target vector from BFD.
6033targ=$target; . $srcdir/../bfd/config.bfd
6034
6035# We only want the first architecture, so strip off the others if
6036# there is more than one.
6037targ_archs=`echo $targ_archs | sed 's/ .*//'`
6038
6039if test "x$targ_archs" != x; then
6040
6041cat >>confdefs.h <<_ACEOF
6042#define DEFAULT_BFD_ARCH $targ_archs
6043_ACEOF
6044
6045fi
6046if test "x$targ_defvec" != x; then
6047
6048cat >>confdefs.h <<_ACEOF
6049#define DEFAULT_BFD_VEC $targ_defvec
6050_ACEOF
6051
6052fi
6053
6054test "$program_prefix" != NONE &&
6055 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6056# Use a double $ so make ignores it.
6057test "$program_suffix" != NONE &&
6058 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6059# Double any \ or $. echo might interpret backslashes.
6060# By default was `s,x,x', remove it if useless.
6061cat <<\_ACEOF >conftest.sed
6062s/[\\$]/&&/g;s/;s,x,x,$//
6063_ACEOF
6064program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6065rm conftest.sed
6066
6067
6068# The CLI cannot be disabled yet, but may be in the future.
6069
6070# Enable CLI.
6071# Check whether --enable-gdbcli or --disable-gdbcli was given.
6072if test "${enable_gdbcli+set}" = set; then
6073 enableval="$enable_gdbcli"
6074 case $enableval in
6075 yes)
6076 ;;
6077 no)
6078 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6079echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6080 { (exit 1); exit 1; }; } ;;
6081 *)
6082 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6083echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6084 { (exit 1); exit 1; }; } ;;
6085 esac
6086else
6087 enable_gdbcli=yes
6088fi;
6089if test x"$enable_gdbcli" = xyes; then
6090 if test -d $srcdir/cli; then
6091 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6092 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6093 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6094 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6095 fi
6096fi
6097
6098# Enable MI.
6099# Check whether --enable-gdbmi or --disable-gdbmi was given.
6100if test "${enable_gdbmi+set}" = set; then
6101 enableval="$enable_gdbmi"
6102 case $enableval in
6103 yes | no)
6104 ;;
6105 *)
6106 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6107echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6108 { (exit 1); exit 1; }; } ;;
6109 esac
6110else
6111 enable_gdbmi=yes
6112fi;
6113if test x"$enable_gdbmi" = xyes; then
6114 if test -d $srcdir/mi; then
6115 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6116 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6117 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6118 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6119 fi
6120fi
6121
6122# Enable TUI.
6123# Check whether --enable-tui or --disable-tui was given.
6124if test "${enable_tui+set}" = set; then
6125 enableval="$enable_tui"
6126 case $enableval in
6127 yes | no)
6128 ;;
6129 *)
6130 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6131echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6132 { (exit 1); exit 1; }; } ;;
6133 esac
6134else
6135 enable_tui=yes
6136fi;
6137
6138# Enable gdbtk.
6139# Check whether --enable-gdbtk or --disable-gdbtk was given.
6140if test "${enable_gdbtk+set}" = set; then
6141 enableval="$enable_gdbtk"
6142 case $enableval in
6143 yes | no)
6144 ;;
6145 *)
6146 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6147echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6148 { (exit 1); exit 1; }; } ;;
6149 esac
6150else
6151 if test -d $srcdir/gdbtk; then
6152 enable_gdbtk=yes
6153 else
6154 enable_gdbtk=no
6155 fi
6156fi;
6157# We unconditionally disable gdbtk tests on selected platforms.
6158case $host_os in
6159 go32* | windows*)
6160 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6161echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6162 enable_gdbtk=no ;;
6163esac
6164
6165# Libunwind support.
6166
6167# Check whether --with-libunwind or --without-libunwind was given.
6168if test "${with_libunwind+set}" = set; then
6169 withval="$with_libunwind"
6170 case "${withval}" in
6171 yes) enable_libunwind=yes ;;
6172 no) enable_libunwind=no ;;
6173 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6174echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6175 { (exit 1); exit 1; }; } ;;
6176esac
6177else
6178
6179
6180for ac_header in libunwind.h
6181do
6182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6183if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo "$as_me:$LINENO: checking for $ac_header" >&5
6185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6186if eval "test \"\${$as_ac_Header+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188fi
6189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6191else
6192 # Is the header compilable?
6193echo "$as_me:$LINENO: checking $ac_header usability" >&5
6194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6195cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h. */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h. */
6201$ac_includes_default
6202#include <$ac_header>
6203_ACEOF
6204rm -f conftest.$ac_objext
6205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_header_compiler=yes
6227else
6228 echo "$as_me: failed program was:" >&5
6229sed 's/^/| /' conftest.$ac_ext >&5
6230
6231ac_header_compiler=no
6232fi
6233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6235echo "${ECHO_T}$ac_header_compiler" >&6
6236
6237# Is the header present?
6238echo "$as_me:$LINENO: checking $ac_header presence" >&5
6239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6240cat >conftest.$ac_ext <<_ACEOF
6241/* confdefs.h. */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h. */
6246#include <$ac_header>
6247_ACEOF
6248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } >/dev/null; then
6256 if test -s conftest.err; then
6257 ac_cpp_err=$ac_c_preproc_warn_flag
6258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6259 else
6260 ac_cpp_err=
6261 fi
6262else
6263 ac_cpp_err=yes
6264fi
6265if test -z "$ac_cpp_err"; then
6266 ac_header_preproc=yes
6267else
6268 echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271 ac_header_preproc=no
6272fi
6273rm -f conftest.err conftest.$ac_ext
6274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275echo "${ECHO_T}$ac_header_preproc" >&6
6276
6277# So? What about this header?
6278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6279 yes:no: )
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6284 ac_header_preproc=yes
6285 ;;
6286 no:yes:* )
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6299 (
6300 cat <<\_ASBOX
6301## ------------------------------------------ ##
6302## Report this to the AC_PACKAGE_NAME lists. ##
6303## ------------------------------------------ ##
6304_ASBOX
6305 ) |
6306 sed "s/^/$as_me: WARNING: /" >&2
6307 ;;
6308esac
6309echo "$as_me:$LINENO: checking for $ac_header" >&5
6310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6311if eval "test \"\${$as_ac_Header+set}\" = set"; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
6314 eval "$as_ac_Header=\$ac_header_preproc"
6315fi
6316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6318
6319fi
6320if test `eval echo '${'$as_ac_Header'}'` = yes; then
6321 cat >>confdefs.h <<_ACEOF
6322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6323_ACEOF
6324
6325fi
6326
6327done
6328
6329
6330for ac_header in libunwind-ia64.h
6331do
6332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo "$as_me:$LINENO: checking for $ac_header" >&5
6335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6336if eval "test \"\${$as_ac_Header+set}\" = set"; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338fi
6339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341else
6342 # Is the header compilable?
6343echo "$as_me:$LINENO: checking $ac_header usability" >&5
6344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6345cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h. */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h. */
6351$ac_includes_default
6352#include <$ac_header>
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag"
6364 || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_header_compiler=yes
6377else
6378 echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381ac_header_compiler=no
6382fi
6383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6385echo "${ECHO_T}$ac_header_compiler" >&6
6386
6387# Is the header present?
6388echo "$as_me:$LINENO: checking $ac_header presence" >&5
6389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6390cat >conftest.$ac_ext <<_ACEOF
6391/* confdefs.h. */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h. */
6396#include <$ac_header>
6397_ACEOF
6398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } >/dev/null; then
6406 if test -s conftest.err; then
6407 ac_cpp_err=$ac_c_preproc_warn_flag
6408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6409 else
6410 ac_cpp_err=
6411 fi
6412else
6413 ac_cpp_err=yes
6414fi
6415if test -z "$ac_cpp_err"; then
6416 ac_header_preproc=yes
6417else
6418 echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_header_preproc=no
6422fi
6423rm -f conftest.err conftest.$ac_ext
6424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6425echo "${ECHO_T}$ac_header_preproc" >&6
6426
6427# So? What about this header?
6428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6429 yes:no: )
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6434 ac_header_preproc=yes
6435 ;;
6436 no:yes:* )
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6449 (
6450 cat <<\_ASBOX
6451## ------------------------------------------ ##
6452## Report this to the AC_PACKAGE_NAME lists. ##
6453## ------------------------------------------ ##
6454_ASBOX
6455 ) |
6456 sed "s/^/$as_me: WARNING: /" >&2
6457 ;;
6458esac
6459echo "$as_me:$LINENO: checking for $ac_header" >&5
6460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463else
6464 eval "$as_ac_Header=\$ac_header_preproc"
6465fi
6466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6468
6469fi
6470if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473_ACEOF
6474
6475fi
6476
6477done
6478
6479 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6480 enable_libunwind=yes;
6481 fi
6482
6483fi;
6484
6485if test x"$enable_libunwind" = xyes; then
6486
6487for ac_header in libunwind.h
6488do
6489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495fi
6496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498else
6499 # Is the header compilable?
6500echo "$as_me:$LINENO: checking $ac_header usability" >&5
6501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6502cat >conftest.$ac_ext <<_ACEOF
6503/* confdefs.h. */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
6507/* end confdefs.h. */
6508$ac_includes_default
6509#include <$ac_header>
6510_ACEOF
6511rm -f conftest.$ac_objext
6512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_header_compiler=yes
6534else
6535 echo "$as_me: failed program was:" >&5
6536sed 's/^/| /' conftest.$ac_ext >&5
6537
6538ac_header_compiler=no
6539fi
6540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6542echo "${ECHO_T}$ac_header_compiler" >&6
6543
6544# Is the header present?
6545echo "$as_me:$LINENO: checking $ac_header presence" >&5
6546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6547cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h. */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h. */
6553#include <$ac_header>
6554_ACEOF
6555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } >/dev/null; then
6563 if test -s conftest.err; then
6564 ac_cpp_err=$ac_c_preproc_warn_flag
6565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6566 else
6567 ac_cpp_err=
6568 fi
6569else
6570 ac_cpp_err=yes
6571fi
6572if test -z "$ac_cpp_err"; then
6573 ac_header_preproc=yes
6574else
6575 echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_header_preproc=no
6579fi
6580rm -f conftest.err conftest.$ac_ext
6581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6582echo "${ECHO_T}$ac_header_preproc" >&6
6583
6584# So? What about this header?
6585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6586 yes:no: )
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6590echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6591 ac_header_preproc=yes
6592 ;;
6593 no:yes:* )
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6595echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6597echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6599echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6601echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6603echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6605echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6606 (
6607 cat <<\_ASBOX
6608## ------------------------------------------ ##
6609## Report this to the AC_PACKAGE_NAME lists. ##
6610## ------------------------------------------ ##
6611_ASBOX
6612 ) |
6613 sed "s/^/$as_me: WARNING: /" >&2
6614 ;;
6615esac
6616echo "$as_me:$LINENO: checking for $ac_header" >&5
6617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6618if eval "test \"\${$as_ac_Header+set}\" = set"; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620else
6621 eval "$as_ac_Header=\$ac_header_preproc"
6622fi
6623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6625
6626fi
6627if test `eval echo '${'$as_ac_Header'}'` = yes; then
6628 cat >>confdefs.h <<_ACEOF
6629#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630_ACEOF
6631
6632fi
6633
6634done
6635
6636
6637for ac_header in libunwind-ia64.h
6638do
6639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6640if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641 echo "$as_me:$LINENO: checking for $ac_header" >&5
6642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6643if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645fi
6646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6648else
6649 # Is the header compilable?
6650echo "$as_me:$LINENO: checking $ac_header usability" >&5
6651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6652cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h. */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h. */
6658$ac_includes_default
6659#include <$ac_header>
6660_ACEOF
6661rm -f conftest.$ac_objext
6662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -z "$ac_c_werror_flag"
6671 || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_header_compiler=yes
6684else
6685 echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
6687
6688ac_header_compiler=no
6689fi
6690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6692echo "${ECHO_T}$ac_header_compiler" >&6
6693
6694# Is the header present?
6695echo "$as_me:$LINENO: checking $ac_header presence" >&5
6696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6697cat >conftest.$ac_ext <<_ACEOF
6698/* confdefs.h. */
6699_ACEOF
6700cat confdefs.h >>conftest.$ac_ext
6701cat >>conftest.$ac_ext <<_ACEOF
6702/* end confdefs.h. */
6703#include <$ac_header>
6704_ACEOF
6705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null; then
6713 if test -s conftest.err; then
6714 ac_cpp_err=$ac_c_preproc_warn_flag
6715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6716 else
6717 ac_cpp_err=
6718 fi
6719else
6720 ac_cpp_err=yes
6721fi
6722if test -z "$ac_cpp_err"; then
6723 ac_header_preproc=yes
6724else
6725 echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_header_preproc=no
6729fi
6730rm -f conftest.err conftest.$ac_ext
6731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6732echo "${ECHO_T}$ac_header_preproc" >&6
6733
6734# So? What about this header?
6735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6736 yes:no: )
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6741 ac_header_preproc=yes
6742 ;;
6743 no:yes:* )
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6756 (
6757 cat <<\_ASBOX
6758## ------------------------------------------ ##
6759## Report this to the AC_PACKAGE_NAME lists. ##
6760## ------------------------------------------ ##
6761_ASBOX
6762 ) |
6763 sed "s/^/$as_me: WARNING: /" >&2
6764 ;;
6765esac
6766echo "$as_me:$LINENO: checking for $ac_header" >&5
6767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6768if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
6771 eval "$as_ac_Header=\$ac_header_preproc"
6772fi
6773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6775
6776fi
6777if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778 cat >>confdefs.h <<_ACEOF
6779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6780_ACEOF
6781
6782fi
6783
6784done
6785
6786 cat >>confdefs.h <<\_ACEOF
6787#define HAVE_LIBUNWIND 1
6788_ACEOF
6789
6790 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6791 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6792 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6793fi
6794
6795# Profiling support.
6796# Check whether --enable-profiling or --disable-profiling was given.
6797if test "${enable_profiling+set}" = set; then
6798 enableval="$enable_profiling"
6799 case $enableval in
6800 yes | no)
6801 ;;
6802 *)
6803 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6804echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6805 { (exit 1); exit 1; }; } ;;
6806 esac
6807else
6808 enable_profiling=no
6809fi;
6810
6811
6812
6813for ac_func in monstartup _mcleanup
6814do
6815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6816echo "$as_me:$LINENO: checking for $ac_func" >&5
6817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6818if eval "test \"\${$as_ac_var+set}\" = set"; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 cat >conftest.$ac_ext <<_ACEOF
6822/* confdefs.h. */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h. */
6827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6829#define $ac_func innocuous_$ac_func
6830
6831/* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func (); below.
6833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834 <limits.h> exists even on freestanding compilers. */
6835
6836#ifdef __STDC__
6837# include <limits.h>
6838#else
6839# include <assert.h>
6840#endif
6841
6842#undef $ac_func
6843
6844/* Override any gcc2 internal prototype to avoid an error. */
6845#ifdef __cplusplus
6846extern "C"
6847{
6848#endif
6849/* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851char $ac_func ();
6852/* The GNU C library defines this for functions which it implements
6853 to always fail with ENOSYS. Some functions are actually named
6854 something starting with __ and the normal name is an alias. */
6855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6856choke me
6857#else
6858char (*f) () = $ac_func;
6859#endif
6860#ifdef __cplusplus
6861}
6862#endif
6863
6864int
6865main ()
6866{
6867return f != $ac_func;
6868 ;
6869 return 0;
6870}
6871_ACEOF
6872rm -f conftest.$ac_objext conftest$ac_exeext
6873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6874 (eval $ac_link) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 eval "$as_ac_var=yes"
6895else
6896 echo "$as_me: failed program was:" >&5
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
6899eval "$as_ac_var=no"
6900fi
6901rm -f conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903fi
6904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6906if test `eval echo '${'$as_ac_var'}'` = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6909_ACEOF
6910
6911fi
6912done
6913
6914echo "$as_me:$LINENO: checking for _etext" >&5
6915echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6916if test "${ac_cv_var__etext+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h. */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h. */
6925#include <stdlib.h>
6926extern char _etext;
6927
6928int
6929main ()
6930{
6931free (&_etext);
6932 ;
6933 return 0;
6934}
6935_ACEOF
6936rm -f conftest.$ac_objext conftest$ac_exeext
6937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag"
6946 || test ! -s conftest.err'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 (eval $ac_try) 2>&5
6955 ac_status=$?
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_var__etext=yes
6959else
6960 echo "$as_me: failed program was:" >&5
6961sed 's/^/| /' conftest.$ac_ext >&5
6962
6963ac_cv_var__etext=no
6964fi
6965rm -f conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967fi
6968echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6969echo "${ECHO_T}$ac_cv_var__etext" >&6
6970if test $ac_cv_var__etext = yes; then
6971
6972cat >>confdefs.h <<\_ACEOF
6973#define HAVE__ETEXT 1
6974_ACEOF
6975
6976fi
6977if test "$enable_profiling" = yes ; then
6978 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6979 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6980echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6981 { (exit 1); exit 1; }; }
6982 fi
6983 PROFILE_CFLAGS=-pg
6984 OLD_CFLAGS="$CFLAGS"
6985 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6986
6987 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6988echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6989if test "${ac_cv_cc_supports_pg+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6991else
bec39cab
AC
6992 cat >conftest.$ac_ext <<_ACEOF
6993/* confdefs.h. */
6994_ACEOF
6995cat confdefs.h >>conftest.$ac_ext
6996cat >>conftest.$ac_ext <<_ACEOF
6997/* end confdefs.h. */
6998
6999int
7000main ()
7001{
7002int x;
7003 ;
7004 return 0;
7005}
7006_ACEOF
7007rm -f conftest.$ac_objext
7008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_c_werror_flag"
7017 || test ! -s conftest.err'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; } &&
7023 { ac_try='test -s conftest.$ac_objext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 ac_cv_cc_supports_pg=yes
7030else
7031 echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
7033
7034ac_cv_cc_supports_pg=no
7035fi
7036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037fi
7038echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7039echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
7040
7041 if test $ac_cv_cc_supports_pg = no; then
7042 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7043echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7044 { (exit 1); exit 1; }; }
7045 fi
7046
7047 CFLAGS="$OLD_CFLAGS"
7048fi
7049
7050# --------------------- #
7051# Checks for programs. #
7052# --------------------- #
7053
7054for ac_prog in gawk mawk nawk awk
7055do
7056 # Extract the first word of "$ac_prog", so it can be a program name with args.
7057set dummy $ac_prog; ac_word=$2
7058echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060if test "${ac_cv_prog_AWK+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 if test -n "$AWK"; then
7064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_AWK="$ac_prog"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078done
7079
7080fi
7081fi
7082AWK=$ac_cv_prog_AWK
7083if test -n "$AWK"; then
7084 echo "$as_me:$LINENO: result: $AWK" >&5
7085echo "${ECHO_T}$AWK" >&6
7086else
7087 echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089fi
7090
7091 test -n "$AWK" && break
7092done
7093
7094# Find a good install program. We prefer a C program (faster),
7095# so one script is as good as another. But avoid the broken or
7096# incompatible versions:
7097# SysV /etc/install, /usr/sbin/install
7098# SunOS /usr/etc/install
7099# IRIX /sbin/install
7100# AIX /bin/install
7101# AmigaOS /C/install, which installs bootblocks on floppy discs
7102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7103# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7105# OS/2's system install, which has a completely different semantic
7106# ./install, which can be erroneously created by make from ./install.sh.
7107echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7108echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7109if test -z "$INSTALL"; then
7110if test "${ac_cv_path_install+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 # Account for people who put trailing slashes in PATH elements.
7119case $as_dir/ in
7120 ./ | .// | /cC/* | \
7121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7123 /usr/ucb/* ) ;;
c906108c 7124 *)
bec39cab
AC
7125 # OSF1 and SCO ODT 3.0 have their own names for install.
7126 # Don't use installbsd from OSF since it installs stuff as root
7127 # by default.
7128 for ac_prog in ginstall scoinst install; do
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7131 if test $ac_prog = install &&
7132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7133 # AIX install. It has an incompatible calling convention.
7134 :
7135 elif test $ac_prog = install &&
7136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7137 # program-specific install script used by HP pwplus--don't use.
7138 :
7139 else
7140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7141 break 3
7142 fi
7143 fi
7144 done
7145 done
7146 ;;
c906108c 7147esac
bec39cab
AC
7148done
7149
7150
7151fi
7152 if test "${ac_cv_path_install+set}" = set; then
7153 INSTALL=$ac_cv_path_install
7154 else
7155 # As a last resort, use the slow shell script. We don't cache a
7156 # path for INSTALL within a source directory, because that will
7157 # break other packages using the cache if that directory is
7158 # removed, or if the path is relative.
7159 INSTALL=$ac_install_sh
7160 fi
7161fi
7162echo "$as_me:$LINENO: result: $INSTALL" >&5
7163echo "${ECHO_T}$INSTALL" >&6
7164
7165# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7166# It thinks the first close brace ends the variable substitution.
7167test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7168
7169test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7170
7171test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7172
7173echo "$as_me:$LINENO: checking whether ln -s works" >&5
7174echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7175LN_S=$as_ln_s
7176if test "$LN_S" = "ln -s"; then
7177 echo "$as_me:$LINENO: result: yes" >&5
7178echo "${ECHO_T}yes" >&6
7179else
7180 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7181echo "${ECHO_T}no, using $LN_S" >&6
7182fi
7183
7184if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7186set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 if test -n "$RANLIB"; then
7193 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208
7209fi
7210fi
7211RANLIB=$ac_cv_prog_RANLIB
7212if test -n "$RANLIB"; then
7213 echo "$as_me:$LINENO: result: $RANLIB" >&5
7214echo "${ECHO_T}$RANLIB" >&6
7215else
7216 echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6
7218fi
7219
7220fi
7221if test -z "$ac_cv_prog_RANLIB"; then
7222 ac_ct_RANLIB=$RANLIB
7223 # Extract the first word of "ranlib", so it can be a program name with args.
7224set dummy ranlib; ac_word=$2
7225echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7227if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230 if test -n "$ac_ct_RANLIB"; then
7231 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_ac_ct_RANLIB="ranlib"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244done
7245done
7246
7247 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7248fi
7249fi
7250ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7251if test -n "$ac_ct_RANLIB"; then
7252 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7253echo "${ECHO_T}$ac_ct_RANLIB" >&6
7254else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257fi
7258
7259 RANLIB=$ac_ct_RANLIB
7260else
7261 RANLIB="$ac_cv_prog_RANLIB"
7262fi
7263
7264for ac_prog in 'bison -y' byacc
7265do
7266 # Extract the first word of "$ac_prog", so it can be a program name with args.
7267set dummy $ac_prog; ac_word=$2
7268echo "$as_me:$LINENO: checking for $ac_word" >&5
7269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270if test "${ac_cv_prog_YACC+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 if test -n "$YACC"; then
7274 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_YACC="$ac_prog"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287done
7288done
7289
7290fi
7291fi
7292YACC=$ac_cv_prog_YACC
7293if test -n "$YACC"; then
7294 echo "$as_me:$LINENO: result: $YACC" >&5
7295echo "${ECHO_T}$YACC" >&6
7296else
7297 echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6
7299fi
7300
7301 test -n "$YACC" && break
7302done
7303test -n "$YACC" || YACC="yacc"
7304
7305
7306if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7308set dummy ${ac_tool_prefix}ar; ac_word=$2
7309echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311if test "${ac_cv_prog_AR+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314 if test -n "$AR"; then
7315 ac_cv_prog_AR="$AR" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_AR="${ac_tool_prefix}ar"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328done
7329done
7330
7331fi
7332fi
7333AR=$ac_cv_prog_AR
7334if test -n "$AR"; then
7335 echo "$as_me:$LINENO: result: $AR" >&5
7336echo "${ECHO_T}$AR" >&6
7337else
7338 echo "$as_me:$LINENO: result: no" >&5
7339echo "${ECHO_T}no" >&6
7340fi
7341
7342fi
7343if test -z "$ac_cv_prog_AR"; then
7344 ac_ct_AR=$AR
7345 # Extract the first word of "ar", so it can be a program name with args.
7346set dummy ar; ac_word=$2
7347echo "$as_me:$LINENO: checking for $ac_word" >&5
7348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7349if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351else
7352 if test -n "$ac_ct_AR"; then
7353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7354else
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_AR="ar"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366done
7367done
7368
7369fi
7370fi
7371ac_ct_AR=$ac_cv_prog_ac_ct_AR
7372if test -n "$ac_ct_AR"; then
7373 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7374echo "${ECHO_T}$ac_ct_AR" >&6
7375else
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
7378fi
7379
7380 AR=$ac_ct_AR
7381else
7382 AR="$ac_cv_prog_AR"
7383fi
7384
7385if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7387set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7388echo "$as_me:$LINENO: checking for $ac_word" >&5
7389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7390if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392else
7393 if test -n "$DLLTOOL"; then
7394 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7395else
7396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407done
7408done
7409
7410fi
7411fi
7412DLLTOOL=$ac_cv_prog_DLLTOOL
7413if test -n "$DLLTOOL"; then
7414 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7415echo "${ECHO_T}$DLLTOOL" >&6
7416else
7417 echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6
7419fi
7420
7421fi
7422if test -z "$ac_cv_prog_DLLTOOL"; then
7423 ac_ct_DLLTOOL=$DLLTOOL
7424 # Extract the first word of "dlltool", so it can be a program name with args.
7425set dummy dlltool; ac_word=$2
7426echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7428if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431 if test -n "$ac_ct_DLLTOOL"; then
7432 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7433else
7434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7444 fi
7445done
7446done
7447
7448fi
7449fi
7450ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7451if test -n "$ac_ct_DLLTOOL"; then
7452 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7453echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7454else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457fi
7458
7459 DLLTOOL=$ac_ct_DLLTOOL
7460else
7461 DLLTOOL="$ac_cv_prog_DLLTOOL"
7462fi
7463
7464if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7466set dummy ${ac_tool_prefix}windres; 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_WINDRES+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472 if test -n "$WINDRES"; then
7473 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ac_tool_prefix}windres"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487done
7488
7489fi
7490fi
7491WINDRES=$ac_cv_prog_WINDRES
7492if test -n "$WINDRES"; then
7493 echo "$as_me:$LINENO: result: $WINDRES" >&5
7494echo "${ECHO_T}$WINDRES" >&6
7495else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498fi
7499
7500fi
7501if test -z "$ac_cv_prog_WINDRES"; then
7502 ac_ct_WINDRES=$WINDRES
7503 # Extract the first word of "windres", so it can be a program name with args.
7504set dummy windres; 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_WINDRES+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 if test -n "$ac_ct_WINDRES"; then
7511 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_WINDRES="windres"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524done
7525done
7526
7527fi
7528fi
7529ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7530if test -n "$ac_ct_WINDRES"; then
7531 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7532echo "${ECHO_T}$ac_ct_WINDRES" >&6
7533else
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
c906108c 7536fi
bec39cab
AC
7537
7538 WINDRES=$ac_ct_WINDRES
c906108c 7539else
bec39cab 7540 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7541fi
7542
bec39cab
AC
7543
7544# Needed for GNU/Hurd.
7545if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7547set dummy ${ac_tool_prefix}mig; ac_word=$2
7548echo "$as_me:$LINENO: checking for $ac_word" >&5
7549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7550if test "${ac_cv_prog_MIG+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7552else
bec39cab
AC
7553 if test -n "$MIG"; then
7554 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7555else
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569
c906108c 7570fi
bec39cab
AC
7571fi
7572MIG=$ac_cv_prog_MIG
7573if test -n "$MIG"; then
7574 echo "$as_me:$LINENO: result: $MIG" >&5
7575echo "${ECHO_T}$MIG" >&6
c906108c 7576else
bec39cab
AC
7577 echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6
c906108c
SS
7579fi
7580
bec39cab
AC
7581fi
7582if test -z "$ac_cv_prog_MIG"; then
7583 ac_ct_MIG=$MIG
7584 # Extract the first word of "mig", so it can be a program name with args.
7585set dummy mig; ac_word=$2
7586echo "$as_me:$LINENO: checking for $ac_word" >&5
7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7588if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 if test -n "$ac_ct_MIG"; then
7592 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7593else
7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_MIG="mig"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605done
7606done
c906108c 7607
bec39cab
AC
7608fi
7609fi
7610ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7611if test -n "$ac_ct_MIG"; then
7612 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7613echo "${ECHO_T}$ac_ct_MIG" >&6
7614else
7615 echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6
7617fi
c906108c 7618
bec39cab
AC
7619 MIG=$ac_ct_MIG
7620else
7621 MIG="$ac_cv_prog_MIG"
7622fi
c906108c 7623
c906108c 7624
bec39cab
AC
7625# ---------------------- #
7626# Checks for libraries. #
7627# ---------------------- #
c906108c 7628
bec39cab 7629# We might need to link with -lm; most simulators need it.
c906108c 7630
bec39cab
AC
7631echo "$as_me:$LINENO: checking for main in -lm" >&5
7632echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7633if test "${ac_cv_lib_m_main+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 ac_check_lib_save_LIBS=$LIBS
7637LIBS="-lm $LIBS"
7638cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
c906108c 7644
c906108c 7645
bec39cab
AC
7646int
7647main ()
7648{
7649main ();
7650 ;
7651 return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext conftest$ac_exeext
7655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_lib_m_main=yes
7677else
7678 echo "$as_me: failed program was:" >&5
7679sed 's/^/| /' conftest.$ac_ext >&5
7680
7681ac_cv_lib_m_main=no
7682fi
7683rm -f conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685LIBS=$ac_check_lib_save_LIBS
7686fi
7687echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7688echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7689if test $ac_cv_lib_m_main = yes; then
7690 cat >>confdefs.h <<_ACEOF
7691#define HAVE_LIBM 1
7692_ACEOF
7693
7694 LIBS="-lm $LIBS"
c906108c 7695
c906108c 7696fi
bec39cab
AC
7697
7698
7699# We need to link with -lw to get `wctype' on Solaris before Solaris
7700# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7701# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7702# is known to have this problem). Therefore we avoid libw if we can.
7703echo "$as_me:$LINENO: checking for wctype" >&5
7704echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7705if test "${ac_cv_func_wctype+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708 cat >conftest.$ac_ext <<_ACEOF
7709/* confdefs.h. */
7710_ACEOF
7711cat confdefs.h >>conftest.$ac_ext
7712cat >>conftest.$ac_ext <<_ACEOF
7713/* end confdefs.h. */
7714/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7716#define wctype innocuous_wctype
7717
7718/* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char wctype (); below.
7720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 <limits.h> exists even on freestanding compilers. */
7722
7723#ifdef __STDC__
7724# include <limits.h>
7725#else
7726# include <assert.h>
7727#endif
7728
7729#undef wctype
7730
7731/* Override any gcc2 internal prototype to avoid an error. */
7732#ifdef __cplusplus
7733extern "C"
7734{
7735#endif
7736/* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7738char wctype ();
7739/* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742#if defined (__stub_wctype) || defined (__stub___wctype)
7743choke me
7744#else
7745char (*f) () = wctype;
7746#endif
7747#ifdef __cplusplus
7748}
7749#endif
7750
7751int
7752main ()
7753{
7754return f != wctype;
7755 ;
7756 return 0;
7757}
7758_ACEOF
7759rm -f conftest.$ac_objext conftest$ac_exeext
7760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761 (eval $ac_link) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_cv_func_wctype=yes
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786ac_cv_func_wctype=no
7787fi
7788rm -f conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790fi
7791echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7792echo "${ECHO_T}$ac_cv_func_wctype" >&6
7793if test $ac_cv_func_wctype = yes; then
7794 :
c906108c 7795else
c906108c 7796
bec39cab
AC
7797echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7798echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7799if test "${ac_cv_lib_w_wctype+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 ac_check_lib_save_LIBS=$LIBS
7803LIBS="-lw $LIBS"
7804cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h. */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h. */
c906108c 7810
bec39cab
AC
7811/* Override any gcc2 internal prototype to avoid an error. */
7812#ifdef __cplusplus
7813extern "C"
7814#endif
7815/* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817char wctype ();
7818int
7819main ()
7820{
7821wctype ();
7822 ;
7823 return 0;
7824}
7825_ACEOF
7826rm -f conftest.$ac_objext conftest$ac_exeext
7827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } &&
7835 { ac_try='test -z "$ac_c_werror_flag"
7836 || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_w_wctype=yes
7849else
7850 echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
7853ac_cv_lib_w_wctype=no
7854fi
7855rm -f conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857LIBS=$ac_check_lib_save_LIBS
7858fi
7859echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7860echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7861if test $ac_cv_lib_w_wctype = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863#define HAVE_LIBW 1
7864_ACEOF
c906108c 7865
bec39cab 7866 LIBS="-lw $LIBS"
c906108c 7867
bec39cab 7868fi
c906108c 7869
bec39cab 7870fi
c906108c 7871
ddc9cd0f 7872
bec39cab
AC
7873# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7874echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7875echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7876if test "${ac_cv_search_gethostbyname+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878else
7879 ac_func_search_save_LIBS=$LIBS
7880ac_cv_search_gethostbyname=no
7881cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h. */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h. */
ddc9cd0f 7887
bec39cab
AC
7888/* Override any gcc2 internal prototype to avoid an error. */
7889#ifdef __cplusplus
7890extern "C"
7891#endif
7892/* We use char because int might match the return type of a gcc2
7893 builtin and then its argument prototype would still apply. */
7894char gethostbyname ();
7895int
7896main ()
7897{
7898gethostbyname ();
7899 ;
7900 return 0;
7901}
7902_ACEOF
7903rm -f conftest.$ac_objext conftest$ac_exeext
7904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try='test -z "$ac_c_werror_flag"
7913 || test ! -s conftest.err'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try='test -s conftest$ac_exeext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_cv_search_gethostbyname="none required"
7926else
7927 echo "$as_me: failed program was:" >&5
7928sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7929
bec39cab
AC
7930fi
7931rm -f conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7933if test "$ac_cv_search_gethostbyname" = no; then
7934 for ac_lib in nsl; do
7935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7936 cat >conftest.$ac_ext <<_ACEOF
7937/* confdefs.h. */
7938_ACEOF
7939cat confdefs.h >>conftest.$ac_ext
7940cat >>conftest.$ac_ext <<_ACEOF
7941/* end confdefs.h. */
ddc9cd0f 7942
bec39cab
AC
7943/* Override any gcc2 internal prototype to avoid an error. */
7944#ifdef __cplusplus
7945extern "C"
7946#endif
7947/* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7949char gethostbyname ();
7950int
7951main ()
7952{
7953gethostbyname ();
7954 ;
7955 return 0;
7956}
7957_ACEOF
7958rm -f conftest.$ac_objext conftest$ac_exeext
7959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_search_gethostbyname="-l$ac_lib"
7981break
7982else
7983 echo "$as_me: failed program was:" >&5
7984sed 's/^/| /' conftest.$ac_ext >&5
7985
7986fi
7987rm -f conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7989 done
bec39cab
AC
7990fi
7991LIBS=$ac_func_search_save_LIBS
7992fi
7993echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7994echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7995if test "$ac_cv_search_gethostbyname" != no; then
7996 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7997
ddc9cd0f
AC
7998fi
7999
0fbb3da7 8000
bec39cab
AC
8001# Some systems (e.g. Solaris) have `socketpair' in libsocket.
8002echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8003echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
8004if test "${ac_cv_search_socketpair+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007 ac_func_search_save_LIBS=$LIBS
8008ac_cv_search_socketpair=no
8009cat >conftest.$ac_ext <<_ACEOF
8010/* confdefs.h. */
8011_ACEOF
8012cat confdefs.h >>conftest.$ac_ext
8013cat >>conftest.$ac_ext <<_ACEOF
8014/* end confdefs.h. */
0fbb3da7 8015
bec39cab
AC
8016/* Override any gcc2 internal prototype to avoid an error. */
8017#ifdef __cplusplus
8018extern "C"
8019#endif
8020/* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022char socketpair ();
8023int
8024main ()
8025{
8026socketpair ();
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext conftest$ac_exeext
8032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_search_socketpair="none required"
8054else
8055 echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 8057
5b5d99cf 8058fi
bec39cab
AC
8059rm -f conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061if test "$ac_cv_search_socketpair" = no; then
8062 for ac_lib in socket; do
8063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8064 cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
8069/* end confdefs.h. */
5b5d99cf 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 socketpair ();
8078int
8079main ()
8080{
8081socketpair ();
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_socketpair="-l$ac_lib"
8109break
8110else
8111 echo "$as_me: failed program was:" >&5
8112sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8113
bec39cab
AC
8114fi
8115rm -f conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 done
8118fi
8119LIBS=$ac_func_search_save_LIBS
8120fi
8121echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8122echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8123if test "$ac_cv_search_socketpair" != no; then
8124 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8125
bec39cab 8126fi
96baa820 8127
c906108c 8128
bec39cab
AC
8129# For the TUI, we need enhanced curses functionality.
8130#
8131# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8132# curses library because the latter might not provide all the
8133# functionality we need. However, this leads to problems on systems
8134# where the linker searches /usr/local/lib, but the compiler doesn't
8135# search /usr/local/include, if ncurses is installed in /usr/local. A
8136# default installation of ncurses on alpha*-dec-osf* will lead to such
8137# a situation.
8138echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8139echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8140if test "${ac_cv_search_waddstr+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142else
8143 ac_func_search_save_LIBS=$LIBS
8144ac_cv_search_waddstr=no
8145cat >conftest.$ac_ext <<_ACEOF
8146/* confdefs.h. */
8147_ACEOF
8148cat confdefs.h >>conftest.$ac_ext
8149cat >>conftest.$ac_ext <<_ACEOF
8150/* end confdefs.h. */
c906108c 8151
bec39cab
AC
8152/* Override any gcc2 internal prototype to avoid an error. */
8153#ifdef __cplusplus
8154extern "C"
8155#endif
8156/* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8158char waddstr ();
8159int
8160main ()
8161{
8162waddstr ();
8163 ;
8164 return 0;
8165}
8166_ACEOF
8167rm -f conftest.$ac_objext conftest$ac_exeext
8168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_search_waddstr="none required"
8190else
8191 echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8193
bec39cab
AC
8194fi
8195rm -f conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197if test "$ac_cv_search_waddstr" = no; then
8198 for ac_lib in ncurses cursesX curses; do
8199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8200 cat >conftest.$ac_ext <<_ACEOF
8201/* confdefs.h. */
8202_ACEOF
8203cat confdefs.h >>conftest.$ac_ext
8204cat >>conftest.$ac_ext <<_ACEOF
8205/* end confdefs.h. */
1ba607ad 8206
bec39cab
AC
8207/* Override any gcc2 internal prototype to avoid an error. */
8208#ifdef __cplusplus
8209extern "C"
8210#endif
8211/* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8213char waddstr ();
8214int
8215main ()
8216{
8217waddstr ();
8218 ;
8219 return 0;
8220}
8221_ACEOF
8222rm -f conftest.$ac_objext conftest$ac_exeext
8223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag"
8232 || test ! -s conftest.err'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_search_waddstr="-l$ac_lib"
8245break
8246else
8247 echo "$as_me: failed program was:" >&5
8248sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8249
8250fi
bec39cab
AC
8251rm -f conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 done
1ba607ad 8254fi
bec39cab
AC
8255LIBS=$ac_func_search_save_LIBS
8256fi
8257echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8258echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8259if test "$ac_cv_search_waddstr" != no; then
8260 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8261
8bb2c122 8262fi
8bb2c122 8263
8bb2c122 8264
bec39cab
AC
8265# Since GDB uses Readline, we need termcap functionality. In many
8266# cases this will be provided by the curses library, but some systems
8267# have a seperate termcap library, or no curses library at all.
8bb2c122 8268
bec39cab
AC
8269case $host_os in
8270 cygwin*)
8271 if test -d $srcdir/libtermcap; then
8272 LIBS="../libtermcap/libtermcap.a $LIBS"
8273 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8274 fi ;;
8275 go32* | *djgpp*)
8276 ac_cv_search_tgetent="none required"
8277 ;;
8278esac
627af7ea 8279
bec39cab
AC
8280# These are the libraries checked by Readline.
8281echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8282echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8283if test "${ac_cv_search_tgetent+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 ac_func_search_save_LIBS=$LIBS
8287ac_cv_search_tgetent=no
8288cat >conftest.$ac_ext <<_ACEOF
8289/* confdefs.h. */
8290_ACEOF
8291cat confdefs.h >>conftest.$ac_ext
8292cat >>conftest.$ac_ext <<_ACEOF
8293/* end confdefs.h. */
8294
8295/* Override any gcc2 internal prototype to avoid an error. */
8296#ifdef __cplusplus
8297extern "C"
8298#endif
8299/* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8301char tgetent ();
8302int
8303main ()
8304{
8305tgetent ();
8306 ;
8307 return 0;
8308}
8309_ACEOF
8310rm -f conftest.$ac_objext conftest$ac_exeext
8311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_search_tgetent="none required"
627af7ea 8333else
bec39cab
AC
8334 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8336
627af7ea 8337fi
bec39cab
AC
8338rm -f conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340if test "$ac_cv_search_tgetent" = no; then
8341 for ac_lib in termcap tinfo curses ncurses; do
8342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8343 cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h. */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h. */
627af7ea 8349
bec39cab
AC
8350/* Override any gcc2 internal prototype to avoid an error. */
8351#ifdef __cplusplus
8352extern "C"
8353#endif
8354/* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8356char tgetent ();
8357int
8358main ()
8359{
8360tgetent ();
8361 ;
8362 return 0;
8363}
8364_ACEOF
8365rm -f conftest.$ac_objext conftest$ac_exeext
8366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_search_tgetent="-l$ac_lib"
8388break
627af7ea 8389else
bec39cab
AC
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8392
627af7ea 8393fi
bec39cab
AC
8394rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 done
8397fi
8398LIBS=$ac_func_search_save_LIBS
8399fi
8400echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8401echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8402if test "$ac_cv_search_tgetent" != no; then
8403 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8404
06825bd1
MK
8405fi
8406
06825bd1 8407
bec39cab
AC
8408if test "$ac_cv_search_tgetent" = no; then
8409 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8410echo "$as_me: error: no termcap library found" >&2;}
8411 { (exit 1); exit 1; }; }
8ee53726
MK
8412fi
8413
bec39cab
AC
8414# ------------------------- #
8415# Checks for header files. #
8416# ------------------------- #
8ee53726 8417
0e5d83e3 8418
bec39cab
AC
8419
8420
8421
8422
8423ac_header_dirent=no
8424for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8425 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8426echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8427echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8428if eval "test \"\${$as_ac_Header+set}\" = set"; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431 cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
8437#include <sys/types.h>
0e5d83e3 8438#include <$ac_hdr>
bec39cab
AC
8439
8440int
8441main ()
8442{
8443if ((DIR *) 0)
8444return 0;
8445 ;
8446 return 0;
8447}
8448_ACEOF
8449rm -f conftest.$ac_objext
8450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest.$ac_objext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 eval "$as_ac_Header=yes"
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476eval "$as_ac_Header=no"
8477fi
8478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8479fi
8480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8482if test `eval echo '${'$as_ac_Header'}'` = yes; then
8483 cat >>confdefs.h <<_ACEOF
8484#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8485_ACEOF
8486
8487ac_header_dirent=$ac_hdr; break
0e5d83e3 8488fi
0e5d83e3 8489
bec39cab
AC
8490done
8491# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8492if test $ac_header_dirent = dirent.h; then
8493 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8494echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8495if test "${ac_cv_search_opendir+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497else
8498 ac_func_search_save_LIBS=$LIBS
8499ac_cv_search_opendir=no
8500cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
0e5d83e3 8506
bec39cab
AC
8507/* Override any gcc2 internal prototype to avoid an error. */
8508#ifdef __cplusplus
8509extern "C"
8510#endif
8511/* We use char because int might match the return type of a gcc2
8512 builtin and then its argument prototype would still apply. */
8513char opendir ();
8514int
8515main ()
8516{
8517opendir ();
8518 ;
8519 return 0;
8520}
8521_ACEOF
8522rm -f conftest.$ac_objext conftest$ac_exeext
8523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag"
8532 || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_cv_search_opendir="none required"
8545else
8546 echo "$as_me: failed program was:" >&5
8547sed 's/^/| /' conftest.$ac_ext >&5
8548
8549fi
8550rm -f conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552if test "$ac_cv_search_opendir" = no; then
8553 for ac_lib in dir; do
8554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8555 cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h. */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h. */
0e5d83e3 8561
bec39cab
AC
8562/* Override any gcc2 internal prototype to avoid an error. */
8563#ifdef __cplusplus
8564extern "C"
8565#endif
8566/* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8568char opendir ();
8569int
8570main ()
8571{
8572opendir ();
8573 ;
8574 return 0;
8575}
8576_ACEOF
8577rm -f conftest.$ac_objext conftest$ac_exeext
8578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579 (eval $ac_link) 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag"
8587 || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_cv_search_opendir="-l$ac_lib"
8600break
0e5d83e3 8601else
bec39cab
AC
8602 echo "$as_me: failed program was:" >&5
8603sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8604
0e5d83e3 8605fi
bec39cab
AC
8606rm -f conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608 done
0e5d83e3 8609fi
bec39cab 8610LIBS=$ac_func_search_save_LIBS
0e5d83e3 8611fi
bec39cab
AC
8612echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8613echo "${ECHO_T}$ac_cv_search_opendir" >&6
8614if test "$ac_cv_search_opendir" != no; then
8615 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8616
0e5d83e3
JJ
8617fi
8618
d28f9cdf 8619else
bec39cab
AC
8620 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8621echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8622if test "${ac_cv_search_opendir+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625 ac_func_search_save_LIBS=$LIBS
8626ac_cv_search_opendir=no
8627cat >conftest.$ac_ext <<_ACEOF
8628/* confdefs.h. */
8629_ACEOF
8630cat confdefs.h >>conftest.$ac_ext
8631cat >>conftest.$ac_ext <<_ACEOF
8632/* end confdefs.h. */
d28f9cdf 8633
d28f9cdf 8634/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8635#ifdef __cplusplus
8636extern "C"
8637#endif
d28f9cdf 8638/* We use char because int might match the return type of a gcc2
bec39cab
AC
8639 builtin and then its argument prototype would still apply. */
8640char opendir ();
8641int
8642main ()
8643{
8644opendir ();
8645 ;
8646 return 0;
8647}
8648_ACEOF
8649rm -f conftest.$ac_objext conftest$ac_exeext
8650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_cv_search_opendir="none required"
8672else
8673 echo "$as_me: failed program was:" >&5
8674sed 's/^/| /' conftest.$ac_ext >&5
8675
8676fi
8677rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679if test "$ac_cv_search_opendir" = no; then
8680 for ac_lib in x; do
8681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8682 cat >conftest.$ac_ext <<_ACEOF
8683/* confdefs.h. */
8684_ACEOF
8685cat confdefs.h >>conftest.$ac_ext
8686cat >>conftest.$ac_ext <<_ACEOF
8687/* end confdefs.h. */
d28f9cdf 8688
bec39cab
AC
8689/* Override any gcc2 internal prototype to avoid an error. */
8690#ifdef __cplusplus
8691extern "C"
d28f9cdf 8692#endif
bec39cab
AC
8693/* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695char opendir ();
8696int
8697main ()
8698{
8699opendir ();
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704rm -f conftest.$ac_objext conftest$ac_exeext
8705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_search_opendir="-l$ac_lib"
8727break
d28f9cdf 8728else
bec39cab
AC
8729 echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
d28f9cdf 8732fi
bec39cab
AC
8733rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735 done
8736fi
8737LIBS=$ac_func_search_save_LIBS
d28f9cdf 8738fi
bec39cab
AC
8739echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8740echo "${ECHO_T}$ac_cv_search_opendir" >&6
8741if test "$ac_cv_search_opendir" != no; then
8742 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8743
d28f9cdf
DJ
8744fi
8745
bec39cab 8746fi
b0b1c2c0 8747
bec39cab
AC
8748echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8749echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8750if test "${ac_cv_header_stat_broken+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8752else
bec39cab
AC
8753 cat >conftest.$ac_ext <<_ACEOF
8754/* confdefs.h. */
8755_ACEOF
8756cat confdefs.h >>conftest.$ac_ext
8757cat >>conftest.$ac_ext <<_ACEOF
8758/* end confdefs.h. */
8759#include <sys/types.h>
8760#include <sys/stat.h>
b0b1c2c0 8761
bec39cab
AC
8762#if defined(S_ISBLK) && defined(S_IFDIR)
8763# if S_ISBLK (S_IFDIR)
8764You lose.
8765# endif
8766#endif
b0b1c2c0 8767
bec39cab
AC
8768#if defined(S_ISBLK) && defined(S_IFCHR)
8769# if S_ISBLK (S_IFCHR)
8770You lose.
8771# endif
8772#endif
d28f9cdf 8773
bec39cab
AC
8774#if defined(S_ISLNK) && defined(S_IFREG)
8775# if S_ISLNK (S_IFREG)
8776You lose.
8777# endif
8778#endif
d28f9cdf 8779
bec39cab
AC
8780#if defined(S_ISSOCK) && defined(S_IFREG)
8781# if S_ISSOCK (S_IFREG)
8782You lose.
8783# endif
8784#endif
8785
8786_ACEOF
8787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788 $EGREP "You lose" >/dev/null 2>&1; then
8789 ac_cv_header_stat_broken=yes
d28f9cdf 8790else
bec39cab 8791 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8792fi
8793rm -f conftest*
d28f9cdf 8794
d28f9cdf 8795fi
bec39cab
AC
8796echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8797echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8798if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8799
bec39cab
AC
8800cat >>confdefs.h <<\_ACEOF
8801#define STAT_MACROS_BROKEN 1
8802_ACEOF
8bb2c122 8803
7a292a7a 8804fi
bec39cab
AC
8805
8806echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8807echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8808if test "${ac_cv_header_stdc+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8810else
bec39cab
AC
8811 cat >conftest.$ac_ext <<_ACEOF
8812/* confdefs.h. */
8813_ACEOF
8814cat confdefs.h >>conftest.$ac_ext
8815cat >>conftest.$ac_ext <<_ACEOF
8816/* end confdefs.h. */
8817#include <stdlib.h>
8818#include <stdarg.h>
8819#include <string.h>
8820#include <float.h>
7a292a7a 8821
bec39cab
AC
8822int
8823main ()
8824{
7a292a7a 8825
bec39cab
AC
8826 ;
8827 return 0;
8828}
8829_ACEOF
8830rm -f conftest.$ac_objext
8831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag"
8840 || test ! -s conftest.err'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest.$ac_objext'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; }; then
8852 ac_cv_header_stdc=yes
c906108c 8853else
bec39cab
AC
8854 echo "$as_me: failed program was:" >&5
8855sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8856
bec39cab 8857ac_cv_header_stdc=no
c906108c 8858fi
bec39cab 8859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8860
bec39cab
AC
8861if test $ac_cv_header_stdc = yes; then
8862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8863 cat >conftest.$ac_ext <<_ACEOF
8864/* confdefs.h. */
8865_ACEOF
8866cat confdefs.h >>conftest.$ac_ext
8867cat >>conftest.$ac_ext <<_ACEOF
8868/* end confdefs.h. */
8869#include <string.h>
c906108c 8870
bec39cab
AC
8871_ACEOF
8872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873 $EGREP "memchr" >/dev/null 2>&1; then
8874 :
8bb2c122 8875else
bec39cab 8876 ac_cv_header_stdc=no
8bb2c122 8877fi
bec39cab
AC
8878rm -f conftest*
8879
c906108c
SS
8880fi
8881
bec39cab
AC
8882if test $ac_cv_header_stdc = yes; then
8883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8884 cat >conftest.$ac_ext <<_ACEOF
8885/* confdefs.h. */
8886_ACEOF
8887cat confdefs.h >>conftest.$ac_ext
8888cat >>conftest.$ac_ext <<_ACEOF
8889/* end confdefs.h. */
8890#include <stdlib.h>
8891
8892_ACEOF
8893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894 $EGREP "free" >/dev/null 2>&1; then
8895 :
c906108c 8896else
bec39cab 8897 ac_cv_header_stdc=no
c906108c 8898fi
bec39cab
AC
8899rm -f conftest*
8900
c906108c
SS
8901fi
8902
bec39cab
AC
8903if test $ac_cv_header_stdc = yes; then
8904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8905 if test "$cross_compiling" = yes; then
8906 :
c906108c 8907else
bec39cab
AC
8908 cat >conftest.$ac_ext <<_ACEOF
8909/* confdefs.h. */
8910_ACEOF
8911cat confdefs.h >>conftest.$ac_ext
8912cat >>conftest.$ac_ext <<_ACEOF
8913/* end confdefs.h. */
8914#include <ctype.h>
8915#if ((' ' & 0x0FF) == 0x020)
8916# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8917# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8918#else
8919# define ISLOWER(c) \
8920 (('a' <= (c) && (c) <= 'i') \
8921 || ('j' <= (c) && (c) <= 'r') \
8922 || ('s' <= (c) && (c) <= 'z'))
8923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8924#endif
8925
8926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8927int
8928main ()
8929{
8930 int i;
8931 for (i = 0; i < 256; i++)
8932 if (XOR (islower (i), ISLOWER (i))
8933 || toupper (i) != TOUPPER (i))
8934 exit(2);
8935 exit (0);
8936}
8937_ACEOF
8938rm -f conftest$ac_exeext
8939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 :
8950else
8951 echo "$as_me: program exited with status $ac_status" >&5
8952echo "$as_me: failed program was:" >&5
8953sed 's/^/| /' conftest.$ac_ext >&5
8954
8955( exit $ac_status )
8956ac_cv_header_stdc=no
c906108c 8957fi
bec39cab 8958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8959fi
c906108c 8960fi
bec39cab
AC
8961fi
8962echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8963echo "${ECHO_T}$ac_cv_header_stdc" >&6
8964if test $ac_cv_header_stdc = yes; then
c906108c 8965
bec39cab
AC
8966cat >>confdefs.h <<\_ACEOF
8967#define STDC_HEADERS 1
8968_ACEOF
c906108c 8969
bec39cab 8970fi
8bb2c122 8971
bec39cab 8972
7cb9022a 8973for ac_header in nlist.h
bec39cab
AC
8974do
8975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo "$as_me:$LINENO: checking for $ac_header" >&5
8978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8979if eval "test \"\${$as_ac_Header+set}\" = set"; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981fi
8982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8984else
8985 # Is the header compilable?
8986echo "$as_me:$LINENO: checking $ac_header usability" >&5
8987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8988cat >conftest.$ac_ext <<_ACEOF
8989/* confdefs.h. */
8990_ACEOF
8991cat confdefs.h >>conftest.$ac_ext
8992cat >>conftest.$ac_ext <<_ACEOF
8993/* end confdefs.h. */
8994$ac_includes_default
8995#include <$ac_header>
8996_ACEOF
8997rm -f conftest.$ac_objext
8998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_c_werror_flag"
9007 || test ! -s conftest.err'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; } &&
9013 { ac_try='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_header_compiler=yes
9020else
9021 echo "$as_me: failed program was:" >&5
9022sed 's/^/| /' conftest.$ac_ext >&5
9023
9024ac_header_compiler=no
9025fi
9026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028echo "${ECHO_T}$ac_header_compiler" >&6
9029
9030# Is the header present?
9031echo "$as_me:$LINENO: checking $ac_header presence" >&5
9032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9033cat >conftest.$ac_ext <<_ACEOF
9034/* confdefs.h. */
9035_ACEOF
9036cat confdefs.h >>conftest.$ac_ext
9037cat >>conftest.$ac_ext <<_ACEOF
9038/* end confdefs.h. */
9039#include <$ac_header>
9040_ACEOF
9041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } >/dev/null; then
9049 if test -s conftest.err; then
9050 ac_cpp_err=$ac_c_preproc_warn_flag
9051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9052 else
9053 ac_cpp_err=
9054 fi
c906108c 9055else
bec39cab 9056 ac_cpp_err=yes
c906108c 9057fi
bec39cab
AC
9058if test -z "$ac_cpp_err"; then
9059 ac_header_preproc=yes
c906108c 9060else
bec39cab
AC
9061 echo "$as_me: failed program was:" >&5
9062sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 9063
bec39cab
AC
9064 ac_header_preproc=no
9065fi
9066rm -f conftest.err conftest.$ac_ext
9067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 9069
bec39cab
AC
9070# So? What about this header?
9071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9072 yes:no: )
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9077 ac_header_preproc=yes
9078 ;;
9079 no:yes:* )
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9092 (
9093 cat <<\_ASBOX
9094## ------------------------------------------ ##
9095## Report this to the AC_PACKAGE_NAME lists. ##
9096## ------------------------------------------ ##
9097_ASBOX
9098 ) |
9099 sed "s/^/$as_me: WARNING: /" >&2
9100 ;;
9101esac
9102echo "$as_me:$LINENO: checking for $ac_header" >&5
9103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9104if eval "test \"\${$as_ac_Header+set}\" = set"; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 9106else
bec39cab 9107 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 9108fi
bec39cab
AC
9109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9111
95ca63c4 9112fi
bec39cab
AC
9113if test `eval echo '${'$as_ac_Header'}'` = yes; then
9114 cat >>confdefs.h <<_ACEOF
9115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9116_ACEOF
9117
95ca63c4
CF
9118fi
9119
bec39cab 9120done
95ca63c4
CF
9121
9122
7cb9022a 9123for ac_header in link.h
bec39cab
AC
9124do
9125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 9126echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
9127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9128if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9130else
7cb9022a 9131 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9132/* confdefs.h. */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h. */
7cb9022a
MK
9137#if HAVE_SYS_TYPES_H
9138# include <sys/types.h>
9139#endif
9140#if HAVE_NLIST_H
9141# include <nlist.h>
9142#endif
9143
9144
bec39cab
AC
9145#include <$ac_header>
9146_ACEOF
9147rm -f conftest.$ac_objext
9148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag"
9157 || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest.$ac_objext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 (eval $ac_try) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
7cb9022a 9169 eval "$as_ac_Header=yes"
bec39cab
AC
9170else
9171 echo "$as_me: failed program was:" >&5
9172sed 's/^/| /' conftest.$ac_ext >&5
9173
7cb9022a 9174eval "$as_ac_Header=no"
bec39cab
AC
9175fi
9176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9177fi
9178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9180if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181 cat >>confdefs.h <<_ACEOF
9182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183_ACEOF
95ca63c4 9184
bec39cab 9185fi
95ca63c4 9186
bec39cab 9187done
95ca63c4 9188
c906108c 9189
7cb9022a 9190for ac_header in machine/reg.h
bec39cab
AC
9191do
9192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9193if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo "$as_me:$LINENO: checking for $ac_header" >&5
9195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9196if eval "test \"\${$as_ac_Header+set}\" = set"; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198fi
9199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9201else
9202 # Is the header compilable?
9203echo "$as_me:$LINENO: checking $ac_header usability" >&5
9204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9205cat >conftest.$ac_ext <<_ACEOF
9206/* confdefs.h. */
9207_ACEOF
9208cat confdefs.h >>conftest.$ac_ext
9209cat >>conftest.$ac_ext <<_ACEOF
9210/* end confdefs.h. */
9211$ac_includes_default
9212#include <$ac_header>
9213_ACEOF
9214rm -f conftest.$ac_objext
9215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_header_compiler=yes
9237else
9238 echo "$as_me: failed program was:" >&5
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
9241ac_header_compiler=no
9242fi
9243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9245echo "${ECHO_T}$ac_header_compiler" >&6
9246
9247# Is the header present?
9248echo "$as_me:$LINENO: checking $ac_header presence" >&5
9249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9250cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h. */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h. */
9256#include <$ac_header>
9257_ACEOF
9258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } >/dev/null; then
9266 if test -s conftest.err; then
9267 ac_cpp_err=$ac_c_preproc_warn_flag
9268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9269 else
9270 ac_cpp_err=
9271 fi
75c6e08a 9272else
bec39cab 9273 ac_cpp_err=yes
75c6e08a 9274fi
bec39cab
AC
9275if test -z "$ac_cpp_err"; then
9276 ac_header_preproc=yes
9277else
9278 echo "$as_me: failed program was:" >&5
9279sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 ac_header_preproc=no
75c6e08a 9282fi
bec39cab
AC
9283rm -f conftest.err conftest.$ac_ext
9284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285echo "${ECHO_T}$ac_header_preproc" >&6
9286
9287# So? What about this header?
9288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9289 yes:no: )
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9294 ac_header_preproc=yes
9295 ;;
9296 no:yes:* )
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9309 (
9310 cat <<\_ASBOX
9311## ------------------------------------------ ##
9312## Report this to the AC_PACKAGE_NAME lists. ##
9313## ------------------------------------------ ##
9314_ASBOX
9315 ) |
9316 sed "s/^/$as_me: WARNING: /" >&2
9317 ;;
9318esac
9319echo "$as_me:$LINENO: checking for $ac_header" >&5
9320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9323else
bec39cab
AC
9324 eval "$as_ac_Header=\$ac_header_preproc"
9325fi
9326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328
75c6e08a 9329fi
bec39cab
AC
9330if test `eval echo '${'$as_ac_Header'}'` = yes; then
9331 cat >>confdefs.h <<_ACEOF
9332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9333_ACEOF
75c6e08a 9334
bec39cab 9335fi
75c6e08a 9336
bec39cab 9337done
75c6e08a
MK
9338
9339
9a156167 9340
bec39cab
AC
9341for ac_header in poll.h sys/poll.h
9342do
9343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349fi
9350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352else
9353 # Is the header compilable?
9354echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356cat >conftest.$ac_ext <<_ACEOF
9357/* confdefs.h. */
9358_ACEOF
9359cat confdefs.h >>conftest.$ac_ext
9360cat >>conftest.$ac_ext <<_ACEOF
9361/* end confdefs.h. */
9362$ac_includes_default
9363#include <$ac_header>
9364_ACEOF
9365rm -f conftest.$ac_objext
9366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_header_compiler=yes
9388else
9389 echo "$as_me: failed program was:" >&5
9390sed 's/^/| /' conftest.$ac_ext >&5
9391
9392ac_header_compiler=no
9393fi
9394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9395echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396echo "${ECHO_T}$ac_header_compiler" >&6
9397
9398# Is the header present?
9399echo "$as_me:$LINENO: checking $ac_header presence" >&5
9400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9401cat >conftest.$ac_ext <<_ACEOF
9402/* confdefs.h. */
9403_ACEOF
9404cat confdefs.h >>conftest.$ac_ext
9405cat >>conftest.$ac_ext <<_ACEOF
9406/* end confdefs.h. */
9407#include <$ac_header>
9408_ACEOF
9409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } >/dev/null; then
9417 if test -s conftest.err; then
9418 ac_cpp_err=$ac_c_preproc_warn_flag
9419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9420 else
9421 ac_cpp_err=
9422 fi
9a156167 9423else
bec39cab 9424 ac_cpp_err=yes
9a156167 9425fi
bec39cab
AC
9426if test -z "$ac_cpp_err"; then
9427 ac_header_preproc=yes
9428else
9429 echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9431
bec39cab 9432 ac_header_preproc=no
9a156167 9433fi
bec39cab
AC
9434rm -f conftest.err conftest.$ac_ext
9435echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9436echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9437
bec39cab
AC
9438# So? What about this header?
9439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9440 yes:no: )
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9445 ac_header_preproc=yes
9446 ;;
9447 no:yes:* )
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9460 (
9461 cat <<\_ASBOX
9462## ------------------------------------------ ##
9463## Report this to the AC_PACKAGE_NAME lists. ##
9464## ------------------------------------------ ##
9465_ASBOX
9466 ) |
9467 sed "s/^/$as_me: WARNING: /" >&2
9468 ;;
9469esac
9470echo "$as_me:$LINENO: checking for $ac_header" >&5
9471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9474else
bec39cab 9475 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9476fi
bec39cab
AC
9477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9479
bec39cab
AC
9480fi
9481if test `eval echo '${'$as_ac_Header'}'` = yes; then
9482 cat >>confdefs.h <<_ACEOF
9483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9484_ACEOF
9a156167 9485
bec39cab 9486fi
9a156167 9487
bec39cab 9488done
9a156167 9489
9a156167 9490
9a156167 9491
bec39cab
AC
9492
9493for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9494do
9495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9496if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo "$as_me:$LINENO: checking for $ac_header" >&5
9498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9499if eval "test \"\${$as_ac_Header+set}\" = set"; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501fi
9502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9504else
9505 # Is the header compilable?
9506echo "$as_me:$LINENO: checking $ac_header usability" >&5
9507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9508cat >conftest.$ac_ext <<_ACEOF
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */
9514$ac_includes_default
9515#include <$ac_header>
9516_ACEOF
9517rm -f conftest.$ac_objext
9518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9519 (eval $ac_compile) 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try='test -z "$ac_c_werror_flag"
9527 || test ! -s conftest.err'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try='test -s conftest.$ac_objext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_header_compiler=yes
9540else
9541 echo "$as_me: failed program was:" >&5
9542sed 's/^/| /' conftest.$ac_ext >&5
9543
9544ac_header_compiler=no
9545fi
9546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9548echo "${ECHO_T}$ac_header_compiler" >&6
9549
9550# Is the header present?
9551echo "$as_me:$LINENO: checking $ac_header presence" >&5
9552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9553cat >conftest.$ac_ext <<_ACEOF
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
9559#include <$ac_header>
9560_ACEOF
9561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9563 ac_status=$?
9564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } >/dev/null; then
9569 if test -s conftest.err; then
9570 ac_cpp_err=$ac_c_preproc_warn_flag
9571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9572 else
9573 ac_cpp_err=
9574 fi
9a156167 9575else
bec39cab 9576 ac_cpp_err=yes
9a156167 9577fi
bec39cab
AC
9578if test -z "$ac_cpp_err"; then
9579 ac_header_preproc=yes
9580else
9581 echo "$as_me: failed program was:" >&5
9582sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9583
bec39cab 9584 ac_header_preproc=no
9a156167 9585fi
bec39cab
AC
9586rm -f conftest.err conftest.$ac_ext
9587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9588echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9589
bec39cab
AC
9590# So? What about this header?
9591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9592 yes:no: )
9593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9597 ac_header_preproc=yes
9598 ;;
9599 no:yes:* )
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9607echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9612 (
9613 cat <<\_ASBOX
9614## ------------------------------------------ ##
9615## Report this to the AC_PACKAGE_NAME lists. ##
9616## ------------------------------------------ ##
9617_ASBOX
9618 ) |
9619 sed "s/^/$as_me: WARNING: /" >&2
9620 ;;
9621esac
9622echo "$as_me:$LINENO: checking for $ac_header" >&5
9623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9624if eval "test \"\${$as_ac_Header+set}\" = set"; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9626else
bec39cab 9627 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9628fi
bec39cab
AC
9629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9631
9632fi
bec39cab
AC
9633if test `eval echo '${'$as_ac_Header'}'` = yes; then
9634 cat >>confdefs.h <<_ACEOF
9635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9636_ACEOF
9a156167 9637
bec39cab
AC
9638fi
9639
9640done
9a156167 9641
c890192f 9642
bec39cab
AC
9643for ac_header in stddef.h
9644do
9645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9646if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647 echo "$as_me:$LINENO: checking for $ac_header" >&5
9648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649if eval "test \"\${$as_ac_Header+set}\" = set"; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9651fi
9652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9654else
9655 # Is the header compilable?
9656echo "$as_me:$LINENO: checking $ac_header usability" >&5
9657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9658cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h. */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h. */
9664$ac_includes_default
9665#include <$ac_header>
9666_ACEOF
9667rm -f conftest.$ac_objext
9668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag"
9677 || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest.$ac_objext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 ac_header_compiler=yes
9690else
9691 echo "$as_me: failed program was:" >&5
9692sed 's/^/| /' conftest.$ac_ext >&5
9693
9694ac_header_compiler=no
9695fi
9696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9698echo "${ECHO_T}$ac_header_compiler" >&6
9699
9700# Is the header present?
9701echo "$as_me:$LINENO: checking $ac_header presence" >&5
9702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9703cat >conftest.$ac_ext <<_ACEOF
9704/* confdefs.h. */
9705_ACEOF
9706cat confdefs.h >>conftest.$ac_ext
9707cat >>conftest.$ac_ext <<_ACEOF
9708/* end confdefs.h. */
9709#include <$ac_header>
9710_ACEOF
9711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } >/dev/null; then
9719 if test -s conftest.err; then
9720 ac_cpp_err=$ac_c_preproc_warn_flag
9721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9722 else
9723 ac_cpp_err=
9724 fi
c890192f 9725else
bec39cab
AC
9726 ac_cpp_err=yes
9727fi
9728if test -z "$ac_cpp_err"; then
9729 ac_header_preproc=yes
c890192f 9730else
bec39cab
AC
9731 echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ac_header_preproc=no
c890192f 9735fi
bec39cab
AC
9736rm -f conftest.err conftest.$ac_ext
9737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9738echo "${ECHO_T}$ac_header_preproc" >&6
9739
9740# So? What about this header?
9741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9742 yes:no: )
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9747 ac_header_preproc=yes
9748 ;;
9749 no:yes:* )
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9762 (
9763 cat <<\_ASBOX
9764## ------------------------------------------ ##
9765## Report this to the AC_PACKAGE_NAME lists. ##
9766## ------------------------------------------ ##
9767_ASBOX
9768 ) |
9769 sed "s/^/$as_me: WARNING: /" >&2
9770 ;;
9771esac
9772echo "$as_me:$LINENO: checking for $ac_header" >&5
9773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9774if eval "test \"\${$as_ac_Header+set}\" = set"; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9776else
bec39cab 9777 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9778fi
bec39cab
AC
9779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9781
c890192f 9782fi
bec39cab
AC
9783if test `eval echo '${'$as_ac_Header'}'` = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9786_ACEOF
c890192f 9787
c890192f
MK
9788fi
9789
bec39cab 9790done
9a156167 9791
bec39cab
AC
9792
9793for ac_header in stdlib.h
9794do
9795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo "$as_me:$LINENO: checking for $ac_header" >&5
9798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9799if eval "test \"\${$as_ac_Header+set}\" = set"; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801fi
9802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9804else
9805 # Is the header compilable?
9806echo "$as_me:$LINENO: checking $ac_header usability" >&5
9807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9808cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h. */
9814$ac_includes_default
9815#include <$ac_header>
9816_ACEOF
9817rm -f conftest.$ac_objext
9818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_header_compiler=yes
9840else
9841 echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
9844ac_header_compiler=no
9845fi
9846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848echo "${ECHO_T}$ac_header_compiler" >&6
9849
9850# Is the header present?
9851echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h. */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h. */
9859#include <$ac_header>
9860_ACEOF
9861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } >/dev/null; then
9869 if test -s conftest.err; then
9870 ac_cpp_err=$ac_c_preproc_warn_flag
9871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9872 else
9873 ac_cpp_err=
9874 fi
9a156167 9875else
bec39cab
AC
9876 ac_cpp_err=yes
9877fi
9878if test -z "$ac_cpp_err"; then
9879 ac_header_preproc=yes
9a156167 9880else
bec39cab
AC
9881 echo "$as_me: failed program was:" >&5
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ac_header_preproc=no
9a156167 9885fi
bec39cab
AC
9886rm -f conftest.err conftest.$ac_ext
9887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9888echo "${ECHO_T}$ac_header_preproc" >&6
9889
9890# So? What about this header?
9891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9892 yes:no: )
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9897 ac_header_preproc=yes
9898 ;;
9899 no:yes:* )
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9912 (
9913 cat <<\_ASBOX
9914## ------------------------------------------ ##
9915## Report this to the AC_PACKAGE_NAME lists. ##
9916## ------------------------------------------ ##
9917_ASBOX
9918 ) |
9919 sed "s/^/$as_me: WARNING: /" >&2
9920 ;;
9921esac
9922echo "$as_me:$LINENO: checking for $ac_header" >&5
9923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9926else
bec39cab 9927 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9928fi
bec39cab
AC
9929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9931
9a156167 9932fi
bec39cab
AC
9933if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934 cat >>confdefs.h <<_ACEOF
9935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9936_ACEOF
9a156167 9937
9a156167
MK
9938fi
9939
bec39cab
AC
9940done
9941
06825bd1 9942
bec39cab
AC
9943for ac_header in stdint.h
9944do
9945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo "$as_me:$LINENO: checking for $ac_header" >&5
9948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951fi
9952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9954else
9955 # Is the header compilable?
9956echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958cat >conftest.$ac_ext <<_ACEOF
9959/* confdefs.h. */
9960_ACEOF
9961cat confdefs.h >>conftest.$ac_ext
9962cat >>conftest.$ac_ext <<_ACEOF
9963/* end confdefs.h. */
9964$ac_includes_default
9965#include <$ac_header>
9966_ACEOF
9967rm -f conftest.$ac_objext
9968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969 (eval $ac_compile) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_header_compiler=yes
9990else
9991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994ac_header_compiler=no
9995fi
9996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9998echo "${ECHO_T}$ac_header_compiler" >&6
9999
10000# Is the header present?
10001echo "$as_me:$LINENO: checking $ac_header presence" >&5
10002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10003cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h. */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h. */
10009#include <$ac_header>
10010_ACEOF
10011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } >/dev/null; then
10019 if test -s conftest.err; then
10020 ac_cpp_err=$ac_c_preproc_warn_flag
10021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10022 else
10023 ac_cpp_err=
10024 fi
06825bd1 10025else
bec39cab
AC
10026 ac_cpp_err=yes
10027fi
10028if test -z "$ac_cpp_err"; then
10029 ac_header_preproc=yes
06825bd1 10030else
bec39cab
AC
10031 echo "$as_me: failed program was:" >&5
10032sed 's/^/| /' conftest.$ac_ext >&5
10033
10034 ac_header_preproc=no
06825bd1 10035fi
bec39cab
AC
10036rm -f conftest.err conftest.$ac_ext
10037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10038echo "${ECHO_T}$ac_header_preproc" >&6
10039
10040# So? What about this header?
10041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10042 yes:no: )
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10047 ac_header_preproc=yes
10048 ;;
10049 no:yes:* )
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10062 (
10063 cat <<\_ASBOX
10064## ------------------------------------------ ##
10065## Report this to the AC_PACKAGE_NAME lists. ##
10066## ------------------------------------------ ##
10067_ASBOX
10068 ) |
10069 sed "s/^/$as_me: WARNING: /" >&2
10070 ;;
10071esac
10072echo "$as_me:$LINENO: checking for $ac_header" >&5
10073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10074if eval "test \"\${$as_ac_Header+set}\" = set"; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 10076else
bec39cab 10077 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10078fi
bec39cab
AC
10079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10081
06825bd1 10082fi
bec39cab
AC
10083if test `eval echo '${'$as_ac_Header'}'` = yes; then
10084 cat >>confdefs.h <<_ACEOF
10085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10086_ACEOF
06825bd1 10087
06825bd1 10088fi
4f0be353 10089
bec39cab 10090done
4f0be353 10091
06825bd1 10092
06825bd1 10093
bec39cab
AC
10094
10095for ac_header in string.h memory.h strings.h
10096do
10097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10098if eval "test \"\${$as_ac_Header+set}\" = set"; then
10099 echo "$as_me:$LINENO: checking for $ac_header" >&5
10100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10101if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103fi
10104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10106else
10107 # Is the header compilable?
10108echo "$as_me:$LINENO: checking $ac_header usability" >&5
10109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10110cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h. */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
10115/* end confdefs.h. */
10116$ac_includes_default
10117#include <$ac_header>
10118_ACEOF
10119rm -f conftest.$ac_objext
10120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121 (eval $ac_compile) 2>conftest.er1
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -z "$ac_c_werror_flag"
10129 || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest.$ac_objext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_header_compiler=yes
10142else
10143 echo "$as_me: failed program was:" >&5
10144sed 's/^/| /' conftest.$ac_ext >&5
10145
10146ac_header_compiler=no
10147fi
10148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150echo "${ECHO_T}$ac_header_compiler" >&6
10151
10152# Is the header present?
10153echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161#include <$ac_header>
10162_ACEOF
10163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } >/dev/null; then
10171 if test -s conftest.err; then
10172 ac_cpp_err=$ac_c_preproc_warn_flag
10173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10174 else
10175 ac_cpp_err=
10176 fi
06825bd1 10177else
bec39cab
AC
10178 ac_cpp_err=yes
10179fi
10180if test -z "$ac_cpp_err"; then
10181 ac_header_preproc=yes
06825bd1 10182else
bec39cab
AC
10183 echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 ac_header_preproc=no
06825bd1 10187fi
bec39cab
AC
10188rm -f conftest.err conftest.$ac_ext
10189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190echo "${ECHO_T}$ac_header_preproc" >&6
10191
10192# So? What about this header?
10193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10194 yes:no: )
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10199 ac_header_preproc=yes
10200 ;;
10201 no:yes:* )
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10214 (
10215 cat <<\_ASBOX
10216## ------------------------------------------ ##
10217## Report this to the AC_PACKAGE_NAME lists. ##
10218## ------------------------------------------ ##
10219_ASBOX
10220 ) |
10221 sed "s/^/$as_me: WARNING: /" >&2
10222 ;;
10223esac
10224echo "$as_me:$LINENO: checking for $ac_header" >&5
10225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10226if eval "test \"\${$as_ac_Header+set}\" = set"; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228else
10229 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10230fi
bec39cab
AC
10231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10233
06825bd1 10234fi
bec39cab
AC
10235if test `eval echo '${'$as_ac_Header'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10238_ACEOF
06825bd1 10239
06825bd1
MK
10240fi
10241
bec39cab 10242done
5ee754fc 10243
bec39cab
AC
10244
10245for ac_header in sys/fault.h
5ee754fc 10246do
bec39cab
AC
10247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10248if eval "test \"\${$as_ac_Header+set}\" = set"; then
10249 echo "$as_me:$LINENO: checking for $ac_header" >&5
10250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10251if eval "test \"\${$as_ac_Header+set}\" = set"; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253fi
10254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10256else
10257 # Is the header compilable?
10258echo "$as_me:$LINENO: checking $ac_header usability" >&5
10259echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10260cat >conftest.$ac_ext <<_ACEOF
10261/* confdefs.h. */
10262_ACEOF
10263cat confdefs.h >>conftest.$ac_ext
10264cat >>conftest.$ac_ext <<_ACEOF
10265/* end confdefs.h. */
10266$ac_includes_default
10267#include <$ac_header>
10268_ACEOF
10269rm -f conftest.$ac_objext
10270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>conftest.er1
10272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag"
10279 || test ! -s conftest.err'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 ac_header_compiler=yes
10292else
10293 echo "$as_me: failed program was:" >&5
10294sed 's/^/| /' conftest.$ac_ext >&5
10295
10296ac_header_compiler=no
10297fi
10298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10300echo "${ECHO_T}$ac_header_compiler" >&6
10301
10302# Is the header present?
10303echo "$as_me:$LINENO: checking $ac_header presence" >&5
10304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10305cat >conftest.$ac_ext <<_ACEOF
10306/* confdefs.h. */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
10310/* end confdefs.h. */
10311#include <$ac_header>
10312_ACEOF
10313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } >/dev/null; then
10321 if test -s conftest.err; then
10322 ac_cpp_err=$ac_c_preproc_warn_flag
10323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10324 else
10325 ac_cpp_err=
10326 fi
5ee754fc 10327else
bec39cab 10328 ac_cpp_err=yes
5ee754fc 10329fi
bec39cab
AC
10330if test -z "$ac_cpp_err"; then
10331 ac_header_preproc=yes
10332else
10333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10335
bec39cab 10336 ac_header_preproc=no
5ee754fc 10337fi
bec39cab
AC
10338rm -f conftest.err conftest.$ac_ext
10339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10340echo "${ECHO_T}$ac_header_preproc" >&6
10341
10342# So? What about this header?
10343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10344 yes:no: )
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10349 ac_header_preproc=yes
10350 ;;
10351 no:yes:* )
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10364 (
10365 cat <<\_ASBOX
10366## ------------------------------------------ ##
10367## Report this to the AC_PACKAGE_NAME lists. ##
10368## ------------------------------------------ ##
10369_ASBOX
10370 ) |
10371 sed "s/^/$as_me: WARNING: /" >&2
10372 ;;
10373esac
10374echo "$as_me:$LINENO: checking for $ac_header" >&5
10375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10376if eval "test \"\${$as_ac_Header+set}\" = set"; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10378else
bec39cab 10379 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10380fi
bec39cab
AC
10381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10383
5ee754fc 10384fi
bec39cab
AC
10385if test `eval echo '${'$as_ac_Header'}'` = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10388_ACEOF
c906108c 10389
5ee754fc 10390fi
bec39cab
AC
10391
10392done
10393
10394
10395for ac_header in sys/file.h
10396do
10397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10398if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403fi
10404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10406else
10407 # Is the header compilable?
10408echo "$as_me:$LINENO: checking $ac_header usability" >&5
10409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10410cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h. */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h. */
10416$ac_includes_default
10417#include <$ac_header>
10418_ACEOF
10419rm -f conftest.$ac_objext
10420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag"
10429 || test ! -s conftest.err'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_header_compiler=yes
10442else
10443 echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446ac_header_compiler=no
10447fi
10448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10450echo "${ECHO_T}$ac_header_compiler" >&6
10451
10452# Is the header present?
10453echo "$as_me:$LINENO: checking $ac_header presence" >&5
10454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10455cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h. */
10461#include <$ac_header>
10462_ACEOF
10463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } >/dev/null; then
10471 if test -s conftest.err; then
10472 ac_cpp_err=$ac_c_preproc_warn_flag
10473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10474 else
10475 ac_cpp_err=
10476 fi
5ee754fc 10477else
bec39cab 10478 ac_cpp_err=yes
5ee754fc 10479fi
bec39cab
AC
10480if test -z "$ac_cpp_err"; then
10481 ac_header_preproc=yes
10482else
10483 echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10485
bec39cab 10486 ac_header_preproc=no
5ee754fc 10487fi
bec39cab
AC
10488rm -f conftest.err conftest.$ac_ext
10489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10491
bec39cab
AC
10492# So? What about this header?
10493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10494 yes:no: )
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10499 ac_header_preproc=yes
10500 ;;
10501 no:yes:* )
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10514 (
10515 cat <<\_ASBOX
10516## ------------------------------------------ ##
10517## Report this to the AC_PACKAGE_NAME lists. ##
10518## ------------------------------------------ ##
10519_ASBOX
10520 ) |
10521 sed "s/^/$as_me: WARNING: /" >&2
10522 ;;
10523esac
10524echo "$as_me:$LINENO: checking for $ac_header" >&5
10525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526if eval "test \"\${$as_ac_Header+set}\" = set"; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10528else
bec39cab
AC
10529 eval "$as_ac_Header=\$ac_header_preproc"
10530fi
10531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10533
bec39cab
AC
10534fi
10535if test `eval echo '${'$as_ac_Header'}'` = yes; then
10536 cat >>confdefs.h <<_ACEOF
10537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10538_ACEOF
5ee754fc 10539
bec39cab 10540fi
5ee754fc 10541
bec39cab 10542done
5ee754fc 10543
5ee754fc 10544
bec39cab
AC
10545for ac_header in sys/filio.h
10546do
10547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10548if eval "test \"\${$as_ac_Header+set}\" = set"; then
10549 echo "$as_me:$LINENO: checking for $ac_header" >&5
10550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10551if eval "test \"\${$as_ac_Header+set}\" = set"; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553fi
10554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10556else
10557 # Is the header compilable?
10558echo "$as_me:$LINENO: checking $ac_header usability" >&5
10559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10560cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566$ac_includes_default
10567#include <$ac_header>
10568_ACEOF
10569rm -f conftest.$ac_objext
10570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571 (eval $ac_compile) 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest.$ac_objext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_header_compiler=yes
10592else
10593 echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596ac_header_compiler=no
10597fi
10598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10599echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10600echo "${ECHO_T}$ac_header_compiler" >&6
10601
10602# Is the header present?
10603echo "$as_me:$LINENO: checking $ac_header presence" >&5
10604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10605cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h. */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h. */
10611#include <$ac_header>
10612_ACEOF
10613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } >/dev/null; then
10621 if test -s conftest.err; then
10622 ac_cpp_err=$ac_c_preproc_warn_flag
10623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10624 else
10625 ac_cpp_err=
10626 fi
5ee754fc 10627else
bec39cab 10628 ac_cpp_err=yes
5ee754fc 10629fi
bec39cab
AC
10630if test -z "$ac_cpp_err"; then
10631 ac_header_preproc=yes
10632else
10633 echo "$as_me: failed program was:" >&5
10634sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10635
bec39cab 10636 ac_header_preproc=no
5ee754fc 10637fi
bec39cab
AC
10638rm -f conftest.err conftest.$ac_ext
10639echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10640echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10641
bec39cab
AC
10642# So? What about this header?
10643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10644 yes:no: )
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10649 ac_header_preproc=yes
10650 ;;
10651 no:yes:* )
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10659echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10664 (
10665 cat <<\_ASBOX
10666## ------------------------------------------ ##
10667## Report this to the AC_PACKAGE_NAME lists. ##
10668## ------------------------------------------ ##
10669_ASBOX
10670 ) |
10671 sed "s/^/$as_me: WARNING: /" >&2
10672 ;;
10673esac
10674echo "$as_me:$LINENO: checking for $ac_header" >&5
10675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10676if eval "test \"\${$as_ac_Header+set}\" = set"; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10678else
bec39cab 10679 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10680fi
bec39cab
AC
10681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10683
5ee754fc 10684fi
bec39cab
AC
10685if test `eval echo '${'$as_ac_Header'}'` = yes; then
10686 cat >>confdefs.h <<_ACEOF
10687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10688_ACEOF
5ee754fc
MK
10689
10690fi
10691
bec39cab
AC
10692done
10693
10694
10695for ac_header in sys/ioctl.h
10696do
10697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10698if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo "$as_me:$LINENO: checking for $ac_header" >&5
10700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10701if eval "test \"\${$as_ac_Header+set}\" = set"; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703fi
10704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10706else
10707 # Is the header compilable?
10708echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10710cat >conftest.$ac_ext <<_ACEOF
10711/* confdefs.h. */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716$ac_includes_default
10717#include <$ac_header>
10718_ACEOF
10719rm -f conftest.$ac_objext
10720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721 (eval $ac_compile) 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag"
10729 || test ! -s conftest.err'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; } &&
10735 { ac_try='test -s conftest.$ac_objext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_header_compiler=yes
10742else
10743 echo "$as_me: failed program was:" >&5
10744sed 's/^/| /' conftest.$ac_ext >&5
10745
10746ac_header_compiler=no
10747fi
10748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750echo "${ECHO_T}$ac_header_compiler" >&6
10751
10752# Is the header present?
10753echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761#include <$ac_header>
10762_ACEOF
10763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } >/dev/null; then
10771 if test -s conftest.err; then
10772 ac_cpp_err=$ac_c_preproc_warn_flag
10773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10774 else
10775 ac_cpp_err=
10776 fi
5ee754fc 10777else
bec39cab 10778 ac_cpp_err=yes
5ee754fc 10779fi
bec39cab
AC
10780if test -z "$ac_cpp_err"; then
10781 ac_header_preproc=yes
10782else
10783 echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10785
bec39cab 10786 ac_header_preproc=no
5ee754fc 10787fi
bec39cab
AC
10788rm -f conftest.err conftest.$ac_ext
10789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10790echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10791
bec39cab
AC
10792# So? What about this header?
10793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794 yes:no: )
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10799 ac_header_preproc=yes
10800 ;;
10801 no:yes:* )
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10814 (
10815 cat <<\_ASBOX
10816## ------------------------------------------ ##
10817## Report this to the AC_PACKAGE_NAME lists. ##
10818## ------------------------------------------ ##
10819_ASBOX
10820 ) |
10821 sed "s/^/$as_me: WARNING: /" >&2
10822 ;;
10823esac
10824echo "$as_me:$LINENO: checking for $ac_header" >&5
10825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10826if eval "test \"\${$as_ac_Header+set}\" = set"; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10828else
bec39cab 10829 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10830fi
bec39cab
AC
10831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10833
10834fi
bec39cab
AC
10835if test `eval echo '${'$as_ac_Header'}'` = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10838_ACEOF
10839
5ee754fc
MK
10840fi
10841
bec39cab 10842done
5ee754fc 10843
5ee754fc 10844
bec39cab 10845for ac_header in sys/param.h
5ee754fc 10846do
bec39cab
AC
10847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10848if eval "test \"\${$as_ac_Header+set}\" = set"; then
10849 echo "$as_me:$LINENO: checking for $ac_header" >&5
10850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10851if eval "test \"\${$as_ac_Header+set}\" = set"; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853fi
10854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10856else
10857 # Is the header compilable?
10858echo "$as_me:$LINENO: checking $ac_header usability" >&5
10859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10860cat >conftest.$ac_ext <<_ACEOF
10861/* confdefs.h. */
10862_ACEOF
10863cat confdefs.h >>conftest.$ac_ext
10864cat >>conftest.$ac_ext <<_ACEOF
10865/* end confdefs.h. */
10866$ac_includes_default
10867#include <$ac_header>
10868_ACEOF
10869rm -f conftest.$ac_objext
10870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_header_compiler=yes
10892else
10893 echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
10895
10896ac_header_compiler=no
10897fi
10898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10900echo "${ECHO_T}$ac_header_compiler" >&6
10901
10902# Is the header present?
10903echo "$as_me:$LINENO: checking $ac_header presence" >&5
10904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10905cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h. */
10911#include <$ac_header>
10912_ACEOF
10913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } >/dev/null; then
10921 if test -s conftest.err; then
10922 ac_cpp_err=$ac_c_preproc_warn_flag
10923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10924 else
10925 ac_cpp_err=
10926 fi
5ee754fc 10927else
bec39cab 10928 ac_cpp_err=yes
5ee754fc 10929fi
bec39cab
AC
10930if test -z "$ac_cpp_err"; then
10931 ac_header_preproc=yes
10932else
10933 echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10935
bec39cab 10936 ac_header_preproc=no
5ee754fc 10937fi
bec39cab
AC
10938rm -f conftest.err conftest.$ac_ext
10939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10940echo "${ECHO_T}$ac_header_preproc" >&6
10941
10942# So? What about this header?
10943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10944 yes:no: )
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10949 ac_header_preproc=yes
10950 ;;
10951 no:yes:* )
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10964 (
10965 cat <<\_ASBOX
10966## ------------------------------------------ ##
10967## Report this to the AC_PACKAGE_NAME lists. ##
10968## ------------------------------------------ ##
10969_ASBOX
10970 ) |
10971 sed "s/^/$as_me: WARNING: /" >&2
10972 ;;
10973esac
10974echo "$as_me:$LINENO: checking for $ac_header" >&5
10975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10976if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10978else
bec39cab 10979 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10980fi
bec39cab
AC
10981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10983
5ee754fc 10984fi
bec39cab
AC
10985if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986 cat >>confdefs.h <<_ACEOF
10987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10988_ACEOF
10989
5ee754fc 10990fi
bec39cab 10991
5ee754fc
MK
10992done
10993
bec39cab
AC
10994
10995for ac_header in sys/proc.h
5ee754fc 10996do
bec39cab 10997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10998echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11000if eval "test \"\${$as_ac_Header+set}\" = set"; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11002else
7cb9022a 11003 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
7cb9022a
MK
11009#if HAVE_SYS_PARAM_H
11010# include <sys/param.h>
11011#endif
11012
11013
bec39cab
AC
11014#include <$ac_header>
11015_ACEOF
11016rm -f conftest.$ac_objext
11017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11018 (eval $ac_compile) 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest.$ac_objext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
7cb9022a 11038 eval "$as_ac_Header=yes"
bec39cab
AC
11039else
11040 echo "$as_me: failed program was:" >&5
11041sed 's/^/| /' conftest.$ac_ext >&5
11042
7cb9022a 11043eval "$as_ac_Header=no"
bec39cab
AC
11044fi
11045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11046fi
bec39cab
AC
11047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11049if test `eval echo '${'$as_ac_Header'}'` = yes; then
11050 cat >>confdefs.h <<_ACEOF
11051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11052_ACEOF
11053
5ee754fc 11054fi
bec39cab 11055
5ee754fc
MK
11056done
11057
bec39cab
AC
11058
11059for ac_header in sys/procfs.h
5ee754fc 11060do
bec39cab
AC
11061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11062if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063 echo "$as_me:$LINENO: checking for $ac_header" >&5
11064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11065if eval "test \"\${$as_ac_Header+set}\" = set"; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11067fi
11068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11070else
11071 # Is the header compilable?
11072echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080$ac_includes_default
11081#include <$ac_header>
11082_ACEOF
11083rm -f conftest.$ac_objext
11084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085 (eval $ac_compile) 2>conftest.er1
11086 ac_status=$?
11087 grep -v '^ *+' conftest.er1 >conftest.err
11088 rm -f conftest.er1
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } &&
11092 { ac_try='test -z "$ac_c_werror_flag"
11093 || test ! -s conftest.err'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; } &&
11099 { ac_try='test -s conftest.$ac_objext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 ac_header_compiler=yes
11106else
11107 echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
11110ac_header_compiler=no
11111fi
11112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114echo "${ECHO_T}$ac_header_compiler" >&6
11115
11116# Is the header present?
11117echo "$as_me:$LINENO: checking $ac_header presence" >&5
11118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11119cat >conftest.$ac_ext <<_ACEOF
11120/* confdefs.h. */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
11124/* end confdefs.h. */
11125#include <$ac_header>
11126_ACEOF
11127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } >/dev/null; then
11135 if test -s conftest.err; then
11136 ac_cpp_err=$ac_c_preproc_warn_flag
11137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11138 else
11139 ac_cpp_err=
11140 fi
11141else
11142 ac_cpp_err=yes
5ee754fc 11143fi
bec39cab
AC
11144if test -z "$ac_cpp_err"; then
11145 ac_header_preproc=yes
5ee754fc 11146else
bec39cab
AC
11147 echo "$as_me: failed program was:" >&5
11148sed 's/^/| /' conftest.$ac_ext >&5
11149
11150 ac_header_preproc=no
5ee754fc 11151fi
bec39cab
AC
11152rm -f conftest.err conftest.$ac_ext
11153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11154echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11155
bec39cab
AC
11156# So? What about this header?
11157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11158 yes:no: )
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11163 ac_header_preproc=yes
11164 ;;
11165 no:yes:* )
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11178 (
11179 cat <<\_ASBOX
11180## ------------------------------------------ ##
11181## Report this to the AC_PACKAGE_NAME lists. ##
11182## ------------------------------------------ ##
11183_ASBOX
11184 ) |
11185 sed "s/^/$as_me: WARNING: /" >&2
11186 ;;
11187esac
11188echo "$as_me:$LINENO: checking for $ac_header" >&5
11189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192else
11193 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11194fi
bec39cab
AC
11195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11197
5ee754fc 11198fi
bec39cab
AC
11199if test `eval echo '${'$as_ac_Header'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11202_ACEOF
11203
5ee754fc 11204fi
bec39cab 11205
5ee754fc
MK
11206done
11207
bec39cab
AC
11208
11209
11210for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11211do
bec39cab
AC
11212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11213if eval "test \"\${$as_ac_Header+set}\" = set"; then
11214 echo "$as_me:$LINENO: checking for $ac_header" >&5
11215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11216if eval "test \"\${$as_ac_Header+set}\" = set"; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218fi
11219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11221else
11222 # Is the header compilable?
11223echo "$as_me:$LINENO: checking $ac_header usability" >&5
11224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11225cat >conftest.$ac_ext <<_ACEOF
11226/* confdefs.h. */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */
11231$ac_includes_default
11232#include <$ac_header>
11233_ACEOF
11234rm -f conftest.$ac_objext
11235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11236 (eval $ac_compile) 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag"
11244 || test ! -s conftest.err'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; } &&
11250 { ac_try='test -s conftest.$ac_objext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_header_compiler=yes
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261ac_header_compiler=no
11262fi
11263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11265echo "${ECHO_T}$ac_header_compiler" >&6
11266
11267# Is the header present?
11268echo "$as_me:$LINENO: checking $ac_header presence" >&5
11269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11270cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276#include <$ac_header>
11277_ACEOF
11278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } >/dev/null; then
11286 if test -s conftest.err; then
11287 ac_cpp_err=$ac_c_preproc_warn_flag
11288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11289 else
11290 ac_cpp_err=
11291 fi
11292else
11293 ac_cpp_err=yes
5ee754fc 11294fi
bec39cab
AC
11295if test -z "$ac_cpp_err"; then
11296 ac_header_preproc=yes
5ee754fc 11297else
bec39cab
AC
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_header_preproc=no
5ee754fc 11302fi
bec39cab
AC
11303rm -f conftest.err conftest.$ac_ext
11304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11305echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11306
bec39cab
AC
11307# So? What about this header?
11308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11309 yes:no: )
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11314 ac_header_preproc=yes
11315 ;;
11316 no:yes:* )
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11329 (
11330 cat <<\_ASBOX
11331## ------------------------------------------ ##
11332## Report this to the AC_PACKAGE_NAME lists. ##
11333## ------------------------------------------ ##
11334_ASBOX
11335 ) |
11336 sed "s/^/$as_me: WARNING: /" >&2
11337 ;;
11338esac
11339echo "$as_me:$LINENO: checking for $ac_header" >&5
11340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11341if eval "test \"\${$as_ac_Header+set}\" = set"; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343else
11344 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11345fi
bec39cab
AC
11346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11348
5ee754fc 11349fi
bec39cab
AC
11350if test `eval echo '${'$as_ac_Header'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11353_ACEOF
11354
5ee754fc 11355fi
bec39cab 11356
5ee754fc
MK
11357done
11358
bec39cab
AC
11359
11360
11361for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11362do
bec39cab
AC
11363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11364if eval "test \"\${$as_ac_Header+set}\" = set"; then
11365 echo "$as_me:$LINENO: checking for $ac_header" >&5
11366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11367if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369fi
11370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11372else
11373 # Is the header compilable?
11374echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11376cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h. */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h. */
11382$ac_includes_default
11383#include <$ac_header>
11384_ACEOF
11385rm -f conftest.$ac_objext
11386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest.$ac_objext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_header_compiler=yes
11408else
11409 echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412ac_header_compiler=no
11413fi
11414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416echo "${ECHO_T}$ac_header_compiler" >&6
11417
11418# Is the header present?
11419echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11421cat >conftest.$ac_ext <<_ACEOF
11422/* confdefs.h. */
11423_ACEOF
11424cat confdefs.h >>conftest.$ac_ext
11425cat >>conftest.$ac_ext <<_ACEOF
11426/* end confdefs.h. */
11427#include <$ac_header>
11428_ACEOF
11429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11440 else
11441 ac_cpp_err=
11442 fi
11443else
11444 ac_cpp_err=yes
5ee754fc 11445fi
bec39cab
AC
11446if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
5ee754fc 11448else
bec39cab
AC
11449 echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_header_preproc=no
5ee754fc 11453fi
bec39cab
AC
11454rm -f conftest.err conftest.$ac_ext
11455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11457
bec39cab
AC
11458# So? What about this header?
11459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11460 yes:no: )
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11466 ;;
11467 no:yes:* )
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11480 (
11481 cat <<\_ASBOX
11482## ------------------------------------------ ##
11483## Report this to the AC_PACKAGE_NAME lists. ##
11484## ------------------------------------------ ##
11485_ASBOX
11486 ) |
11487 sed "s/^/$as_me: WARNING: /" >&2
11488 ;;
11489esac
11490echo "$as_me:$LINENO: checking for $ac_header" >&5
11491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11492if eval "test \"\${$as_ac_Header+set}\" = set"; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11496fi
bec39cab
AC
11497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11499
5ee754fc 11500fi
bec39cab
AC
11501if test `eval echo '${'$as_ac_Header'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504_ACEOF
11505
5ee754fc 11506fi
bec39cab 11507
5ee754fc
MK
11508done
11509
bec39cab
AC
11510
11511for ac_header in sys/select.h
5ee754fc 11512do
bec39cab
AC
11513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11514if eval "test \"\${$as_ac_Header+set}\" = set"; then
11515 echo "$as_me:$LINENO: checking for $ac_header" >&5
11516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11517if eval "test \"\${$as_ac_Header+set}\" = set"; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519fi
11520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11522else
11523 # Is the header compilable?
11524echo "$as_me:$LINENO: checking $ac_header usability" >&5
11525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11526cat >conftest.$ac_ext <<_ACEOF
11527/* confdefs.h. */
11528_ACEOF
11529cat confdefs.h >>conftest.$ac_ext
11530cat >>conftest.$ac_ext <<_ACEOF
11531/* end confdefs.h. */
11532$ac_includes_default
11533#include <$ac_header>
11534_ACEOF
11535rm -f conftest.$ac_objext
11536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try='test -z "$ac_c_werror_flag"
11545 || test ! -s conftest.err'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_header_compiler=yes
11558else
11559 echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562ac_header_compiler=no
11563fi
11564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11566echo "${ECHO_T}$ac_header_compiler" >&6
11567
11568# Is the header present?
11569echo "$as_me:$LINENO: checking $ac_header presence" >&5
11570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11571cat >conftest.$ac_ext <<_ACEOF
11572/* confdefs.h. */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h. */
11577#include <$ac_header>
11578_ACEOF
11579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } >/dev/null; then
11587 if test -s conftest.err; then
11588 ac_cpp_err=$ac_c_preproc_warn_flag
11589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11590 else
11591 ac_cpp_err=
11592 fi
11593else
11594 ac_cpp_err=yes
5ee754fc 11595fi
bec39cab
AC
11596if test -z "$ac_cpp_err"; then
11597 ac_header_preproc=yes
5ee754fc 11598else
bec39cab
AC
11599 echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
11601
11602 ac_header_preproc=no
5ee754fc 11603fi
bec39cab
AC
11604rm -f conftest.err conftest.$ac_ext
11605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11607
bec39cab
AC
11608# So? What about this header?
11609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11610 yes:no: )
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11615 ac_header_preproc=yes
11616 ;;
11617 no:yes:* )
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11630 (
11631 cat <<\_ASBOX
11632## ------------------------------------------ ##
11633## Report this to the AC_PACKAGE_NAME lists. ##
11634## ------------------------------------------ ##
11635_ASBOX
11636 ) |
11637 sed "s/^/$as_me: WARNING: /" >&2
11638 ;;
11639esac
11640echo "$as_me:$LINENO: checking for $ac_header" >&5
11641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11642if eval "test \"\${$as_ac_Header+set}\" = set"; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11646fi
bec39cab
AC
11647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11649
5ee754fc 11650fi
bec39cab
AC
11651if test `eval echo '${'$as_ac_Header'}'` = yes; then
11652 cat >>confdefs.h <<_ACEOF
11653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11654_ACEOF
11655
5ee754fc 11656fi
bec39cab 11657
5ee754fc
MK
11658done
11659
bec39cab
AC
11660
11661for ac_header in sys/syscall.h
5ee754fc 11662do
bec39cab
AC
11663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11664if eval "test \"\${$as_ac_Header+set}\" = set"; then
11665 echo "$as_me:$LINENO: checking for $ac_header" >&5
11666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11667if eval "test \"\${$as_ac_Header+set}\" = set"; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669fi
11670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11672else
11673 # Is the header compilable?
11674echo "$as_me:$LINENO: checking $ac_header usability" >&5
11675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11676cat >conftest.$ac_ext <<_ACEOF
11677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
11682$ac_includes_default
11683#include <$ac_header>
11684_ACEOF
11685rm -f conftest.$ac_objext
11686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_header_compiler=yes
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712ac_header_compiler=no
11713fi
11714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11716echo "${ECHO_T}$ac_header_compiler" >&6
11717
11718# Is the header present?
11719echo "$as_me:$LINENO: checking $ac_header presence" >&5
11720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11721cat >conftest.$ac_ext <<_ACEOF
11722/* confdefs.h. */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h. */
11727#include <$ac_header>
11728_ACEOF
11729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev/null; then
11737 if test -s conftest.err; then
11738 ac_cpp_err=$ac_c_preproc_warn_flag
11739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11740 else
11741 ac_cpp_err=
11742 fi
11743else
11744 ac_cpp_err=yes
5ee754fc 11745fi
bec39cab
AC
11746if test -z "$ac_cpp_err"; then
11747 ac_header_preproc=yes
5ee754fc 11748else
bec39cab
AC
11749 echo "$as_me: failed program was:" >&5
11750sed 's/^/| /' conftest.$ac_ext >&5
11751
11752 ac_header_preproc=no
5ee754fc 11753fi
bec39cab
AC
11754rm -f conftest.err conftest.$ac_ext
11755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11756echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11757
bec39cab
AC
11758# So? What about this header?
11759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11760 yes:no: )
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11765 ac_header_preproc=yes
11766 ;;
11767 no:yes:* )
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11771echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11775echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11780 (
11781 cat <<\_ASBOX
11782## ------------------------------------------ ##
11783## Report this to the AC_PACKAGE_NAME lists. ##
11784## ------------------------------------------ ##
11785_ASBOX
11786 ) |
11787 sed "s/^/$as_me: WARNING: /" >&2
11788 ;;
11789esac
11790echo "$as_me:$LINENO: checking for $ac_header" >&5
11791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11792if eval "test \"\${$as_ac_Header+set}\" = set"; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794else
11795 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11796fi
bec39cab
AC
11797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11799
5ee754fc 11800fi
bec39cab
AC
11801if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11804_ACEOF
11805
5ee754fc 11806fi
bec39cab 11807
5ee754fc
MK
11808done
11809
bec39cab
AC
11810
11811for ac_header in sys/types.h
5ee754fc 11812do
bec39cab
AC
11813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815 echo "$as_me:$LINENO: checking for $ac_header" >&5
11816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11817if eval "test \"\${$as_ac_Header+set}\" = set"; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819fi
11820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11822else
11823 # Is the header compilable?
11824echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11826cat >conftest.$ac_ext <<_ACEOF
11827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
11832$ac_includes_default
11833#include <$ac_header>
11834_ACEOF
11835rm -f conftest.$ac_objext
11836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837 (eval $ac_compile) 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -z "$ac_c_werror_flag"
11845 || test ! -s conftest.err'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest.$ac_objext'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_header_compiler=yes
11858else
11859 echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
11862ac_header_compiler=no
11863fi
11864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11866echo "${ECHO_T}$ac_header_compiler" >&6
11867
11868# Is the header present?
11869echo "$as_me:$LINENO: checking $ac_header presence" >&5
11870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11871cat >conftest.$ac_ext <<_ACEOF
11872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
11877#include <$ac_header>
11878_ACEOF
11879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } >/dev/null; then
11887 if test -s conftest.err; then
11888 ac_cpp_err=$ac_c_preproc_warn_flag
11889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11890 else
11891 ac_cpp_err=
11892 fi
11893else
11894 ac_cpp_err=yes
5ee754fc 11895fi
bec39cab
AC
11896if test -z "$ac_cpp_err"; then
11897 ac_header_preproc=yes
5ee754fc 11898else
bec39cab
AC
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_header_preproc=no
5ee754fc 11903fi
bec39cab
AC
11904rm -f conftest.err conftest.$ac_ext
11905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11907
bec39cab
AC
11908# So? What about this header?
11909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910 yes:no: )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc=yes
11916 ;;
11917 no:yes:* )
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930 (
11931 cat <<\_ASBOX
11932## ------------------------------------------ ##
11933## Report this to the AC_PACKAGE_NAME lists. ##
11934## ------------------------------------------ ##
11935_ASBOX
11936 ) |
11937 sed "s/^/$as_me: WARNING: /" >&2
11938 ;;
11939esac
11940echo "$as_me:$LINENO: checking for $ac_header" >&5
11941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11942if eval "test \"\${$as_ac_Header+set}\" = set"; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11946fi
bec39cab
AC
11947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11949
5ee754fc 11950fi
bec39cab
AC
11951if test `eval echo '${'$as_ac_Header'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11954_ACEOF
11955
5ee754fc 11956fi
bec39cab 11957
5ee754fc
MK
11958done
11959
bec39cab
AC
11960
11961for ac_header in sys/user.h
5ee754fc 11962do
bec39cab 11963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11964echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11966if eval "test \"\${$as_ac_Header+set}\" = set"; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11968else
7cb9022a 11969 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
7cb9022a
MK
11975#if HAVE_SYS_PARAM_H
11976# include <sys/param.h>
11977#endif
11978
11979
bec39cab
AC
11980#include <$ac_header>
11981_ACEOF
11982rm -f conftest.$ac_objext
11983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
7cb9022a 12004 eval "$as_ac_Header=yes"
bec39cab
AC
12005else
12006 echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
7cb9022a 12009eval "$as_ac_Header=no"
bec39cab
AC
12010fi
12011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 12012fi
bec39cab
AC
12013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12015if test `eval echo '${'$as_ac_Header'}'` = yes; then
12016 cat >>confdefs.h <<_ACEOF
12017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12018_ACEOF
12019
5ee754fc 12020fi
bec39cab 12021
5ee754fc
MK
12022done
12023
bec39cab
AC
12024
12025
12026for ac_header in sys/wait.h wait.h
5ee754fc 12027do
bec39cab
AC
12028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030 echo "$as_me:$LINENO: checking for $ac_header" >&5
12031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12032if eval "test \"\${$as_ac_Header+set}\" = set"; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034fi
12035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12037else
12038 # Is the header compilable?
12039echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12041cat >conftest.$ac_ext <<_ACEOF
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047$ac_includes_default
12048#include <$ac_header>
12049_ACEOF
12050rm -f conftest.$ac_objext
12051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052 (eval $ac_compile) 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try='test -z "$ac_c_werror_flag"
12060 || test ! -s conftest.err'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_header_compiler=yes
12073else
12074 echo "$as_me: failed program was:" >&5
12075sed 's/^/| /' conftest.$ac_ext >&5
12076
12077ac_header_compiler=no
12078fi
12079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12080echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12081echo "${ECHO_T}$ac_header_compiler" >&6
12082
12083# Is the header present?
12084echo "$as_me:$LINENO: checking $ac_header presence" >&5
12085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12086cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092#include <$ac_header>
12093_ACEOF
12094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } >/dev/null; then
12102 if test -s conftest.err; then
12103 ac_cpp_err=$ac_c_preproc_warn_flag
12104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12105 else
12106 ac_cpp_err=
12107 fi
12108else
12109 ac_cpp_err=yes
5ee754fc 12110fi
bec39cab
AC
12111if test -z "$ac_cpp_err"; then
12112 ac_header_preproc=yes
5ee754fc 12113else
bec39cab
AC
12114 echo "$as_me: failed program was:" >&5
12115sed 's/^/| /' conftest.$ac_ext >&5
12116
12117 ac_header_preproc=no
5ee754fc 12118fi
bec39cab
AC
12119rm -f conftest.err conftest.$ac_ext
12120echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12121echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 12122
bec39cab
AC
12123# So? What about this header?
12124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12125 yes:no: )
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12130 ac_header_preproc=yes
12131 ;;
12132 no:yes:* )
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12145 (
12146 cat <<\_ASBOX
12147## ------------------------------------------ ##
12148## Report this to the AC_PACKAGE_NAME lists. ##
12149## ------------------------------------------ ##
12150_ASBOX
12151 ) |
12152 sed "s/^/$as_me: WARNING: /" >&2
12153 ;;
12154esac
12155echo "$as_me:$LINENO: checking for $ac_header" >&5
12156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12157if eval "test \"\${$as_ac_Header+set}\" = set"; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12161fi
bec39cab
AC
12162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12164
9608ab8b 12165fi
bec39cab
AC
12166if test `eval echo '${'$as_ac_Header'}'` = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12169_ACEOF
12170
9608ab8b 12171fi
bec39cab 12172
9608ab8b 12173done
5ee754fc 12174
bec39cab
AC
12175
12176
12177
12178for ac_header in termios.h termio.h sgtty.h
5ee754fc 12179do
bec39cab
AC
12180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12181if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo "$as_me:$LINENO: checking for $ac_header" >&5
12183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12184if eval "test \"\${$as_ac_Header+set}\" = set"; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186fi
12187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12189else
12190 # Is the header compilable?
12191echo "$as_me:$LINENO: checking $ac_header usability" >&5
12192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12193cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199$ac_includes_default
12200#include <$ac_header>
12201_ACEOF
12202rm -f conftest.$ac_objext
12203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_header_compiler=yes
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229ac_header_compiler=no
12230fi
12231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12233echo "${ECHO_T}$ac_header_compiler" >&6
12234
12235# Is the header present?
12236echo "$as_me:$LINENO: checking $ac_header presence" >&5
12237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12238cat >conftest.$ac_ext <<_ACEOF
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244#include <$ac_header>
12245_ACEOF
12246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } >/dev/null; then
12254 if test -s conftest.err; then
12255 ac_cpp_err=$ac_c_preproc_warn_flag
12256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12257 else
12258 ac_cpp_err=
12259 fi
12260else
12261 ac_cpp_err=yes
9608ab8b 12262fi
bec39cab
AC
12263if test -z "$ac_cpp_err"; then
12264 ac_header_preproc=yes
9608ab8b 12265else
bec39cab
AC
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_header_preproc=no
9608ab8b 12270fi
bec39cab
AC
12271rm -f conftest.err conftest.$ac_ext
12272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12273echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12274
bec39cab
AC
12275# So? What about this header?
12276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12277 yes:no: )
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12281echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12282 ac_header_preproc=yes
12283 ;;
12284 no:yes:* )
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12286echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12288echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12290echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12292echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12294echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12296echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12297 (
12298 cat <<\_ASBOX
12299## ------------------------------------------ ##
12300## Report this to the AC_PACKAGE_NAME lists. ##
12301## ------------------------------------------ ##
12302_ASBOX
12303 ) |
12304 sed "s/^/$as_me: WARNING: /" >&2
12305 ;;
12306esac
12307echo "$as_me:$LINENO: checking for $ac_header" >&5
12308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12309if eval "test \"\${$as_ac_Header+set}\" = set"; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311else
12312 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12313fi
bec39cab
AC
12314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12316
9608ab8b 12317fi
bec39cab
AC
12318if test `eval echo '${'$as_ac_Header'}'` = yes; then
12319 cat >>confdefs.h <<_ACEOF
12320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12321_ACEOF
12322
9608ab8b 12323fi
bec39cab 12324
5ee754fc 12325done
9608ab8b 12326
bec39cab
AC
12327
12328for ac_header in unistd.h
78434e59 12329do
bec39cab
AC
12330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12331if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo "$as_me:$LINENO: checking for $ac_header" >&5
12333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334if eval "test \"\${$as_ac_Header+set}\" = set"; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336fi
12337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12339else
12340 # Is the header compilable?
12341echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349$ac_includes_default
12350#include <$ac_header>
12351_ACEOF
12352rm -f conftest.$ac_objext
12353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379ac_header_compiler=no
12380fi
12381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383echo "${ECHO_T}$ac_header_compiler" >&6
12384
12385# Is the header present?
12386echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12388cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
12394#include <$ac_header>
12395_ACEOF
12396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12407 else
12408 ac_cpp_err=
12409 fi
12410else
12411 ac_cpp_err=yes
78434e59 12412fi
bec39cab
AC
12413if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
78434e59 12415else
bec39cab
AC
12416 echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_header_preproc=no
78434e59 12420fi
bec39cab
AC
12421rm -f conftest.err conftest.$ac_ext
12422echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12424
bec39cab
AC
12425# So? What about this header?
12426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 yes:no: )
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
12433 ;;
12434 no:yes:* )
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12447 (
12448 cat <<\_ASBOX
12449## ------------------------------------------ ##
12450## Report this to the AC_PACKAGE_NAME lists. ##
12451## ------------------------------------------ ##
12452_ASBOX
12453 ) |
12454 sed "s/^/$as_me: WARNING: /" >&2
12455 ;;
12456esac
12457echo "$as_me:$LINENO: checking for $ac_header" >&5
12458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12459if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
12462 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12463fi
bec39cab
AC
12464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12466
086ec9eb 12467fi
bec39cab
AC
12468if test `eval echo '${'$as_ac_Header'}'` = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12471_ACEOF
12472
086ec9eb 12473fi
bec39cab 12474
086ec9eb
MK
12475done
12476
9608ab8b 12477
b1d19a62 12478# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12479# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12480# think that we don't have <curses.h> if we're using GCC.
12481case $host_os in
b1d19a62 12482 solaris2.[789])
5ee754fc 12483 if test "$GCC" = yes; then
bec39cab
AC
12484
12485cat >>confdefs.h <<\_ACEOF
5ee754fc 12486#define _MSE_INT_H 1
bec39cab 12487_ACEOF
5ee754fc
MK
12488
12489 fi ;;
12490esac
bec39cab
AC
12491
12492
12493
12494
12495for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12496do
bec39cab
AC
12497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12498if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo "$as_me:$LINENO: checking for $ac_header" >&5
12500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12501if eval "test \"\${$as_ac_Header+set}\" = set"; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503fi
12504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12506else
12507 # Is the header compilable?
12508echo "$as_me:$LINENO: checking $ac_header usability" >&5
12509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12510cat >conftest.$ac_ext <<_ACEOF
12511/* confdefs.h. */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
12515/* end confdefs.h. */
12516$ac_includes_default
12517#include <$ac_header>
12518_ACEOF
12519rm -f conftest.$ac_objext
12520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_header_compiler=yes
12542else
12543 echo "$as_me: failed program was:" >&5
12544sed 's/^/| /' conftest.$ac_ext >&5
12545
12546ac_header_compiler=no
12547fi
12548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12550echo "${ECHO_T}$ac_header_compiler" >&6
12551
12552# Is the header present?
12553echo "$as_me:$LINENO: checking $ac_header presence" >&5
12554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12555cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
12561#include <$ac_header>
12562_ACEOF
12563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } >/dev/null; then
12571 if test -s conftest.err; then
12572 ac_cpp_err=$ac_c_preproc_warn_flag
12573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12574 else
12575 ac_cpp_err=
12576 fi
12577else
12578 ac_cpp_err=yes
c906108c 12579fi
bec39cab
AC
12580if test -z "$ac_cpp_err"; then
12581 ac_header_preproc=yes
12582else
12583 echo "$as_me: failed program was:" >&5
12584sed 's/^/| /' conftest.$ac_ext >&5
12585
12586 ac_header_preproc=no
c906108c 12587fi
bec39cab
AC
12588rm -f conftest.err conftest.$ac_ext
12589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12590echo "${ECHO_T}$ac_header_preproc" >&6
12591
12592# So? What about this header?
12593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12594 yes:no: )
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12599 ac_header_preproc=yes
12600 ;;
12601 no:yes:* )
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12614 (
12615 cat <<\_ASBOX
12616## ------------------------------------------ ##
12617## Report this to the AC_PACKAGE_NAME lists. ##
12618## ------------------------------------------ ##
12619_ASBOX
12620 ) |
12621 sed "s/^/$as_me: WARNING: /" >&2
12622 ;;
12623esac
12624echo "$as_me:$LINENO: checking for $ac_header" >&5
12625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12626if eval "test \"\${$as_ac_Header+set}\" = set"; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12628else
bec39cab 12629 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12630fi
bec39cab
AC
12631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12633
12634fi
12635if test `eval echo '${'$as_ac_Header'}'` = yes; then
12636 cat >>confdefs.h <<_ACEOF
12637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12638_ACEOF
12639
12640fi
12641
5ee754fc 12642done
c906108c 12643
bec39cab 12644
065a1afc 12645for ac_header in ncurses/term.h
3b78cdbb 12646do
bec39cab
AC
12647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12648if eval "test \"\${$as_ac_Header+set}\" = set"; then
12649 echo "$as_me:$LINENO: checking for $ac_header" >&5
12650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12651if eval "test \"\${$as_ac_Header+set}\" = set"; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653fi
12654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12656else
12657 # Is the header compilable?
12658echo "$as_me:$LINENO: checking $ac_header usability" >&5
12659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12660cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
12666$ac_includes_default
12667#include <$ac_header>
12668_ACEOF
12669rm -f conftest.$ac_objext
12670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_header_compiler=yes
12692else
12693 echo "$as_me: failed program was:" >&5
12694sed 's/^/| /' conftest.$ac_ext >&5
12695
12696ac_header_compiler=no
12697fi
12698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700echo "${ECHO_T}$ac_header_compiler" >&6
12701
12702# Is the header present?
12703echo "$as_me:$LINENO: checking $ac_header presence" >&5
12704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12705cat >conftest.$ac_ext <<_ACEOF
12706/* confdefs.h. */
12707_ACEOF
12708cat confdefs.h >>conftest.$ac_ext
12709cat >>conftest.$ac_ext <<_ACEOF
12710/* end confdefs.h. */
12711#include <$ac_header>
12712_ACEOF
12713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } >/dev/null; then
12721 if test -s conftest.err; then
12722 ac_cpp_err=$ac_c_preproc_warn_flag
12723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12724 else
12725 ac_cpp_err=
12726 fi
12727else
12728 ac_cpp_err=yes
3b78cdbb 12729fi
bec39cab
AC
12730if test -z "$ac_cpp_err"; then
12731 ac_header_preproc=yes
12732else
12733 echo "$as_me: failed program was:" >&5
12734sed 's/^/| /' conftest.$ac_ext >&5
12735
12736 ac_header_preproc=no
3b78cdbb 12737fi
bec39cab
AC
12738rm -f conftest.err conftest.$ac_ext
12739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12740echo "${ECHO_T}$ac_header_preproc" >&6
12741
12742# So? What about this header?
12743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12744 yes:no: )
12745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12749 ac_header_preproc=yes
12750 ;;
12751 no:yes:* )
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12755echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12759echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12764 (
12765 cat <<\_ASBOX
12766## ------------------------------------------ ##
12767## Report this to the AC_PACKAGE_NAME lists. ##
12768## ------------------------------------------ ##
12769_ASBOX
12770 ) |
12771 sed "s/^/$as_me: WARNING: /" >&2
12772 ;;
12773esac
12774echo "$as_me:$LINENO: checking for $ac_header" >&5
12775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12776if eval "test \"\${$as_ac_Header+set}\" = set"; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12778else
bec39cab
AC
12779 eval "$as_ac_Header=\$ac_header_preproc"
12780fi
12781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12783
3b78cdbb 12784fi
bec39cab
AC
12785if test `eval echo '${'$as_ac_Header'}'` = yes; then
12786 cat >>confdefs.h <<_ACEOF
12787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12788_ACEOF
12789
12790fi
12791
3b78cdbb
DA
12792done
12793
c906108c 12794
065a1afc
JB
12795for ac_header in term.h
12796do
12797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12798echo "$as_me:$LINENO: checking for $ac_header" >&5
12799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12800if eval "test \"\${$as_ac_Header+set}\" = set"; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802else
12803 cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
12808/* end confdefs.h. */
12809#if HAVE_CURSES_H
12810# include <curses.h>
12811#endif
12812
12813
12814#include <$ac_header>
12815_ACEOF
12816rm -f conftest.$ac_objext
12817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>conftest.er1
12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -z "$ac_c_werror_flag"
12826 || test ! -s conftest.err'
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); }; } &&
12832 { ac_try='test -s conftest.$ac_objext'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 eval "$as_ac_Header=yes"
12839else
12840 echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843eval "$as_ac_Header=no"
12844fi
12845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12846fi
12847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12849if test `eval echo '${'$as_ac_Header'}'` = yes; then
12850 cat >>confdefs.h <<_ACEOF
12851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12852_ACEOF
12853
12854fi
12855
12856done
12857
12858
5ee754fc
MK
12859# FIXME: kettenis/20030102: In most cases we include these
12860# unconditionally, so what's the point in checking these?
bec39cab
AC
12861
12862
12863for ac_header in ctype.h time.h
c906108c 12864do
bec39cab
AC
12865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12866if eval "test \"\${$as_ac_Header+set}\" = set"; then
12867 echo "$as_me:$LINENO: checking for $ac_header" >&5
12868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12869if eval "test \"\${$as_ac_Header+set}\" = set"; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871fi
12872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12874else
12875 # Is the header compilable?
12876echo "$as_me:$LINENO: checking $ac_header usability" >&5
12877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12878cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
12884$ac_includes_default
12885#include <$ac_header>
12886_ACEOF
12887rm -f conftest.$ac_objext
12888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag"
12897 || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_header_compiler=yes
12910else
12911 echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
12914ac_header_compiler=no
12915fi
12916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12918echo "${ECHO_T}$ac_header_compiler" >&6
12919
12920# Is the header present?
12921echo "$as_me:$LINENO: checking $ac_header presence" >&5
12922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12923cat >conftest.$ac_ext <<_ACEOF
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
12928/* end confdefs.h. */
12929#include <$ac_header>
12930_ACEOF
12931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_c_preproc_warn_flag
12941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12942 else
12943 ac_cpp_err=
12944 fi
12945else
12946 ac_cpp_err=yes
c906108c 12947fi
bec39cab
AC
12948if test -z "$ac_cpp_err"; then
12949 ac_header_preproc=yes
12950else
12951 echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 ac_header_preproc=no
c906108c 12955fi
bec39cab
AC
12956rm -f conftest.err conftest.$ac_ext
12957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12958echo "${ECHO_T}$ac_header_preproc" >&6
12959
12960# So? What about this header?
12961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12962 yes:no: )
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12967 ac_header_preproc=yes
12968 ;;
12969 no:yes:* )
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12977echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12982 (
12983 cat <<\_ASBOX
12984## ------------------------------------------ ##
12985## Report this to the AC_PACKAGE_NAME lists. ##
12986## ------------------------------------------ ##
12987_ASBOX
12988 ) |
12989 sed "s/^/$as_me: WARNING: /" >&2
12990 ;;
12991esac
12992echo "$as_me:$LINENO: checking for $ac_header" >&5
12993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12994if eval "test \"\${$as_ac_Header+set}\" = set"; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12996else
bec39cab
AC
12997 eval "$as_ac_Header=\$ac_header_preproc"
12998fi
12999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13001
13002fi
13003if test `eval echo '${'$as_ac_Header'}'` = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13006_ACEOF
13007
c906108c 13008fi
bec39cab 13009
c906108c
SS
13010done
13011
5ee754fc 13012
666ec76f
MK
13013# ------------------------- #
13014# Checks for declarations. #
13015# ------------------------- #
13016
13017for ac_func in getopt
13018do
13019 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13020echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13021echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13022if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
bec39cab 13023 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 13024else
bec39cab
AC
13025 cat >conftest.$ac_ext <<_ACEOF
13026/* confdefs.h. */
13027_ACEOF
13028cat confdefs.h >>conftest.$ac_ext
13029cat >>conftest.$ac_ext <<_ACEOF
13030/* end confdefs.h. */
666ec76f
MK
13031#undef $ac_tr_decl
13032#define $ac_tr_decl 1
13033
13034
bec39cab
AC
13035int
13036main ()
13037{
666ec76f
MK
13038#ifndef $ac_func
13039char *(*pfn) = (char *(*)) $ac_func ;
13040#endif
bec39cab
AC
13041 ;
13042 return 0;
13043}
13044_ACEOF
13045rm -f conftest.$ac_objext
13046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13047 (eval $ac_compile) 2>conftest.er1
13048 ac_status=$?
13049 grep -v '^ *+' conftest.er1 >conftest.err
13050 rm -f conftest.er1
13051 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } &&
13054 { ac_try='test -z "$ac_c_werror_flag"
13055 || test ! -s conftest.err'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; } &&
13061 { ac_try='test -s conftest.$ac_objext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
666ec76f 13067 eval "gcc_cv_have_decl_$ac_func=yes"
40a7debc 13068else
bec39cab
AC
13069 echo "$as_me: failed program was:" >&5
13070sed 's/^/| /' conftest.$ac_ext >&5
13071
666ec76f 13072eval "gcc_cv_have_decl_$ac_func=no"
40a7debc 13073fi
bec39cab 13074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc
EZ
13075fi
13076
666ec76f
MK
13077if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13078 echo "$as_me:$LINENO: result: yes" >&5
13079echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
13080#define $ac_tr_decl 1
13081_ACEOF
13082
13083else
13084 echo "$as_me:$LINENO: result: no" >&5
13085echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
13086#define $ac_tr_decl 0
bec39cab 13087_ACEOF
40a7debc
EZ
13088
13089fi
086ec9eb 13090
666ec76f
MK
13091done
13092if test x = y ; then
b9362cc7 13093
666ec76f
MK
13094cat >>confdefs.h <<\_ACEOF
13095#define HAVE_DECL_GETOPT 1
13096_ACEOF
13097fi
13098
13099
13100# ----------------------- #
13101# Checks for structures. #
13102# ----------------------- #
13103
13104echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13105echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13106if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
bec39cab
AC
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108else
13109 cat >conftest.$ac_ext <<_ACEOF
13110/* confdefs.h. */
13111_ACEOF
13112cat confdefs.h >>conftest.$ac_ext
13113cat >>conftest.$ac_ext <<_ACEOF
13114/* end confdefs.h. */
666ec76f
MK
13115$ac_includes_default
13116int
13117main ()
13118{
13119static struct stat ac_aggr;
13120if (ac_aggr.st_blocks)
13121return 0;
13122 ;
13123 return 0;
13124}
13125_ACEOF
13126rm -f conftest.$ac_objext
13127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13128 (eval $ac_compile) 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -z "$ac_c_werror_flag"
13136 || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest.$ac_objext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_member_struct_stat_st_blocks=yes
13149else
13150 echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 13152
666ec76f
MK
13153cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
13159$ac_includes_default
bec39cab
AC
13160int
13161main ()
13162{
666ec76f
MK
13163static struct stat ac_aggr;
13164if (sizeof ac_aggr.st_blocks)
13165return 0;
bec39cab
AC
13166 ;
13167 return 0;
13168}
13169_ACEOF
13170rm -f conftest.$ac_objext
13171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest.$ac_objext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
666ec76f 13192 ac_cv_member_struct_stat_st_blocks=yes
b9362cc7 13193else
bec39cab
AC
13194 echo "$as_me: failed program was:" >&5
13195sed 's/^/| /' conftest.$ac_ext >&5
13196
666ec76f 13197ac_cv_member_struct_stat_st_blocks=no
b9362cc7 13198fi
bec39cab 13199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13200fi
666ec76f
MK
13201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13202fi
13203echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13204echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13205if test $ac_cv_member_struct_stat_st_blocks = yes; then
b9362cc7 13206
666ec76f
MK
13207cat >>confdefs.h <<_ACEOF
13208#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab
AC
13209_ACEOF
13210
bec39cab 13211
b9362cc7
AC
13212fi
13213
13214
5ee754fc
MK
13215# ------------------ #
13216# Checks for types. #
13217# ------------------ #
13218
bec39cab
AC
13219echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13220echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13221if test "${ac_cv_type_signal+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223else
13224 cat >conftest.$ac_ext <<_ACEOF
13225/* confdefs.h. */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h. */
c906108c 13230#include <sys/types.h>
5ee754fc
MK
13231#include <signal.h>
13232#ifdef signal
bec39cab 13233# undef signal
c906108c 13234#endif
5ee754fc
MK
13235#ifdef __cplusplus
13236extern "C" void (*signal (int, void (*)(int)))(int);
13237#else
13238void (*signal ()) ();
c906108c
SS
13239#endif
13240
bec39cab
AC
13241int
13242main ()
13243{
5ee754fc 13244int i;
bec39cab
AC
13245 ;
13246 return 0;
13247}
13248_ACEOF
13249rm -f conftest.$ac_objext
13250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13251 (eval $ac_compile) 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_c_werror_flag"
13259 || test ! -s conftest.err'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
5ee754fc 13271 ac_cv_type_signal=void
c906108c 13272else
bec39cab
AC
13273 echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276ac_cv_type_signal=int
c906108c 13277fi
bec39cab 13278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13279fi
bec39cab
AC
13280echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13281echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 13282
bec39cab 13283cat >>confdefs.h <<_ACEOF
5ee754fc 13284#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13285_ACEOF
c906108c 13286
c906108c
SS
13287
13288
5ee754fc
MK
13289# ------------------------------------- #
13290# Checks for compiler characteristics. #
13291# ------------------------------------- #
13292
bec39cab
AC
13293echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13294echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13295if test "${ac_cv_c_const+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297else
13298 cat >conftest.$ac_ext <<_ACEOF
13299/* confdefs.h. */
13300_ACEOF
13301cat confdefs.h >>conftest.$ac_ext
13302cat >>conftest.$ac_ext <<_ACEOF
13303/* end confdefs.h. */
13304
13305int
13306main ()
13307{
13308/* FIXME: Include the comments suggested by Paul. */
13309#ifndef __cplusplus
13310 /* Ultrix mips cc rejects this. */
13311 typedef int charset[2];
13312 const charset x;
13313 /* SunOS 4.1.1 cc rejects this. */
13314 char const *const *ccp;
13315 char **p;
13316 /* NEC SVR4.0.2 mips cc rejects this. */
13317 struct point {int x, y;};
13318 static struct point const zero = {0,0};
13319 /* AIX XL C 1.02.0.0 rejects this.
13320 It does not let you subtract one const X* pointer from another in
13321 an arm of an if-expression whose if-part is not a constant
13322 expression */
13323 const char *g = "string";
13324 ccp = &g + (g ? g-g : 0);
13325 /* HPUX 7.0 cc rejects these. */
13326 ++ccp;
13327 p = (char**) ccp;
13328 ccp = (char const *const *) p;
13329 { /* SCO 3.2v4 cc rejects this. */
13330 char *t;
13331 char const *s = 0 ? (char *) 0 : (char const *) 0;
13332
13333 *t++ = 0;
13334 }
13335 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13336 int x[] = {25, 17};
13337 const int *foo = &x[0];
13338 ++foo;
13339 }
13340 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13341 typedef const int *iptr;
13342 iptr p = 0;
13343 ++p;
13344 }
13345 { /* AIX XL C 1.02.0.0 rejects this saying
13346 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13347 struct s { int j; const int *ap[3]; };
13348 struct s *b; b->j = 5;
13349 }
13350 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13351 const int foo = 10;
13352 }
13353#endif
13354
13355 ;
13356 return 0;
13357}
13358_ACEOF
13359rm -f conftest.$ac_objext
13360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361 (eval $ac_compile) 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_c_werror_flag"
13369 || test ! -s conftest.err'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
c906108c
SS
13381 ac_cv_c_const=yes
13382else
bec39cab
AC
13383 echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
13386ac_cv_c_const=no
c906108c 13387fi
bec39cab 13388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13389fi
bec39cab
AC
13390echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13391echo "${ECHO_T}$ac_cv_c_const" >&6
c906108c 13392if test $ac_cv_c_const = no; then
bec39cab
AC
13393
13394cat >>confdefs.h <<\_ACEOF
13395#define const
13396_ACEOF
c906108c
SS
13397
13398fi
13399
bec39cab
AC
13400echo "$as_me:$LINENO: checking for inline" >&5
13401echo $ECHO_N "checking for inline... $ECHO_C" >&6
13402if test "${ac_cv_c_inline+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09
JB
13404else
13405 ac_cv_c_inline=no
13406for ac_kw in inline __inline__ __inline; do
bec39cab
AC
13407 cat >conftest.$ac_ext <<_ACEOF
13408/* confdefs.h. */
13409_ACEOF
13410cat confdefs.h >>conftest.$ac_ext
13411cat >>conftest.$ac_ext <<_ACEOF
13412/* end confdefs.h. */
13413#ifndef __cplusplus
13414typedef int foo_t;
13415static $ac_kw foo_t static_foo () {return 0; }
13416$ac_kw foo_t foo () {return 0; }
13417#endif
13418
13419_ACEOF
13420rm -f conftest.$ac_objext
13421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -z "$ac_c_werror_flag"
13430 || test ! -s conftest.err'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
bce58c09
JB
13442 ac_cv_c_inline=$ac_kw; break
13443else
bec39cab
AC
13444 echo "$as_me: failed program was:" >&5
13445sed 's/^/| /' conftest.$ac_ext >&5
13446
bce58c09 13447fi
bec39cab 13448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09
JB
13449done
13450
13451fi
bec39cab
AC
13452echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13453echo "${ECHO_T}$ac_cv_c_inline" >&6
13454
bce58c09 13455
bec39cab 13456case $ac_cv_c_inline in
bce58c09 13457 inline | yes) ;;
bec39cab
AC
13458 *)
13459 case $ac_cv_c_inline in
13460 no) ac_val=;;
13461 *) ac_val=$ac_cv_c_inline;;
13462 esac
13463 cat >>confdefs.h <<_ACEOF
13464#ifndef __cplusplus
13465#define inline $ac_val
13466#endif
13467_ACEOF
13468 ;;
bce58c09
JB
13469esac
13470
c906108c 13471
5ee754fc
MK
13472# ------------------------------ #
13473# Checks for library functions. #
13474# ------------------------------ #
13475
46711df8
MK
13476# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13477# for constant arguments. Useless!
bec39cab
AC
13478echo "$as_me:$LINENO: checking for working alloca.h" >&5
13479echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13480if test "${ac_cv_working_alloca_h+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
13483 cat >conftest.$ac_ext <<_ACEOF
13484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
46711df8 13489#include <alloca.h>
bec39cab
AC
13490int
13491main ()
13492{
13493char *p = (char *) alloca (2 * sizeof (int));
13494 ;
13495 return 0;
13496}
13497_ACEOF
13498rm -f conftest.$ac_objext conftest$ac_exeext
13499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13500 (eval $ac_link) 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag"
13508 || test ! -s conftest.err'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest$ac_exeext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_cv_working_alloca_h=yes
13521else
13522 echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525ac_cv_working_alloca_h=no
13526fi
13527rm -f conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529fi
13530echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13531echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13532if test $ac_cv_working_alloca_h = yes; then
13533
13534cat >>confdefs.h <<\_ACEOF
46711df8 13535#define HAVE_ALLOCA_H 1
bec39cab 13536_ACEOF
46711df8
MK
13537
13538fi
13539
bec39cab
AC
13540echo "$as_me:$LINENO: checking for alloca" >&5
13541echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13542if test "${ac_cv_func_alloca_works+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13544else
bec39cab
AC
13545 cat >conftest.$ac_ext <<_ACEOF
13546/* confdefs.h. */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h. */
46711df8
MK
13551#ifdef __GNUC__
13552# define alloca __builtin_alloca
13553#else
13554# ifdef _MSC_VER
13555# include <malloc.h>
13556# define alloca _alloca
13557# else
13558# if HAVE_ALLOCA_H
13559# include <alloca.h>
13560# else
13561# ifdef _AIX
13562 #pragma alloca
13563# else
13564# ifndef alloca /* predefined by HP cc +Olibcalls */
13565char *alloca ();
13566# endif
13567# endif
13568# endif
13569# endif
13570#endif
13571
bec39cab
AC
13572int
13573main ()
13574{
13575char *p = (char *) alloca (1);
13576 ;
13577 return 0;
13578}
13579_ACEOF
13580rm -f conftest.$ac_objext conftest$ac_exeext
13581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13582 (eval $ac_link) 2>conftest.er1
13583 ac_status=$?
13584 grep -v '^ *+' conftest.er1 >conftest.err
13585 rm -f conftest.er1
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -z "$ac_c_werror_flag"
13590 || test ! -s conftest.err'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; } &&
13596 { ac_try='test -s conftest$ac_exeext'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }; then
46711df8
MK
13602 ac_cv_func_alloca_works=yes
13603else
bec39cab
AC
13604 echo "$as_me: failed program was:" >&5
13605sed 's/^/| /' conftest.$ac_ext >&5
13606
13607ac_cv_func_alloca_works=no
46711df8 13608fi
bec39cab
AC
13609rm -f conftest.err conftest.$ac_objext \
13610 conftest$ac_exeext conftest.$ac_ext
46711df8 13611fi
bec39cab
AC
13612echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13613echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
46711df8 13614
46711df8 13615if test $ac_cv_func_alloca_works = yes; then
46711df8 13616
bec39cab
AC
13617cat >>confdefs.h <<\_ACEOF
13618#define HAVE_ALLOCA 1
13619_ACEOF
46711df8 13620
bec39cab 13621else
46711df8 13622 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
bec39cab
AC
13623# that cause trouble. Some versions do not even contain alloca or
13624# contain a buggy version. If you still want to use their alloca,
13625# use ar to extract alloca.o from them instead of compiling alloca.c.
13626
13627ALLOCA=alloca.$ac_objext
13628
13629cat >>confdefs.h <<\_ACEOF
46711df8 13630#define C_ALLOCA 1
bec39cab 13631_ACEOF
46711df8
MK
13632
13633
bec39cab
AC
13634echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13635echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13636if test "${ac_cv_os_cray+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13638else
bec39cab
AC
13639 cat >conftest.$ac_ext <<_ACEOF
13640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h. */
46711df8
MK
13645#if defined(CRAY) && ! defined(CRAY2)
13646webecray
13647#else
13648wenotbecray
13649#endif
13650
bec39cab 13651_ACEOF
46711df8 13652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 13653 $EGREP "webecray" >/dev/null 2>&1; then
46711df8
MK
13654 ac_cv_os_cray=yes
13655else
46711df8
MK
13656 ac_cv_os_cray=no
13657fi
13658rm -f conftest*
13659
13660fi
bec39cab
AC
13661echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13662echo "${ECHO_T}$ac_cv_os_cray" >&6
46711df8 13663if test $ac_cv_os_cray = yes; then
bec39cab
AC
13664 for ac_func in _getb67 GETB67 getb67; do
13665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13666echo "$as_me:$LINENO: checking for $ac_func" >&5
13667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13668if eval "test \"\${$as_ac_var+set}\" = set"; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671 cat >conftest.$ac_ext <<_ACEOF
13672/* confdefs.h. */
13673_ACEOF
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */
13677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13679#define $ac_func innocuous_$ac_func
13680
46711df8 13681/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
13682 which can conflict with char $ac_func (); below.
13683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13684 <limits.h> exists even on freestanding compilers. */
13685
13686#ifdef __STDC__
13687# include <limits.h>
13688#else
13689# include <assert.h>
13690#endif
46711df8 13691
bec39cab 13692#undef $ac_func
46711df8 13693
bec39cab
AC
13694/* Override any gcc2 internal prototype to avoid an error. */
13695#ifdef __cplusplus
13696extern "C"
13697{
13698#endif
13699/* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701char $ac_func ();
46711df8
MK
13702/* The GNU C library defines this for functions which it implements
13703 to always fail with ENOSYS. Some functions are actually named
13704 something starting with __ and the normal name is an alias. */
13705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706choke me
13707#else
bec39cab
AC
13708char (*f) () = $ac_func;
13709#endif
13710#ifdef __cplusplus
13711}
46711df8
MK
13712#endif
13713
bec39cab
AC
13714int
13715main ()
13716{
13717return f != $ac_func;
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext conftest$ac_exeext
13723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13724 (eval $ac_link) 2>conftest.er1
13725 ac_status=$?
13726 grep -v '^ *+' conftest.er1 >conftest.err
13727 rm -f conftest.er1
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
13731 { ac_try='test -z "$ac_c_werror_flag"
13732 || test ! -s conftest.err'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; } &&
13738 { ac_try='test -s conftest$ac_exeext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 eval "$as_ac_var=yes"
13745else
13746 echo "$as_me: failed program was:" >&5
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
13749eval "$as_ac_var=no"
13750fi
13751rm -f conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753fi
13754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13756if test `eval echo '${'$as_ac_var'}'` = yes; then
13757
13758cat >>confdefs.h <<_ACEOF
46711df8 13759#define CRAY_STACKSEG_END $ac_func
bec39cab 13760_ACEOF
46711df8 13761
bec39cab 13762 break
46711df8
MK
13763fi
13764
bec39cab 13765 done
46711df8
MK
13766fi
13767
bec39cab
AC
13768echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13769echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13770if test "${ac_cv_c_stack_direction+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8
MK
13772else
13773 if test "$cross_compiling" = yes; then
13774 ac_cv_c_stack_direction=0
13775else
bec39cab
AC
13776 cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
13781/* end confdefs.h. */
13782int
46711df8
MK
13783find_stack_direction ()
13784{
13785 static char *addr = 0;
13786 auto char dummy;
13787 if (addr == 0)
13788 {
13789 addr = &dummy;
13790 return find_stack_direction ();
13791 }
13792 else
13793 return (&dummy > addr) ? 1 : -1;
13794}
bec39cab
AC
13795
13796int
46711df8
MK
13797main ()
13798{
bec39cab 13799 exit (find_stack_direction () < 0);
46711df8 13800}
bec39cab
AC
13801_ACEOF
13802rm -f conftest$ac_exeext
13803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13804 (eval $ac_link) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
46711df8
MK
13813 ac_cv_c_stack_direction=1
13814else
bec39cab
AC
13815 echo "$as_me: program exited with status $ac_status" >&5
13816echo "$as_me: failed program was:" >&5
13817sed 's/^/| /' conftest.$ac_ext >&5
13818
13819( exit $ac_status )
13820ac_cv_c_stack_direction=-1
46711df8 13821fi
bec39cab 13822rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46711df8 13823fi
46711df8 13824fi
bec39cab
AC
13825echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13826echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
46711df8 13827
bec39cab 13828cat >>confdefs.h <<_ACEOF
46711df8 13829#define STACK_DIRECTION $ac_cv_c_stack_direction
bec39cab
AC
13830_ACEOF
13831
46711df8
MK
13832
13833fi
13834
bec39cab
AC
13835
13836
13837for ac_header in stdlib.h unistd.h
97bf5e38 13838do
bec39cab
AC
13839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13840if eval "test \"\${$as_ac_Header+set}\" = set"; then
13841 echo "$as_me:$LINENO: checking for $ac_header" >&5
13842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13843if eval "test \"\${$as_ac_Header+set}\" = set"; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13845fi
13846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13848else
13849 # Is the header compilable?
13850echo "$as_me:$LINENO: checking $ac_header usability" >&5
13851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13852cat >conftest.$ac_ext <<_ACEOF
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
13858$ac_includes_default
13859#include <$ac_header>
13860_ACEOF
13861rm -f conftest.$ac_objext
13862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13863 (eval $ac_compile) 2>conftest.er1
13864 ac_status=$?
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -z "$ac_c_werror_flag"
13871 || test ! -s conftest.err'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } &&
13877 { ac_try='test -s conftest.$ac_objext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 ac_header_compiler=yes
13884else
13885 echo "$as_me: failed program was:" >&5
13886sed 's/^/| /' conftest.$ac_ext >&5
13887
13888ac_header_compiler=no
13889fi
13890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13892echo "${ECHO_T}$ac_header_compiler" >&6
13893
13894# Is the header present?
13895echo "$as_me:$LINENO: checking $ac_header presence" >&5
13896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13897cat >conftest.$ac_ext <<_ACEOF
13898/* confdefs.h. */
13899_ACEOF
13900cat confdefs.h >>conftest.$ac_ext
13901cat >>conftest.$ac_ext <<_ACEOF
13902/* end confdefs.h. */
13903#include <$ac_header>
13904_ACEOF
13905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13907 ac_status=$?
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } >/dev/null; then
13913 if test -s conftest.err; then
13914 ac_cpp_err=$ac_c_preproc_warn_flag
13915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13916 else
13917 ac_cpp_err=
13918 fi
13919else
13920 ac_cpp_err=yes
74c1b268 13921fi
bec39cab
AC
13922if test -z "$ac_cpp_err"; then
13923 ac_header_preproc=yes
13924else
13925 echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
13928 ac_header_preproc=no
74c1b268 13929fi
bec39cab
AC
13930rm -f conftest.err conftest.$ac_ext
13931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13932echo "${ECHO_T}$ac_header_preproc" >&6
13933
13934# So? What about this header?
13935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13936 yes:no: )
13937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13941 ac_header_preproc=yes
13942 ;;
13943 no:yes:* )
13944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13956 (
13957 cat <<\_ASBOX
13958## ------------------------------------------ ##
13959## Report this to the AC_PACKAGE_NAME lists. ##
13960## ------------------------------------------ ##
13961_ASBOX
13962 ) |
13963 sed "s/^/$as_me: WARNING: /" >&2
13964 ;;
13965esac
13966echo "$as_me:$LINENO: checking for $ac_header" >&5
13967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13968if eval "test \"\${$as_ac_Header+set}\" = set"; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 13970else
bec39cab
AC
13971 eval "$as_ac_Header=\$ac_header_preproc"
13972fi
13973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13975
74c1b268 13976fi
bec39cab
AC
13977if test `eval echo '${'$as_ac_Header'}'` = yes; then
13978 cat >>confdefs.h <<_ACEOF
13979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13980_ACEOF
13981
13982fi
13983
97bf5e38 13984done
74c1b268 13985
bec39cab 13986
97bf5e38
MK
13987for ac_func in getpagesize
13988do
bec39cab
AC
13989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990echo "$as_me:$LINENO: checking for $ac_func" >&5
13991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13992if eval "test \"\${$as_ac_var+set}\" = set"; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994else
13995 cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003#define $ac_func innocuous_$ac_func
14004
74c1b268 14005/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14006 which can conflict with char $ac_func (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14009
14010#ifdef __STDC__
14011# include <limits.h>
14012#else
14013# include <assert.h>
14014#endif
74c1b268 14015
bec39cab 14016#undef $ac_func
74c1b268 14017
bec39cab
AC
14018/* Override any gcc2 internal prototype to avoid an error. */
14019#ifdef __cplusplus
14020extern "C"
14021{
14022#endif
14023/* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14025char $ac_func ();
74c1b268
AC
14026/* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
97bf5e38 14029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
74c1b268
AC
14030choke me
14031#else
bec39cab
AC
14032char (*f) () = $ac_func;
14033#endif
14034#ifdef __cplusplus
14035}
74c1b268
AC
14036#endif
14037
bec39cab
AC
14038int
14039main ()
14040{
14041return f != $ac_func;
14042 ;
14043 return 0;
14044}
14045_ACEOF
14046rm -f conftest.$ac_objext conftest$ac_exeext
14047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag"
14056 || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest$ac_exeext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 eval "$as_ac_var=yes"
14069else
14070 echo "$as_me: failed program was:" >&5
14071sed 's/^/| /' conftest.$ac_ext >&5
14072
14073eval "$as_ac_var=no"
14074fi
14075rm -f conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077fi
14078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14080if test `eval echo '${'$as_ac_var'}'` = yes; then
14081 cat >>confdefs.h <<_ACEOF
14082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14083_ACEOF
74c1b268 14084
74c1b268 14085fi
97bf5e38 14086done
74c1b268 14087
bec39cab
AC
14088echo "$as_me:$LINENO: checking for working mmap" >&5
14089echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14090if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
14092else
14093 if test "$cross_compiling" = yes; then
14094 ac_cv_func_mmap_fixed_mapped=no
74c1b268 14095else
bec39cab
AC
14096 cat >conftest.$ac_ext <<_ACEOF
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
14102$ac_includes_default
14103/* malloc might have been renamed as rpl_malloc. */
14104#undef malloc
97bf5e38
MK
14105
14106/* Thanks to Mike Haertel and Jim Avera for this test.
14107 Here is a matrix of mmap possibilities:
14108 mmap private not fixed
14109 mmap private fixed at somewhere currently unmapped
14110 mmap private fixed at somewhere already mapped
14111 mmap shared not fixed
14112 mmap shared fixed at somewhere currently unmapped
14113 mmap shared fixed at somewhere already mapped
14114 For private mappings, we should verify that changes cannot be read()
14115 back from the file, nor mmap's back from the file at a different
14116 address. (There have been systems where private was not correctly
14117 implemented like the infamous i386 svr4.0, and systems where the
bec39cab 14118 VM page cache was not coherent with the file system buffer cache
97bf5e38
MK
14119 like early versions of FreeBSD and possibly contemporary NetBSD.)
14120 For shared mappings, we should conversely verify that changes get
bec39cab 14121 propagated back to all the places they're supposed to be.
97bf5e38
MK
14122
14123 Grep wants private fixed already mapped.
14124 The main things grep needs to know about mmap are:
14125 * does it exist and is it safe to write into the mmap'd area
14126 * how to use it (BSD variants) */
bec39cab 14127
97bf5e38
MK
14128#include <fcntl.h>
14129#include <sys/mman.h>
14130
bec39cab
AC
14131#if !STDC_HEADERS && !HAVE_STDLIB_H
14132char *malloc ();
14133#endif
97bf5e38 14134
bec39cab
AC
14135/* This mess was copied from the GNU getpagesize.h. */
14136#if !HAVE_GETPAGESIZE
97bf5e38 14137/* Assume that all systems that can run configure have sys/param.h. */
bec39cab 14138# if !HAVE_SYS_PARAM_H
97bf5e38
MK
14139# define HAVE_SYS_PARAM_H 1
14140# endif
14141
14142# ifdef _SC_PAGESIZE
14143# define getpagesize() sysconf(_SC_PAGESIZE)
14144# else /* no _SC_PAGESIZE */
bec39cab 14145# if HAVE_SYS_PARAM_H
97bf5e38
MK
14146# include <sys/param.h>
14147# ifdef EXEC_PAGESIZE
14148# define getpagesize() EXEC_PAGESIZE
14149# else /* no EXEC_PAGESIZE */
14150# ifdef NBPG
14151# define getpagesize() NBPG * CLSIZE
14152# ifndef CLSIZE
14153# define CLSIZE 1
14154# endif /* no CLSIZE */
14155# else /* no NBPG */
14156# ifdef NBPC
14157# define getpagesize() NBPC
14158# else /* no NBPC */
14159# ifdef PAGESIZE
14160# define getpagesize() PAGESIZE
14161# endif /* PAGESIZE */
14162# endif /* no NBPC */
14163# endif /* no NBPG */
14164# endif /* no EXEC_PAGESIZE */
14165# else /* no HAVE_SYS_PARAM_H */
14166# define getpagesize() 8192 /* punt totally */
14167# endif /* no HAVE_SYS_PARAM_H */
14168# endif /* no _SC_PAGESIZE */
14169
14170#endif /* no HAVE_GETPAGESIZE */
14171
bec39cab
AC
14172int
14173main ()
14174{
14175 char *data, *data2, *data3;
14176 int i, pagesize;
14177 int fd;
14178
14179 pagesize = getpagesize ();
14180
14181 /* First, make a file with some known garbage in it. */
14182 data = (char *) malloc (pagesize);
14183 if (!data)
14184 exit (1);
14185 for (i = 0; i < pagesize; ++i)
14186 *(data + i) = rand ();
14187 umask (0);
14188 fd = creat ("conftest.mmap", 0600);
14189 if (fd < 0)
14190 exit (1);
14191 if (write (fd, data, pagesize) != pagesize)
14192 exit (1);
14193 close (fd);
14194
14195 /* Next, try to mmap the file at a fixed address which already has
14196 something else allocated at it. If we can, also make sure that
14197 we see the same garbage. */
14198 fd = open ("conftest.mmap", O_RDWR);
14199 if (fd < 0)
14200 exit (1);
14201 data2 = (char *) malloc (2 * pagesize);
14202 if (!data2)
14203 exit (1);
14204 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14205 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14206 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14207 exit (1);
14208 for (i = 0; i < pagesize; ++i)
14209 if (*(data + i) != *(data2 + i))
14210 exit (1);
14211
14212 /* Finally, make sure that changes to the mapped area do not
14213 percolate back to the file as seen by read(). (This is a bug on
14214 some variants of i386 svr4.0.) */
14215 for (i = 0; i < pagesize; ++i)
14216 *(data2 + i) = *(data2 + i) + 1;
14217 data3 = (char *) malloc (pagesize);
14218 if (!data3)
14219 exit (1);
14220 if (read (fd, data3, pagesize) != pagesize)
14221 exit (1);
14222 for (i = 0; i < pagesize; ++i)
14223 if (*(data + i) != *(data3 + i))
14224 exit (1);
14225 close (fd);
14226 exit (0);
14227}
14228_ACEOF
14229rm -f conftest$ac_exeext
14230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231 (eval $ac_link) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
97bf5e38 14240 ac_cv_func_mmap_fixed_mapped=yes
74c1b268 14241else
bec39cab
AC
14242 echo "$as_me: program exited with status $ac_status" >&5
14243echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246( exit $ac_status )
14247ac_cv_func_mmap_fixed_mapped=no
74c1b268 14248fi
bec39cab 14249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
74c1b268 14250fi
74c1b268 14251fi
bec39cab
AC
14252echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14253echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
97bf5e38 14254if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14255
14256cat >>confdefs.h <<\_ACEOF
97bf5e38 14257#define HAVE_MMAP 1
bec39cab 14258_ACEOF
74c1b268
AC
14259
14260fi
bec39cab 14261rm -f conftest.mmap
74c1b268 14262
bec39cab
AC
14263echo "$as_me:$LINENO: checking for pid_t" >&5
14264echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14265if test "${ac_cv_type_pid_t+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
0200359f 14267else
bec39cab
AC
14268 cat >conftest.$ac_ext <<_ACEOF
14269/* confdefs.h. */
14270_ACEOF
14271cat confdefs.h >>conftest.$ac_ext
14272cat >>conftest.$ac_ext <<_ACEOF
14273/* end confdefs.h. */
14274$ac_includes_default
14275int
14276main ()
14277{
14278if ((pid_t *) 0)
14279 return 0;
14280if (sizeof (pid_t))
14281 return 0;
14282 ;
14283 return 0;
14284}
14285_ACEOF
14286rm -f conftest.$ac_objext
14287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14288 (eval $ac_compile) 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
14295 { ac_try='test -z "$ac_c_werror_flag"
14296 || test ! -s conftest.err'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest.$ac_objext'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
97bf5e38 14308 ac_cv_type_pid_t=yes
0200359f 14309else
bec39cab
AC
14310 echo "$as_me: failed program was:" >&5
14311sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14312
bec39cab 14313ac_cv_type_pid_t=no
0200359f 14314fi
bec39cab 14315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72473524 14316fi
bec39cab
AC
14317echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14318echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14319if test $ac_cv_type_pid_t = yes; then
14320 :
14321else
14322
14323cat >>confdefs.h <<_ACEOF
14324#define pid_t int
14325_ACEOF
14326
72473524 14327fi
72473524 14328
bec39cab
AC
14329
14330
14331for ac_header in unistd.h vfork.h
14332do
14333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14334if eval "test \"\${$as_ac_Header+set}\" = set"; then
14335 echo "$as_me:$LINENO: checking for $ac_header" >&5
14336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14337if eval "test \"\${$as_ac_Header+set}\" = set"; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339fi
14340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14342else
14343 # Is the header compilable?
14344echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14346cat >conftest.$ac_ext <<_ACEOF
14347/* confdefs.h. */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
14351/* end confdefs.h. */
14352$ac_includes_default
14353#include <$ac_header>
14354_ACEOF
14355rm -f conftest.$ac_objext
14356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_header_compiler=yes
14378else
14379 echo "$as_me: failed program was:" >&5
14380sed 's/^/| /' conftest.$ac_ext >&5
14381
14382ac_header_compiler=no
14383fi
14384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386echo "${ECHO_T}$ac_header_compiler" >&6
14387
14388# Is the header present?
14389echo "$as_me:$LINENO: checking $ac_header presence" >&5
14390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397#include <$ac_header>
14398_ACEOF
14399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null; then
14407 if test -s conftest.err; then
14408 ac_cpp_err=$ac_c_preproc_warn_flag
14409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14410 else
14411 ac_cpp_err=
14412 fi
14413else
14414 ac_cpp_err=yes
14415fi
14416if test -z "$ac_cpp_err"; then
14417 ac_header_preproc=yes
97bf5e38 14418else
bec39cab
AC
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 ac_header_preproc=no
72473524 14423fi
bec39cab
AC
14424rm -f conftest.err conftest.$ac_ext
14425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14426echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14427
bec39cab
AC
14428# So? What about this header?
14429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14430 yes:no: )
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14435 ac_header_preproc=yes
14436 ;;
14437 no:yes:* )
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14450 (
14451 cat <<\_ASBOX
14452## ------------------------------------------ ##
14453## Report this to the AC_PACKAGE_NAME lists. ##
14454## ------------------------------------------ ##
14455_ASBOX
14456 ) |
14457 sed "s/^/$as_me: WARNING: /" >&2
14458 ;;
14459esac
14460echo "$as_me:$LINENO: checking for $ac_header" >&5
14461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14462if eval "test \"\${$as_ac_Header+set}\" = set"; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14464else
bec39cab
AC
14465 eval "$as_ac_Header=\$ac_header_preproc"
14466fi
14467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14469
14470fi
14471if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472 cat >>confdefs.h <<_ACEOF
14473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14474_ACEOF
14475
14476fi
14477
14478done
14479
14480
14481
14482for ac_func in fork vfork
14483do
14484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14485echo "$as_me:$LINENO: checking for $ac_func" >&5
14486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14487if eval "test \"\${$as_ac_var+set}\" = set"; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489else
14490 cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498#define $ac_func innocuous_$ac_func
14499
97bf5e38 14500/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14501 which can conflict with char $ac_func (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
2b2d558c 14504
bec39cab
AC
14505#ifdef __STDC__
14506# include <limits.h>
14507#else
14508# include <assert.h>
14509#endif
97bf5e38 14510
bec39cab
AC
14511#undef $ac_func
14512
14513/* Override any gcc2 internal prototype to avoid an error. */
14514#ifdef __cplusplus
14515extern "C"
14516{
14517#endif
14518/* We use char because int might match the return type of a gcc2
14519 builtin and then its argument prototype would still apply. */
14520char $ac_func ();
97bf5e38
MK
14521/* The GNU C library defines this for functions which it implements
14522 to always fail with ENOSYS. Some functions are actually named
14523 something starting with __ and the normal name is an alias. */
bec39cab 14524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14525choke me
14526#else
bec39cab
AC
14527char (*f) () = $ac_func;
14528#endif
14529#ifdef __cplusplus
14530}
97bf5e38
MK
14531#endif
14532
bec39cab
AC
14533int
14534main ()
14535{
14536return f != $ac_func;
14537 ;
14538 return 0;
14539}
14540_ACEOF
14541rm -f conftest.$ac_objext conftest$ac_exeext
14542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 eval "$as_ac_var=yes"
14564else
14565 echo "$as_me: failed program was:" >&5
14566sed 's/^/| /' conftest.$ac_ext >&5
14567
14568eval "$as_ac_var=no"
14569fi
14570rm -f conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14572fi
14573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14575if test `eval echo '${'$as_ac_var'}'` = yes; then
14576 cat >>confdefs.h <<_ACEOF
14577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14578_ACEOF
14579
2b2d558c 14580fi
bec39cab 14581done
2b2d558c 14582
bec39cab
AC
14583if test "x$ac_cv_func_fork" = xyes; then
14584 echo "$as_me:$LINENO: checking for working fork" >&5
14585echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14586if test "${ac_cv_func_fork_works+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14588else
bec39cab
AC
14589 if test "$cross_compiling" = yes; then
14590 ac_cv_func_fork_works=cross
14591else
14592 cat >conftest.$ac_ext <<_ACEOF
14593/* By Ruediger Kuhlmann. */
14594 #include <sys/types.h>
14595 #if HAVE_UNISTD_H
14596 # include <unistd.h>
14597 #endif
14598 /* Some systems only have a dummy stub for fork() */
14599 int main ()
14600 {
14601 if (fork() < 0)
14602 exit (1);
14603 exit (0);
14604 }
14605_ACEOF
14606rm -f conftest$ac_exeext
14607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14608 (eval $ac_link) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_func_fork_works=yes
14618else
14619 echo "$as_me: program exited with status $ac_status" >&5
14620echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623( exit $ac_status )
14624ac_cv_func_fork_works=no
14625fi
14626rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14627fi
14628fi
14629echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14630echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14631
14632else
14633 ac_cv_func_fork_works=$ac_cv_func_fork
14634fi
14635if test "x$ac_cv_func_fork_works" = xcross; then
14636 case $host in
14637 *-*-amigaos* | *-*-msdosdjgpp*)
14638 # Override, as these systems have only a dummy fork() stub
14639 ac_cv_func_fork_works=no
14640 ;;
14641 *)
14642 ac_cv_func_fork_works=yes
14643 ;;
14644 esac
14645 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14646echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
2b2d558c 14647fi
97bf5e38 14648ac_cv_func_vfork_works=$ac_cv_func_vfork
bec39cab
AC
14649if test "x$ac_cv_func_vfork" = xyes; then
14650 echo "$as_me:$LINENO: checking for working vfork" >&5
14651echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14652if test "${ac_cv_func_vfork_works+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
7dfa765c 14654else
bec39cab
AC
14655 if test "$cross_compiling" = yes; then
14656 ac_cv_func_vfork_works=cross
14657else
14658 cat >conftest.$ac_ext <<_ACEOF
14659/* confdefs.h. */
14660_ACEOF
14661cat confdefs.h >>conftest.$ac_ext
14662cat >>conftest.$ac_ext <<_ACEOF
14663/* end confdefs.h. */
97bf5e38
MK
14664/* Thanks to Paul Eggert for this test. */
14665#include <stdio.h>
bec39cab 14666#include <stdlib.h>
97bf5e38
MK
14667#include <sys/types.h>
14668#include <sys/stat.h>
bec39cab
AC
14669#include <sys/wait.h>
14670#if HAVE_UNISTD_H
14671# include <unistd.h>
97bf5e38 14672#endif
bec39cab
AC
14673#if HAVE_VFORK_H
14674# include <vfork.h>
97bf5e38
MK
14675#endif
14676/* On some sparc systems, changes by the child to local and incoming
bec39cab
AC
14677 argument registers are propagated back to the parent. The compiler
14678 is told about this with #include <vfork.h>, but some compilers
14679 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14680 static variable whose address is put into a register that is
14681 clobbered by the vfork. */
14682static void
97bf5e38
MK
14683#ifdef __cplusplus
14684sparc_address_test (int arg)
bec39cab 14685# else
97bf5e38
MK
14686sparc_address_test (arg) int arg;
14687#endif
14688{
14689 static pid_t child;
14690 if (!child) {
14691 child = vfork ();
14692 if (child < 0) {
14693 perror ("vfork");
14694 _exit(2);
14695 }
14696 if (!child) {
14697 arg = getpid();
14698 write(-1, "", 0);
14699 _exit (arg);
14700 }
14701 }
14702}
bec39cab
AC
14703
14704int
14705main ()
14706{
97bf5e38
MK
14707 pid_t parent = getpid ();
14708 pid_t child;
7dfa765c 14709
bec39cab 14710 sparc_address_test (0);
7dfa765c 14711
97bf5e38 14712 child = vfork ();
7dfa765c 14713
97bf5e38 14714 if (child == 0) {
bec39cab
AC
14715 /* Here is another test for sparc vfork register problems. This
14716 test uses lots of local variables, at least as many local
14717 variables as main has allocated so far including compiler
14718 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14719 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14720 reuse the register of parent for one of the local variables,
14721 since it will think that parent can't possibly be used any more
14722 in this routine. Assigning to the local variable will thus
14723 munge parent in the parent process. */
97bf5e38
MK
14724 pid_t
14725 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14726 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14727 /* Convince the compiler that p..p7 are live; otherwise, it might
14728 use the same hardware register for all 8 local variables. */
14729 if (p != p1 || p != p2 || p != p3 || p != p4
14730 || p != p5 || p != p6 || p != p7)
14731 _exit(1);
7dfa765c 14732
bec39cab
AC
14733 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14734 from child file descriptors. If the child closes a descriptor
14735 before it execs or exits, this munges the parent's descriptor
14736 as well. Test for this by closing stdout in the child. */
97bf5e38
MK
14737 _exit(close(fileno(stdout)) != 0);
14738 } else {
14739 int status;
14740 struct stat st;
64bb1671 14741
97bf5e38
MK
14742 while (wait(&status) != child)
14743 ;
14744 exit(
14745 /* Was there some problem with vforking? */
14746 child < 0
64bb1671 14747
97bf5e38
MK
14748 /* Did the child fail? (This shouldn't happen.) */
14749 || status
64bb1671 14750
97bf5e38
MK
14751 /* Did the vfork/compiler bug occur? */
14752 || parent != getpid()
14753
14754 /* Did the file descriptor bug occur? */
14755 || fstat(fileno(stdout), &st) != 0
14756 );
14757 }
14758}
bec39cab
AC
14759_ACEOF
14760rm -f conftest$ac_exeext
14761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14762 (eval $ac_link) 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
97bf5e38 14771 ac_cv_func_vfork_works=yes
5c44784c 14772else
bec39cab
AC
14773 echo "$as_me: program exited with status $ac_status" >&5
14774echo "$as_me: failed program was:" >&5
14775sed 's/^/| /' conftest.$ac_ext >&5
14776
14777( exit $ac_status )
14778ac_cv_func_vfork_works=no
5c44784c 14779fi
bec39cab 14780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5c44784c 14781fi
bec39cab
AC
14782fi
14783echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14784echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5c44784c 14785
bec39cab
AC
14786fi;
14787if test "x$ac_cv_func_fork_works" = xcross; then
14788 ac_cv_func_vfork_works=$ac_cv_func_vfork
14789 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14790echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
0afdd437
MK
14791fi
14792
bec39cab
AC
14793if test "x$ac_cv_func_vfork_works" = xyes; then
14794
14795cat >>confdefs.h <<\_ACEOF
14796#define HAVE_WORKING_VFORK 1
14797_ACEOF
14798
14799else
14800
14801cat >>confdefs.h <<\_ACEOF
97bf5e38 14802#define vfork fork
bec39cab
AC
14803_ACEOF
14804
14805fi
14806if test "x$ac_cv_func_fork_works" = xyes; then
14807
14808cat >>confdefs.h <<\_ACEOF
14809#define HAVE_WORKING_FORK 1
14810_ACEOF
0afdd437
MK
14811
14812fi
14813
bec39cab
AC
14814
14815
97bf5e38
MK
14816for ac_func in canonicalize_file_name realpath
14817do
bec39cab
AC
14818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14819echo "$as_me:$LINENO: checking for $ac_func" >&5
14820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14821if eval "test \"\${$as_ac_var+set}\" = set"; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14823else
14824 cat >conftest.$ac_ext <<_ACEOF
14825/* confdefs.h. */
14826_ACEOF
14827cat confdefs.h >>conftest.$ac_ext
14828cat >>conftest.$ac_ext <<_ACEOF
14829/* end confdefs.h. */
14830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14832#define $ac_func innocuous_$ac_func
14833
97bf5e38 14834/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14835 which can conflict with char $ac_func (); below.
14836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14837 <limits.h> exists even on freestanding compilers. */
14838
14839#ifdef __STDC__
14840# include <limits.h>
14841#else
14842# include <assert.h>
14843#endif
97bf5e38 14844
bec39cab 14845#undef $ac_func
97bf5e38 14846
bec39cab
AC
14847/* Override any gcc2 internal prototype to avoid an error. */
14848#ifdef __cplusplus
14849extern "C"
14850{
14851#endif
14852/* We use char because int might match the return type of a gcc2
14853 builtin and then its argument prototype would still apply. */
14854char $ac_func ();
97bf5e38
MK
14855/* The GNU C library defines this for functions which it implements
14856 to always fail with ENOSYS. Some functions are actually named
14857 something starting with __ and the normal name is an alias. */
14858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14859choke me
14860#else
bec39cab
AC
14861char (*f) () = $ac_func;
14862#endif
14863#ifdef __cplusplus
14864}
97bf5e38
MK
14865#endif
14866
bec39cab
AC
14867int
14868main ()
14869{
14870return f != $ac_func;
14871 ;
14872 return 0;
14873}
14874_ACEOF
14875rm -f conftest.$ac_objext conftest$ac_exeext
14876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag"
14885 || test ! -s conftest.err'
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); }; } &&
14891 { ac_try='test -s conftest$ac_exeext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 eval "$as_ac_var=yes"
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902eval "$as_ac_var=no"
14903fi
14904rm -f conftest.err conftest.$ac_objext \
14905 conftest$ac_exeext conftest.$ac_ext
14906fi
14907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14909if test `eval echo '${'$as_ac_var'}'` = yes; then
14910 cat >>confdefs.h <<_ACEOF
14911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14912_ACEOF
7e89e357 14913
7e89e357 14914fi
97bf5e38 14915done
7e89e357 14916
bec39cab 14917
97bf5e38 14918for ac_func in poll
7be570e7 14919do
bec39cab
AC
14920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14921echo "$as_me:$LINENO: checking for $ac_func" >&5
14922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14923if eval "test \"\${$as_ac_var+set}\" = set"; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925else
14926 cat >conftest.$ac_ext <<_ACEOF
14927/* confdefs.h. */
14928_ACEOF
14929cat confdefs.h >>conftest.$ac_ext
14930cat >>conftest.$ac_ext <<_ACEOF
14931/* end confdefs.h. */
14932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14934#define $ac_func innocuous_$ac_func
14935
7be570e7 14936/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14937 which can conflict with char $ac_func (); below.
14938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14939 <limits.h> exists even on freestanding compilers. */
14940
14941#ifdef __STDC__
14942# include <limits.h>
14943#else
14944# include <assert.h>
14945#endif
7be570e7 14946
bec39cab 14947#undef $ac_func
7be570e7 14948
bec39cab
AC
14949/* Override any gcc2 internal prototype to avoid an error. */
14950#ifdef __cplusplus
14951extern "C"
14952{
14953#endif
14954/* We use char because int might match the return type of a gcc2
14955 builtin and then its argument prototype would still apply. */
14956char $ac_func ();
7be570e7
JM
14957/* The GNU C library defines this for functions which it implements
14958 to always fail with ENOSYS. Some functions are actually named
14959 something starting with __ and the normal name is an alias. */
14960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14961choke me
14962#else
bec39cab
AC
14963char (*f) () = $ac_func;
14964#endif
14965#ifdef __cplusplus
14966}
7be570e7
JM
14967#endif
14968
bec39cab
AC
14969int
14970main ()
14971{
14972return f != $ac_func;
14973 ;
14974 return 0;
14975}
14976_ACEOF
14977rm -f conftest.$ac_objext conftest$ac_exeext
14978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14979 (eval $ac_link) 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -z "$ac_c_werror_flag"
14987 || test ! -s conftest.err'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; } &&
14993 { ac_try='test -s conftest$ac_exeext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 eval "$as_ac_var=yes"
15000else
15001 echo "$as_me: failed program was:" >&5
15002sed 's/^/| /' conftest.$ac_ext >&5
15003
15004eval "$as_ac_var=no"
15005fi
15006rm -f conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15008fi
15009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15010echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15011if test `eval echo '${'$as_ac_var'}'` = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15014_ACEOF
14abd0fb 15015
14abd0fb
MK
15016fi
15017done
15018
bec39cab 15019
14abd0fb
MK
15020for ac_func in pread64
15021do
bec39cab
AC
15022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15023echo "$as_me:$LINENO: checking for $ac_func" >&5
15024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15025if eval "test \"\${$as_ac_var+set}\" = set"; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027else
15028 cat >conftest.$ac_ext <<_ACEOF
15029/* confdefs.h. */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h. */
15034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15036#define $ac_func innocuous_$ac_func
15037
14abd0fb 15038/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15039 which can conflict with char $ac_func (); below.
15040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15041 <limits.h> exists even on freestanding compilers. */
15042
15043#ifdef __STDC__
15044# include <limits.h>
15045#else
15046# include <assert.h>
15047#endif
14abd0fb 15048
bec39cab 15049#undef $ac_func
14abd0fb 15050
bec39cab
AC
15051/* Override any gcc2 internal prototype to avoid an error. */
15052#ifdef __cplusplus
15053extern "C"
15054{
15055#endif
15056/* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15058char $ac_func ();
14abd0fb
MK
15059/* The GNU C library defines this for functions which it implements
15060 to always fail with ENOSYS. Some functions are actually named
15061 something starting with __ and the normal name is an alias. */
15062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15063choke me
15064#else
bec39cab
AC
15065char (*f) () = $ac_func;
15066#endif
15067#ifdef __cplusplus
15068}
14abd0fb
MK
15069#endif
15070
bec39cab
AC
15071int
15072main ()
15073{
15074return f != $ac_func;
15075 ;
15076 return 0;
15077}
15078_ACEOF
15079rm -f conftest.$ac_objext conftest$ac_exeext
15080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081 (eval $ac_link) 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try='test -z "$ac_c_werror_flag"
15089 || test ! -s conftest.err'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest$ac_exeext'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101 eval "$as_ac_var=yes"
15102else
15103 echo "$as_me: failed program was:" >&5
15104sed 's/^/| /' conftest.$ac_ext >&5
15105
15106eval "$as_ac_var=no"
15107fi
15108rm -f conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext conftest.$ac_ext
15110fi
15111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15113if test `eval echo '${'$as_ac_var'}'` = yes; then
15114 cat >>confdefs.h <<_ACEOF
15115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15116_ACEOF
7be570e7 15117
7be570e7
JM
15118fi
15119done
15120
bec39cab 15121
97bf5e38
MK
15122for ac_func in sbrk
15123do
bec39cab
AC
15124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125echo "$as_me:$LINENO: checking for $ac_func" >&5
15126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15127if eval "test \"\${$as_ac_var+set}\" = set"; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129else
15130 cat >conftest.$ac_ext <<_ACEOF
15131/* confdefs.h. */
15132_ACEOF
15133cat confdefs.h >>conftest.$ac_ext
15134cat >>conftest.$ac_ext <<_ACEOF
15135/* end confdefs.h. */
15136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15138#define $ac_func innocuous_$ac_func
15139
97bf5e38 15140/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15141 which can conflict with char $ac_func (); below.
15142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15143 <limits.h> exists even on freestanding compilers. */
15144
15145#ifdef __STDC__
15146# include <limits.h>
15147#else
15148# include <assert.h>
15149#endif
c906108c 15150
bec39cab 15151#undef $ac_func
97bf5e38 15152
bec39cab
AC
15153/* Override any gcc2 internal prototype to avoid an error. */
15154#ifdef __cplusplus
15155extern "C"
15156{
15157#endif
15158/* We use char because int might match the return type of a gcc2
15159 builtin and then its argument prototype would still apply. */
15160char $ac_func ();
97bf5e38
MK
15161/* The GNU C library defines this for functions which it implements
15162 to always fail with ENOSYS. Some functions are actually named
15163 something starting with __ and the normal name is an alias. */
15164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15165choke me
c906108c 15166#else
bec39cab
AC
15167char (*f) () = $ac_func;
15168#endif
15169#ifdef __cplusplus
15170}
c906108c 15171#endif
97bf5e38 15172
bec39cab
AC
15173int
15174main ()
15175{
15176return f != $ac_func;
15177 ;
15178 return 0;
15179}
15180_ACEOF
15181rm -f conftest.$ac_objext conftest$ac_exeext
15182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183 (eval $ac_link) 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag"
15191 || test ! -s conftest.err'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try='test -s conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 eval "$as_ac_var=yes"
15204else
15205 echo "$as_me: failed program was:" >&5
15206sed 's/^/| /' conftest.$ac_ext >&5
15207
15208eval "$as_ac_var=no"
15209fi
15210rm -f conftest.err conftest.$ac_objext \
15211 conftest$ac_exeext conftest.$ac_ext
15212fi
15213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15214echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15215if test `eval echo '${'$as_ac_var'}'` = yes; then
15216 cat >>confdefs.h <<_ACEOF
15217#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15218_ACEOF
c906108c 15219
c906108c 15220fi
97bf5e38 15221done
c906108c 15222
bec39cab
AC
15223
15224
97bf5e38
MK
15225for ac_func in setpgid setpgrp
15226do
bec39cab
AC
15227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15228echo "$as_me:$LINENO: checking for $ac_func" >&5
15229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15230if eval "test \"\${$as_ac_var+set}\" = set"; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15232else
15233 cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h. */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h. */
15239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15241#define $ac_func innocuous_$ac_func
15242
97bf5e38 15243/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15244 which can conflict with char $ac_func (); below.
15245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15246 <limits.h> exists even on freestanding compilers. */
c906108c 15247
bec39cab
AC
15248#ifdef __STDC__
15249# include <limits.h>
15250#else
15251# include <assert.h>
15252#endif
97bf5e38 15253
bec39cab
AC
15254#undef $ac_func
15255
15256/* Override any gcc2 internal prototype to avoid an error. */
15257#ifdef __cplusplus
15258extern "C"
15259{
15260#endif
15261/* We use char because int might match the return type of a gcc2
15262 builtin and then its argument prototype would still apply. */
15263char $ac_func ();
97bf5e38
MK
15264/* The GNU C library defines this for functions which it implements
15265 to always fail with ENOSYS. Some functions are actually named
15266 something starting with __ and the normal name is an alias. */
15267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15268choke me
c906108c 15269#else
bec39cab
AC
15270char (*f) () = $ac_func;
15271#endif
15272#ifdef __cplusplus
15273}
c906108c 15274#endif
97bf5e38 15275
bec39cab
AC
15276int
15277main ()
15278{
15279return f != $ac_func;
15280 ;
15281 return 0;
15282}
15283_ACEOF
15284rm -f conftest.$ac_objext conftest$ac_exeext
15285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286 (eval $ac_link) 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag"
15294 || test ! -s conftest.err'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try='test -s conftest$ac_exeext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 eval "$as_ac_var=yes"
15307else
15308 echo "$as_me: failed program was:" >&5
15309sed 's/^/| /' conftest.$ac_ext >&5
15310
15311eval "$as_ac_var=no"
15312fi
15313rm -f conftest.err conftest.$ac_objext \
15314 conftest$ac_exeext conftest.$ac_ext
15315fi
15316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15317echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15318if test `eval echo '${'$as_ac_var'}'` = yes; then
15319 cat >>confdefs.h <<_ACEOF
15320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15321_ACEOF
c906108c 15322
c906108c 15323fi
97bf5e38 15324done
c906108c 15325
bec39cab
AC
15326
15327
15328
e1ea1d75 15329for ac_func in sigaction sigprocmask sigsetmask
97bf5e38 15330do
bec39cab
AC
15331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15332echo "$as_me:$LINENO: checking for $ac_func" >&5
15333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15334if eval "test \"\${$as_ac_var+set}\" = set"; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336else
15337 cat >conftest.$ac_ext <<_ACEOF
15338/* confdefs.h. */
15339_ACEOF
15340cat confdefs.h >>conftest.$ac_ext
15341cat >>conftest.$ac_ext <<_ACEOF
15342/* end confdefs.h. */
15343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15345#define $ac_func innocuous_$ac_func
15346
97bf5e38 15347/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15348 which can conflict with char $ac_func (); below.
15349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15350 <limits.h> exists even on freestanding compilers. */
15351
15352#ifdef __STDC__
15353# include <limits.h>
15354#else
15355# include <assert.h>
15356#endif
c906108c 15357
bec39cab 15358#undef $ac_func
97bf5e38 15359
bec39cab
AC
15360/* Override any gcc2 internal prototype to avoid an error. */
15361#ifdef __cplusplus
15362extern "C"
15363{
15364#endif
15365/* We use char because int might match the return type of a gcc2
15366 builtin and then its argument prototype would still apply. */
15367char $ac_func ();
97bf5e38
MK
15368/* The GNU C library defines this for functions which it implements
15369 to always fail with ENOSYS. Some functions are actually named
15370 something starting with __ and the normal name is an alias. */
15371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15372choke me
c906108c 15373#else
bec39cab
AC
15374char (*f) () = $ac_func;
15375#endif
15376#ifdef __cplusplus
15377}
c906108c 15378#endif
97bf5e38 15379
bec39cab
AC
15380int
15381main ()
15382{
15383return f != $ac_func;
15384 ;
15385 return 0;
15386}
15387_ACEOF
15388rm -f conftest.$ac_objext conftest$ac_exeext
15389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390 (eval $ac_link) 2>conftest.er1
15391 ac_status=$?
15392 grep -v '^ *+' conftest.er1 >conftest.err
15393 rm -f conftest.er1
15394 cat conftest.err >&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -z "$ac_c_werror_flag"
15398 || test ! -s conftest.err'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest$ac_exeext'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 eval "$as_ac_var=yes"
15411else
15412 echo "$as_me: failed program was:" >&5
15413sed 's/^/| /' conftest.$ac_ext >&5
15414
15415eval "$as_ac_var=no"
15416fi
15417rm -f conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
15419fi
15420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15422if test `eval echo '${'$as_ac_var'}'` = yes; then
15423 cat >>confdefs.h <<_ACEOF
15424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15425_ACEOF
c906108c 15426
c906108c 15427fi
97bf5e38 15428done
c906108c 15429
bec39cab 15430
97bf5e38
MK
15431for ac_func in socketpair
15432do
bec39cab
AC
15433as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15434echo "$as_me:$LINENO: checking for $ac_func" >&5
15435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15436if eval "test \"\${$as_ac_var+set}\" = set"; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15438else
15439 cat >conftest.$ac_ext <<_ACEOF
15440/* confdefs.h. */
15441_ACEOF
15442cat confdefs.h >>conftest.$ac_ext
15443cat >>conftest.$ac_ext <<_ACEOF
15444/* end confdefs.h. */
15445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15447#define $ac_func innocuous_$ac_func
15448
97bf5e38 15449/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15450 which can conflict with char $ac_func (); below.
15451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15452 <limits.h> exists even on freestanding compilers. */
15453
15454#ifdef __STDC__
15455# include <limits.h>
15456#else
15457# include <assert.h>
15458#endif
c906108c 15459
bec39cab 15460#undef $ac_func
97bf5e38 15461
bec39cab
AC
15462/* Override any gcc2 internal prototype to avoid an error. */
15463#ifdef __cplusplus
15464extern "C"
15465{
15466#endif
15467/* We use char because int might match the return type of a gcc2
15468 builtin and then its argument prototype would still apply. */
15469char $ac_func ();
97bf5e38
MK
15470/* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15474choke me
c906108c 15475#else
bec39cab
AC
15476char (*f) () = $ac_func;
15477#endif
15478#ifdef __cplusplus
15479}
c906108c 15480#endif
97bf5e38 15481
bec39cab
AC
15482int
15483main ()
15484{
15485return f != $ac_func;
15486 ;
15487 return 0;
15488}
15489_ACEOF
15490rm -f conftest.$ac_objext conftest$ac_exeext
15491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15492 (eval $ac_link) 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag"
15500 || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest$ac_exeext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 eval "$as_ac_var=yes"
15513else
15514 echo "$as_me: failed program was:" >&5
15515sed 's/^/| /' conftest.$ac_ext >&5
15516
15517eval "$as_ac_var=no"
15518fi
15519rm -f conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521fi
15522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15524if test `eval echo '${'$as_ac_var'}'` = yes; then
15525 cat >>confdefs.h <<_ACEOF
15526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15527_ACEOF
c906108c 15528
c906108c 15529fi
97bf5e38 15530done
c906108c 15531
bec39cab 15532
b757528f
JJ
15533for ac_func in syscall
15534do
bec39cab
AC
15535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15536echo "$as_me:$LINENO: checking for $ac_func" >&5
15537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15538if eval "test \"\${$as_ac_var+set}\" = set"; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540else
15541 cat >conftest.$ac_ext <<_ACEOF
15542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
15547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15549#define $ac_func innocuous_$ac_func
15550
b757528f 15551/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15552 which can conflict with char $ac_func (); below.
15553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15554 <limits.h> exists even on freestanding compilers. */
15555
15556#ifdef __STDC__
15557# include <limits.h>
15558#else
15559# include <assert.h>
15560#endif
b757528f 15561
bec39cab 15562#undef $ac_func
b757528f 15563
bec39cab
AC
15564/* Override any gcc2 internal prototype to avoid an error. */
15565#ifdef __cplusplus
15566extern "C"
15567{
15568#endif
15569/* We use char because int might match the return type of a gcc2
15570 builtin and then its argument prototype would still apply. */
15571char $ac_func ();
b757528f
JJ
15572/* The GNU C library defines this for functions which it implements
15573 to always fail with ENOSYS. Some functions are actually named
15574 something starting with __ and the normal name is an alias. */
15575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15576choke me
15577#else
bec39cab
AC
15578char (*f) () = $ac_func;
15579#endif
15580#ifdef __cplusplus
15581}
b757528f
JJ
15582#endif
15583
bec39cab
AC
15584int
15585main ()
15586{
15587return f != $ac_func;
15588 ;
15589 return 0;
15590}
15591_ACEOF
15592rm -f conftest.$ac_objext conftest$ac_exeext
15593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15594 (eval $ac_link) 2>conftest.er1
15595 ac_status=$?
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -z "$ac_c_werror_flag"
15602 || test ! -s conftest.err'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest$ac_exeext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 eval "$as_ac_var=yes"
15615else
15616 echo "$as_me: failed program was:" >&5
15617sed 's/^/| /' conftest.$ac_ext >&5
15618
15619eval "$as_ac_var=no"
15620fi
15621rm -f conftest.err conftest.$ac_objext \
15622 conftest$ac_exeext conftest.$ac_ext
15623fi
15624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15626if test `eval echo '${'$as_ac_var'}'` = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15629_ACEOF
b757528f 15630
b757528f
JJ
15631fi
15632done
15633
bec39cab 15634
bcb3dc3d
MK
15635for ac_func in ttrace
15636do
bec39cab
AC
15637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15638echo "$as_me:$LINENO: checking for $ac_func" >&5
15639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15640if eval "test \"\${$as_ac_var+set}\" = set"; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15642else
15643 cat >conftest.$ac_ext <<_ACEOF
15644/* confdefs.h. */
15645_ACEOF
15646cat confdefs.h >>conftest.$ac_ext
15647cat >>conftest.$ac_ext <<_ACEOF
15648/* end confdefs.h. */
15649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15651#define $ac_func innocuous_$ac_func
15652
bcb3dc3d 15653/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15654 which can conflict with char $ac_func (); below.
15655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15656 <limits.h> exists even on freestanding compilers. */
15657
15658#ifdef __STDC__
15659# include <limits.h>
15660#else
15661# include <assert.h>
15662#endif
bcb3dc3d 15663
bec39cab 15664#undef $ac_func
bcb3dc3d 15665
bec39cab
AC
15666/* Override any gcc2 internal prototype to avoid an error. */
15667#ifdef __cplusplus
15668extern "C"
15669{
15670#endif
15671/* We use char because int might match the return type of a gcc2
15672 builtin and then its argument prototype would still apply. */
15673char $ac_func ();
bcb3dc3d
MK
15674/* The GNU C library defines this for functions which it implements
15675 to always fail with ENOSYS. Some functions are actually named
15676 something starting with __ and the normal name is an alias. */
15677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15678choke me
15679#else
bec39cab
AC
15680char (*f) () = $ac_func;
15681#endif
15682#ifdef __cplusplus
15683}
bcb3dc3d
MK
15684#endif
15685
bec39cab
AC
15686int
15687main ()
15688{
15689return f != $ac_func;
15690 ;
15691 return 0;
15692}
15693_ACEOF
15694rm -f conftest.$ac_objext conftest$ac_exeext
15695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>conftest.er1
15697 ac_status=$?
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -z "$ac_c_werror_flag"
15704 || test ! -s conftest.err'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest$ac_exeext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 eval "$as_ac_var=yes"
15717else
15718 echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721eval "$as_ac_var=no"
15722fi
15723rm -f conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15725fi
15726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15728if test `eval echo '${'$as_ac_var'}'` = yes; then
15729 cat >>confdefs.h <<_ACEOF
15730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15731_ACEOF
bcb3dc3d 15732
bcb3dc3d
MK
15733fi
15734done
15735
bec39cab 15736
8b9cf735
MK
15737for ac_func in wborder
15738do
bec39cab
AC
15739as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15740echo "$as_me:$LINENO: checking for $ac_func" >&5
15741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15742if eval "test \"\${$as_ac_var+set}\" = set"; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744else
15745 cat >conftest.$ac_ext <<_ACEOF
15746/* confdefs.h. */
15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
15751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15753#define $ac_func innocuous_$ac_func
15754
8b9cf735 15755/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15756 which can conflict with char $ac_func (); below.
15757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15758 <limits.h> exists even on freestanding compilers. */
15759
15760#ifdef __STDC__
15761# include <limits.h>
15762#else
15763# include <assert.h>
15764#endif
8b9cf735 15765
bec39cab 15766#undef $ac_func
8b9cf735 15767
bec39cab
AC
15768/* Override any gcc2 internal prototype to avoid an error. */
15769#ifdef __cplusplus
15770extern "C"
15771{
15772#endif
15773/* We use char because int might match the return type of a gcc2
15774 builtin and then its argument prototype would still apply. */
15775char $ac_func ();
8b9cf735
MK
15776/* The GNU C library defines this for functions which it implements
15777 to always fail with ENOSYS. Some functions are actually named
15778 something starting with __ and the normal name is an alias. */
15779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15780choke me
15781#else
bec39cab
AC
15782char (*f) () = $ac_func;
15783#endif
15784#ifdef __cplusplus
15785}
8b9cf735
MK
15786#endif
15787
bec39cab
AC
15788int
15789main ()
15790{
15791return f != $ac_func;
15792 ;
15793 return 0;
15794}
15795_ACEOF
15796rm -f conftest.$ac_objext conftest$ac_exeext
15797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15798 (eval $ac_link) 2>conftest.er1
15799 ac_status=$?
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } &&
15805 { ac_try='test -z "$ac_c_werror_flag"
15806 || test ! -s conftest.err'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; } &&
15812 { ac_try='test -s conftest$ac_exeext'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15818 eval "$as_ac_var=yes"
15819else
15820 echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823eval "$as_ac_var=no"
15824fi
15825rm -f conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
15827fi
15828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15830if test `eval echo '${'$as_ac_var'}'` = yes; then
15831 cat >>confdefs.h <<_ACEOF
15832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15833_ACEOF
8b9cf735 15834
8b9cf735
MK
15835fi
15836done
15837
97bf5e38 15838
086ec9eb
MK
15839# Check the return and argument types of ptrace. No canned test for
15840# this, so roll our own.
15841gdb_ptrace_headers='
15842#if HAVE_SYS_TYPES_H
15843# include <sys/types.h>
15844#endif
15845#if HAVE_SYS_PTRACE_H
15846# include <sys/ptrace.h>
15847#endif
15848#if HAVE_UNISTD_H
15849# include <unistd.h>
15850#endif
15851'
15852# There is no point in checking if we don't have a prototype.
15853for ac_func in ptrace
15854do
15855 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
bec39cab
AC
15856echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
15857echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
15858if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15860else
15861 cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
086ec9eb
MK
15867#undef $ac_tr_decl
15868#define $ac_tr_decl 1
15869 $gdb_ptrace_headers
15870
bec39cab
AC
15871int
15872main ()
15873{
086ec9eb
MK
15874#ifndef $ac_func
15875char *(*pfn) = (char *(*)) $ac_func ;
15876#endif
bec39cab
AC
15877 ;
15878 return 0;
15879}
15880_ACEOF
15881rm -f conftest.$ac_objext
15882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
086ec9eb
MK
15903 eval "gcc_cv_have_decl_$ac_func=yes"
15904else
bec39cab
AC
15905 echo "$as_me: failed program was:" >&5
15906sed 's/^/| /' conftest.$ac_ext >&5
15907
15908eval "gcc_cv_have_decl_$ac_func=no"
086ec9eb 15909fi
bec39cab 15910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb
MK
15911fi
15912
15913if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
bec39cab
AC
15914 echo "$as_me:$LINENO: result: yes" >&5
15915echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
086ec9eb 15916#define $ac_tr_decl 1
bec39cab
AC
15917_ACEOF
15918
086ec9eb 15919else
bec39cab
AC
15920 echo "$as_me:$LINENO: result: no" >&5
15921echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
086ec9eb 15922#define $ac_tr_decl 0
bec39cab
AC
15923_ACEOF
15924
086ec9eb
MK
15925 : ${gdb_cv_func_ptrace_ret='int'}
15926 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15927
15928fi
15929
15930done
15931if test x = y ; then
bec39cab
AC
15932
15933cat >>confdefs.h <<\_ACEOF
086ec9eb 15934#define HAVE_DECL_PTRACE 1
bec39cab 15935_ACEOF
086ec9eb
MK
15936fi
15937
15938# Check return type.
bec39cab
AC
15939echo "$as_me:$LINENO: checking return type of ptrace" >&5
15940echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15941if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15943else
15944 cat >conftest.$ac_ext <<_ACEOF
15945/* confdefs.h. */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h. */
086ec9eb 15950$gdb_ptrace_headers
bec39cab
AC
15951int
15952main ()
15953{
5885ab49 15954extern int ptrace ();
bec39cab
AC
15955 ;
15956 return 0;
15957}
15958_ACEOF
15959rm -f conftest.$ac_objext
15960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>conftest.er1
15962 ac_status=$?
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
5885ab49 15981 gdb_cv_func_ptrace_ret='int'
086ec9eb 15982else
bec39cab
AC
15983 echo "$as_me: failed program was:" >&5
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
15986gdb_cv_func_ptrace_ret='long'
086ec9eb 15987fi
bec39cab 15988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb 15989fi
bec39cab
AC
15990echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15991echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
086ec9eb 15992
bec39cab 15993cat >>confdefs.h <<_ACEOF
086ec9eb 15994#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 15995_ACEOF
086ec9eb
MK
15996
15997# Check argument types.
bec39cab
AC
15998echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15999echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16000if test "${gdb_cv_func_ptrace_args+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
086ec9eb 16002else
bec39cab 16003
086ec9eb
MK
16004for gdb_arg1 in 'int' 'long'; do
16005 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16006 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16007 for gdb_arg4 in 'int' 'long'; do
bec39cab
AC
16008 cat >conftest.$ac_ext <<_ACEOF
16009/* confdefs.h. */
16010_ACEOF
16011cat confdefs.h >>conftest.$ac_ext
16012cat >>conftest.$ac_ext <<_ACEOF
16013/* end confdefs.h. */
086ec9eb 16014$gdb_ptrace_headers
bec39cab
AC
16015int
16016main ()
16017{
086ec9eb
MK
16018
16019extern $gdb_cv_func_ptrace_ret
16020 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16021
bec39cab
AC
16022 ;
16023 return 0;
16024}
16025_ACEOF
16026rm -f conftest.$ac_objext
16027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028 (eval $ac_compile) 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag"
16036 || test ! -s conftest.err'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
086ec9eb
MK
16048 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16049 break 4;
16050else
bec39cab
AC
16051 echo "$as_me: failed program was:" >&5
16052sed 's/^/| /' conftest.$ac_ext >&5
16053
086ec9eb 16054fi
bec39cab 16055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb 16056 for gdb_arg5 in 'int *' 'int' 'long'; do
bec39cab
AC
16057 cat >conftest.$ac_ext <<_ACEOF
16058/* confdefs.h. */
16059_ACEOF
16060cat confdefs.h >>conftest.$ac_ext
16061cat >>conftest.$ac_ext <<_ACEOF
16062/* end confdefs.h. */
086ec9eb 16063$gdb_ptrace_headers
bec39cab
AC
16064int
16065main ()
16066{
086ec9eb
MK
16067
16068extern $gdb_cv_func_ptrace_ret
16069 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16070
bec39cab
AC
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16077 (eval $ac_compile) 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
16084 { ac_try='test -z "$ac_c_werror_flag"
16085 || test ! -s conftest.err'
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097
086ec9eb
MK
16098gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16099 break 5;
16100else
bec39cab
AC
16101 echo "$as_me: failed program was:" >&5
16102sed 's/^/| /' conftest.$ac_ext >&5
16103
086ec9eb 16104fi
bec39cab 16105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
086ec9eb
MK
16106 done
16107 done
16108 done
16109 done
16110done
16111# Provide a safe default value.
16112: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16113
16114fi
bec39cab
AC
16115echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16116echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
086ec9eb
MK
16117ac_save_IFS=$IFS; IFS=','
16118set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16119IFS=$ac_save_IFS
16120shift
bec39cab
AC
16121
16122cat >>confdefs.h <<_ACEOF
64218d3e 16123#define PTRACE_TYPE_ARG3 $3
bec39cab 16124_ACEOF
086ec9eb
MK
16125
16126if test -n "$5"; then
bec39cab
AC
16127
16128cat >>confdefs.h <<_ACEOF
64218d3e 16129#define PTRACE_TYPE_ARG5 $5
bec39cab 16130_ACEOF
086ec9eb
MK
16131
16132fi
16133
97bf5e38 16134if test "$cross_compiling" = no; then
bec39cab
AC
16135 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16136echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16137if test "${ac_cv_func_setpgrp_void+set}" = set; then
16138 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
16139else
16140 if test "$cross_compiling" = yes; then
bec39cab
AC
16141 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16142echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16143 { (exit 1); exit 1; }; }
16144else
16145 cat >conftest.$ac_ext <<_ACEOF
16146/* confdefs.h. */
16147_ACEOF
16148cat confdefs.h >>conftest.$ac_ext
16149cat >>conftest.$ac_ext <<_ACEOF
16150/* end confdefs.h. */
16151#if HAVE_UNISTD_H
16152# include <unistd.h>
c906108c 16153#endif
97bf5e38 16154
bec39cab
AC
16155int
16156main ()
97bf5e38 16157{
bec39cab
AC
16158/* If this system has a BSD-style setpgrp which takes arguments,
16159 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16160 exit successfully. */
16161 exit (setpgrp (1,1) == -1 ? 0 : 1);
16162 ;
16163 return 0;
97bf5e38 16164}
bec39cab
AC
16165_ACEOF
16166rm -f conftest$ac_exeext
16167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16168 (eval $ac_link) 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
97bf5e38 16177 ac_cv_func_setpgrp_void=no
c906108c 16178else
bec39cab
AC
16179 echo "$as_me: program exited with status $ac_status" >&5
16180echo "$as_me: failed program was:" >&5
16181sed 's/^/| /' conftest.$ac_ext >&5
16182
16183( exit $ac_status )
16184ac_cv_func_setpgrp_void=yes
c906108c 16185fi
bec39cab 16186rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 16187fi
97bf5e38 16188fi
bec39cab
AC
16189echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16190echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
97bf5e38 16191if test $ac_cv_func_setpgrp_void = yes; then
bec39cab
AC
16192
16193cat >>confdefs.h <<\_ACEOF
97bf5e38 16194#define SETPGRP_VOID 1
bec39cab 16195_ACEOF
c906108c
SS
16196
16197fi
16198
97bf5e38 16199else
bec39cab
AC
16200 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16201echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16202if test "${ac_cv_func_setpgrp_void+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16204else
bec39cab
AC
16205 cat >conftest.$ac_ext <<_ACEOF
16206/* confdefs.h. */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h. */
b83266a0 16211
b83266a0 16212#include <unistd.h>
97bf5e38 16213
bec39cab
AC
16214int
16215main ()
16216{
97bf5e38
MK
16217
16218 if (setpgrp(1,1) == -1)
16219 exit (0);
16220 else
16221 exit (1);
16222
bec39cab
AC
16223 ;
16224 return 0;
16225}
16226_ACEOF
16227rm -f conftest.$ac_objext
16228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16229 (eval $ac_compile) 2>conftest.er1
16230 ac_status=$?
16231 grep -v '^ *+' conftest.er1 >conftest.err
16232 rm -f conftest.er1
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
16236 { ac_try='test -z "$ac_c_werror_flag"
16237 || test ! -s conftest.err'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; } &&
16243 { ac_try='test -s conftest.$ac_objext'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
97bf5e38 16249 ac_cv_func_setpgrp_void=no
b83266a0 16250else
bec39cab
AC
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254ac_cv_func_setpgrp_void=yes
b83266a0 16255fi
bec39cab 16256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b83266a0 16257fi
bec39cab
AC
16258echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16259echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
97bf5e38 16260if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 16261 cat >>confdefs.h <<\_ACEOF
97bf5e38 16262#define SETPGRP_VOID 1
bec39cab 16263_ACEOF
b83266a0 16264
97bf5e38 16265fi
b83266a0
SS
16266fi
16267
97bf5e38
MK
16268# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16269# since sigsetjmp might only be defined as a macro.
bec39cab
AC
16270echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16271echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16272if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274else
16275 cat >conftest.$ac_ext <<_ACEOF
16276/* confdefs.h. */
16277_ACEOF
16278cat confdefs.h >>conftest.$ac_ext
16279cat >>conftest.$ac_ext <<_ACEOF
16280/* end confdefs.h. */
a4db0f07 16281
97bf5e38
MK
16282#include <setjmp.h>
16283
bec39cab
AC
16284int
16285main ()
16286{
97bf5e38 16287sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
16288 ;
16289 return 0;
16290}
16291_ACEOF
16292rm -f conftest.$ac_objext
16293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag"
16302 || test ! -s conftest.err'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; } &&
16308 { ac_try='test -s conftest.$ac_objext'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
97bf5e38 16314 gdb_cv_func_sigsetjmp=yes
a4db0f07 16315else
bec39cab
AC
16316 echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319gdb_cv_func_sigsetjmp=no
a4db0f07 16320fi
bec39cab 16321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a4db0f07 16322fi
bec39cab
AC
16323echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16324echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
97bf5e38 16325if test $gdb_cv_func_sigsetjmp = yes; then
bec39cab
AC
16326
16327cat >>confdefs.h <<\_ACEOF
97bf5e38 16328#define HAVE_SIGSETJMP 1
bec39cab 16329_ACEOF
a4db0f07
RH
16330
16331fi
c906108c 16332
06825bd1
MK
16333# Assume we'll default to using the included libiberty regex.
16334gdb_use_included_regex=yes
16335
16336# However, if the system regex is GNU regex, then default to *not*
16337# using the included regex.
bec39cab
AC
16338echo "$as_me:$LINENO: checking for GNU regex" >&5
16339echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16340if test "${gdb_cv_have_gnu_regex+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342else
16343 cat >conftest.$ac_ext <<_ACEOF
16344/* confdefs.h. */
16345_ACEOF
16346cat confdefs.h >>conftest.$ac_ext
16347cat >>conftest.$ac_ext <<_ACEOF
16348/* end confdefs.h. */
06825bd1 16349#include <gnu-versions.h>
bec39cab
AC
16350int
16351main ()
16352{
06825bd1
MK
16353#define REGEX_INTERFACE_VERSION 1
16354#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16355# error "Version mismatch"
16356#endif
bec39cab
AC
16357 ;
16358 return 0;
16359}
16360_ACEOF
16361rm -f conftest.$ac_objext
16362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16363 (eval $ac_compile) 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest.$ac_objext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
06825bd1
MK
16383 gdb_cv_have_gnu_regex=yes
16384else
bec39cab
AC
16385 echo "$as_me: failed program was:" >&5
16386sed 's/^/| /' conftest.$ac_ext >&5
16387
16388gdb_cv_have_gnu_regex=no
06825bd1 16389fi
bec39cab 16390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16391fi
bec39cab
AC
16392echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16393echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
06825bd1
MK
16394if test $gdb_cv_have_gnu_regex = yes; then
16395 gdb_use_included_regex=no
16396fi
16397
bec39cab 16398
06825bd1
MK
16399# Check whether --with-included-regex or --without-included-regex was given.
16400if test "${with_included_regex+set}" = set; then
16401 withval="$with_included_regex"
16402 gdb_with_regex=$withval
16403else
16404 gdb_with_regex=$gdb_use_included_regex
bec39cab 16405fi;
06825bd1 16406if test "$gdb_with_regex" = yes; then
bec39cab
AC
16407
16408cat >>confdefs.h <<\_ACEOF
06825bd1 16409#define USE_INCLUDED_REGEX 1
bec39cab 16410_ACEOF
06825bd1
MK
16411
16412fi
16413
70f9f479 16414# See if <sys/proc.h> defines `struct thread' with a td_pcb member.
bec39cab
AC
16415echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5
16416echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6
16417if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16419else
16420 cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
d15be926 16426#include <sys/param.h>
70f9f479 16427#include <sys/proc.h>
bec39cab
AC
16428int
16429main ()
16430{
70f9f479 16431struct thread td; td.td_pcb;
bec39cab
AC
16432 ;
16433 return 0;
16434}
16435_ACEOF
16436rm -f conftest.$ac_objext
16437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16438 (eval $ac_compile) 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
70f9f479
MK
16458 gdb_cv_struct_thread_td_pcb=yes
16459else
bec39cab
AC
16460 echo "$as_me: failed program was:" >&5
16461sed 's/^/| /' conftest.$ac_ext >&5
16462
16463gdb_cv_struct_thread_td_pcb=no
70f9f479 16464fi
bec39cab 16465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16466fi
bec39cab
AC
16467echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5
16468echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6
70f9f479 16469if test $gdb_cv_struct_thread_td_pcb = yes; then
bec39cab
AC
16470
16471cat >>confdefs.h <<\_ACEOF
70f9f479 16472#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 16473_ACEOF
70f9f479
MK
16474
16475fi
16476
5c7f2947 16477# See if <sys/lwp.h> defines `struct lwp`.
bec39cab
AC
16478echo "$as_me:$LINENO: checking for struct lwp" >&5
16479echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16480if test "${gdb_cv_struct_lwp+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
16483 cat >conftest.$ac_ext <<_ACEOF
16484/* confdefs.h. */
16485_ACEOF
16486cat confdefs.h >>conftest.$ac_ext
16487cat >>conftest.$ac_ext <<_ACEOF
16488/* end confdefs.h. */
5c7f2947
MK
16489#include <sys/param.h>
16490#include <sys/lwp.h>
bec39cab
AC
16491int
16492main ()
16493{
5c7f2947 16494struct lwp l;
bec39cab
AC
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>conftest.er1
16502 ac_status=$?
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -z "$ac_c_werror_flag"
16509 || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
5c7f2947
MK
16521 gdb_cv_struct_lwp=yes
16522else
bec39cab
AC
16523 echo "$as_me: failed program was:" >&5
16524sed 's/^/| /' conftest.$ac_ext >&5
16525
16526gdb_cv_struct_lwp=no
5c7f2947 16527fi
bec39cab 16528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5c7f2947 16529fi
bec39cab
AC
16530echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16531echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
5c7f2947 16532if test $gdb_cv_struct_lwp = yes; then
bec39cab
AC
16533
16534cat >>confdefs.h <<\_ACEOF
5c7f2947 16535#define HAVE_STRUCT_LWP 1
bec39cab 16536_ACEOF
5c7f2947
MK
16537
16538fi
16539
78434e59 16540# See if <machine/reg.h> degines `struct reg'.
bec39cab
AC
16541echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16542echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16543if test "${gdb_cv_struct_reg+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545else
16546 cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h. */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h. */
78434e59
MK
16552#include <sys/types.h>
16553#include <machine/reg.h>
bec39cab
AC
16554int
16555main ()
16556{
78434e59 16557struct reg r;
bec39cab
AC
16558 ;
16559 return 0;
16560}
16561_ACEOF
16562rm -f conftest.$ac_objext
16563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16564 (eval $ac_compile) 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -z "$ac_c_werror_flag"
16572 || test ! -s conftest.err'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest.$ac_objext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
78434e59
MK
16584 gdb_cv_struct_reg=yes
16585else
bec39cab
AC
16586 echo "$as_me: failed program was:" >&5
16587sed 's/^/| /' conftest.$ac_ext >&5
16588
16589gdb_cv_struct_reg=no
78434e59 16590fi
bec39cab 16591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 16592fi
bec39cab
AC
16593echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16594echo "${ECHO_T}$gdb_cv_struct_reg" >&6
78434e59 16595if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
16596
16597cat >>confdefs.h <<\_ACEOF
78434e59 16598#define HAVE_STRUCT_REG 1
bec39cab 16599_ACEOF
78434e59
MK
16600
16601fi
16602
97bf5e38
MK
16603# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16604# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
bec39cab
AC
16605echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5
16606echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6
16607if test "${gdb_cv_struct_reg_r_fs+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609else
16610 cat >conftest.$ac_ext <<_ACEOF
16611/* confdefs.h. */
16612_ACEOF
16613cat confdefs.h >>conftest.$ac_ext
16614cat >>conftest.$ac_ext <<_ACEOF
16615/* end confdefs.h. */
97bf5e38 16616#include <machine/reg.h>
bec39cab
AC
16617int
16618main ()
16619{
97bf5e38 16620struct reg r; r.r_fs;
bec39cab
AC
16621 ;
16622 return 0;
16623}
16624_ACEOF
16625rm -f conftest.$ac_objext
16626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16627 (eval $ac_compile) 2>conftest.er1
16628 ac_status=$?
16629 grep -v '^ *+' conftest.er1 >conftest.err
16630 rm -f conftest.er1
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try='test -z "$ac_c_werror_flag"
16635 || test ! -s conftest.err'
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
97bf5e38 16647 gdb_cv_struct_reg_r_fs=yes
c906108c 16648else
bec39cab
AC
16649 echo "$as_me: failed program was:" >&5
16650sed 's/^/| /' conftest.$ac_ext >&5
16651
16652gdb_cv_struct_reg_r_fs=no
c906108c 16653fi
bec39cab 16654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 16655fi
bec39cab
AC
16656echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5
16657echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6
97bf5e38 16658if test $gdb_cv_struct_reg_r_fs = yes; then
bec39cab 16659 cat >>confdefs.h <<\_ACEOF
97bf5e38 16660#define HAVE_STRUCT_REG_R_FS 1
bec39cab 16661_ACEOF
97bf5e38
MK
16662
16663fi
bec39cab
AC
16664echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5
16665echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6
16666if test "${gdb_cv_struct_reg_r_gs+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16668else
bec39cab
AC
16669 cat >conftest.$ac_ext <<_ACEOF
16670/* confdefs.h. */
16671_ACEOF
16672cat confdefs.h >>conftest.$ac_ext
16673cat >>conftest.$ac_ext <<_ACEOF
16674/* end confdefs.h. */
97bf5e38 16675#include <machine/reg.h>
bec39cab
AC
16676int
16677main ()
16678{
97bf5e38 16679struct reg r; r.r_gs;
bec39cab
AC
16680 ;
16681 return 0;
16682}
16683_ACEOF
16684rm -f conftest.$ac_objext
16685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16686 (eval $ac_compile) 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag"
16694 || test ! -s conftest.err'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; } &&
16700 { ac_try='test -s conftest.$ac_objext'
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
97bf5e38 16706 gdb_cv_struct_reg_r_gs=yes
c906108c 16707else
bec39cab
AC
16708 echo "$as_me: failed program was:" >&5
16709sed 's/^/| /' conftest.$ac_ext >&5
16710
16711gdb_cv_struct_reg_r_gs=no
c906108c 16712fi
bec39cab 16713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16714fi
bec39cab
AC
16715echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5
16716echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6
97bf5e38 16717if test $gdb_cv_struct_reg_r_gs = yes; then
bec39cab 16718 cat >>confdefs.h <<\_ACEOF
97bf5e38 16719#define HAVE_STRUCT_REG_R_GS 1
bec39cab 16720_ACEOF
c3f6f71d 16721
c906108c
SS
16722fi
16723
97bf5e38 16724# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
bec39cab
AC
16725echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16726echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16727if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16729else
16730 cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
97bf5e38 16736#include <sys/ptrace.h>
bec39cab
AC
16737int
16738main ()
16739{
97bf5e38 16740PTRACE_GETREGS;
bec39cab
AC
16741 ;
16742 return 0;
16743}
16744_ACEOF
16745rm -f conftest.$ac_objext
16746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16747 (eval $ac_compile) 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag"
16755 || test ! -s conftest.err'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
97bf5e38 16767 gdb_cv_have_ptrace_getregs=yes
c906108c 16768else
bec39cab
AC
16769 echo "$as_me: failed program was:" >&5
16770sed 's/^/| /' conftest.$ac_ext >&5
16771
16772gdb_cv_have_ptrace_getregs=no
c906108c 16773fi
bec39cab 16774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16775fi
16776
bec39cab
AC
16777echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16778echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
97bf5e38 16779if test $gdb_cv_have_ptrace_getregs = yes; then
bec39cab 16780 cat >>confdefs.h <<\_ACEOF
97bf5e38 16781#define HAVE_PTRACE_GETREGS 1
bec39cab 16782_ACEOF
c906108c 16783
97bf5e38 16784fi
c906108c 16785
97bf5e38 16786# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
bec39cab
AC
16787echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16788echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16789if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16791else
16792 cat >conftest.$ac_ext <<_ACEOF
16793/* confdefs.h. */
16794_ACEOF
16795cat confdefs.h >>conftest.$ac_ext
16796cat >>conftest.$ac_ext <<_ACEOF
16797/* end confdefs.h. */
97bf5e38 16798#include <sys/ptrace.h>
bec39cab
AC
16799int
16800main ()
16801{
97bf5e38 16802PTRACE_GETFPXREGS;
bec39cab
AC
16803 ;
16804 return 0;
16805}
16806_ACEOF
16807rm -f conftest.$ac_objext
16808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16809 (eval $ac_compile) 2>conftest.er1
16810 ac_status=$?
16811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag"
16817 || test ! -s conftest.err'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
97bf5e38 16829 gdb_cv_have_ptrace_getfpxregs=yes
c906108c 16830else
bec39cab
AC
16831 echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
16834gdb_cv_have_ptrace_getfpxregs=no
c906108c 16835fi
bec39cab 16836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16837fi
16838
bec39cab
AC
16839echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16840echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
97bf5e38 16841if test $gdb_cv_have_ptrace_getfpxregs = yes; then
bec39cab 16842 cat >>confdefs.h <<\_ACEOF
97bf5e38 16843#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 16844_ACEOF
c906108c 16845
97bf5e38 16846fi
c906108c 16847
97bf5e38 16848# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
bec39cab
AC
16849echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16850echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16851if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16853else
16854 cat >conftest.$ac_ext <<_ACEOF
16855/* confdefs.h. */
16856_ACEOF
16857cat confdefs.h >>conftest.$ac_ext
16858cat >>conftest.$ac_ext <<_ACEOF
16859/* end confdefs.h. */
97bf5e38
MK
16860#include <sys/types.h>
16861#include <sys/ptrace.h>
bec39cab
AC
16862int
16863main ()
16864{
97bf5e38 16865PT_GETDBREGS;
bec39cab
AC
16866 ;
16867 return 0;
16868}
16869_ACEOF
16870rm -f conftest.$ac_objext
16871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } &&
16879 { ac_try='test -z "$ac_c_werror_flag"
16880 || test ! -s conftest.err'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try='test -s conftest.$ac_objext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
97bf5e38 16892 gdb_cv_have_pt_getdbregs=yes
c906108c 16893else
bec39cab
AC
16894 echo "$as_me: failed program was:" >&5
16895sed 's/^/| /' conftest.$ac_ext >&5
16896
16897gdb_cv_have_pt_getdbregs=no
c906108c 16898fi
bec39cab 16899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16900fi
16901
bec39cab
AC
16902echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16903echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
97bf5e38 16904if test $gdb_cv_have_pt_getdbregs = yes; then
bec39cab 16905 cat >>confdefs.h <<\_ACEOF
97bf5e38 16906#define HAVE_PT_GETDBREGS 1
bec39cab 16907_ACEOF
c906108c 16908
97bf5e38 16909fi
c906108c 16910
97bf5e38 16911# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
bec39cab
AC
16912echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16913echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16914if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16916else
16917 cat >conftest.$ac_ext <<_ACEOF
16918/* confdefs.h. */
16919_ACEOF
16920cat confdefs.h >>conftest.$ac_ext
16921cat >>conftest.$ac_ext <<_ACEOF
16922/* end confdefs.h. */
97bf5e38
MK
16923#include <sys/types.h>
16924#include <sys/ptrace.h>
bec39cab
AC
16925int
16926main ()
16927{
97bf5e38 16928PT_GETXMMREGS;
bec39cab
AC
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933rm -f conftest.$ac_objext
16934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16935 (eval $ac_compile) 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
97bf5e38 16955 gdb_cv_have_pt_getxmmregs=yes
c906108c 16956else
bec39cab
AC
16957 echo "$as_me: failed program was:" >&5
16958sed 's/^/| /' conftest.$ac_ext >&5
16959
16960gdb_cv_have_pt_getxmmregs=no
c906108c 16961fi
bec39cab 16962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
16963fi
16964
bec39cab
AC
16965echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16966echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
97bf5e38 16967if test $gdb_cv_have_pt_getxmmregs = yes; then
bec39cab 16968 cat >>confdefs.h <<\_ACEOF
97bf5e38 16969#define HAVE_PT_GETXMMREGS 1
bec39cab 16970_ACEOF
c906108c 16971
97bf5e38 16972fi
c906108c 16973
27ca5dad 16974# See if stdint.h provides the uintptr_t type.
d3e0a5bf 16975# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
bec39cab
AC
16976echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
16977echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
16978if test "${gdb_cv_have_uintptr_t+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980else
16981 cat >conftest.$ac_ext <<_ACEOF
16982/* confdefs.h. */
16983_ACEOF
16984cat confdefs.h >>conftest.$ac_ext
16985cat >>conftest.$ac_ext <<_ACEOF
16986/* end confdefs.h. */
27ca5dad 16987#include <stdint.h>
bec39cab
AC
16988int
16989main ()
16990{
27ca5dad 16991uintptr_t foo = 0;
bec39cab
AC
16992 ;
16993 return 0;
16994}
16995_ACEOF
16996rm -f conftest.$ac_objext
16997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16998 (eval $ac_compile) 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag"
17006 || test ! -s conftest.err'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest.$ac_objext'
17013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
27ca5dad
MC
17018 gdb_cv_have_uintptr_t=yes
17019else
bec39cab
AC
17020 echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023gdb_cv_have_uintptr_t=no
27ca5dad 17024fi
bec39cab 17025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 17026fi
bec39cab
AC
17027echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17028echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
27ca5dad 17029if test $gdb_cv_have_uintptr_t = yes; then
bec39cab
AC
17030
17031cat >>confdefs.h <<\_ACEOF
27ca5dad 17032#define HAVE_UINTPTR_T 1
bec39cab 17033_ACEOF
27ca5dad
MC
17034
17035fi
97bf5e38 17036
bec39cab
AC
17037echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
17038echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
17039if test "${bfd_cv_decl_needed_malloc+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17041else
bec39cab
AC
17042 cat >conftest.$ac_ext <<_ACEOF
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
e17bf198 17048
97bf5e38
MK
17049#include <stdio.h>
17050#ifdef HAVE_STRING_H
17051#include <string.h>
17052#else
17053#ifdef HAVE_STRINGS_H
17054#include <strings.h>
17055#endif
17056#endif
17057#ifdef HAVE_STDLIB_H
17058#include <stdlib.h>
17059#endif
17060#ifdef HAVE_UNISTD_H
17061#include <unistd.h>
17062#endif
bec39cab
AC
17063int
17064main ()
17065{
97bf5e38 17066char *(*pfn) = (char *(*)) malloc
bec39cab
AC
17067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext
17072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17073 (eval $ac_compile) 2>conftest.er1
17074 ac_status=$?
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag"
17081 || test ! -s conftest.err'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest.$ac_objext'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
97bf5e38 17093 bfd_cv_decl_needed_malloc=no
3862412b 17094else
bec39cab
AC
17095 echo "$as_me: failed program was:" >&5
17096sed 's/^/| /' conftest.$ac_ext >&5
17097
17098bfd_cv_decl_needed_malloc=yes
3862412b 17099fi
bec39cab 17100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17101fi
17102
bec39cab
AC
17103echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
17104echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
97bf5e38 17105if test $bfd_cv_decl_needed_malloc = yes; then
bec39cab
AC
17106
17107cat >>confdefs.h <<\_ACEOF
97bf5e38 17108#define NEED_DECLARATION_MALLOC 1
bec39cab 17109_ACEOF
3862412b 17110
97bf5e38 17111fi
3862412b 17112
bec39cab
AC
17113echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
17114echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
17115if test "${bfd_cv_decl_needed_realloc+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17117else
bec39cab
AC
17118 cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
e17bf198 17124
97bf5e38
MK
17125#include <stdio.h>
17126#ifdef HAVE_STRING_H
17127#include <string.h>
17128#else
17129#ifdef HAVE_STRINGS_H
17130#include <strings.h>
17131#endif
17132#endif
17133#ifdef HAVE_STDLIB_H
17134#include <stdlib.h>
17135#endif
17136#ifdef HAVE_UNISTD_H
17137#include <unistd.h>
17138#endif
bec39cab
AC
17139int
17140main ()
17141{
97bf5e38 17142char *(*pfn) = (char *(*)) realloc
bec39cab
AC
17143 ;
17144 return 0;
17145}
17146_ACEOF
17147rm -f conftest.$ac_objext
17148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag"
17157 || test ! -s conftest.err'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest.$ac_objext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
97bf5e38 17169 bfd_cv_decl_needed_realloc=no
3862412b 17170else
bec39cab
AC
17171 echo "$as_me: failed program was:" >&5
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
17174bfd_cv_decl_needed_realloc=yes
3862412b 17175fi
bec39cab 17176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17177fi
17178
bec39cab
AC
17179echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
17180echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
97bf5e38 17181if test $bfd_cv_decl_needed_realloc = yes; then
bec39cab
AC
17182
17183cat >>confdefs.h <<\_ACEOF
97bf5e38 17184#define NEED_DECLARATION_REALLOC 1
bec39cab 17185_ACEOF
3862412b 17186
97bf5e38 17187fi
3862412b 17188
bec39cab
AC
17189echo "$as_me:$LINENO: checking whether free must be declared" >&5
17190echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
17191if test "${bfd_cv_decl_needed_free+set}" = set; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17193else
bec39cab
AC
17194 cat >conftest.$ac_ext <<_ACEOF
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
17199/* end confdefs.h. */
e17bf198 17200
97bf5e38
MK
17201#include <stdio.h>
17202#ifdef HAVE_STRING_H
17203#include <string.h>
17204#else
17205#ifdef HAVE_STRINGS_H
17206#include <strings.h>
17207#endif
17208#endif
17209#ifdef HAVE_STDLIB_H
17210#include <stdlib.h>
17211#endif
17212#ifdef HAVE_UNISTD_H
17213#include <unistd.h>
17214#endif
bec39cab
AC
17215int
17216main ()
17217{
97bf5e38 17218char *(*pfn) = (char *(*)) free
bec39cab
AC
17219 ;
17220 return 0;
17221}
17222_ACEOF
17223rm -f conftest.$ac_objext
17224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225 (eval $ac_compile) 2>conftest.er1
17226 ac_status=$?
17227 grep -v '^ *+' conftest.er1 >conftest.err
17228 rm -f conftest.er1
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag"
17233 || test ! -s conftest.err'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; } &&
17239 { ac_try='test -s conftest.$ac_objext'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
97bf5e38 17245 bfd_cv_decl_needed_free=no
451928c5 17246else
bec39cab
AC
17247 echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250bfd_cv_decl_needed_free=yes
451928c5 17251fi
bec39cab 17252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17253fi
17254
bec39cab
AC
17255echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
17256echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
97bf5e38 17257if test $bfd_cv_decl_needed_free = yes; then
bec39cab
AC
17258
17259cat >>confdefs.h <<\_ACEOF
97bf5e38 17260#define NEED_DECLARATION_FREE 1
bec39cab 17261_ACEOF
451928c5 17262
97bf5e38 17263fi
451928c5 17264
bec39cab
AC
17265echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
17266echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
17267if test "${bfd_cv_decl_needed_strerror+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17269else
bec39cab
AC
17270 cat >conftest.$ac_ext <<_ACEOF
17271/* confdefs.h. */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h. */
e17bf198 17276
97bf5e38
MK
17277#include <stdio.h>
17278#ifdef HAVE_STRING_H
17279#include <string.h>
17280#else
17281#ifdef HAVE_STRINGS_H
17282#include <strings.h>
17283#endif
17284#endif
17285#ifdef HAVE_STDLIB_H
17286#include <stdlib.h>
17287#endif
17288#ifdef HAVE_UNISTD_H
17289#include <unistd.h>
17290#endif
bec39cab
AC
17291int
17292main ()
17293{
97bf5e38 17294char *(*pfn) = (char *(*)) strerror
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
97bf5e38 17321 bfd_cv_decl_needed_strerror=no
451928c5 17322else
bec39cab
AC
17323 echo "$as_me: failed program was:" >&5
17324sed 's/^/| /' conftest.$ac_ext >&5
17325
17326bfd_cv_decl_needed_strerror=yes
451928c5 17327fi
bec39cab 17328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17329fi
17330
bec39cab
AC
17331echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
17332echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
97bf5e38 17333if test $bfd_cv_decl_needed_strerror = yes; then
bec39cab
AC
17334
17335cat >>confdefs.h <<\_ACEOF
97bf5e38 17336#define NEED_DECLARATION_STRERROR 1
bec39cab 17337_ACEOF
451928c5 17338
97bf5e38 17339fi
451928c5 17340
bec39cab
AC
17341echo "$as_me:$LINENO: checking whether strdup must be declared" >&5
17342echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6
17343if test "${bfd_cv_decl_needed_strdup+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17345else
bec39cab
AC
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. */
e17bf198 17352
97bf5e38
MK
17353#include <stdio.h>
17354#ifdef HAVE_STRING_H
17355#include <string.h>
17356#else
17357#ifdef HAVE_STRINGS_H
17358#include <strings.h>
17359#endif
17360#endif
17361#ifdef HAVE_STDLIB_H
17362#include <stdlib.h>
17363#endif
17364#ifdef HAVE_UNISTD_H
17365#include <unistd.h>
17366#endif
bec39cab
AC
17367int
17368main ()
17369{
97bf5e38 17370char *(*pfn) = (char *(*)) strdup
bec39cab
AC
17371 ;
17372 return 0;
17373}
17374_ACEOF
17375rm -f conftest.$ac_objext
17376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17377 (eval $ac_compile) 2>conftest.er1
17378 ac_status=$?
17379 grep -v '^ *+' conftest.er1 >conftest.err
17380 rm -f conftest.er1
17381 cat conftest.err >&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } &&
17384 { ac_try='test -z "$ac_c_werror_flag"
17385 || test ! -s conftest.err'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; } &&
17391 { ac_try='test -s conftest.$ac_objext'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
97bf5e38 17397 bfd_cv_decl_needed_strdup=no
3862412b 17398else
bec39cab
AC
17399 echo "$as_me: failed program was:" >&5
17400sed 's/^/| /' conftest.$ac_ext >&5
17401
17402bfd_cv_decl_needed_strdup=yes
3862412b 17403fi
bec39cab 17404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17405fi
17406
bec39cab
AC
17407echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5
17408echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6
97bf5e38 17409if test $bfd_cv_decl_needed_strdup = yes; then
bec39cab
AC
17410
17411cat >>confdefs.h <<\_ACEOF
97bf5e38 17412#define NEED_DECLARATION_STRDUP 1
bec39cab 17413_ACEOF
3862412b 17414
97bf5e38 17415fi
3862412b 17416
bec39cab
AC
17417echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
17418echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
17419if test "${bfd_cv_decl_needed_strstr+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17421else
bec39cab
AC
17422 cat >conftest.$ac_ext <<_ACEOF
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
e17bf198 17428
97bf5e38
MK
17429#include <stdio.h>
17430#ifdef HAVE_STRING_H
17431#include <string.h>
17432#else
17433#ifdef HAVE_STRINGS_H
17434#include <strings.h>
17435#endif
17436#endif
17437#ifdef HAVE_STDLIB_H
17438#include <stdlib.h>
17439#endif
17440#ifdef HAVE_UNISTD_H
17441#include <unistd.h>
17442#endif
bec39cab
AC
17443int
17444main ()
17445{
97bf5e38 17446char *(*pfn) = (char *(*)) strstr
bec39cab
AC
17447 ;
17448 return 0;
17449}
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag"
17461 || test ! -s conftest.err'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest.$ac_objext'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
97bf5e38 17473 bfd_cv_decl_needed_strstr=no
3862412b 17474else
bec39cab
AC
17475 echo "$as_me: failed program was:" >&5
17476sed 's/^/| /' conftest.$ac_ext >&5
17477
17478bfd_cv_decl_needed_strstr=yes
3862412b 17479fi
bec39cab 17480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17481fi
17482
bec39cab
AC
17483echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
17484echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
97bf5e38 17485if test $bfd_cv_decl_needed_strstr = yes; then
bec39cab
AC
17486
17487cat >>confdefs.h <<\_ACEOF
97bf5e38 17488#define NEED_DECLARATION_STRSTR 1
bec39cab 17489_ACEOF
3862412b 17490
97bf5e38 17491fi
3862412b 17492
bec39cab
AC
17493echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
17494echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
17495if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17497else
bec39cab
AC
17498 cat >conftest.$ac_ext <<_ACEOF
17499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
596c9d4b 17504
97bf5e38
MK
17505#include <stdio.h>
17506#ifdef HAVE_STRING_H
17507#include <string.h>
17508#else
17509#ifdef HAVE_STRINGS_H
17510#include <strings.h>
17511#endif
17512#endif
17513#ifdef HAVE_STDLIB_H
17514#include <stdlib.h>
17515#endif
17516#ifdef HAVE_UNISTD_H
17517#include <unistd.h>
17518#endif
bec39cab
AC
17519int
17520main ()
17521{
97bf5e38 17522char *(*pfn) = (char *(*)) canonicalize_file_name
bec39cab
AC
17523 ;
17524 return 0;
17525}
17526_ACEOF
17527rm -f conftest.$ac_objext
17528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17529 (eval $ac_compile) 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag"
17537 || test ! -s conftest.err'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest.$ac_objext'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
97bf5e38 17549 bfd_cv_decl_needed_canonicalize_file_name=no
596c9d4b 17550else
bec39cab
AC
17551 echo "$as_me: failed program was:" >&5
17552sed 's/^/| /' conftest.$ac_ext >&5
17553
17554bfd_cv_decl_needed_canonicalize_file_name=yes
596c9d4b 17555fi
bec39cab 17556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17557fi
17558
bec39cab
AC
17559echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5
17560echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6
97bf5e38 17561if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
bec39cab
AC
17562
17563cat >>confdefs.h <<\_ACEOF
97bf5e38 17564#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
bec39cab 17565_ACEOF
596c9d4b 17566
97bf5e38 17567fi
596c9d4b 17568
97bf5e38 17569
97bf5e38
MK
17570# If we are configured native on GNU/Linux, work around problems with
17571# sys/procfs.h
17572# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17573
17574if test "${target}" = "${host}"; then
17575 case "${host}" in
17576 i[3456]86-*-linux*)
bec39cab 17577 cat >>confdefs.h <<\_ACEOF
97bf5e38 17578#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17579_ACEOF
97bf5e38 17580
bec39cab 17581 cat >>confdefs.h <<\_ACEOF
97bf5e38 17582#define sys_quotactl 1
bec39cab 17583_ACEOF
97bf5e38
MK
17584
17585 ;;
17586 ia64-*-aix*)
bec39cab 17587 cat >>confdefs.h <<\_ACEOF
97bf5e38 17588#define NEW_PROC_API 1
bec39cab 17589_ACEOF
97bf5e38
MK
17590
17591 ;;
17592 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
bec39cab 17593 cat >>confdefs.h <<\_ACEOF
97bf5e38 17594#define NEW_PROC_API 1
bec39cab 17595_ACEOF
97bf5e38
MK
17596
17597 ;;
0bbc026e 17598 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
bec39cab 17599 cat >>confdefs.h <<\_ACEOF
97bf5e38 17600#define NEW_PROC_API 1
bec39cab 17601_ACEOF
c960c18f
AC
17602
17603 ;;
17604 mips-sgi-irix5*)
17605 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
bec39cab 17606 cat >>confdefs.h <<\_ACEOF
c960c18f 17607#define _KMEMUSER 1
bec39cab 17608_ACEOF
97bf5e38
MK
17609
17610 ;;
17611 esac
17612fi
17613
17614if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17615 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17616echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17617 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17619else
17620 cat >conftest.$ac_ext <<_ACEOF
17621/* confdefs.h. */
17622_ACEOF
17623cat confdefs.h >>conftest.$ac_ext
17624cat >>conftest.$ac_ext <<_ACEOF
17625/* end confdefs.h. */
596c9d4b
KB
17626
17627#define _SYSCALL32
17628#include <sys/procfs.h>
bec39cab
AC
17629int
17630main ()
17631{
97bf5e38 17632pstatus_t avar
bec39cab
AC
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext
17638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17639 (eval $ac_compile) 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag"
17647 || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest.$ac_objext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
97bf5e38 17659 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17660else
bec39cab
AC
17661 echo "$as_me: failed program was:" >&5
17662sed 's/^/| /' conftest.$ac_ext >&5
17663
17664bfd_cv_have_sys_procfs_type_pstatus_t=no
17665
596c9d4b 17666fi
bec39cab 17667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17668fi
17669
97bf5e38 17670 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17671
17672cat >>confdefs.h <<\_ACEOF
97bf5e38 17673#define HAVE_PSTATUS_T 1
bec39cab 17674_ACEOF
596c9d4b
KB
17675
17676 fi
bec39cab
AC
17677 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17678echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17679
bec39cab
AC
17680 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17681echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17682 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17684else
bec39cab
AC
17685 cat >conftest.$ac_ext <<_ACEOF
17686/* confdefs.h. */
17687_ACEOF
17688cat confdefs.h >>conftest.$ac_ext
17689cat >>conftest.$ac_ext <<_ACEOF
17690/* end confdefs.h. */
596c9d4b
KB
17691
17692#define _SYSCALL32
17693#include <sys/procfs.h>
bec39cab
AC
17694int
17695main ()
17696{
97bf5e38 17697prrun_t avar
bec39cab
AC
17698 ;
17699 return 0;
17700}
17701_ACEOF
17702rm -f conftest.$ac_objext
17703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704 (eval $ac_compile) 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag"
17712 || test ! -s conftest.err'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest.$ac_objext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
97bf5e38 17724 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 17725else
bec39cab
AC
17726 echo "$as_me: failed program was:" >&5
17727sed 's/^/| /' conftest.$ac_ext >&5
17728
17729bfd_cv_have_sys_procfs_type_prrun_t=no
17730
596c9d4b 17731fi
bec39cab 17732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17733fi
17734
97bf5e38 17735 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
17736
17737cat >>confdefs.h <<\_ACEOF
97bf5e38 17738#define HAVE_PRRUN_T 1
bec39cab 17739_ACEOF
596c9d4b
KB
17740
17741 fi
bec39cab
AC
17742 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17743echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 17744
bec39cab
AC
17745 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17746echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17747 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17749else
bec39cab
AC
17750 cat >conftest.$ac_ext <<_ACEOF
17751/* confdefs.h. */
17752_ACEOF
17753cat confdefs.h >>conftest.$ac_ext
17754cat >>conftest.$ac_ext <<_ACEOF
17755/* end confdefs.h. */
596c9d4b
KB
17756
17757#define _SYSCALL32
17758#include <sys/procfs.h>
bec39cab
AC
17759int
17760main ()
17761{
97bf5e38 17762gregset_t avar
bec39cab
AC
17763 ;
17764 return 0;
17765}
17766_ACEOF
17767rm -f conftest.$ac_objext
17768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17769 (eval $ac_compile) 2>conftest.er1
17770 ac_status=$?
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
97bf5e38 17789 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 17790else
bec39cab
AC
17791 echo "$as_me: failed program was:" >&5
17792sed 's/^/| /' conftest.$ac_ext >&5
17793
17794bfd_cv_have_sys_procfs_type_gregset_t=no
17795
596c9d4b 17796fi
bec39cab 17797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17798fi
17799
97bf5e38 17800 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
17801
17802cat >>confdefs.h <<\_ACEOF
97bf5e38 17803#define HAVE_GREGSET_T 1
bec39cab 17804_ACEOF
596c9d4b
KB
17805
17806 fi
bec39cab
AC
17807 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17808echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 17809
bec39cab
AC
17810 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17811echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17812 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 17814else
bec39cab
AC
17815 cat >conftest.$ac_ext <<_ACEOF
17816/* confdefs.h. */
17817_ACEOF
17818cat confdefs.h >>conftest.$ac_ext
17819cat >>conftest.$ac_ext <<_ACEOF
17820/* end confdefs.h. */
97bf5e38
MK
17821
17822#define _SYSCALL32
d84dd0c5 17823#include <sys/procfs.h>
bec39cab
AC
17824int
17825main ()
17826{
97bf5e38 17827fpregset_t avar
bec39cab
AC
17828 ;
17829 return 0;
17830}
17831_ACEOF
17832rm -f conftest.$ac_objext
17833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17834 (eval $ac_compile) 2>conftest.er1
17835 ac_status=$?
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try='test -z "$ac_c_werror_flag"
17842 || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest.$ac_objext'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
97bf5e38 17854 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 17855else
bec39cab
AC
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859bfd_cv_have_sys_procfs_type_fpregset_t=no
17860
d84dd0c5 17861fi
bec39cab 17862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
17863fi
17864
97bf5e38 17865 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
17866
17867cat >>confdefs.h <<\_ACEOF
97bf5e38 17868#define HAVE_FPREGSET_T 1
bec39cab 17869_ACEOF
d84dd0c5 17870
97bf5e38 17871 fi
bec39cab
AC
17872 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17873echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 17874
bec39cab
AC
17875 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17876echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17877 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 17879else
bec39cab
AC
17880 cat >conftest.$ac_ext <<_ACEOF
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h. */
c906108c 17886
97bf5e38
MK
17887#define _SYSCALL32
17888#include <sys/procfs.h>
bec39cab
AC
17889int
17890main ()
17891{
97bf5e38 17892prgregset_t avar
bec39cab
AC
17893 ;
17894 return 0;
17895}
17896_ACEOF
17897rm -f conftest.$ac_objext
17898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17899 (eval $ac_compile) 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag"
17907 || test ! -s conftest.err'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; } &&
17913 { ac_try='test -s conftest.$ac_objext'
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
97bf5e38 17919 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 17920else
bec39cab
AC
17921 echo "$as_me: failed program was:" >&5
17922sed 's/^/| /' conftest.$ac_ext >&5
17923
17924bfd_cv_have_sys_procfs_type_prgregset_t=no
17925
c906108c 17926fi
bec39cab 17927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
17928fi
17929
97bf5e38 17930 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
17931
17932cat >>confdefs.h <<\_ACEOF
97bf5e38 17933#define HAVE_PRGREGSET_T 1
bec39cab 17934_ACEOF
c906108c 17935
97bf5e38 17936 fi
bec39cab
AC
17937 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17938echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 17939
bec39cab
AC
17940 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17941echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17942 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 17944else
bec39cab
AC
17945 cat >conftest.$ac_ext <<_ACEOF
17946/* confdefs.h. */
17947_ACEOF
17948cat confdefs.h >>conftest.$ac_ext
17949cat >>conftest.$ac_ext <<_ACEOF
17950/* end confdefs.h. */
97bf5e38
MK
17951
17952#define _SYSCALL32
17953#include <sys/procfs.h>
bec39cab
AC
17954int
17955main ()
17956{
97bf5e38 17957prfpregset_t avar
bec39cab
AC
17958 ;
17959 return 0;
17960}
17961_ACEOF
17962rm -f conftest.$ac_objext
17963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17964 (eval $ac_compile) 2>conftest.er1
17965 ac_status=$?
17966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } &&
17971 { ac_try='test -z "$ac_c_werror_flag"
17972 || test ! -s conftest.err'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } &&
17978 { ac_try='test -s conftest.$ac_objext'
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
97bf5e38 17984 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 17985else
bec39cab
AC
17986 echo "$as_me: failed program was:" >&5
17987sed 's/^/| /' conftest.$ac_ext >&5
17988
17989bfd_cv_have_sys_procfs_type_prfpregset_t=no
17990
d45fe813 17991fi
bec39cab 17992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
17993fi
17994
97bf5e38 17995 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
17996
17997cat >>confdefs.h <<\_ACEOF
97bf5e38 17998#define HAVE_PRFPREGSET_T 1
bec39cab 17999_ACEOF
d45fe813 18000
97bf5e38 18001 fi
bec39cab
AC
18002 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18003echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 18004
bec39cab
AC
18005 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18006echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18007 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18009else
bec39cab
AC
18010 cat >conftest.$ac_ext <<_ACEOF
18011/* confdefs.h. */
18012_ACEOF
18013cat confdefs.h >>conftest.$ac_ext
18014cat >>conftest.$ac_ext <<_ACEOF
18015/* end confdefs.h. */
97bf5e38
MK
18016
18017#define _SYSCALL32
18018#include <sys/procfs.h>
bec39cab
AC
18019int
18020main ()
18021{
97bf5e38 18022prgregset32_t avar
bec39cab
AC
18023 ;
18024 return 0;
18025}
18026_ACEOF
18027rm -f conftest.$ac_objext
18028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18029 (eval $ac_compile) 2>conftest.er1
18030 ac_status=$?
18031 grep -v '^ *+' conftest.er1 >conftest.err
18032 rm -f conftest.er1
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } &&
18036 { ac_try='test -z "$ac_c_werror_flag"
18037 || test ! -s conftest.err'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest.$ac_objext'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; }; then
97bf5e38 18049 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 18050else
bec39cab
AC
18051 echo "$as_me: failed program was:" >&5
18052sed 's/^/| /' conftest.$ac_ext >&5
18053
18054bfd_cv_have_sys_procfs_type_prgregset32_t=no
18055
d45fe813 18056fi
bec39cab 18057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18058fi
18059
97bf5e38 18060 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18061
18062cat >>confdefs.h <<\_ACEOF
97bf5e38 18063#define HAVE_PRGREGSET32_T 1
bec39cab 18064_ACEOF
d45fe813 18065
97bf5e38 18066 fi
bec39cab
AC
18067 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18068echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18069
bec39cab
AC
18070 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18071echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18072 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18074else
bec39cab
AC
18075 cat >conftest.$ac_ext <<_ACEOF
18076/* confdefs.h. */
18077_ACEOF
18078cat confdefs.h >>conftest.$ac_ext
18079cat >>conftest.$ac_ext <<_ACEOF
18080/* end confdefs.h. */
97bf5e38
MK
18081
18082#define _SYSCALL32
18083#include <sys/procfs.h>
bec39cab
AC
18084int
18085main ()
18086{
97bf5e38 18087prfpregset32_t avar
bec39cab
AC
18088 ;
18089 return 0;
18090}
18091_ACEOF
18092rm -f conftest.$ac_objext
18093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try='test -s conftest.$ac_objext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
97bf5e38 18114 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18115else
bec39cab
AC
18116 echo "$as_me: failed program was:" >&5
18117sed 's/^/| /' conftest.$ac_ext >&5
18118
18119bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18120
d45fe813 18121fi
bec39cab 18122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18123fi
18124
97bf5e38 18125 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18126
18127cat >>confdefs.h <<\_ACEOF
97bf5e38 18128#define HAVE_PRFPREGSET32_T 1
bec39cab 18129_ACEOF
d45fe813 18130
97bf5e38 18131 fi
bec39cab
AC
18132 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18133echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18134
bec39cab
AC
18135 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18136echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18137 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18139else
bec39cab
AC
18140 cat >conftest.$ac_ext <<_ACEOF
18141/* confdefs.h. */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h. */
97bf5e38 18146
d45fe813 18147#define _SYSCALL32
97bf5e38 18148#include <sys/procfs.h>
bec39cab
AC
18149int
18150main ()
18151{
97bf5e38 18152lwpid_t avar
bec39cab
AC
18153 ;
18154 return 0;
18155}
18156_ACEOF
18157rm -f conftest.$ac_objext
18158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>conftest.er1
18160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag"
18167 || test ! -s conftest.err'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest.$ac_objext'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
97bf5e38 18179 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18180else
bec39cab
AC
18181 echo "$as_me: failed program was:" >&5
18182sed 's/^/| /' conftest.$ac_ext >&5
18183
18184bfd_cv_have_sys_procfs_type_lwpid_t=no
18185
d45fe813 18186fi
bec39cab 18187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18188fi
18189
97bf5e38 18190 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18191
18192cat >>confdefs.h <<\_ACEOF
97bf5e38 18193#define HAVE_LWPID_T 1
bec39cab 18194_ACEOF
d45fe813 18195
97bf5e38 18196 fi
bec39cab
AC
18197 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18198echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18199
bec39cab
AC
18200 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18201echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18202 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18204else
bec39cab
AC
18205 cat >conftest.$ac_ext <<_ACEOF
18206/* confdefs.h. */
18207_ACEOF
18208cat confdefs.h >>conftest.$ac_ext
18209cat >>conftest.$ac_ext <<_ACEOF
18210/* end confdefs.h. */
c906108c 18211
97bf5e38
MK
18212#define _SYSCALL32
18213#include <sys/procfs.h>
bec39cab
AC
18214int
18215main ()
18216{
97bf5e38 18217psaddr_t avar
bec39cab
AC
18218 ;
18219 return 0;
18220}
18221_ACEOF
18222rm -f conftest.$ac_objext
18223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18224 (eval $ac_compile) 2>conftest.er1
18225 ac_status=$?
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag"
18232 || test ! -s conftest.err'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest.$ac_objext'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
97bf5e38 18244 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18245else
bec39cab
AC
18246 echo "$as_me: failed program was:" >&5
18247sed 's/^/| /' conftest.$ac_ext >&5
18248
18249bfd_cv_have_sys_procfs_type_psaddr_t=no
18250
c906108c 18251fi
bec39cab 18252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18253fi
18254
97bf5e38 18255 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18256
18257cat >>confdefs.h <<\_ACEOF
97bf5e38 18258#define HAVE_PSADDR_T 1
bec39cab 18259_ACEOF
c906108c 18260
97bf5e38 18261 fi
bec39cab
AC
18262 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18263echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18264
bec39cab
AC
18265 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18266echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18267 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18269else
bec39cab
AC
18270 cat >conftest.$ac_ext <<_ACEOF
18271/* confdefs.h. */
18272_ACEOF
18273cat confdefs.h >>conftest.$ac_ext
18274cat >>conftest.$ac_ext <<_ACEOF
18275/* end confdefs.h. */
c906108c 18276
97bf5e38
MK
18277#define _SYSCALL32
18278#include <sys/procfs.h>
bec39cab
AC
18279int
18280main ()
18281{
97bf5e38 18282prsysent_t avar
bec39cab
AC
18283 ;
18284 return 0;
18285}
18286_ACEOF
18287rm -f conftest.$ac_objext
18288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18289 (eval $ac_compile) 2>conftest.er1
18290 ac_status=$?
18291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
18296 { ac_try='test -z "$ac_c_werror_flag"
18297 || test ! -s conftest.err'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest.$ac_objext'
18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305 (eval $ac_try) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
97bf5e38 18309 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18310else
bec39cab
AC
18311 echo "$as_me: failed program was:" >&5
18312sed 's/^/| /' conftest.$ac_ext >&5
18313
18314bfd_cv_have_sys_procfs_type_prsysent_t=no
18315
c906108c 18316fi
bec39cab 18317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18318fi
18319
97bf5e38 18320 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18321
18322cat >>confdefs.h <<\_ACEOF
97bf5e38 18323#define HAVE_PRSYSENT_T 1
bec39cab 18324_ACEOF
c906108c 18325
97bf5e38 18326 fi
bec39cab
AC
18327 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18328echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18329
bec39cab
AC
18330 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18331echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18332 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18334else
bec39cab
AC
18335 cat >conftest.$ac_ext <<_ACEOF
18336/* confdefs.h. */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
18340/* end confdefs.h. */
c906108c 18341
97bf5e38
MK
18342#define _SYSCALL32
18343#include <sys/procfs.h>
bec39cab
AC
18344int
18345main ()
18346{
97bf5e38 18347pr_sigset_t avar
bec39cab
AC
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext
18353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18354 (eval $ac_compile) 2>conftest.er1
18355 ac_status=$?
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag"
18362 || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest.$ac_objext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
97bf5e38 18374 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18375else
bec39cab
AC
18376 echo "$as_me: failed program was:" >&5
18377sed 's/^/| /' conftest.$ac_ext >&5
18378
18379bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18380
c906108c 18381fi
bec39cab 18382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18383fi
18384
97bf5e38 18385 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18386
18387cat >>confdefs.h <<\_ACEOF
97bf5e38 18388#define HAVE_PR_SIGSET_T 1
bec39cab 18389_ACEOF
c906108c 18390
97bf5e38 18391 fi
bec39cab
AC
18392 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18393echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18394
bec39cab
AC
18395 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18396echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18397 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18399else
bec39cab
AC
18400 cat >conftest.$ac_ext <<_ACEOF
18401/* confdefs.h. */
18402_ACEOF
18403cat confdefs.h >>conftest.$ac_ext
18404cat >>conftest.$ac_ext <<_ACEOF
18405/* end confdefs.h. */
c906108c 18406
97bf5e38
MK
18407#define _SYSCALL32
18408#include <sys/procfs.h>
bec39cab
AC
18409int
18410main ()
18411{
97bf5e38 18412pr_sigaction64_t avar
bec39cab
AC
18413 ;
18414 return 0;
18415}
18416_ACEOF
18417rm -f conftest.$ac_objext
18418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419 (eval $ac_compile) 2>conftest.er1
18420 ac_status=$?
18421 grep -v '^ *+' conftest.er1 >conftest.err
18422 rm -f conftest.er1
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
18426 { ac_try='test -z "$ac_c_werror_flag"
18427 || test ! -s conftest.err'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest.$ac_objext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
97bf5e38 18439 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18440else
bec39cab
AC
18441 echo "$as_me: failed program was:" >&5
18442sed 's/^/| /' conftest.$ac_ext >&5
18443
18444bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18445
c906108c 18446fi
bec39cab 18447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18448fi
18449
97bf5e38 18450 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18451
18452cat >>confdefs.h <<\_ACEOF
97bf5e38 18453#define HAVE_PR_SIGACTION64_T 1
bec39cab 18454_ACEOF
c906108c 18455
97bf5e38 18456 fi
bec39cab
AC
18457 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18458echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18459
bec39cab
AC
18460 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18461echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18462 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18464else
bec39cab
AC
18465 cat >conftest.$ac_ext <<_ACEOF
18466/* confdefs.h. */
18467_ACEOF
18468cat confdefs.h >>conftest.$ac_ext
18469cat >>conftest.$ac_ext <<_ACEOF
18470/* end confdefs.h. */
97bf5e38
MK
18471
18472#define _SYSCALL32
18473#include <sys/procfs.h>
bec39cab
AC
18474int
18475main ()
18476{
97bf5e38 18477pr_siginfo64_t avar
bec39cab
AC
18478 ;
18479 return 0;
18480}
18481_ACEOF
18482rm -f conftest.$ac_objext
18483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18484 (eval $ac_compile) 2>conftest.er1
18485 ac_status=$?
18486 grep -v '^ *+' conftest.er1 >conftest.err
18487 rm -f conftest.er1
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag"
18492 || test ! -s conftest.err'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try='test -s conftest.$ac_objext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
97bf5e38
MK
18504 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18505else
bec39cab
AC
18506 echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18510
97bf5e38 18511fi
bec39cab 18512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18513fi
c906108c 18514
97bf5e38 18515 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18516
18517cat >>confdefs.h <<\_ACEOF
97bf5e38 18518#define HAVE_PR_SIGINFO64_T 1
bec39cab 18519_ACEOF
c906108c 18520
97bf5e38 18521 fi
bec39cab
AC
18522 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18523echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18524
18525
97bf5e38
MK
18526
18527
18528
97bf5e38 18529 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18530 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18531echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18532 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18534else
18535 if test "$cross_compiling" = yes; then
97bf5e38 18536 gdb_cv_prfpregset_t_broken=yes
c906108c 18537else
bec39cab
AC
18538 cat >conftest.$ac_ext <<_ACEOF
18539/* confdefs.h. */
18540_ACEOF
18541cat confdefs.h >>conftest.$ac_ext
18542cat >>conftest.$ac_ext <<_ACEOF
18543/* end confdefs.h. */
97bf5e38
MK
18544#include <sys/procfs.h>
18545 int main ()
18546 {
18547 if (sizeof (prfpregset_t) == sizeof (void *))
18548 return 1;
18549 return 0;
18550 }
bec39cab
AC
18551_ACEOF
18552rm -f conftest$ac_exeext
18553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18554 (eval $ac_link) 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
97bf5e38 18563 gdb_cv_prfpregset_t_broken=no
c906108c 18564else
bec39cab
AC
18565 echo "$as_me: program exited with status $ac_status" >&5
18566echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
18568
18569( exit $ac_status )
18570gdb_cv_prfpregset_t_broken=yes
c906108c 18571fi
bec39cab 18572rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18573fi
c906108c
SS
18574fi
18575
bec39cab
AC
18576 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18577echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18578 if test $gdb_cv_prfpregset_t_broken = yes; then
bec39cab 18579 cat >>confdefs.h <<\_ACEOF
97bf5e38 18580#define PRFPREGSET_T_BROKEN 1
bec39cab 18581_ACEOF
c906108c 18582
97bf5e38
MK
18583 fi
18584 fi
c906108c 18585
bec39cab
AC
18586
18587 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18588echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18589 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18591else
bec39cab
AC
18592 cat >conftest.$ac_ext <<_ACEOF
18593/* confdefs.h. */
18594_ACEOF
18595cat confdefs.h >>conftest.$ac_ext
18596cat >>conftest.$ac_ext <<_ACEOF
18597/* end confdefs.h. */
97bf5e38
MK
18598#include <unistd.h>
18599#include <sys/types.h>
18600#include <sys/procfs.h>
18601
bec39cab
AC
18602int
18603main ()
18604{
97bf5e38
MK
18605
18606 int dummy;;
18607 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18608
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext
18614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615 (eval $ac_compile) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
97bf5e38 18635 gdb_cv_have_procfs_piocset=yes
c906108c 18636else
bec39cab
AC
18637 echo "$as_me: failed program was:" >&5
18638sed 's/^/| /' conftest.$ac_ext >&5
18639
18640gdb_cv_have_procfs_piocset=no
c906108c 18641fi
bec39cab 18642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18643fi
97bf5e38 18644
bec39cab
AC
18645 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18646echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18647 if test $gdb_cv_have_procfs_piocset = yes; then
bec39cab 18648 cat >>confdefs.h <<\_ACEOF
97bf5e38 18649#define HAVE_PROCFS_PIOCSET 1
bec39cab 18650_ACEOF
97bf5e38
MK
18651
18652 fi
c906108c 18653fi
c906108c 18654
97bf5e38 18655if test ${host} = ${target} ; then
bec39cab
AC
18656
18657 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18658echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18659 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662 cat >conftest.$ac_ext <<_ACEOF
18663/* confdefs.h. */
18664_ACEOF
18665cat confdefs.h >>conftest.$ac_ext
18666cat >>conftest.$ac_ext <<_ACEOF
18667/* end confdefs.h. */
97bf5e38 18668#include <link.h>
bec39cab
AC
18669int
18670main ()
18671{
97bf5e38 18672struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18673 ;
18674 return 0;
18675}
18676_ACEOF
18677rm -f conftest.$ac_objext
18678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
97bf5e38 18699 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 18700else
bec39cab
AC
18701 echo "$as_me: failed program was:" >&5
18702sed 's/^/| /' conftest.$ac_ext >&5
18703
18704gdb_cv_have_struct_link_map_with_l_members=no
c906108c 18705fi
bec39cab 18706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18707fi
18708
bec39cab
AC
18709 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18710echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 18711 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
bec39cab 18712 cat >>confdefs.h <<\_ACEOF
97bf5e38 18713#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 18714_ACEOF
97bf5e38
MK
18715
18716 fi
18717
bec39cab
AC
18718
18719 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18720echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18721 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18723else
bec39cab
AC
18724 cat >conftest.$ac_ext <<_ACEOF
18725/* confdefs.h. */
18726_ACEOF
18727cat confdefs.h >>conftest.$ac_ext
18728cat >>conftest.$ac_ext <<_ACEOF
18729/* end confdefs.h. */
97bf5e38
MK
18730#include <sys/types.h>
18731#include <link.h>
bec39cab
AC
18732int
18733main ()
18734{
97bf5e38 18735struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
18736 ;
18737 return 0;
18738}
18739_ACEOF
18740rm -f conftest.$ac_objext
18741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18742 (eval $ac_compile) 2>conftest.er1
18743 ac_status=$?
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag"
18750 || test ! -s conftest.err'
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest.$ac_objext'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
97bf5e38
MK
18762 gdb_cv_have_struct_link_map_with_lm_members=yes
18763else
bec39cab
AC
18764 echo "$as_me: failed program was:" >&5
18765sed 's/^/| /' conftest.$ac_ext >&5
18766
18767gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 18768fi
bec39cab 18769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18770fi
c906108c 18771
bec39cab
AC
18772 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18773echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 18774 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
bec39cab 18775 cat >>confdefs.h <<\_ACEOF
97bf5e38 18776#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 18777_ACEOF
97bf5e38
MK
18778
18779 fi
18780
bec39cab
AC
18781
18782 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18783echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18784 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18786else
bec39cab
AC
18787 cat >conftest.$ac_ext <<_ACEOF
18788/* confdefs.h. */
18789_ACEOF
18790cat confdefs.h >>conftest.$ac_ext
18791cat >>conftest.$ac_ext <<_ACEOF
18792/* end confdefs.h. */
97bf5e38
MK
18793#include <sys/types.h>
18794#ifdef HAVE_NLIST_H
18795#include <nlist.h>
18796#endif
18797#include <link.h>
bec39cab
AC
18798int
18799main ()
18800{
97bf5e38 18801struct so_map lm; (void) lm.som_addr;
bec39cab
AC
18802 ;
18803 return 0;
18804}
18805_ACEOF
18806rm -f conftest.$ac_objext
18807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18808 (eval $ac_compile) 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -z "$ac_c_werror_flag"
18816 || test ! -s conftest.err'
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try='test -s conftest.$ac_objext'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
97bf5e38
MK
18828 gdb_cv_have_struct_so_map_with_som_members=yes
18829else
bec39cab
AC
18830 echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
18832
18833gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 18834fi
bec39cab 18835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18836fi
c906108c 18837
bec39cab
AC
18838 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18839echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 18840 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
bec39cab 18841 cat >>confdefs.h <<\_ACEOF
97bf5e38 18842#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 18843_ACEOF
c906108c 18844
97bf5e38 18845 fi
c906108c 18846
bec39cab
AC
18847
18848 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18849echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18850 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18852else
bec39cab
AC
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
97bf5e38
MK
18859#define _SYSCALL32
18860#include <sys/link.h>
bec39cab
AC
18861int
18862main ()
18863{
97bf5e38 18864struct link_map32 l;
bec39cab
AC
18865 ;
18866 return 0;
18867}
18868_ACEOF
18869rm -f conftest.$ac_objext
18870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18871 (eval $ac_compile) 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
97bf5e38
MK
18891 gdb_cv_have_struct_link_map32=yes
18892else
bec39cab
AC
18893 echo "$as_me: failed program was:" >&5
18894sed 's/^/| /' conftest.$ac_ext >&5
18895
18896gdb_cv_have_struct_link_map32=no
97bf5e38 18897fi
bec39cab 18898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18899fi
c906108c 18900
bec39cab
AC
18901 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18902echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 18903 if test $gdb_cv_have_struct_link_map32 = yes; then
bec39cab 18904 cat >>confdefs.h <<\_ACEOF
97bf5e38 18905#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 18906_ACEOF
c906108c 18907
bec39cab 18908 cat >>confdefs.h <<\_ACEOF
97bf5e38 18909#define _SYSCALL32 1
bec39cab 18910_ACEOF
c906108c 18911
97bf5e38
MK
18912 fi
18913fi
c906108c 18914
bc8bcb4b 18915# Check if the compiler supports the `long long' type.
c906108c 18916
bec39cab
AC
18917echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18918echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18919if test "${gdb_cv_c_long_long+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18921else
bec39cab
AC
18922 cat >conftest.$ac_ext <<_ACEOF
18923/* confdefs.h. */
18924_ACEOF
18925cat confdefs.h >>conftest.$ac_ext
18926cat >>conftest.$ac_ext <<_ACEOF
18927/* end confdefs.h. */
bc8bcb4b 18928extern long long foo;
bec39cab
AC
18929int
18930main ()
18931{
bc8bcb4b 18932switch (foo & 2) { case 0: return 1; }
bec39cab
AC
18933 ;
18934 return 0;
18935}
18936_ACEOF
18937rm -f conftest.$ac_objext
18938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18939 (eval $ac_compile) 2>conftest.er1
18940 ac_status=$?
18941 grep -v '^ *+' conftest.er1 >conftest.err
18942 rm -f conftest.er1
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } &&
18946 { ac_try='test -z "$ac_c_werror_flag"
18947 || test ! -s conftest.err'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; } &&
18953 { ac_try='test -s conftest.$ac_objext'
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; }; then
97bf5e38
MK
18959 gdb_cv_c_long_long=yes
18960else
bec39cab
AC
18961 echo "$as_me: failed program was:" >&5
18962sed 's/^/| /' conftest.$ac_ext >&5
18963
18964gdb_cv_c_long_long=no
97bf5e38 18965fi
bec39cab 18966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 18967fi
bec39cab
AC
18968echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18969echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 18970if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
18971
18972cat >>confdefs.h <<\_ACEOF
97bf5e38 18973#define CC_HAS_LONG_LONG 1
bec39cab 18974_ACEOF
97bf5e38
MK
18975
18976fi
18977
bc8bcb4b 18978# Check if the compiler and runtime support printing long longs.
97bf5e38 18979
bec39cab
AC
18980echo "$as_me:$LINENO: checking for long long support in printf" >&5
18981echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18982if test "${gdb_cv_printf_has_long_long+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
18984else
18985 if test "$cross_compiling" = yes; then
18986 gdb_cv_printf_has_long_long=no
18987else
bec39cab
AC
18988 cat >conftest.$ac_ext <<_ACEOF
18989/* confdefs.h. */
18990_ACEOF
18991cat confdefs.h >>conftest.$ac_ext
18992cat >>conftest.$ac_ext <<_ACEOF
18993/* end confdefs.h. */
bc8bcb4b
MK
18994$ac_includes_default
18995int
18996main ()
18997{
18998char buf[32];
97bf5e38
MK
18999 long long l = 0;
19000 l = (l << 16) + 0x0123;
19001 l = (l << 16) + 0x4567;
19002 l = (l << 16) + 0x89ab;
19003 l = (l << 16) + 0xcdef;
19004 sprintf (buf, "0x%016llx", l);
19005 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
19006 ;
19007 return 0;
c906108c 19008}
bec39cab
AC
19009_ACEOF
19010rm -f conftest$ac_exeext
19011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19012 (eval $ac_link) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
97bf5e38
MK
19021 gdb_cv_printf_has_long_long=yes
19022else
bec39cab
AC
19023 echo "$as_me: program exited with status $ac_status" >&5
19024echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027( exit $ac_status )
19028gdb_cv_printf_has_long_long=no
97bf5e38 19029fi
bec39cab 19030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19031fi
97bf5e38 19032fi
bc8bcb4b
MK
19033echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19034echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 19035if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
19036
19037cat >>confdefs.h <<\_ACEOF
97bf5e38 19038#define PRINTF_HAS_LONG_LONG 1
bec39cab 19039_ACEOF
97bf5e38
MK
19040
19041fi
97bf5e38 19042
bc8bcb4b
MK
19043# Check if the compiler supports the `long double' type. We can't use
19044# AC_C_LONG_DOUBLE because that one does additional checks on the
19045# constants defined in <float.h> that fail on some systems,
19046# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 19047
bec39cab
AC
19048echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19049echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 19050if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 19051 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19052else
bec39cab
AC
19053 cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
97bf5e38 19059long double foo;
bec39cab
AC
19060_ACEOF
19061rm -f conftest.$ac_objext
19062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063 (eval $ac_compile) 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -z "$ac_c_werror_flag"
19071 || test ! -s conftest.err'
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); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
bc8bcb4b 19083 gdb_cv_c_long_double=yes
97bf5e38 19084else
bec39cab
AC
19085 echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
bc8bcb4b 19088gdb_cv_c_long_double=no
97bf5e38 19089fi
bec39cab 19090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19091fi
bc8bcb4b
MK
19092echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19093echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19094if test $gdb_cv_c_long_double = yes; then
c906108c 19095
bc8bcb4b 19096cat >>confdefs.h <<\_ACEOF
97bf5e38 19097#define HAVE_LONG_DOUBLE 1
bec39cab 19098_ACEOF
97bf5e38
MK
19099
19100fi
19101
bc8bcb4b 19102# Check if the compiler and runtime support printing long doubles.
97bf5e38 19103
bec39cab
AC
19104echo "$as_me:$LINENO: checking for long double support in printf" >&5
19105echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19106if test "${gdb_cv_printf_has_long_double+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19108else
19109 if test "$cross_compiling" = yes; then
19110 gdb_cv_printf_has_long_double=no
19111else
bec39cab
AC
19112 cat >conftest.$ac_ext <<_ACEOF
19113/* confdefs.h. */
19114_ACEOF
19115cat confdefs.h >>conftest.$ac_ext
19116cat >>conftest.$ac_ext <<_ACEOF
19117/* end confdefs.h. */
bc8bcb4b
MK
19118$ac_includes_default
19119int
19120main ()
19121{
19122char buf[16];
97bf5e38
MK
19123 long double f = 3.141592653;
19124 sprintf (buf, "%Lg", f);
19125 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
19126 ;
19127 return 0;
97bf5e38 19128}
bec39cab
AC
19129_ACEOF
19130rm -f conftest$ac_exeext
19131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132 (eval $ac_link) 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
97bf5e38 19141 gdb_cv_printf_has_long_double=yes
c906108c 19142else
bec39cab
AC
19143 echo "$as_me: program exited with status $ac_status" >&5
19144echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147( exit $ac_status )
19148gdb_cv_printf_has_long_double=no
c906108c 19149fi
bec39cab 19150rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19151fi
c906108c 19152fi
bc8bcb4b
MK
19153echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19154echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 19155if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
19156
19157cat >>confdefs.h <<\_ACEOF
97bf5e38 19158#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19159_ACEOF
97bf5e38
MK
19160
19161fi
97bf5e38 19162
bc8bcb4b 19163# Check if the compiler and runtime support scanning long doubles.
97bf5e38 19164
bec39cab
AC
19165echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19166echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19167if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19169else
19170 if test "$cross_compiling" = yes; then
19171 gdb_cv_scanf_has_long_double=no
19172else
bec39cab
AC
19173 cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
bc8bcb4b
MK
19179#include <stdio.h>
19180int
19181main ()
19182{
19183char *buf = "3.141592653";
97bf5e38
MK
19184 long double f = 0;
19185 sscanf (buf, "%Lg", &f);
19186 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
19187 ;
19188 return 0;
97bf5e38 19189}
bec39cab
AC
19190_ACEOF
19191rm -f conftest$ac_exeext
19192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193 (eval $ac_link) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
97bf5e38
MK
19202 gdb_cv_scanf_has_long_double=yes
19203else
bec39cab
AC
19204 echo "$as_me: program exited with status $ac_status" >&5
19205echo "$as_me: failed program was:" >&5
19206sed 's/^/| /' conftest.$ac_ext >&5
19207
19208( exit $ac_status )
19209gdb_cv_scanf_has_long_double=no
97bf5e38 19210fi
bec39cab 19211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19212fi
c906108c 19213fi
bc8bcb4b
MK
19214echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19215echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 19216if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
19217
19218cat >>confdefs.h <<\_ACEOF
97bf5e38 19219#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19220_ACEOF
97bf5e38
MK
19221
19222fi
c906108c 19223
438013df
AO
19224case ${host_os} in
19225aix*)
bec39cab
AC
19226 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19227echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19228if test "${gdb_cv_bigtoc+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19230else
bec39cab 19231
438013df
AO
19232 SAVE_LDFLAGS=$LDFLAGS
19233
19234 case $GCC in
19235 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19236 *) gdb_cv_bigtoc=-bbigtoc ;;
19237 esac
19238
19239 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19240 cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
438013df 19246
bec39cab
AC
19247int
19248main ()
19249{
438013df 19250int i;
bec39cab
AC
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext conftest$ac_exeext
19256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257 (eval $ac_link) 2>conftest.er1
19258 ac_status=$?
19259 grep -v '^ *+' conftest.er1 >conftest.err
19260 rm -f conftest.er1
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_c_werror_flag"
19265 || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest$ac_exeext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
438013df
AO
19277 :
19278else
bec39cab
AC
19279 echo "$as_me: failed program was:" >&5
19280sed 's/^/| /' conftest.$ac_ext >&5
19281
19282gdb_cv_bigtoc=
438013df 19283fi
bec39cab
AC
19284rm -f conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19286 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19287
bec39cab
AC
19288fi
19289echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19290echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19291 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19292 ;;
19293esac
19294
c906108c
SS
19295
19296
19297if test ${build} = ${host} -a ${host} = ${target} ; then
19298 case ${host_os} in
19299 hpux*)
bec39cab
AC
19300 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19301echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19302 if test -f /usr/include/dce/cma_config.h ; then
19303 if test "$GCC" = "yes" ; then
bec39cab
AC
19304 echo "$as_me:$LINENO: result: yes" >&5
19305echo "${ECHO_T}yes" >&6
19306 cat >>confdefs.h <<\_ACEOF
c906108c 19307#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19308_ACEOF
c906108c 19309
3483b318 19310 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19311 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19312 else
bec39cab
AC
19313 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19314echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19315 fi
19316 else
bec39cab
AC
19317 echo "$as_me:$LINENO: result: no" >&5
19318echo "${ECHO_T}no" >&6
c906108c
SS
19319 fi
19320 ;;
19321 solaris*)
d92419e5
JB
19322 # See if thread_db library is around for Solaris thread debugging.
19323 # Note that we must explicitly test for version 1 of the library
19324 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19325 # the same API.
bec39cab
AC
19326 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19327echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19328 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19329 echo "$as_me:$LINENO: result: yes" >&5
19330echo "${ECHO_T}yes" >&6
19331 cat >>confdefs.h <<\_ACEOF
c906108c 19332#define HAVE_THREAD_DB_LIB 1
bec39cab 19333_ACEOF
c906108c 19334
3483b318 19335 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19336 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19337
19338echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19339echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19340if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19342else
bec39cab 19343 ac_check_lib_save_LIBS=$LIBS
c906108c 19344LIBS="-ldl $LIBS"
bec39cab
AC
19345cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h. */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h. */
19351
c906108c 19352/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19353#ifdef __cplusplus
19354extern "C"
19355#endif
c906108c 19356/* We use char because int might match the return type of a gcc2
bec39cab
AC
19357 builtin and then its argument prototype would still apply. */
19358char dlopen ();
19359int
19360main ()
19361{
19362dlopen ();
19363 ;
19364 return 0;
19365}
19366_ACEOF
19367rm -f conftest.$ac_objext conftest$ac_exeext
19368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369 (eval $ac_link) 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag"
19377 || test ! -s conftest.err'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest$ac_exeext'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 ac_cv_lib_dl_dlopen=yes
19390else
19391 echo "$as_me: failed program was:" >&5
19392sed 's/^/| /' conftest.$ac_ext >&5
19393
19394ac_cv_lib_dl_dlopen=no
19395fi
19396rm -f conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398LIBS=$ac_check_lib_save_LIBS
19399fi
19400echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19401echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19402if test $ac_cv_lib_dl_dlopen = yes; then
19403 cat >>confdefs.h <<_ACEOF
19404#define HAVE_LIBDL 1
19405_ACEOF
c906108c
SS
19406
19407 LIBS="-ldl $LIBS"
19408
c906108c
SS
19409fi
19410
19411 if test "$GCC" = "yes" ; then
19412 # The GNU linker requires the -export-dynamic option to make
19413 # all symbols visible in the dynamic symbol table.
19414 hold_ldflags=$LDFLAGS
bec39cab
AC
19415 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19416echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19417 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19418 cat >conftest.$ac_ext <<_ACEOF
19419/* confdefs.h. */
19420_ACEOF
19421cat confdefs.h >>conftest.$ac_ext
19422cat >>conftest.$ac_ext <<_ACEOF
19423/* end confdefs.h. */
c906108c 19424
bec39cab
AC
19425int
19426main ()
19427{
c906108c 19428int i;
bec39cab
AC
19429 ;
19430 return 0;
19431}
19432_ACEOF
19433rm -f conftest.$ac_objext conftest$ac_exeext
19434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_c_werror_flag"
19443 || test ! -s conftest.err'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest$ac_exeext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19452 ac_status=$?
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
c906108c
SS
19455 found=yes
19456else
bec39cab
AC
19457 echo "$as_me: failed program was:" >&5
19458sed 's/^/| /' conftest.$ac_ext >&5
19459
19460found=no
c906108c 19461fi
bec39cab
AC
19462rm -f conftest.err conftest.$ac_objext \
19463 conftest$ac_exeext conftest.$ac_ext
c906108c 19464 LDFLAGS=$hold_ldflags
bec39cab
AC
19465 echo "$as_me:$LINENO: result: $found" >&5
19466echo "${ECHO_T}$found" >&6
c906108c
SS
19467 if test $found = yes; then
19468 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19469 fi
19470 fi
19471 # Sun randomly tweaked the prototypes in <proc_service.h>
19472 # at one point.
bec39cab
AC
19473 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19474echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19475 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19477else
bec39cab
AC
19478
19479 cat >conftest.$ac_ext <<_ACEOF
19480/* confdefs.h. */
19481_ACEOF
19482cat confdefs.h >>conftest.$ac_ext
19483cat >>conftest.$ac_ext <<_ACEOF
19484/* end confdefs.h. */
c906108c
SS
19485
19486 #include <proc_service.h>
19487 ps_err_e ps_pdwrite
19488 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19489
bec39cab
AC
19490int
19491main ()
19492{
19493
19494 ;
19495 return 0;
19496}
19497_ACEOF
19498rm -f conftest.$ac_objext
19499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19500 (eval $ac_compile) 2>conftest.er1
19501 ac_status=$?
19502 grep -v '^ *+' conftest.er1 >conftest.err
19503 rm -f conftest.er1
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } &&
19507 { ac_try='test -z "$ac_c_werror_flag"
19508 || test ! -s conftest.err'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
c906108c
SS
19520 gdb_cv_proc_service_is_old=no
19521else
bec39cab
AC
19522 echo "$as_me: failed program was:" >&5
19523sed 's/^/| /' conftest.$ac_ext >&5
19524
19525gdb_cv_proc_service_is_old=yes
c906108c 19526fi
bec39cab
AC
19527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19528
c906108c
SS
19529fi
19530
bec39cab
AC
19531 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19532echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19533 if test $gdb_cv_proc_service_is_old = yes; then
bec39cab 19534 cat >>confdefs.h <<\_ACEOF
c906108c 19535#define PROC_SERVICE_IS_OLD 1
bec39cab 19536_ACEOF
c906108c
SS
19537
19538 fi
19539 else
bec39cab
AC
19540 echo "$as_me:$LINENO: result: no" >&5
19541echo "${ECHO_T}no" >&6
c906108c
SS
19542 fi
19543 ;;
d92419e5 19544 aix*)
bec39cab
AC
19545 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19546echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19547 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549else
19550 cat >conftest.$ac_ext <<_ACEOF
19551/* confdefs.h. */
19552_ACEOF
19553cat confdefs.h >>conftest.$ac_ext
19554cat >>conftest.$ac_ext <<_ACEOF
19555/* end confdefs.h. */
d92419e5 19556#include <sys/pthdebug.h>
bec39cab
AC
19557int
19558main ()
19559{
d92419e5
JB
19560#ifndef PTHDB_VERSION_3
19561 #error
19562 #endif
bec39cab
AC
19563 ;
19564 return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext
19568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569 (eval $ac_compile) 2>conftest.er1
19570 ac_status=$?
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest.$ac_objext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
d92419e5
JB
19589 gdb_cv_have_aix_thread_debug=yes
19590else
bec39cab
AC
19591 echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594gdb_cv_have_aix_thread_debug=no
d92419e5 19595fi
bec39cab 19596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19597fi
19598
bec39cab
AC
19599 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19600echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19601 if test $gdb_cv_have_aix_thread_debug = yes; then
19602 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19603 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19604 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19605 fi
19606 ;;
c906108c 19607 esac
bec39cab 19608
c906108c
SS
19609fi
19610
3f47be5c 19611if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19612 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19613echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19614if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616else
19617 cat >conftest.$ac_ext <<_ACEOF
19618/* confdefs.h. */
19619_ACEOF
19620cat confdefs.h >>conftest.$ac_ext
19621cat >>conftest.$ac_ext <<_ACEOF
19622/* end confdefs.h. */
3f47be5c 19623#include <thread_db.h>
bec39cab
AC
19624int
19625main ()
19626{
3f47be5c 19627int i = TD_NOTALLOC;
bec39cab
AC
19628 ;
19629 return 0;
19630}
19631_ACEOF
19632rm -f conftest.$ac_objext
19633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634 (eval $ac_compile) 2>conftest.er1
19635 ac_status=$?
19636 grep -v '^ *+' conftest.er1 >conftest.err
19637 rm -f conftest.er1
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } &&
19641 { ac_try='test -z "$ac_c_werror_flag"
19642 || test ! -s conftest.err'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest.$ac_objext'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
3f47be5c
EZ
19654 gdb_cv_thread_db_h_has_td_notalloc=yes
19655else
bec39cab
AC
19656 echo "$as_me: failed program was:" >&5
19657sed 's/^/| /' conftest.$ac_ext >&5
19658
19659gdb_cv_thread_db_h_has_td_notalloc=no
19660
3f47be5c 19661fi
bec39cab 19662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19663
bec39cab
AC
19664fi
19665echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19666echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19667fi
19668if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19669
19670cat >>confdefs.h <<\_ACEOF
3f47be5c 19671#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19672_ACEOF
3f47be5c
EZ
19673
19674fi
19675
b757528f 19676if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19677 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19678echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19679if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19681else
19682 cat >conftest.$ac_ext <<_ACEOF
19683/* confdefs.h. */
19684_ACEOF
19685cat confdefs.h >>conftest.$ac_ext
19686cat >>conftest.$ac_ext <<_ACEOF
19687/* end confdefs.h. */
b757528f 19688#include <sys/syscall.h>
bec39cab
AC
19689int
19690main ()
19691{
b757528f 19692int i = __NR_tkill;
bec39cab
AC
19693 ;
19694 return 0;
19695}
19696_ACEOF
19697rm -f conftest.$ac_objext
19698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699 (eval $ac_compile) 2>conftest.er1
19700 ac_status=$?
19701 grep -v '^ *+' conftest.er1 >conftest.err
19702 rm -f conftest.er1
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest.$ac_objext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
b757528f
JJ
19719 gdb_cv_sys_syscall_h_has_tkill=yes
19720else
bec39cab
AC
19721 echo "$as_me: failed program was:" >&5
19722sed 's/^/| /' conftest.$ac_ext >&5
19723
19724gdb_cv_sys_syscall_h_has_tkill=no
19725
b757528f 19726fi
bec39cab 19727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 19728
bec39cab
AC
19729fi
19730echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19731echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
19732fi
19733if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
19734
19735cat >>confdefs.h <<\_ACEOF
b757528f 19736#define HAVE_TKILL_SYSCALL 1
bec39cab 19737_ACEOF
b757528f
JJ
19738
19739fi
19740
fb40c209 19741
bec39cab 19742
030292b7
DJ
19743# Check whether --with-sysroot or --without-sysroot was given.
19744if test "${with_sysroot+set}" = set; then
19745 withval="$with_sysroot"
bec39cab 19746
030292b7 19747 case ${with_sysroot} in
715d1656 19748 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
19749 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19750 esac
19751
19752 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19753
19754 if test "x$exec_prefix" = xNONE; then
19755 if test "x$prefix" = xNONE; then
19756 test_prefix=/usr/local
19757 else
19758 test_prefix=$prefix
19759 fi
19760 else
19761 test_prefix=$exec_prefix
19762 fi
19763 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
19764 "${test_prefix}"|"${test_prefix}/"*|\
19765 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
19766 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19767 TARGET_SYSTEM_ROOT_DEFINE="$t"
19768 ;;
19769 esac
19770
19771else
bec39cab 19772
030292b7
DJ
19773 TARGET_SYSTEM_ROOT=
19774 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19775
bec39cab 19776fi;
030292b7
DJ
19777
19778
19779
3b851bce
AC
19780# NOTE: Don't add -Wall or -Wunused, they both include
19781# -Wunused-parameter which reports bogus warnings.
19782# NOTE: If you add to this list, remember to update
19783# gdb/doc/gdbint.texinfo.
1decb323 19784build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
0f0cffd2 19785-Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
4566dfcf 19786-Wunused-label -Wunused-function"
d8038014 19787# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 19788# -Wunused-function -Wunused-variable -Wunused-value
93d56215 19789# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
19790# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19791# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19792# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
19793# Check whether --enable-build-warnings or --disable-build-warnings was given.
19794if test "${enable_build_warnings+set}" = set; then
19795 enableval="$enable_build_warnings"
1decb323 19796 case "${enableval}" in
c906108c
SS
19797 yes) ;;
19798 no) build_warnings="-w";;
19799 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19800 build_warnings="${build_warnings} ${t}";;
19801 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19802 build_warnings="${t} ${build_warnings}";;
19803 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19804esac
d4f3574e 19805if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 19806 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 19807fi
bec39cab 19808fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
19809if test "${enable_gdb_build_warnings+set}" = set; then
19810 enableval="$enable_gdb_build_warnings"
19811 case "${enableval}" in
19812 yes) ;;
19813 no) build_warnings="-w";;
19814 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19815 build_warnings="${build_warnings} ${t}";;
19816 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19817 build_warnings="${t} ${build_warnings}";;
19818 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19819esac
19820if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19821 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19822fi
bec39cab 19823fi; WARN_CFLAGS=""
104c1213 19824WERROR_CFLAGS=""
c906108c
SS
19825if test "x${build_warnings}" != x -a "x$GCC" = xyes
19826then
bec39cab
AC
19827 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19828echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
19829 # Separate out the -Werror flag as some files just cannot be
19830 # compiled with it enabled.
19831 for w in ${build_warnings}; do
19832 case $w in
19833 -Werr*) WERROR_CFLAGS=-Werror ;;
19834 *) # Check that GCC accepts it
4536bbc6
AC
19835 saved_CFLAGS="$CFLAGS"
19836 CFLAGS="$CFLAGS $w"
bec39cab
AC
19837 cat >conftest.$ac_ext <<_ACEOF
19838/* confdefs.h. */
19839_ACEOF
19840cat confdefs.h >>conftest.$ac_ext
19841cat >>conftest.$ac_ext <<_ACEOF
19842/* end confdefs.h. */
4536bbc6 19843
bec39cab
AC
19844int
19845main ()
19846{
4536bbc6 19847
bec39cab
AC
19848 ;
19849 return 0;
19850}
19851_ACEOF
19852rm -f conftest.$ac_objext
19853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19854 (eval $ac_compile) 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -z "$ac_c_werror_flag"
19862 || test ! -s conftest.err'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest.$ac_objext'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
4536bbc6
AC
19874 WARN_CFLAGS="${WARN_CFLAGS} $w"
19875else
bec39cab
AC
19876 echo "$as_me: failed program was:" >&5
19877sed 's/^/| /' conftest.$ac_ext >&5
19878
4536bbc6 19879fi
bec39cab 19880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 19881 CFLAGS="$saved_CFLAGS"
746a987d
AC
19882 esac
19883 done
bec39cab
AC
19884 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19885echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
19886fi
19887
19888
104c1213 19889
7a292a7a 19890# In the Cygwin environment, we need some additional flags.
bec39cab
AC
19891echo "$as_me:$LINENO: checking for cygwin" >&5
19892echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19893if test "${gdb_cv_os_cygwin+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895else
19896 cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
7a292a7a
SS
19902
19903#if defined (__CYGWIN__) || defined (__CYGWIN32__)
19904lose
19905#endif
bec39cab 19906_ACEOF
7a292a7a 19907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 19908 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
19909 gdb_cv_os_cygwin=yes
19910else
7a292a7a
SS
19911 gdb_cv_os_cygwin=no
19912fi
19913rm -f conftest*
19914
19915fi
bec39cab
AC
19916echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19917echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 19918
aff38e61
AC
19919
19920SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19921case ${host} in
95cbc983
AC
19922 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19923 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
aff38e61
AC
19924esac
19925
19926
cd0fc7c3
SS
19927# libreadline needs libuser32.a in a cygwin environment
19928WIN32LIBS=
19929if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
19930 WIN32LIBS="-luser32"
19931 case "${target}" in
19932 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19933 ;;
19934 esac
cd0fc7c3 19935fi
c906108c 19936
7a292a7a 19937
3fc11d3e
JM
19938LIBGUI="../libgui/src/libgui.a"
19939GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19940
19941
7a292a7a 19942
3fc11d3e
JM
19943WIN32LDAPP=
19944
19945
19946
d91670b9
CV
19947case "${host}" in
19948*-*-cygwin*)
19949 configdir="win"
19950 ;;
19951*)
19952 configdir="unix"
19953 ;;
19954esac
3fc11d3e
JM
19955
19956GDBTKLIBS=
19957if test "${enable_gdbtk}" = "yes"; then
19958
d1c3b63a
KS
19959 # Gdbtk must have an absolute path to srcdir in order to run
19960 # properly when not installed.
19961 here=`pwd`
19962 cd ${srcdir}
19963 GDBTK_SRC_DIR=`pwd`
19964 cd $here
19965
bec39cab 19966
3fc11d3e
JM
19967#
19968# Ok, lets find the tcl configuration
bec39cab 19969# First, look for one uninstalled.
3fc11d3e
JM
19970# the alternative search directory is invoked by --with-tclconfig
19971#
19972
19973if test x"${no_tcl}" = x ; then
19974 # we reset no_tcl in case something fails here
19975 no_tcl=true
bec39cab
AC
19976
19977# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
19978if test "${with_tclconfig+set}" = set; then
19979 withval="$with_tclconfig"
19980 with_tclconfig=${withval}
bec39cab
AC
19981fi;
19982 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19983echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19984 if test "${ac_cv_c_tclconfig+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 19986else
bec39cab 19987
3fc11d3e
JM
19988
19989 # First check to see if --with-tclconfig was specified.
19990 if test x"${with_tclconfig}" != x ; then
19991 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19992 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19993 else
bec39cab
AC
19994 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19995echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19996 { (exit 1); exit 1; }; }
3fc11d3e
JM
19997 fi
19998 fi
19999
20000 # then check for a private Tcl installation
20001 if test x"${ac_cv_c_tclconfig}" = x ; then
20002 for i in \
20003 ../tcl \
20004 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20005 ../../tcl \
20006 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20007 ../../../tcl \
20008 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20009 if test -f "$i/${configdir}/tclConfig.sh" ; then
20010 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20011 break
20012 fi
20013 done
20014 fi
20015 # check in a few common install locations
20016 if test x"${ac_cv_c_tclconfig}" = x ; then
20017 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20018 if test -f "$i/tclConfig.sh" ; then
20019 ac_cv_c_tclconfig=`(cd $i; pwd)`
20020 break
20021 fi
20022 done
20023 fi
20024 # check in a few other private locations
20025 if test x"${ac_cv_c_tclconfig}" = x ; then
20026 for i in \
20027 ${srcdir}/../tcl \
20028 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20029 if test -f "$i/${configdir}/tclConfig.sh" ; then
20030 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20031 break
20032 fi
20033 done
20034 fi
bec39cab 20035
3fc11d3e
JM
20036fi
20037
20038 if test x"${ac_cv_c_tclconfig}" = x ; then
20039 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
20040 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20041echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
20042 else
20043 no_tcl=
20044 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
20045 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20046echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
20047 fi
20048fi
20049
20050 if test -z "${no_tcl}"; then
bec39cab 20051
3fc11d3e
JM
20052 . $TCLCONFIG
20053
3fc11d3e
JM
20054
20055
20056
20057
3fc11d3e
JM
20058
20059
20060
bec39cab
AC
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
3fc11d3e
JM
20080#
20081# Ok, lets find the tk configuration
bec39cab 20082# First, look for one uninstalled.
3fc11d3e
JM
20083# the alternative search directory is invoked by --with-tkconfig
20084#
20085
20086if test x"${no_tk}" = x ; then
20087 # we reset no_tk in case something fails here
20088 no_tk=true
bec39cab
AC
20089
20090# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20091if test "${with_tkconfig+set}" = set; then
20092 withval="$with_tkconfig"
20093 with_tkconfig=${withval}
bec39cab
AC
20094fi;
20095 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20096echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20097 if test "${ac_cv_c_tkconfig+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20099else
bec39cab 20100
3fc11d3e
JM
20101
20102 # First check to see if --with-tkconfig was specified.
20103 if test x"${with_tkconfig}" != x ; then
20104 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20105 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20106 else
bec39cab
AC
20107 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20108echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20109 { (exit 1); exit 1; }; }
3fc11d3e
JM
20110 fi
20111 fi
20112
20113 # then check for a private Tk library
20114 if test x"${ac_cv_c_tkconfig}" = x ; then
20115 for i in \
20116 ../tk \
20117 `ls -dr ../tk[4-9]* 2>/dev/null` \
20118 ../../tk \
20119 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20120 ../../../tk \
20121 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20122 if test -f "$i/${configdir}/tkConfig.sh" ; then
20123 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20124 break
20125 fi
20126 done
20127 fi
20128 # check in a few common install locations
20129 if test x"${ac_cv_c_tkconfig}" = x ; then
20130 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20131 if test -f "$i/tkConfig.sh" ; then
20132 ac_cv_c_tkconfig=`(cd $i; pwd)`
20133 break
20134 fi
20135 done
20136 fi
20137 # check in a few other private locations
20138 if test x"${ac_cv_c_tkconfig}" = x ; then
20139 for i in \
20140 ${srcdir}/../tk \
20141 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20142 if test -f "$i/${configdir}/tkConfig.sh" ; then
20143 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20144 break
20145 fi
20146 done
20147 fi
bec39cab 20148
3fc11d3e
JM
20149fi
20150
20151 if test x"${ac_cv_c_tkconfig}" = x ; then
20152 TKCONFIG="# no Tk configs found"
bec39cab
AC
20153 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20154echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20155 else
20156 no_tk=
20157 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20158 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20159echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20160 fi
20161fi
20162
20163
20164
dd2504ab
JM
20165 # now look for Tcl library stuff
20166
d91670b9 20167 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20168
20169 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20170
3fc11d3e
JM
20171 # If $no_tk is nonempty, then we can't do Tk, and there is no
20172 # point to doing Tcl.
20173 if test -z "${no_tk}"; then
bec39cab 20174
3fc11d3e
JM
20175 if test -f "$TKCONFIG" ; then
20176 . $TKCONFIG
20177 fi
20178
3fc11d3e 20179
3fc11d3e
JM
20180
20181
3fc11d3e 20182
bec39cab
AC
20183
20184
20185
20186
20187
20188
20189
20190
20191
3fc11d3e
JM
20192#
20193# Ok, lets find the tcl source trees so we can use the headers
20194# Warning: transition of version 9 to 10 will break this algorithm
20195# because 10 sorts before 9. We also look for just tcl. We have to
20196# be careful that we don't match stuff like tclX by accident.
20197# the alternative search directory is involked by --with-tclinclude
20198#
20199
20200no_tcl=true
bec39cab
AC
20201echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20202echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20203
3fc11d3e
JM
20204# Check whether --with-tclinclude or --without-tclinclude was given.
20205if test "${with_tclinclude+set}" = set; then
20206 withval="$with_tclinclude"
20207 with_tclinclude=${withval}
bec39cab
AC
20208fi;
20209if test "${ac_cv_c_tclh+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20211else
bec39cab 20212
3fc11d3e
JM
20213# first check to see if --with-tclinclude was specified
20214if test x"${with_tclinclude}" != x ; then
20215 if test -f ${with_tclinclude}/tclInt.h ; then
20216 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20217 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20218 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20219 else
bec39cab
AC
20220 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20221echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20222 { (exit 1); exit 1; }; }
3fc11d3e
JM
20223 fi
20224fi
20225
20226# next check if it came with Tcl configuration file
20227if test x"${ac_cv_c_tclconfig}" = x ; then
20228 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20229 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20230 fi
20231fi
20232
20233# next check in private source directory
20234#
20235# since ls returns lowest version numbers first, reverse its output
20236if test x"${ac_cv_c_tclh}" = x ; then
20237 for i in \
20238 ${srcdir}/../tcl \
20239 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20240 ${srcdir}/../../tcl \
20241 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20242 ${srcdir}/../../../tcl \
20243 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20244 if test -f $i/generic/tclInt.h ; then
20245 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20246 break
20247 fi
20248 done
20249fi
20250# finally check in a few common install locations
20251#
20252# since ls returns lowest version numbers first, reverse its output
20253if test x"${ac_cv_c_tclh}" = x ; then
20254 for i in \
20255 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20256 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20257 /usr/local/src/tcl \
20258 /usr/local/lib/tcl \
20259 ${prefix}/include ; do
20260 if test -f $i/generic/tclInt.h ; then
20261 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20262 break
20263 fi
20264 done
20265fi
20266# see if one is installed
20267if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20268 if test "${ac_cv_header_tclInt_h+set}" = set; then
20269 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20270echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20271if test "${ac_cv_header_tclInt_h+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20273fi
20274echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20275echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20276else
20277 # Is the header compilable?
20278echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20279echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20280cat >conftest.$ac_ext <<_ACEOF
20281/* confdefs.h. */
20282_ACEOF
20283cat confdefs.h >>conftest.$ac_ext
20284cat >>conftest.$ac_ext <<_ACEOF
20285/* end confdefs.h. */
20286$ac_includes_default
20287#include <tclInt.h>
20288_ACEOF
20289rm -f conftest.$ac_objext
20290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291 (eval $ac_compile) 2>conftest.er1
20292 ac_status=$?
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
20298 { ac_try='test -z "$ac_c_werror_flag"
20299 || test ! -s conftest.err'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 ac_header_compiler=yes
20312else
20313 echo "$as_me: failed program was:" >&5
20314sed 's/^/| /' conftest.$ac_ext >&5
20315
20316ac_header_compiler=no
20317fi
20318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20319echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20320echo "${ECHO_T}$ac_header_compiler" >&6
20321
20322# Is the header present?
20323echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20324echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20325cat >conftest.$ac_ext <<_ACEOF
20326/* confdefs.h. */
20327_ACEOF
20328cat confdefs.h >>conftest.$ac_ext
20329cat >>conftest.$ac_ext <<_ACEOF
20330/* end confdefs.h. */
3fc11d3e 20331#include <tclInt.h>
bec39cab
AC
20332_ACEOF
20333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20335 ac_status=$?
20336 grep -v '^ *+' conftest.er1 >conftest.err
20337 rm -f conftest.er1
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } >/dev/null; then
20341 if test -s conftest.err; then
20342 ac_cpp_err=$ac_c_preproc_warn_flag
20343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20344 else
20345 ac_cpp_err=
20346 fi
20347else
20348 ac_cpp_err=yes
3fc11d3e 20349fi
bec39cab
AC
20350if test -z "$ac_cpp_err"; then
20351 ac_header_preproc=yes
20352else
20353 echo "$as_me: failed program was:" >&5
20354sed 's/^/| /' conftest.$ac_ext >&5
20355
20356 ac_header_preproc=no
3fc11d3e 20357fi
bec39cab
AC
20358rm -f conftest.err conftest.$ac_ext
20359echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20360echo "${ECHO_T}$ac_header_preproc" >&6
20361
20362# So? What about this header?
20363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20364 yes:no: )
20365 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20366echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20368echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20369 ac_header_preproc=yes
20370 ;;
20371 no:yes:* )
20372 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20373echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20375echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20377echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20379echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20380 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20381echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20382 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20383echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20384 (
20385 cat <<\_ASBOX
20386## ------------------------------------------ ##
20387## Report this to the AC_PACKAGE_NAME lists. ##
20388## ------------------------------------------ ##
20389_ASBOX
20390 ) |
20391 sed "s/^/$as_me: WARNING: /" >&2
20392 ;;
20393esac
20394echo "$as_me:$LINENO: checking for tclInt.h" >&5
20395echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20396if test "${ac_cv_header_tclInt_h+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398else
20399 ac_cv_header_tclInt_h=$ac_header_preproc
20400fi
20401echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20402echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20403
20404fi
20405if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20406 ac_cv_c_tclh=installed
20407else
bec39cab 20408 ac_cv_c_tclh=""
3fc11d3e
JM
20409fi
20410
bec39cab 20411
3fc11d3e
JM
20412fi
20413
20414fi
20415
20416if test x"${ac_cv_c_tclh}" = x ; then
20417 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20418 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20419echo "$as_me: error: Can't find Tcl private headers" >&2;}
20420 { (exit 1); exit 1; }; }
3fc11d3e
JM
20421fi
20422if test x"${ac_cv_c_tclh}" != x ; then
20423 no_tcl=""
20424 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20425 echo "$as_me:$LINENO: result: is installed" >&5
20426echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20427 TCLHDIR=""
20428 else
bec39cab
AC
20429 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20430echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20431 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20432 TCLHDIR="-I${ac_cv_c_tclh}"
20433 fi
20434fi
20435
20436
20437
bec39cab 20438
3fc11d3e
JM
20439#
20440# Ok, lets find the tk source trees so we can use the headers
20441# If the directory (presumably symlink) named "tk" exists, use that one
20442# in preference to any others. Same logic is used when choosing library
20443# and again with Tcl. The search order is the best place to look first, then in
20444# decreasing significance. The loop breaks if the trigger file is found.
20445# Note the gross little conversion here of srcdir by cd'ing to the found
20446# directory. This converts the path from a relative to an absolute, so
20447# recursive cache variables for the path will work right. We check all
20448# the possible paths in one loop rather than many seperate loops to speed
20449# things up.
20450# the alternative search directory is involked by --with-tkinclude
20451#
20452no_tk=true
bec39cab
AC
20453echo "$as_me:$LINENO: checking for Tk private headers" >&5
20454echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20455
3fc11d3e
JM
20456# Check whether --with-tkinclude or --without-tkinclude was given.
20457if test "${with_tkinclude+set}" = set; then
20458 withval="$with_tkinclude"
20459 with_tkinclude=${withval}
bec39cab
AC
20460fi;
20461if test "${ac_cv_c_tkh+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20463else
bec39cab 20464
3fc11d3e
JM
20465# first check to see if --with-tkinclude was specified
20466if test x"${with_tkinclude}" != x ; then
20467 if test -f ${with_tkinclude}/tk.h ; then
20468 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20469 elif test -f ${with_tkinclude}/generic/tk.h ; then
20470 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20471 else
bec39cab
AC
20472 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20473echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20474 { (exit 1); exit 1; }; }
3fc11d3e
JM
20475 fi
20476fi
20477
20478# next check if it came with Tk configuration file
20479if test x"${ac_cv_c_tkconfig}" = x ; then
20480 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20481 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20482 fi
20483fi
20484
20485# next check in private source directory
20486#
20487# since ls returns lowest version numbers first, reverse its output
20488if test x"${ac_cv_c_tkh}" = x ; then
20489 for i in \
20490 ${srcdir}/../tk \
20491 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20492 ${srcdir}/../../tk \
20493 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20494 ${srcdir}/../../../tk \
20495 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20496 if test -f $i/generic/tk.h ; then
20497 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20498 break
20499 fi
20500 done
20501fi
20502# finally check in a few common install locations
20503#
20504# since ls returns lowest version numbers first, reverse its output
20505if test x"${ac_cv_c_tkh}" = x ; then
20506 for i in \
20507 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20508 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20509 /usr/local/src/tk \
20510 /usr/local/lib/tk \
20511 ${prefix}/include ; do
20512 if test -f $i/generic/tk.h ; then
20513 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20514 break
20515 fi
20516 done
20517fi
20518# see if one is installed
20519if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20520 if test "${ac_cv_header_tk_h+set}" = set; then
20521 echo "$as_me:$LINENO: checking for tk.h" >&5
20522echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20523if test "${ac_cv_header_tk_h+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525fi
20526echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20527echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20528else
20529 # Is the header compilable?
20530echo "$as_me:$LINENO: checking tk.h usability" >&5
20531echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20532cat >conftest.$ac_ext <<_ACEOF
20533/* confdefs.h. */
20534_ACEOF
20535cat confdefs.h >>conftest.$ac_ext
20536cat >>conftest.$ac_ext <<_ACEOF
20537/* end confdefs.h. */
20538$ac_includes_default
3fc11d3e 20539#include <tk.h>
bec39cab
AC
20540_ACEOF
20541rm -f conftest.$ac_objext
20542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20543 (eval $ac_compile) 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
20550 { ac_try='test -z "$ac_c_werror_flag"
20551 || test ! -s conftest.err'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; } &&
20557 { ac_try='test -s conftest.$ac_objext'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
20563 ac_header_compiler=yes
20564else
20565 echo "$as_me: failed program was:" >&5
20566sed 's/^/| /' conftest.$ac_ext >&5
20567
20568ac_header_compiler=no
20569fi
20570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20572echo "${ECHO_T}$ac_header_compiler" >&6
20573
20574# Is the header present?
20575echo "$as_me:$LINENO: checking tk.h presence" >&5
20576echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20577cat >conftest.$ac_ext <<_ACEOF
20578/* confdefs.h. */
20579_ACEOF
20580cat confdefs.h >>conftest.$ac_ext
20581cat >>conftest.$ac_ext <<_ACEOF
20582/* end confdefs.h. */
20583#include <tk.h>
20584_ACEOF
20585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } >/dev/null; then
20593 if test -s conftest.err; then
20594 ac_cpp_err=$ac_c_preproc_warn_flag
20595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20596 else
20597 ac_cpp_err=
20598 fi
20599else
20600 ac_cpp_err=yes
3fc11d3e 20601fi
bec39cab
AC
20602if test -z "$ac_cpp_err"; then
20603 ac_header_preproc=yes
20604else
20605 echo "$as_me: failed program was:" >&5
20606sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_header_preproc=no
20609fi
20610rm -f conftest.err conftest.$ac_ext
20611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20612echo "${ECHO_T}$ac_header_preproc" >&6
20613
20614# So? What about this header?
20615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20616 yes:no: )
20617 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20618echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20620echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20621 ac_header_preproc=yes
20622 ;;
20623 no:yes:* )
20624 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20625echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20626 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20627echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20629echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20631echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20633echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20635echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20636 (
20637 cat <<\_ASBOX
20638## ------------------------------------------ ##
20639## Report this to the AC_PACKAGE_NAME lists. ##
20640## ------------------------------------------ ##
20641_ASBOX
20642 ) |
20643 sed "s/^/$as_me: WARNING: /" >&2
20644 ;;
20645esac
20646echo "$as_me:$LINENO: checking for tk.h" >&5
20647echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20648if test "${ac_cv_header_tk_h+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650else
20651 ac_cv_header_tk_h=$ac_header_preproc
20652fi
20653echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20654echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20655
3fc11d3e 20656fi
bec39cab 20657if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
20658 ac_cv_c_tkh=installed
20659else
bec39cab 20660 ac_cv_c_tkh=""
3fc11d3e
JM
20661fi
20662
bec39cab 20663
3fc11d3e
JM
20664fi
20665
20666fi
20667
20668if test x"${ac_cv_c_tkh}" != x ; then
20669 no_tk=""
20670 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
20671 echo "$as_me:$LINENO: result: is installed" >&5
20672echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20673 TKHDIR=""
20674 else
bec39cab
AC
20675 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20676echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
20677 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20678 TKHDIR="-I${ac_cv_c_tkh}"
20679 fi
20680else
20681 TKHDIR="# no Tk directory found"
bec39cab
AC
20682 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20683echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
20684 no_tk=true
20685fi
20686
20687
20688
bec39cab
AC
20689
20690echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20691echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20692if test x"${ac_cv_c_itclh}" = x ; then
20693 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20694 if test -f $i/generic/itcl.h ; then
20695 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20696 break
20697 fi
20698 done
20699fi
20700if test x"${ac_cv_c_itclh}" = x ; then
20701 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
20702 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20703echo "$as_me: error: Can't find Itcl private headers" >&2;}
20704 { (exit 1); exit 1; }; }
3fc11d3e
JM
20705fi
20706if test x"${ac_cv_c_itclh}" != x ; then
20707 ITCLHDIR="-I${ac_cv_c_itclh}"
20708fi
20709# should always be here
20710# ITCLLIB="../itcl/itcl/unix/libitcl.a"
20711
20712#AC_SUBST(ITCLLIB)
20713
bec39cab
AC
20714
20715echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20716echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20717if test x"${ac_cv_c_itkh}" = x ; then
20718 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20719 if test -f $i/generic/itk.h ; then
20720 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20721 break
20722 fi
20723 done
20724fi
20725if test x"${ac_cv_c_itkh}" = x ; then
20726 ITKHDIR="# no Itk private headers found"
bec39cab
AC
20727 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20728echo "$as_me: error: Can't find Itk private headers" >&2;}
20729 { (exit 1); exit 1; }; }
3fc11d3e
JM
20730fi
20731if test x"${ac_cv_c_itkh}" != x ; then
20732 ITKHDIR="-I${ac_cv_c_itkh}"
20733fi
20734# should always be here
20735# ITKLIB="../itcl/itk/unix/libitk.a"
20736
20737#AC_SUBST(ITKLIB)
20738
3fc11d3e 20739
dd2504ab
JM
20740
20741 # now look for Tk library stuff
20742
d91670b9 20743 tkdir="../tk/${configdir}/"
dd2504ab
JM
20744
20745 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20746
3fc11d3e
JM
20747 # now look for Itcl library stuff
20748
bec39cab 20749
3fc11d3e
JM
20750#
20751# Ok, lets find the itcl configuration
bec39cab 20752# First, look for one uninstalled.
3fc11d3e
JM
20753# the alternative search directory is invoked by --with-itclconfig
20754#
20755
20756if test x"${no_itcl}" = x ; then
20757 # we reset no_itcl in case something fails here
20758 no_itcl=true
bec39cab
AC
20759
20760# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
20761if test "${with_itclconfig+set}" = set; then
20762 withval="$with_itclconfig"
20763 with_itclconfig=${withval}
bec39cab
AC
20764fi;
20765 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20766echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20767 if test "${ac_cv_c_itclconfig+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20769else
bec39cab 20770
3fc11d3e
JM
20771
20772 # First check to see if --with-itclconfig was specified.
20773 if test x"${with_itclconfig}" != x ; then
20774 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20775 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20776 else
bec39cab
AC
20777 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20778echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20779 { (exit 1); exit 1; }; }
3fc11d3e
JM
20780 fi
20781 fi
20782
20783 # then check for a private Itcl library
20784 if test x"${ac_cv_c_itclconfig}" = x ; then
20785 for i in \
20786 ../itcl/itcl \
20787 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20788 ../../itcl \
20789 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20790 ../../../itcl \
20791 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20792 if test -f "$i/itclConfig.sh" ; then
20793 ac_cv_c_itclconfig=`(cd $i; pwd)`
20794 break
20795 fi
20796 done
20797 fi
20798 # check in a few common install locations
20799 if test x"${ac_cv_c_itclconfig}" = x ; then
20800 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20801 if test -f "$i/itclConfig.sh" ; then
20802 ac_cv_c_itclconfig=`(cd $i; pwd)`
20803 break
20804 fi
20805 done
20806 fi
20807 # check in a few other private locations
20808 if test x"${ac_cv_c_itclconfig}" = x ; then
20809 for i in \
20810 ${srcdir}/../itcl/itcl \
20811 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20812 if test -f "$i/itclConfig.sh" ; then
20813 ac_cv_c_itclconfig=`(cd $i; pwd)`
20814 break
20815 fi
20816 done
20817 fi
bec39cab 20818
3fc11d3e
JM
20819fi
20820
20821 if test x"${ac_cv_c_itclconfig}" = x ; then
20822 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
20823 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20824echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
20825 else
20826 no_itcl=
20827 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
20828 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20829echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
20830 fi
20831fi
20832
20833 if test -z "${no_itcl}"; then
bec39cab 20834
3fc11d3e
JM
20835 if test -f "$ITCLCONFIG" ; then
20836 . $ITCLCONFIG
20837 fi
20838
3fc11d3e 20839
3fc11d3e
JM
20840
20841
bec39cab
AC
20842
20843
20844
20845
20846
20847
20848
3fc11d3e
JM
20849
20850 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 20851 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
20852 fi
20853
bec39cab 20854
3fc11d3e 20855 # now look for Itk library stuff
bec39cab 20856
3fc11d3e
JM
20857#
20858# Ok, lets find the itk configuration
bec39cab 20859# First, look for one uninstalled.
3fc11d3e
JM
20860# the alternative search directory is invoked by --with-itkconfig
20861#
20862
20863if test x"${no_itk}" = x ; then
20864 # we reset no_itk in case something fails here
20865 no_itk=true
bec39cab
AC
20866
20867# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
20868if test "${with_itkconfig+set}" = set; then
20869 withval="$with_itkconfig"
20870 with_itkconfig=${withval}
bec39cab
AC
20871fi;
20872 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20873echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20874 if test "${ac_cv_c_itkconfig+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20876else
bec39cab 20877
3fc11d3e
JM
20878
20879 # First check to see if --with-itkconfig was specified.
20880 if test x"${with_itkconfig}" != x ; then
20881 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20882 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20883 else
bec39cab
AC
20884 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20885echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20886 { (exit 1); exit 1; }; }
3fc11d3e
JM
20887 fi
20888 fi
20889
20890 # then check for a private Itk library
20891 if test x"${ac_cv_c_itkconfig}" = x ; then
20892 for i in \
20893 ../itcl/itk \
20894 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20895 ../../itk \
20896 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20897 ../../../itk \
20898 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20899 if test -f "$i/itkConfig.sh" ; then
20900 ac_cv_c_itkconfig=`(cd $i; pwd)`
20901 break
20902 fi
20903 done
20904 fi
20905 # check in a few common install locations
20906 if test x"${ac_cv_c_itkconfig}" = x ; then
20907 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20908 if test -f "$i/itkConfig.sh" ; then
20909 ac_cv_c_itkconfig=`(cd $i; pwd)`
20910 break
20911 fi
20912 done
20913 fi
20914 # check in a few other private locations
20915 if test x"${ac_cv_c_itkconfig}" = x ; then
20916 for i in \
20917 ${srcdir}/../itcl/itk \
20918 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20919 if test -f "$i/itkConfig.sh" ; then
20920 ac_cv_c_itkconfig=`(cd $i; pwd)`
20921 break
20922 fi
20923 done
20924 fi
bec39cab 20925
3fc11d3e
JM
20926fi
20927
20928 if test x"${ac_cv_c_itkconfig}" = x ; then
20929 ITKCONFIG="# no Itk configs found"
bec39cab
AC
20930 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20931echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
20932 else
20933 no_itk=
20934 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
20935 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20936echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
20937 fi
20938fi
20939
20940
bec39cab
AC
20941 if test -z "${no_itcl}"; then
20942
20943 if test -f "$ITKCONFIG" ; then
20944 . $ITKCONFIG
20945 fi
20946
20947
20948
20949
20950
20951
3fc11d3e 20952
3fc11d3e 20953
3fc11d3e
JM
20954
20955
3fc11d3e
JM
20956
20957
3fc11d3e 20958 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 20959 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
20960 fi
20961
4226a5a5 20962 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
20963 # Tcl/Tk 8.1 require -fwritable strings. I don't
20964 # know whether 8.2 will or not, but I bet it will.
20965 # I don't have to worry about 7.x since we don't support it.
20966 GDBTK_CFLAGS=""
20967 if test "$GCC" = "yes"; then
20968 if test "$TCL_VERSION" != "8.0" ; then
20969 GDBTK_CFLAGS="-fwritable-strings"
20970 fi
20971 fi
20972
20973 # Include some libraries that Tcl and Tk want.
b2a1bd4f 20974 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
20975 # Yes, the ordering seems wrong here. But it isn't.
20976 # TK_LIBS is the list of libraries that need to be linked
20977 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20978 # were in LIBS then any link tests after this point would
20979 # try to include things like `$(LIBGUI)', which wouldn't work.
20980 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
20981
20982 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20983 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20984 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
20985 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20986 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20987 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20988 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
20989
20990 if test x$gdb_cv_os_cygwin = xyes; then
20991 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20992 WIN32LDAPP="-Wl,--subsystem,console"
20993 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20994 fi
20995 fi
20996 fi
ffc6a242 20997
bec39cab
AC
20998
20999
21000subdirs="$subdirs gdbtk"
3ace7edb 21001
3fc11d3e
JM
21002fi
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
dd2504ab 21016
bec39cab
AC
21017echo "$as_me:$LINENO: checking for X" >&5
21018echo $ECHO_N "checking for X... $ECHO_C" >&6
21019
c906108c
SS
21020
21021# Check whether --with-x or --without-x was given.
21022if test "${with_x+set}" = set; then
21023 withval="$with_x"
c906108c 21024
bec39cab 21025fi;
c906108c
SS
21026# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21027if test "x$with_x" = xno; then
21028 # The user explicitly disabled X.
21029 have_x=disabled
21030else
21031 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21032 # Both variables are already set.
21033 have_x=yes
21034 else
bec39cab
AC
21035 if test "${ac_cv_have_x+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21037else
21038 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
21039ac_x_includes=no ac_x_libraries=no
21040rm -fr conftest.dir
21041if mkdir conftest.dir; then
21042 cd conftest.dir
c906108c 21043 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 21044 cat >Imakefile <<'_ACEOF'
c906108c
SS
21045acfindx:
21046 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 21047_ACEOF
c906108c
SS
21048 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21050 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21051 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21052 for ac_extension in a so sl; do
21053 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
21054 test -f $ac_im_libdir/libX11.$ac_extension; then
21055 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
21056 fi
21057 done
21058 # Screen out bogus values from the imake configuration. They are
21059 # bogus both because they are the default anyway, and because
21060 # using them would break gcc on systems where it needs fixed includes.
bec39cab 21061 case $ac_im_incroot in
c906108c 21062 /usr/include) ;;
bec39cab 21063 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 21064 esac
bec39cab 21065 case $ac_im_usrlibdir in
c906108c 21066 /usr/lib | /lib) ;;
bec39cab 21067 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
21068 esac
21069 fi
21070 cd ..
bec39cab 21071 rm -fr conftest.dir
c906108c
SS
21072fi
21073
bec39cab
AC
21074# Standard set of common directories for X headers.
21075# Check X11 before X11Rn because it is often a symlink to the current release.
21076ac_x_header_dirs='
21077/usr/X11/include
21078/usr/X11R6/include
21079/usr/X11R5/include
21080/usr/X11R4/include
21081
21082/usr/include/X11
21083/usr/include/X11R6
21084/usr/include/X11R5
21085/usr/include/X11R4
21086
21087/usr/local/X11/include
21088/usr/local/X11R6/include
21089/usr/local/X11R5/include
21090/usr/local/X11R4/include
21091
21092/usr/local/include/X11
21093/usr/local/include/X11R6
21094/usr/local/include/X11R5
21095/usr/local/include/X11R4
21096
21097/usr/X386/include
21098/usr/x386/include
21099/usr/XFree86/include/X11
21100
21101/usr/include
21102/usr/local/include
21103/usr/unsupported/include
21104/usr/athena/include
21105/usr/local/x11r5/include
21106/usr/lpp/Xamples/include
21107
21108/usr/openwin/include
21109/usr/openwin/share/include'
21110
21111if test "$ac_x_includes" = no; then
21112 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 21113 # First, try using that file with no special directory specified.
bec39cab
AC
21114 cat >conftest.$ac_ext <<_ACEOF
21115/* confdefs.h. */
21116_ACEOF
21117cat confdefs.h >>conftest.$ac_ext
21118cat >>conftest.$ac_ext <<_ACEOF
21119/* end confdefs.h. */
21120#include <X11/Intrinsic.h>
21121_ACEOF
21122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } >/dev/null; then
21130 if test -s conftest.err; then
21131 ac_cpp_err=$ac_c_preproc_warn_flag
21132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21133 else
21134 ac_cpp_err=
21135 fi
21136else
21137 ac_cpp_err=yes
21138fi
21139if test -z "$ac_cpp_err"; then
c906108c
SS
21140 # We can compile using X headers with no special include directory.
21141ac_x_includes=
21142else
bec39cab
AC
21143 echo "$as_me: failed program was:" >&5
21144sed 's/^/| /' conftest.$ac_ext >&5
21145
21146 for ac_dir in $ac_x_header_dirs; do
21147 if test -r "$ac_dir/X11/Intrinsic.h"; then
21148 ac_x_includes=$ac_dir
21149 break
21150 fi
21151done
c906108c 21152fi
bec39cab
AC
21153rm -f conftest.err conftest.$ac_ext
21154fi # $ac_x_includes = no
c906108c 21155
bec39cab 21156if test "$ac_x_libraries" = no; then
c906108c 21157 # Check for the libraries.
c906108c
SS
21158 # See if we find them without any special options.
21159 # Don't add to $LIBS permanently.
bec39cab
AC
21160 ac_save_LIBS=$LIBS
21161 LIBS="-lXt $LIBS"
21162 cat >conftest.$ac_ext <<_ACEOF
21163/* confdefs.h. */
21164_ACEOF
21165cat confdefs.h >>conftest.$ac_ext
21166cat >>conftest.$ac_ext <<_ACEOF
21167/* end confdefs.h. */
21168#include <X11/Intrinsic.h>
21169int
21170main ()
21171{
21172XtMalloc (0)
21173 ;
21174 return 0;
21175}
21176_ACEOF
21177rm -f conftest.$ac_objext conftest$ac_exeext
21178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21179 (eval $ac_link) 2>conftest.er1
21180 ac_status=$?
21181 grep -v '^ *+' conftest.er1 >conftest.err
21182 rm -f conftest.er1
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -z "$ac_c_werror_flag"
21187 || test ! -s conftest.err'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21190 ac_status=$?
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; } &&
21193 { ac_try='test -s conftest$ac_exeext'
21194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); }; }; then
21199 LIBS=$ac_save_LIBS
c906108c
SS
21200# We can link X programs with no special library path.
21201ac_x_libraries=
21202else
bec39cab
AC
21203 echo "$as_me: failed program was:" >&5
21204sed 's/^/| /' conftest.$ac_ext >&5
21205
21206LIBS=$ac_save_LIBS
21207for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21208do
bec39cab 21209 # Don't even attempt the hair of trying to link an X program!
c906108c 21210 for ac_extension in a so sl; do
bec39cab 21211 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
21212 ac_x_libraries=$ac_dir
21213 break 2
21214 fi
21215 done
21216done
21217fi
bec39cab
AC
21218rm -f conftest.err conftest.$ac_objext \
21219 conftest$ac_exeext conftest.$ac_ext
21220fi # $ac_x_libraries = no
c906108c 21221
bec39cab 21222if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21223 # Didn't find X anywhere. Cache the known absence of X.
21224 ac_cv_have_x="have_x=no"
21225else
21226 # Record where we found X for the cache.
21227 ac_cv_have_x="have_x=yes \
bec39cab 21228 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21229fi
21230fi
bec39cab 21231
c906108c
SS
21232 fi
21233 eval "$ac_cv_have_x"
21234fi # $with_x != no
21235
21236if test "$have_x" != yes; then
bec39cab
AC
21237 echo "$as_me:$LINENO: result: $have_x" >&5
21238echo "${ECHO_T}$have_x" >&6
c906108c
SS
21239 no_x=yes
21240else
21241 # If each of the values was on the command line, it overrides each guess.
21242 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21243 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21244 # Update the cache value to reflect the command line values.
21245 ac_cv_have_x="have_x=yes \
21246 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bec39cab
AC
21247 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21248echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
21249fi
21250
21251
9cc52bde
MK
21252# Check whether we should enable the TUI, but only do so if we really
21253# can.
21254if test x"$enable_tui" = xyes; then
21255 if test -d $srcdir/tui; then
21256 if test "$ac_cv_search_waddstr" != no; then
21257 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21258 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21259 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21260 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21261 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21262 CONFIG_ALL="${CONFIG_ALL} all-tui"
21263 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21264 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21265 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21266 else
bec39cab
AC
21267 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21268echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21269 fi
21270 fi
21271fi
21272
bec39cab
AC
21273# Unlike the sim directory, whether a simulator is linked is controlled by
21274# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21275# This code just checks for a few cases where we'd like to ignore those
21276# definitions, even when they're present in the '.mt' file. These cases
21277# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21278# not part of the source tree.
7a292a7a
SS
21279#
21280# Check whether --enable-sim or --disable-sim was given.
21281if test "${enable_sim+set}" = set; then
21282 enableval="$enable_sim"
21283 echo "enable_sim = $enable_sim";
21284 echo "enableval = ${enableval}";
21285 case "${enableval}" in
21286 yes) ignore_sim=false ;;
21287 no) ignore_sim=true ;;
21288 *) ignore_sim=false ;;
21289 esac
21290else
21291 ignore_sim=false
bec39cab 21292fi;
7a292a7a
SS
21293
21294if test ! -d "${srcdir}/../sim"; then
21295 ignore_sim=true
21296fi
21297
21298if test "${ignore_sim}" = "true"; then
21299 IGNORE_SIM="SIM="
21300 IGNORE_SIM_OBS="SIM_OBS="
21301else
21302 IGNORE_SIM=""
21303 IGNORE_SIM_OBS=""
bec39cab 21304 cat >>confdefs.h <<\_ACEOF
7a292a7a 21305#define WITH_SIM 1
bec39cab 21306_ACEOF
7a292a7a
SS
21307
21308fi
21309
21310
21311
c906108c
SS
21312
21313
21314
21315
21316
21317
dfcd3bfb 21318
e56ac5c3
AC
21319
21320
b3a90332
AC
21321
21322
c35f4ffc 21323# List of host floatformats.
bec39cab
AC
21324
21325cat >>confdefs.h <<_ACEOF
c35f4ffc 21326#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21327_ACEOF
c35f4ffc 21328
bec39cab
AC
21329
21330cat >>confdefs.h <<_ACEOF
c35f4ffc 21331#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21332_ACEOF
21333
c35f4ffc 21334
bec39cab 21335cat >>confdefs.h <<_ACEOF
c35f4ffc 21336#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21337_ACEOF
c35f4ffc
AC
21338
21339
c906108c
SS
21340# target_subdir is used by the testsuite to find the target libraries.
21341target_subdir=
21342if test "${host}" != "${target}"; then
21343 target_subdir="${target_alias}/"
21344fi
21345
21346
21347frags=
0dad8a66
MK
21348if test "${target}" = "${host}"; then
21349 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21350 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21351 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21352echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21353 { (exit 1); exit 1; }; }
0dad8a66
MK
21354 fi
21355 frags="$frags $host_makefile_frag"
21356else
21357 host_makefile_frag=/dev/null
c906108c 21358fi
c906108c
SS
21359
21360target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21361if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21362 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21363echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21364 { (exit 1); exit 1; }; }
c906108c
SS
21365fi
21366frags="$frags $target_makefile_frag"
21367
21368
21369
21370
21371
21372hostfile=`sed -n '
21373s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21374' ${host_makefile_frag}`
21375
21376targetfile=`sed -n '
2c0fc042 21377s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21378' ${target_makefile_frag}`
21379
c906108c 21380if test "${target}" = "${host}"; then
a85f51e7
DJ
21381# We pick this up from the host configuration file (.mh) because we
21382# do not have a native configuration Makefile fragment.
c906108c
SS
21383nativefile=`sed -n '
21384s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21385' ${host_makefile_frag}`
c906108c
SS
21386fi
21387
21388
b00a8037 21389if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21390
21391cat >>confdefs.h <<_ACEOF
b00a8037 21392#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21393_ACEOF
b00a8037
DJ
21394
21395fi
21396
8dcde887
MK
21397# Enable multi-ice-gdb-server.
21398# Check whether --enable-multi-ice or --disable-multi-ice was given.
21399if test "${enable_multi_ice+set}" = set; then
21400 enableval="$enable_multi_ice"
21401 case $enableval in
21402 yes | no)
21403 ;;
bec39cab
AC
21404 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21405echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21406 { (exit 1); exit 1; }; } ;;
8dcde887 21407 esac
bec39cab 21408fi;
8dcde887 21409if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21410
21411
21412subdirs="$subdirs multi-ice"
3ace7edb 21413
a85f51e7
DJ
21414fi
21415
8dcde887
MK
21416# We only build gdbserver automatically if host and target are the same.
21417if test "x$target" = "x$host"; then
bec39cab
AC
21418 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21419echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21420 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21421 echo "$as_me:$LINENO: result: yes" >&5
21422echo "${ECHO_T}yes" >&6
21423
21424
21425subdirs="$subdirs gdbserver"
3ace7edb 21426
8dcde887 21427 else
bec39cab
AC
21428 echo "$as_me:$LINENO: result: no" >&5
21429echo "${ECHO_T}no" >&6
8dcde887
MK
21430 fi
21431fi
21432
065a1afc
JB
21433# We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21434if test "x$build_rdi_share" = xyes; then
21435
21436
21437subdirs="$subdirs rdi-share"
21438
21439fi
21440
21441# We configure the nlm subdirectory on netware targets, as instructed
21442# by configure.tgt.
21443if test "x$build_nlm" = xyes; then
21444
21445
21446subdirs="$subdirs nlm"
21447
21448fi
21449
2c0fc042
AC
21450# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21451# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21452# to an empty version.
c906108c
SS
21453
21454files=
21455links=
5a2402b8 21456
c906108c 21457rm -f xm.h
5a2402b8 21458xm_h=""
c906108c 21459if test "${hostfile}" != ""; then
5a2402b8 21460 xm_h=xm.h
0f475e27
AC
21461 case "${hostfile}" in
21462 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21463 * ) GDB_XM_FILE="${hostfile}"
21464 esac
5a2402b8
AC
21465 files="${files} ${GDB_XM_FILE}"
21466 links="${links} xm.h"
bec39cab 21467 cat >>confdefs.h <<_ACEOF
b78960be 21468#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21469_ACEOF
5a2402b8 21470
c906108c 21471fi
5a2402b8
AC
21472
21473
c906108c 21474rm -f tm.h
5a2402b8 21475tm_h=""
c906108c 21476if test "${targetfile}" != ""; then
5a2402b8 21477 tm_h=tm.h
0f475e27 21478 case "${targetfile}" in
b8c4aece 21479 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21480 * ) GDB_TM_FILE="${targetfile}"
21481 esac
5a2402b8
AC
21482 files="${files} ${GDB_TM_FILE}"
21483 links="${links} tm.h"
bec39cab 21484 cat >>confdefs.h <<_ACEOF
b78960be 21485#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21486_ACEOF
5a2402b8 21487
c906108c 21488fi
5a2402b8
AC
21489
21490
c906108c 21491rm -f nm.h
5a2402b8 21492nm_h=""
c906108c 21493if test "${nativefile}" != ""; then
5a2402b8 21494 nm_h=nm.h
0f475e27
AC
21495 case "${nativefile}" in
21496 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21497 * ) GDB_NM_FILE="${nativefile}"
21498 esac
5a2402b8
AC
21499 files="${files} ${GDB_NM_FILE}"
21500 links="${links} nm.h"
bec39cab 21501 cat >>confdefs.h <<_ACEOF
b78960be 21502#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21503_ACEOF
5a2402b8 21504
c906108c 21505fi
5a2402b8
AC
21506
21507
bec39cab
AC
21508ac_sources="$files"
21509ac_dests="$links"
21510while test -n "$ac_sources"; do
21511 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21512 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21513 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21514done
21515 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21516
21517
c906108c
SS
21518
21519
c906108c 21520
c906108c 21521
bec39cab
AC
21522cat >>confdefs.h <<\_ACEOF
21523#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21524_ACEOF
c906108c 21525
234b45d4 21526
234b45d4
KB
21527
21528
21529
bec39cab 21530# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21531if test "${with_libiconv_prefix+set}" = set; then
21532 withval="$with_libiconv_prefix"
bec39cab 21533
234b45d4
KB
21534 for dir in `echo "$withval" | tr : ' '`; do
21535 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21536 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21537 done
234b45d4 21538
bec39cab 21539fi;
234b45d4 21540
bec39cab
AC
21541 echo "$as_me:$LINENO: checking for iconv" >&5
21542echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21543if test "${am_cv_func_iconv+set}" = set; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21545else
bec39cab 21546
234b45d4
KB
21547 am_cv_func_iconv="no, consider installing GNU libiconv"
21548 am_cv_lib_iconv=no
bec39cab
AC
21549 cat >conftest.$ac_ext <<_ACEOF
21550/* confdefs.h. */
21551_ACEOF
21552cat confdefs.h >>conftest.$ac_ext
21553cat >>conftest.$ac_ext <<_ACEOF
21554/* end confdefs.h. */
234b45d4
KB
21555#include <stdlib.h>
21556#include <iconv.h>
bec39cab
AC
21557int
21558main ()
21559{
234b45d4
KB
21560iconv_t cd = iconv_open("","");
21561 iconv(cd,NULL,NULL,NULL,NULL);
21562 iconv_close(cd);
bec39cab
AC
21563 ;
21564 return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext conftest$ac_exeext
21568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21569 (eval $ac_link) 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } &&
21576 { ac_try='test -z "$ac_c_werror_flag"
21577 || test ! -s conftest.err'
21578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579 (eval $ac_try) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; } &&
21583 { ac_try='test -s conftest$ac_exeext'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
234b45d4
KB
21589 am_cv_func_iconv=yes
21590else
bec39cab
AC
21591 echo "$as_me: failed program was:" >&5
21592sed 's/^/| /' conftest.$ac_ext >&5
21593
234b45d4 21594fi
bec39cab
AC
21595rm -f conftest.err conftest.$ac_objext \
21596 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21597 if test "$am_cv_func_iconv" != yes; then
21598 am_save_LIBS="$LIBS"
21599 LIBS="$LIBS -liconv"
bec39cab
AC
21600 cat >conftest.$ac_ext <<_ACEOF
21601/* confdefs.h. */
21602_ACEOF
21603cat confdefs.h >>conftest.$ac_ext
21604cat >>conftest.$ac_ext <<_ACEOF
21605/* end confdefs.h. */
234b45d4
KB
21606#include <stdlib.h>
21607#include <iconv.h>
bec39cab
AC
21608int
21609main ()
21610{
234b45d4
KB
21611iconv_t cd = iconv_open("","");
21612 iconv(cd,NULL,NULL,NULL,NULL);
21613 iconv_close(cd);
bec39cab
AC
21614 ;
21615 return 0;
21616}
21617_ACEOF
21618rm -f conftest.$ac_objext conftest$ac_exeext
21619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21620 (eval $ac_link) 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } &&
21627 { ac_try='test -z "$ac_c_werror_flag"
21628 || test ! -s conftest.err'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest$ac_exeext'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
234b45d4
KB
21640 am_cv_lib_iconv=yes
21641 am_cv_func_iconv=yes
21642else
bec39cab
AC
21643 echo "$as_me: failed program was:" >&5
21644sed 's/^/| /' conftest.$ac_ext >&5
21645
234b45d4 21646fi
bec39cab
AC
21647rm -f conftest.err conftest.$ac_objext \
21648 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21649 LIBS="$am_save_LIBS"
21650 fi
bec39cab
AC
21651
21652fi
21653echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21654echo "${ECHO_T}$am_cv_func_iconv" >&6
21655 if test "$am_cv_func_iconv" = yes; then
21656
21657cat >>confdefs.h <<\_ACEOF
21658#define HAVE_ICONV 1
21659_ACEOF
21660
21661 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21662echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21663 if test "${am_cv_proto_iconv+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21665else
21666
21667 cat >conftest.$ac_ext <<_ACEOF
21668/* confdefs.h. */
21669_ACEOF
21670cat confdefs.h >>conftest.$ac_ext
21671cat >>conftest.$ac_ext <<_ACEOF
21672/* end confdefs.h. */
21673
21674#include <stdlib.h>
21675#include <iconv.h>
21676extern
21677#ifdef __cplusplus
21678"C"
21679#endif
21680#if defined(__STDC__) || defined(__cplusplus)
21681size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21682#else
21683size_t iconv();
21684#endif
21685
21686int
21687main ()
21688{
21689
21690 ;
21691 return 0;
21692}
21693_ACEOF
21694rm -f conftest.$ac_objext
21695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21696 (eval $ac_compile) 2>conftest.er1
21697 ac_status=$?
21698 grep -v '^ *+' conftest.er1 >conftest.err
21699 rm -f conftest.er1
21700 cat conftest.err >&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } &&
21703 { ac_try='test -z "$ac_c_werror_flag"
21704 || test ! -s conftest.err'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; } &&
21710 { ac_try='test -s conftest.$ac_objext'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 am_cv_proto_iconv_arg1=""
21717else
21718 echo "$as_me: failed program was:" >&5
21719sed 's/^/| /' conftest.$ac_ext >&5
21720
21721am_cv_proto_iconv_arg1="const"
21722fi
21723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21724 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);"
21725fi
21726
21727 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21728 echo "$as_me:$LINENO: result: ${ac_t:-
21729 }$am_cv_proto_iconv" >&5
21730echo "${ECHO_T}${ac_t:-
21731 }$am_cv_proto_iconv" >&6
21732
21733cat >>confdefs.h <<_ACEOF
21734#define ICONV_CONST $am_cv_proto_iconv_arg1
21735_ACEOF
21736
21737 fi
21738 LIBICONV=
21739 if test "$am_cv_lib_iconv" = yes; then
21740 LIBICONV="-liconv"
21741 fi
21742
21743
21744
21745 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21746 ac_config_commands="$ac_config_commands default"
21747cat >confcache <<\_ACEOF
21748# This file is a shell script that caches the results of configure
21749# tests run on this system so they can be shared between configure
21750# scripts and configure runs, see configure's option --config-cache.
21751# It is not useful on other systems. If it contains results you don't
21752# want to keep, you may remove or edit it.
21753#
21754# config.status only pays attention to the cache file if you give it
21755# the --recheck option to rerun configure.
21756#
21757# `ac_cv_env_foo' variables (set or unset) will be overridden when
21758# loading this file, other *unset* `ac_cv_foo' will be assigned the
21759# following values.
21760
21761_ACEOF
21762
21763# The following way of writing the cache mishandles newlines in values,
21764# but we know of no workaround that is simple, portable, and efficient.
21765# So, don't put newlines in cache variables' values.
21766# Ultrix sh set writes to stderr and can't be redirected directly,
21767# and sets the high bit in the cache file unless we assign to the vars.
21768{
21769 (set) 2>&1 |
21770 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21771 *ac_space=\ *)
21772 # `set' does not quote correctly, so add quotes (double-quote
21773 # substitution turns \\\\ into \\, and sed turns \\ into \).
21774 sed -n \
21775 "s/'/'\\\\''/g;
21776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21777 ;;
21778 *)
21779 # `set' quotes correctly as required by POSIX, so do not add quotes.
21780 sed -n \
21781 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21782 ;;
21783 esac;
21784} |
21785 sed '
21786 t clear
21787 : clear
21788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21789 t end
21790 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21791 : end' >>confcache
21792if diff $cache_file confcache >/dev/null 2>&1; then :; else
21793 if test -w $cache_file; then
21794 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21795 cat confcache >$cache_file
21796 else
21797 echo "not updating unwritable cache $cache_file"
21798 fi
21799fi
21800rm -f confcache
21801
21802test "x$prefix" = xNONE && prefix=$ac_default_prefix
21803# Let make expand exec_prefix.
21804test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21805
21806# VPATH may cause trouble with some makes, so we remove $(srcdir),
21807# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21808# trailing colons and then remove the whole line if VPATH becomes empty
21809# (actually we leave an empty line to preserve line numbers).
21810if test "x$srcdir" = x.; then
21811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21812s/:*\$(srcdir):*/:/;
21813s/:*\${srcdir}:*/:/;
21814s/:*@srcdir@:*/:/;
21815s/^\([^=]*=[ ]*\):*/\1/;
21816s/:*$//;
21817s/^[^=]*=[ ]*$//;
21818}'
21819fi
21820
21821DEFS=-DHAVE_CONFIG_H
21822
21823ac_libobjs=
21824ac_ltlibobjs=
21825for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21826 # 1. Remove the extension, and $U if already installed.
21827 ac_i=`echo "$ac_i" |
21828 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21829 # 2. Add them.
21830 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21831 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21832done
21833LIBOBJS=$ac_libobjs
21834
21835LTLIBOBJS=$ac_ltlibobjs
21836
21837
85981d60
AC
21838if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21839 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21840Usually this means the macro was only invoked conditionally." >&5
21841echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21842Usually this means the macro was only invoked conditionally." >&2;}
21843 { (exit 1); exit 1; }; }
21844fi
bec39cab
AC
21845
21846: ${CONFIG_STATUS=./config.status}
21847ac_clean_files_save=$ac_clean_files
21848ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21849{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21850echo "$as_me: creating $CONFIG_STATUS" >&6;}
21851cat >$CONFIG_STATUS <<_ACEOF
21852#! $SHELL
21853# Generated by $as_me.
21854# Run this file to recreate the current configuration.
21855# Compiler output produced by configure, useful for debugging
21856# configure, is in config.log if it exists.
21857
21858debug=false
21859ac_cs_recheck=false
21860ac_cs_silent=false
21861SHELL=\${CONFIG_SHELL-$SHELL}
21862_ACEOF
21863
21864cat >>$CONFIG_STATUS <<\_ACEOF
21865## --------------------- ##
21866## M4sh Initialization. ##
21867## --------------------- ##
21868
21869# Be Bourne compatible
21870if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21871 emulate sh
21872 NULLCMD=:
21873 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21874 # is contrary to our usage. Disable this feature.
21875 alias -g '${1+"$@"}'='"$@"'
21876elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21877 set -o posix
21878fi
21879DUALCASE=1; export DUALCASE # for MKS sh
21880
21881# Support unset when possible.
21882if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21883 as_unset=unset
21884else
21885 as_unset=false
21886fi
21887
21888
21889# Work around bugs in pre-3.0 UWIN ksh.
21890$as_unset ENV MAIL MAILPATH
21891PS1='$ '
21892PS2='> '
21893PS4='+ '
21894
21895# NLS nuisances.
21896for as_var in \
21897 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21898 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21899 LC_TELEPHONE LC_TIME
21900do
21901 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21902 eval $as_var=C; export $as_var
21903 else
21904 $as_unset $as_var
21905 fi
21906done
21907
21908# Required to use basename.
21909if expr a : '\(a\)' >/dev/null 2>&1; then
21910 as_expr=expr
21911else
21912 as_expr=false
21913fi
21914
21915if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21916 as_basename=basename
21917else
21918 as_basename=false
21919fi
21920
21921
21922# Name of the executable.
21923as_me=`$as_basename "$0" ||
21924$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21925 X"$0" : 'X\(//\)$' \| \
21926 X"$0" : 'X\(/\)$' \| \
21927 . : '\(.\)' 2>/dev/null ||
21928echo X/"$0" |
21929 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21930 /^X\/\(\/\/\)$/{ s//\1/; q; }
21931 /^X\/\(\/\).*/{ s//\1/; q; }
21932 s/.*/./; q'`
21933
21934
21935# PATH needs CR, and LINENO needs CR and PATH.
21936# Avoid depending upon Character Ranges.
21937as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21938as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21939as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21940as_cr_digits='0123456789'
21941as_cr_alnum=$as_cr_Letters$as_cr_digits
21942
21943# The user is always right.
21944if test "${PATH_SEPARATOR+set}" != set; then
21945 echo "#! /bin/sh" >conf$$.sh
21946 echo "exit 0" >>conf$$.sh
21947 chmod +x conf$$.sh
21948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21949 PATH_SEPARATOR=';'
21950 else
21951 PATH_SEPARATOR=:
21952 fi
21953 rm -f conf$$.sh
21954fi
21955
21956
21957 as_lineno_1=$LINENO
21958 as_lineno_2=$LINENO
21959 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21960 test "x$as_lineno_1" != "x$as_lineno_2" &&
21961 test "x$as_lineno_3" = "x$as_lineno_2" || {
21962 # Find who we are. Look in the path if we contain no path at all
21963 # relative or not.
21964 case $0 in
21965 *[\\/]* ) as_myself=$0 ;;
21966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21967for as_dir in $PATH
21968do
21969 IFS=$as_save_IFS
21970 test -z "$as_dir" && as_dir=.
21971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21972done
21973
21974 ;;
21975 esac
21976 # We did not find ourselves, most probably we were run as `sh COMMAND'
21977 # in which case we are not to be found in the path.
21978 if test "x$as_myself" = x; then
21979 as_myself=$0
21980 fi
21981 if test ! -f "$as_myself"; then
21982 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21983echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21984 { (exit 1); exit 1; }; }
21985 fi
21986 case $CONFIG_SHELL in
21987 '')
21988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21989for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21990do
21991 IFS=$as_save_IFS
21992 test -z "$as_dir" && as_dir=.
21993 for as_base in sh bash ksh sh5; do
21994 case $as_dir in
21995 /*)
21996 if ("$as_dir/$as_base" -c '
21997 as_lineno_1=$LINENO
21998 as_lineno_2=$LINENO
21999 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22000 test "x$as_lineno_1" != "x$as_lineno_2" &&
22001 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22002 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22003 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22004 CONFIG_SHELL=$as_dir/$as_base
22005 export CONFIG_SHELL
22006 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22007 fi;;
22008 esac
22009 done
22010done
22011;;
22012 esac
22013
22014 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22015 # uniformly replaced by the line number. The first 'sed' inserts a
22016 # line-number line before each line; the second 'sed' does the real
22017 # work. The second script uses 'N' to pair each line-number line
22018 # with the numbered line, and appends trailing '-' during
22019 # substitution so that $LINENO is not a special case at line end.
22020 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22021 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22022 sed '=' <$as_myself |
22023 sed '
22024 N
22025 s,$,-,
22026 : loop
22027 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22028 t loop
22029 s,-$,,
22030 s,^['$as_cr_digits']*\n,,
22031 ' >$as_me.lineno &&
22032 chmod +x $as_me.lineno ||
22033 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22034echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22035 { (exit 1); exit 1; }; }
22036
22037 # Don't try to exec as it changes $[0], causing all sort of problems
22038 # (the dirname of $[0] is not the place where we might find the
22039 # original and so on. Autoconf is especially sensible to this).
22040 . ./$as_me.lineno
22041 # Exit status is that of the last command.
22042 exit
22043}
22044
22045
22046case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22047 *c*,-n*) ECHO_N= ECHO_C='
22048' ECHO_T=' ' ;;
22049 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22050 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22051esac
22052
22053if expr a : '\(a\)' >/dev/null 2>&1; then
22054 as_expr=expr
22055else
22056 as_expr=false
22057fi
22058
22059rm -f conf$$ conf$$.exe conf$$.file
22060echo >conf$$.file
22061if ln -s conf$$.file conf$$ 2>/dev/null; then
22062 # We could just check for DJGPP; but this test a) works b) is more generic
22063 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22064 if test -f conf$$.exe; then
22065 # Don't use ln at all; we don't have any links
22066 as_ln_s='cp -p'
22067 else
22068 as_ln_s='ln -s'
22069 fi
22070elif ln conf$$.file conf$$ 2>/dev/null; then
22071 as_ln_s=ln
22072else
22073 as_ln_s='cp -p'
22074fi
22075rm -f conf$$ conf$$.exe conf$$.file
22076
22077if mkdir -p . 2>/dev/null; then
22078 as_mkdir_p=:
22079else
22080 test -d ./-p && rmdir ./-p
22081 as_mkdir_p=false
22082fi
22083
22084as_executable_p="test -f"
22085
22086# Sed expression to map a string onto a valid CPP name.
22087as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22088
22089# Sed expression to map a string onto a valid variable name.
22090as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22091
22092
22093# IFS
22094# We need space, tab and new line, in precisely that order.
22095as_nl='
22096'
22097IFS=" $as_nl"
22098
22099# CDPATH.
22100$as_unset CDPATH
22101
22102exec 6>&1
22103
22104# Open the log real soon, to keep \$[0] and so on meaningful, and to
22105# report actual input values of CONFIG_FILES etc. instead of their
22106# values after options handling. Logging --version etc. is OK.
22107exec 5>>config.log
22108{
22109 echo
22110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22111## Running $as_me. ##
22112_ASBOX
22113} >&5
22114cat >&5 <<_CSEOF
22115
22116This file was extended by $as_me, which was
22117generated by GNU Autoconf 2.59. Invocation command line was
22118
22119 CONFIG_FILES = $CONFIG_FILES
22120 CONFIG_HEADERS = $CONFIG_HEADERS
22121 CONFIG_LINKS = $CONFIG_LINKS
22122 CONFIG_COMMANDS = $CONFIG_COMMANDS
22123 $ $0 $@
22124
22125_CSEOF
22126echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22127echo >&5
22128_ACEOF
22129
22130# Files that config.status was made for.
22131if test -n "$ac_config_files"; then
22132 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22133fi
22134
22135if test -n "$ac_config_headers"; then
22136 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22137fi
22138
22139if test -n "$ac_config_links"; then
22140 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22141fi
22142
bec39cab
AC
22143if test -n "$ac_config_commands"; then
22144 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22145fi
234b45d4 22146
bec39cab 22147cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22148
bec39cab
AC
22149ac_cs_usage="\
22150\`$as_me' instantiates files from templates according to the
22151current configuration.
234b45d4 22152
bec39cab 22153Usage: $0 [OPTIONS] [FILE]...
234b45d4 22154
bec39cab
AC
22155 -h, --help print this help, then exit
22156 -V, --version print version number, then exit
22157 -q, --quiet do not print progress messages
22158 -d, --debug don't remove temporary files
22159 --recheck update $as_me by reconfiguring in the same conditions
22160 --file=FILE[:TEMPLATE]
22161 instantiate the configuration file FILE
22162 --header=FILE[:TEMPLATE]
22163 instantiate the configuration header FILE
234b45d4 22164
bec39cab
AC
22165Configuration files:
22166$config_files
234b45d4 22167
bec39cab
AC
22168Configuration headers:
22169$config_headers
234b45d4 22170
bec39cab
AC
22171Configuration links:
22172$config_links
234b45d4 22173
bec39cab
AC
22174Configuration commands:
22175$config_commands
22176
22177Report bugs to <bug-autoconf@gnu.org>."
22178_ACEOF
22179
22180cat >>$CONFIG_STATUS <<_ACEOF
22181ac_cs_version="\\
22182config.status
22183configured by $0, generated by GNU Autoconf 2.59,
22184 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22185
22186Copyright (C) 2003 Free Software Foundation, Inc.
22187This config.status script is free software; the Free Software Foundation
22188gives unlimited permission to copy, distribute and modify it."
22189srcdir=$srcdir
22190INSTALL="$INSTALL"
22191_ACEOF
22192
22193cat >>$CONFIG_STATUS <<\_ACEOF
22194# If no file are specified by the user, then we need to provide default
22195# value. By we need to know if files were specified by the user.
22196ac_need_defaults=:
22197while test $# != 0
22198do
22199 case $1 in
22200 --*=*)
22201 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22202 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22203 ac_shift=:
c906108c 22204 ;;
bec39cab
AC
22205 -*)
22206 ac_option=$1
22207 ac_optarg=$2
22208 ac_shift=shift
c906108c 22209 ;;
bec39cab
AC
22210 *) # This is not an option, so the user has probably given explicit
22211 # arguments.
22212 ac_option=$1
22213 ac_need_defaults=false;;
22214 esac
c906108c 22215
bec39cab
AC
22216 case $ac_option in
22217 # Handling of the options.
22218_ACEOF
22219cat >>$CONFIG_STATUS <<\_ACEOF
22220 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22221 ac_cs_recheck=: ;;
22222 --version | --vers* | -V )
22223 echo "$ac_cs_version"; exit 0 ;;
22224 --he | --h)
22225 # Conflict between --help and --header
22226 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22227Try \`$0 --help' for more information." >&5
22228echo "$as_me: error: ambiguous option: $1
22229Try \`$0 --help' for more information." >&2;}
22230 { (exit 1); exit 1; }; };;
22231 --help | --hel | -h )
22232 echo "$ac_cs_usage"; exit 0 ;;
22233 --debug | --d* | -d )
22234 debug=: ;;
22235 --file | --fil | --fi | --f )
22236 $ac_shift
22237 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22238 ac_need_defaults=false;;
22239 --header | --heade | --head | --hea )
22240 $ac_shift
22241 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22242 ac_need_defaults=false;;
22243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22245 ac_cs_silent=: ;;
c906108c 22246
bec39cab
AC
22247 # This is an error.
22248 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22249Try \`$0 --help' for more information." >&5
22250echo "$as_me: error: unrecognized option: $1
22251Try \`$0 --help' for more information." >&2;}
22252 { (exit 1); exit 1; }; } ;;
c906108c 22253
bec39cab 22254 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22255
bec39cab
AC
22256 esac
22257 shift
22258done
c906108c 22259
bec39cab 22260ac_configure_extra_args=
c906108c 22261
bec39cab
AC
22262if $ac_cs_silent; then
22263 exec 6>/dev/null
22264 ac_configure_extra_args="$ac_configure_extra_args --silent"
22265fi
c906108c 22266
bec39cab
AC
22267_ACEOF
22268cat >>$CONFIG_STATUS <<_ACEOF
22269if \$ac_cs_recheck; then
22270 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22271 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22272fi
22273
22274_ACEOF
22275
22276cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22277#
bec39cab 22278# INIT-COMMANDS section.
c906108c 22279#
c906108c 22280
bec39cab
AC
22281
22282gdb_host_cpu=$gdb_host_cpu
22283gdb_target_cpu=$gdb_target_cpu
22284nativefile=$nativefile
22285
22286
22287_ACEOF
22288
22289
22290
22291cat >>$CONFIG_STATUS <<\_ACEOF
22292for ac_config_target in $ac_config_targets
c906108c 22293do
bec39cab
AC
22294 case "$ac_config_target" in
22295 # Handling of arguments.
22296 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22297 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22298 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22299 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22300 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22301 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22302echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22303 { (exit 1); exit 1; }; };;
c906108c
SS
22304 esac
22305done
22306
bec39cab
AC
22307# If the user did not use the arguments to specify the items to instantiate,
22308# then the envvar interface is used. Set only those that are not.
22309# We use the long form for the default assignment because of an extremely
22310# bizarre bug on SunOS 4.1.3.
22311if $ac_need_defaults; then
22312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22314 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22316fi
22317
22318# Have a temporary directory for convenience. Make it in the build tree
22319# simply because there is no reason to put it here, and in addition,
22320# creating and moving files from /tmp can sometimes cause problems.
22321# Create a temporary directory, and hook for its removal unless debugging.
22322$debug ||
22323{
22324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22325 trap '{ (exit 1); exit 1; }' 1 2 13 15
22326}
c906108c 22327
bec39cab 22328# Create a (secure) tmp directory for tmp files.
c906108c 22329
bec39cab
AC
22330{
22331 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22332 test -n "$tmp" && test -d "$tmp"
22333} ||
22334{
22335 tmp=./confstat$$-$RANDOM
22336 (umask 077 && mkdir $tmp)
22337} ||
22338{
22339 echo "$me: cannot create a temporary directory in ." >&2
22340 { (exit 1); exit 1; }
22341}
22342
22343_ACEOF
22344
22345cat >>$CONFIG_STATUS <<_ACEOF
22346
22347#
22348# CONFIG_FILES section.
22349#
22350
22351# No need to generate the scripts if there are no CONFIG_FILES.
22352# This happens for instance when ./config.status config.h
22353if test -n "\$CONFIG_FILES"; then
22354 # Protect against being on the right side of a sed subst in config.status.
22355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22357s,@SHELL@,$SHELL,;t t
22358s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22359s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22360s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22361s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22362s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22363s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22364s,@exec_prefix@,$exec_prefix,;t t
22365s,@prefix@,$prefix,;t t
22366s,@program_transform_name@,$program_transform_name,;t t
22367s,@bindir@,$bindir,;t t
22368s,@sbindir@,$sbindir,;t t
22369s,@libexecdir@,$libexecdir,;t t
22370s,@datadir@,$datadir,;t t
22371s,@sysconfdir@,$sysconfdir,;t t
22372s,@sharedstatedir@,$sharedstatedir,;t t
22373s,@localstatedir@,$localstatedir,;t t
22374s,@libdir@,$libdir,;t t
22375s,@includedir@,$includedir,;t t
22376s,@oldincludedir@,$oldincludedir,;t t
22377s,@infodir@,$infodir,;t t
22378s,@mandir@,$mandir,;t t
22379s,@build_alias@,$build_alias,;t t
22380s,@host_alias@,$host_alias,;t t
22381s,@target_alias@,$target_alias,;t t
22382s,@DEFS@,$DEFS,;t t
22383s,@ECHO_C@,$ECHO_C,;t t
22384s,@ECHO_N@,$ECHO_N,;t t
22385s,@ECHO_T@,$ECHO_T,;t t
22386s,@LIBS@,$LIBS,;t t
22387s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22388s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22389s,@MAINT@,$MAINT,;t t
22390s,@CC@,$CC,;t t
22391s,@CFLAGS@,$CFLAGS,;t t
22392s,@LDFLAGS@,$LDFLAGS,;t t
22393s,@CPPFLAGS@,$CPPFLAGS,;t t
22394s,@ac_ct_CC@,$ac_ct_CC,;t t
22395s,@EXEEXT@,$EXEEXT,;t t
22396s,@OBJEXT@,$OBJEXT,;t t
22397s,@CPP@,$CPP,;t t
22398s,@EGREP@,$EGREP,;t t
22399s,@build@,$build,;t t
22400s,@build_cpu@,$build_cpu,;t t
22401s,@build_vendor@,$build_vendor,;t t
22402s,@build_os@,$build_os,;t t
22403s,@host@,$host,;t t
22404s,@host_cpu@,$host_cpu,;t t
22405s,@host_vendor@,$host_vendor,;t t
22406s,@host_os@,$host_os,;t t
22407s,@target@,$target,;t t
22408s,@target_cpu@,$target_cpu,;t t
22409s,@target_vendor@,$target_vendor,;t t
22410s,@target_os@,$target_os,;t t
22411s,@RANLIB@,$RANLIB,;t t
22412s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22413s,@SET_MAKE@,$SET_MAKE,;t t
22414s,@ALLOCA@,$ALLOCA,;t t
22415s,@USE_NLS@,$USE_NLS,;t t
22416s,@MSGFMT@,$MSGFMT,;t t
22417s,@GMSGFMT@,$GMSGFMT,;t t
22418s,@XGETTEXT@,$XGETTEXT,;t t
22419s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22420s,@CATALOGS@,$CATALOGS,;t t
22421s,@CATOBJEXT@,$CATOBJEXT,;t t
22422s,@DATADIRNAME@,$DATADIRNAME,;t t
22423s,@GMOFILES@,$GMOFILES,;t t
22424s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22425s,@INTLDEPS@,$INTLDEPS,;t t
22426s,@INTLLIBS@,$INTLLIBS,;t t
22427s,@INTLOBJS@,$INTLOBJS,;t t
22428s,@POFILES@,$POFILES,;t t
22429s,@POSUB@,$POSUB,;t t
22430s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22431s,@GT_NO@,$GT_NO,;t t
22432s,@GT_YES@,$GT_YES,;t t
22433s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22434s,@l@,$l,;t t
22435s,@localedir@,$localedir,;t t
22436s,@PACKAGE@,$PACKAGE,;t t
22437s,@subdirs@,$subdirs,;t t
22438s,@AWK@,$AWK,;t t
22439s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22440s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22441s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22442s,@LN_S@,$LN_S,;t t
22443s,@YACC@,$YACC,;t t
22444s,@AR@,$AR,;t t
22445s,@ac_ct_AR@,$ac_ct_AR,;t t
22446s,@DLLTOOL@,$DLLTOOL,;t t
22447s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22448s,@WINDRES@,$WINDRES,;t t
22449s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22450s,@MIG@,$MIG,;t t
22451s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22452s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22453s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22454s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22455s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22456s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22457s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22458s,@WIN32LIBS@,$WIN32LIBS,;t t
22459s,@LIBGUI@,$LIBGUI,;t t
22460s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22461s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22462s,@TCL_VERSION@,$TCL_VERSION,;t t
22463s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22464s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22465s,@TCL_CC@,$TCL_CC,;t t
22466s,@TCL_DEFS@,$TCL_DEFS,;t t
22467s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22468s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22469s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22470s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22471s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22472s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22473s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22474s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22475s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22476s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22477s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22478s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22479s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22480s,@TK_VERSION@,$TK_VERSION,;t t
22481s,@TK_DEFS@,$TK_DEFS,;t t
22482s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22483s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22484s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22485s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22486s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22487s,@TCLHDIR@,$TCLHDIR,;t t
22488s,@TKHDIR@,$TKHDIR,;t t
22489s,@ITCLHDIR@,$ITCLHDIR,;t t
22490s,@ITKHDIR@,$ITKHDIR,;t t
22491s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22492s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22493s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22494s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22495s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22496s,@ITK_VERSION@,$ITK_VERSION,;t t
22497s,@ITK_DEFS@,$ITK_DEFS,;t t
22498s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22499s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22500s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22501s,@X_CFLAGS@,$X_CFLAGS,;t t
22502s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22503s,@X_LIBS@,$X_LIBS,;t t
22504s,@TCL_DEPS@,$TCL_DEPS,;t t
22505s,@TK_DEPS@,$TK_DEPS,;t t
22506s,@ITCLLIB@,$ITCLLIB,;t t
22507s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22508s,@ITKLIB@,$ITKLIB,;t t
22509s,@ITK_DEPS@,$ITK_DEPS,;t t
22510s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22511s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22512s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22513s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22514s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22515s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22516s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22517s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22518s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22519s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22520s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22521s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22522s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22523s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22524s,@target_subdir@,$target_subdir,;t t
22525s,@frags@,$frags,;t t
22526s,@xm_h@,$xm_h,;t t
22527s,@tm_h@,$tm_h,;t t
22528s,@nm_h@,$nm_h,;t t
22529s,@LIBICONV@,$LIBICONV,;t t
22530s,@LIBOBJS@,$LIBOBJS,;t t
22531s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22532/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22533s,@host_makefile_frag@,,;t t
c906108c 22534/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22535s,@target_makefile_frag@,,;t t
c906108c 22536CEOF
bec39cab
AC
22537
22538_ACEOF
22539
22540 cat >>$CONFIG_STATUS <<\_ACEOF
22541 # Split the substitutions into bite-sized pieces for seds with
22542 # small command number limits, like on Digital OSF/1 and HP-UX.
22543 ac_max_sed_lines=48
22544 ac_sed_frag=1 # Number of current file.
22545 ac_beg=1 # First line for current file.
22546 ac_end=$ac_max_sed_lines # Line after last line for current file.
22547 ac_more_lines=:
22548 ac_sed_cmds=
22549 while $ac_more_lines; do
22550 if test $ac_beg -gt 1; then
22551 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22552 else
22553 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22554 fi
22555 if test ! -s $tmp/subs.frag; then
22556 ac_more_lines=false
c906108c 22557 else
bec39cab
AC
22558 # The purpose of the label and of the branching condition is to
22559 # speed up the sed processing (if there are no `@' at all, there
22560 # is no need to browse any of the substitutions).
22561 # These are the two extra sed commands mentioned above.
22562 (echo ':t
22563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22564 if test -z "$ac_sed_cmds"; then
22565 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22566 else
22567 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22568 fi
22569 ac_sed_frag=`expr $ac_sed_frag + 1`
22570 ac_beg=$ac_end
22571 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22572 fi
bec39cab
AC
22573 done
22574 if test -z "$ac_sed_cmds"; then
22575 ac_sed_cmds=cat
c906108c 22576 fi
bec39cab 22577fi # test -n "$CONFIG_FILES"
c906108c 22578
bec39cab
AC
22579_ACEOF
22580cat >>$CONFIG_STATUS <<\_ACEOF
22581for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22582 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22583 case $ac_file in
22584 - | *:- | *:-:* ) # input from stdin
22585 cat >$tmp/stdin
22586 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22587 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22588 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22589 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22590 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22591 esac
22592
bec39cab
AC
22593 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22594 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22595$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22596 X"$ac_file" : 'X\(//\)[^/]' \| \
22597 X"$ac_file" : 'X\(//\)$' \| \
22598 X"$ac_file" : 'X\(/\)' \| \
22599 . : '\(.\)' 2>/dev/null ||
22600echo X"$ac_file" |
22601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22603 /^X\(\/\/\)$/{ s//\1/; q; }
22604 /^X\(\/\).*/{ s//\1/; q; }
22605 s/.*/./; q'`
22606 { if $as_mkdir_p; then
22607 mkdir -p "$ac_dir"
c906108c 22608 else
bec39cab
AC
22609 as_dir="$ac_dir"
22610 as_dirs=
22611 while test ! -d "$as_dir"; do
22612 as_dirs="$as_dir $as_dirs"
22613 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22614$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22615 X"$as_dir" : 'X\(//\)[^/]' \| \
22616 X"$as_dir" : 'X\(//\)$' \| \
22617 X"$as_dir" : 'X\(/\)' \| \
22618 . : '\(.\)' 2>/dev/null ||
22619echo X"$as_dir" |
22620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22622 /^X\(\/\/\)$/{ s//\1/; q; }
22623 /^X\(\/\).*/{ s//\1/; q; }
22624 s/.*/./; q'`
22625 done
22626 test ! -n "$as_dirs" || mkdir $as_dirs
22627 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22628echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22629 { (exit 1); exit 1; }; }; }
c906108c 22630
bec39cab
AC
22631 ac_builddir=.
22632
22633if test "$ac_dir" != .; then
22634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22635 # A "../" for each directory in $ac_dir_suffix.
22636 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22637else
22638 ac_dir_suffix= ac_top_builddir=
22639fi
22640
22641case $srcdir in
22642 .) # No --srcdir option. We are building in place.
22643 ac_srcdir=.
22644 if test -z "$ac_top_builddir"; then
22645 ac_top_srcdir=.
22646 else
22647 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22648 fi ;;
22649 [\\/]* | ?:[\\/]* ) # Absolute path.
22650 ac_srcdir=$srcdir$ac_dir_suffix;
22651 ac_top_srcdir=$srcdir ;;
c906108c 22652 *) # Relative path.
bec39cab
AC
22653 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22654 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22655esac
22656
22657# Do not use `cd foo && pwd` to compute absolute paths, because
22658# the directories may not exist.
22659case `pwd` in
22660.) ac_abs_builddir="$ac_dir";;
22661*)
22662 case "$ac_dir" in
22663 .) ac_abs_builddir=`pwd`;;
22664 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22665 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22666 esac;;
22667esac
22668case $ac_abs_builddir in
22669.) ac_abs_top_builddir=${ac_top_builddir}.;;
22670*)
22671 case ${ac_top_builddir}. in
22672 .) ac_abs_top_builddir=$ac_abs_builddir;;
22673 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22674 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22675 esac;;
22676esac
22677case $ac_abs_builddir in
22678.) ac_abs_srcdir=$ac_srcdir;;
22679*)
22680 case $ac_srcdir in
22681 .) ac_abs_srcdir=$ac_abs_builddir;;
22682 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22683 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22684 esac;;
22685esac
22686case $ac_abs_builddir in
22687.) ac_abs_top_srcdir=$ac_top_srcdir;;
22688*)
22689 case $ac_top_srcdir in
22690 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22691 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22692 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22693 esac;;
22694esac
c906108c 22695
c906108c 22696
bec39cab
AC
22697 case $INSTALL in
22698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22699 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
22700 esac
22701
bec39cab
AC
22702 if test x"$ac_file" != x-; then
22703 { echo "$as_me:$LINENO: creating $ac_file" >&5
22704echo "$as_me: creating $ac_file" >&6;}
22705 rm -f "$ac_file"
22706 fi
22707 # Let's still pretend it is `configure' which instantiates (i.e., don't
22708 # use $as_me), people would be surprised to read:
22709 # /* config.h. Generated by config.status. */
22710 if test x"$ac_file" = x-; then
22711 configure_input=
22712 else
22713 configure_input="$ac_file. "
22714 fi
22715 configure_input=$configure_input"Generated from `echo $ac_file_in |
22716 sed 's,.*/,,'` by configure."
22717
22718 # First look for the input files in the build tree, otherwise in the
22719 # src tree.
22720 ac_file_inputs=`IFS=:
22721 for f in $ac_file_in; do
22722 case $f in
22723 -) echo $tmp/stdin ;;
22724 [\\/$]*)
22725 # Absolute (can't be DOS-style, as IFS=:)
22726 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22727echo "$as_me: error: cannot find input file: $f" >&2;}
22728 { (exit 1); exit 1; }; }
22729 echo "$f";;
22730 *) # Relative
22731 if test -f "$f"; then
22732 # Build tree
22733 echo "$f"
22734 elif test -f "$srcdir/$f"; then
22735 # Source tree
22736 echo "$srcdir/$f"
22737 else
22738 # /dev/null tree
22739 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22740echo "$as_me: error: cannot find input file: $f" >&2;}
22741 { (exit 1); exit 1; }; }
22742 fi;;
22743 esac
22744 done` || { (exit 1); exit 1; }
22745_ACEOF
22746cat >>$CONFIG_STATUS <<_ACEOF
22747 sed "$ac_vpsub
22748$extrasub
22749_ACEOF
22750cat >>$CONFIG_STATUS <<\_ACEOF
22751:t
22752/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22753s,@configure_input@,$configure_input,;t t
22754s,@srcdir@,$ac_srcdir,;t t
22755s,@abs_srcdir@,$ac_abs_srcdir,;t t
22756s,@top_srcdir@,$ac_top_srcdir,;t t
22757s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22758s,@builddir@,$ac_builddir,;t t
22759s,@abs_builddir@,$ac_abs_builddir,;t t
22760s,@top_builddir@,$ac_top_builddir,;t t
22761s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22762s,@INSTALL@,$ac_INSTALL,;t t
22763" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22764 rm -f $tmp/stdin
22765 if test x"$ac_file" != x-; then
22766 mv $tmp/out $ac_file
22767 else
22768 cat $tmp/out
22769 rm -f $tmp/out
22770 fi
22771
22772done
22773_ACEOF
22774cat >>$CONFIG_STATUS <<\_ACEOF
22775
22776#
22777# CONFIG_HEADER section.
22778#
c906108c
SS
22779
22780# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22781# NAME is the cpp macro being defined and VALUE is the value it is being given.
22782#
22783# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
22784ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22785ac_dB='[ ].*$,\1#\2'
22786ac_dC=' '
22787ac_dD=',;t'
22788# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22789ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22790ac_uB='$,\1#\2define\3'
c906108c 22791ac_uC=' '
bec39cab
AC
22792ac_uD=',;t'
22793
22794for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 22795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22796 case $ac_file in
22797 - | *:- | *:-:* ) # input from stdin
22798 cat >$tmp/stdin
22799 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22800 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22801 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22803 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22804 esac
22805
bec39cab
AC
22806 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22807echo "$as_me: creating $ac_file" >&6;}
22808
22809 # First look for the input files in the build tree, otherwise in the
22810 # src tree.
22811 ac_file_inputs=`IFS=:
22812 for f in $ac_file_in; do
22813 case $f in
22814 -) echo $tmp/stdin ;;
22815 [\\/$]*)
22816 # Absolute (can't be DOS-style, as IFS=:)
22817 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22818echo "$as_me: error: cannot find input file: $f" >&2;}
22819 { (exit 1); exit 1; }; }
22820 # Do quote $f, to prevent DOS paths from being IFS'd.
22821 echo "$f";;
22822 *) # Relative
22823 if test -f "$f"; then
22824 # Build tree
22825 echo "$f"
22826 elif test -f "$srcdir/$f"; then
22827 # Source tree
22828 echo "$srcdir/$f"
22829 else
22830 # /dev/null tree
22831 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22832echo "$as_me: error: cannot find input file: $f" >&2;}
22833 { (exit 1); exit 1; }; }
22834 fi;;
22835 esac
22836 done` || { (exit 1); exit 1; }
22837 # Remove the trailing spaces.
22838 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22839
22840_ACEOF
22841
22842# Transform confdefs.h into two sed scripts, `conftest.defines' and
22843# `conftest.undefs', that substitutes the proper values into
22844# config.h.in to produce config.h. The first handles `#define'
22845# templates, and the second `#undef' templates.
22846# And first: Protect against being on the right side of a sed subst in
22847# config.status. Protect against being in an unquoted here document
22848# in config.status.
22849rm -f conftest.defines conftest.undefs
22850# Using a here document instead of a string reduces the quoting nightmare.
22851# Putting comments in sed scripts is not portable.
22852#
22853# `end' is used to avoid that the second main sed command (meant for
22854# 0-ary CPP macros) applies to n-ary macro definitions.
22855# See the Autoconf documentation for `clear'.
22856cat >confdef2sed.sed <<\_ACEOF
22857s/[\\&,]/\\&/g
22858s,[\\$`],\\&,g
22859t clear
22860: clear
22861s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22862t end
22863s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22864: end
22865_ACEOF
22866# If some macros were called several times there might be several times
22867# the same #defines, which is useless. Nevertheless, we may not want to
22868# sort them, since we want the *last* AC-DEFINE to be honored.
22869uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22870sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22871rm -f confdef2sed.sed
c906108c
SS
22872
22873# This sed command replaces #undef with comments. This is necessary, for
22874# example, in the case of _POSIX_SOURCE, which is predefined and required
22875# on some systems where configure will not decide to define it.
bec39cab
AC
22876cat >>conftest.undefs <<\_ACEOF
22877s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22878_ACEOF
22879
22880# Break up conftest.defines because some shells have a limit on the size
22881# of here documents, and old seds have small limits too (100 cmds).
22882echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22883echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22884echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22885echo ' :' >>$CONFIG_STATUS
22886rm -f conftest.tail
22887while grep . conftest.defines >/dev/null
22888do
22889 # Write a limited-size here document to $tmp/defines.sed.
22890 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22891 # Speed up: don't consider the non `#define' lines.
22892 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22893 # Work around the forget-to-reset-the-flag bug.
22894 echo 't clr' >>$CONFIG_STATUS
22895 echo ': clr' >>$CONFIG_STATUS
22896 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22897 echo 'CEOF
22898 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22899 rm -f $tmp/in
22900 mv $tmp/out $tmp/in
22901' >>$CONFIG_STATUS
22902 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22903 rm -f conftest.defines
22904 mv conftest.tail conftest.defines
22905done
22906rm -f conftest.defines
22907echo ' fi # grep' >>$CONFIG_STATUS
22908echo >>$CONFIG_STATUS
c906108c 22909
bec39cab
AC
22910# Break up conftest.undefs because some shells have a limit on the size
22911# of here documents, and old seds have small limits too (100 cmds).
22912echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 22913rm -f conftest.tail
bec39cab 22914while grep . conftest.undefs >/dev/null
c906108c 22915do
bec39cab
AC
22916 # Write a limited-size here document to $tmp/undefs.sed.
22917 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22918 # Speed up: don't consider the non `#undef'
22919 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22920 # Work around the forget-to-reset-the-flag bug.
22921 echo 't clr' >>$CONFIG_STATUS
22922 echo ': clr' >>$CONFIG_STATUS
22923 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 22924 echo 'CEOF
bec39cab
AC
22925 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22926 rm -f $tmp/in
22927 mv $tmp/out $tmp/in
22928' >>$CONFIG_STATUS
22929 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22930 rm -f conftest.undefs
22931 mv conftest.tail conftest.undefs
22932done
22933rm -f conftest.undefs
22934
22935cat >>$CONFIG_STATUS <<\_ACEOF
22936 # Let's still pretend it is `configure' which instantiates (i.e., don't
22937 # use $as_me), people would be surprised to read:
22938 # /* config.h. Generated by config.status. */
22939 if test x"$ac_file" = x-; then
22940 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 22941 else
bec39cab 22942 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 22943 fi
bec39cab
AC
22944 cat $tmp/in >>$tmp/config.h
22945 rm -f $tmp/in
22946 if test x"$ac_file" != x-; then
22947 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22948 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22949echo "$as_me: $ac_file is unchanged" >&6;}
22950 else
22951 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22952$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22953 X"$ac_file" : 'X\(//\)[^/]' \| \
22954 X"$ac_file" : 'X\(//\)$' \| \
22955 X"$ac_file" : 'X\(/\)' \| \
22956 . : '\(.\)' 2>/dev/null ||
22957echo X"$ac_file" |
22958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22960 /^X\(\/\/\)$/{ s//\1/; q; }
22961 /^X\(\/\).*/{ s//\1/; q; }
22962 s/.*/./; q'`
22963 { if $as_mkdir_p; then
22964 mkdir -p "$ac_dir"
22965 else
22966 as_dir="$ac_dir"
22967 as_dirs=
22968 while test ! -d "$as_dir"; do
22969 as_dirs="$as_dir $as_dirs"
22970 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22971$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22972 X"$as_dir" : 'X\(//\)[^/]' \| \
22973 X"$as_dir" : 'X\(//\)$' \| \
22974 X"$as_dir" : 'X\(/\)' \| \
22975 . : '\(.\)' 2>/dev/null ||
22976echo X"$as_dir" |
22977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22979 /^X\(\/\/\)$/{ s//\1/; q; }
22980 /^X\(\/\).*/{ s//\1/; q; }
22981 s/.*/./; q'`
22982 done
22983 test ! -n "$as_dirs" || mkdir $as_dirs
22984 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22985echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22986 { (exit 1); exit 1; }; }; }
c906108c 22987
bec39cab
AC
22988 rm -f $ac_file
22989 mv $tmp/config.h $ac_file
22990 fi
22991 else
22992 cat $tmp/config.h
22993 rm -f $tmp/config.h
22994 fi
22995done
22996_ACEOF
22997cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 22998
bec39cab
AC
22999#
23000# CONFIG_LINKS section.
23001#
c906108c 23002
bec39cab
AC
23003for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23004 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23005 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 23006
bec39cab
AC
23007 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23008echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
23009
23010 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
23011 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23012echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23013 { (exit 1); exit 1; }; }
c906108c
SS
23014 fi
23015 rm -f $ac_dest
23016
23017 # Make relative symlinks.
bec39cab
AC
23018 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23019$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23020 X"$ac_dest" : 'X\(//\)[^/]' \| \
23021 X"$ac_dest" : 'X\(//\)$' \| \
23022 X"$ac_dest" : 'X\(/\)' \| \
23023 . : '\(.\)' 2>/dev/null ||
23024echo X"$ac_dest" |
23025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23027 /^X\(\/\/\)$/{ s//\1/; q; }
23028 /^X\(\/\).*/{ s//\1/; q; }
23029 s/.*/./; q'`
23030 { if $as_mkdir_p; then
23031 mkdir -p "$ac_dest_dir"
c906108c 23032 else
bec39cab
AC
23033 as_dir="$ac_dest_dir"
23034 as_dirs=
23035 while test ! -d "$as_dir"; do
23036 as_dirs="$as_dir $as_dirs"
23037 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23038$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23039 X"$as_dir" : 'X\(//\)[^/]' \| \
23040 X"$as_dir" : 'X\(//\)$' \| \
23041 X"$as_dir" : 'X\(/\)' \| \
23042 . : '\(.\)' 2>/dev/null ||
23043echo X"$as_dir" |
23044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23046 /^X\(\/\/\)$/{ s//\1/; q; }
23047 /^X\(\/\).*/{ s//\1/; q; }
23048 s/.*/./; q'`
23049 done
23050 test ! -n "$as_dirs" || mkdir $as_dirs
23051 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23052echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23053 { (exit 1); exit 1; }; }; }
23054
23055 ac_builddir=.
23056
23057if test "$ac_dest_dir" != .; then
23058 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23059 # A "../" for each directory in $ac_dir_suffix.
23060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23061else
23062 ac_dir_suffix= ac_top_builddir=
23063fi
23064
23065case $srcdir in
23066 .) # No --srcdir option. We are building in place.
23067 ac_srcdir=.
23068 if test -z "$ac_top_builddir"; then
23069 ac_top_srcdir=.
23070 else
23071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23072 fi ;;
23073 [\\/]* | ?:[\\/]* ) # Absolute path.
23074 ac_srcdir=$srcdir$ac_dir_suffix;
23075 ac_top_srcdir=$srcdir ;;
23076 *) # Relative path.
23077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23079esac
23080
23081# Do not use `cd foo && pwd` to compute absolute paths, because
23082# the directories may not exist.
23083case `pwd` in
23084.) ac_abs_builddir="$ac_dest_dir";;
23085*)
23086 case "$ac_dest_dir" in
23087 .) ac_abs_builddir=`pwd`;;
23088 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23089 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23090 esac;;
23091esac
23092case $ac_abs_builddir in
23093.) ac_abs_top_builddir=${ac_top_builddir}.;;
23094*)
23095 case ${ac_top_builddir}. in
23096 .) ac_abs_top_builddir=$ac_abs_builddir;;
23097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23098 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23099 esac;;
23100esac
23101case $ac_abs_builddir in
23102.) ac_abs_srcdir=$ac_srcdir;;
23103*)
23104 case $ac_srcdir in
23105 .) ac_abs_srcdir=$ac_abs_builddir;;
23106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23107 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23108 esac;;
23109esac
23110case $ac_abs_builddir in
23111.) ac_abs_top_srcdir=$ac_top_srcdir;;
23112*)
23113 case $ac_top_srcdir in
23114 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23116 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23117 esac;;
23118esac
c906108c 23119
bec39cab
AC
23120
23121 case $srcdir in
23122 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23123 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23124 esac
23125
bec39cab
AC
23126 # Try a symlink, then a hard link, then a copy.
23127 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23128 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23129 cp -p $srcdir/$ac_source $ac_dest ||
23130 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23131echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23132 { (exit 1); exit 1; }; }
c906108c 23133done
bec39cab
AC
23134_ACEOF
23135cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23136
bec39cab
AC
23137#
23138# CONFIG_COMMANDS section.
23139#
23140for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23141 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23142 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23143 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23144$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23145 X"$ac_dest" : 'X\(//\)[^/]' \| \
23146 X"$ac_dest" : 'X\(//\)$' \| \
23147 X"$ac_dest" : 'X\(/\)' \| \
23148 . : '\(.\)' 2>/dev/null ||
23149echo X"$ac_dest" |
23150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23152 /^X\(\/\/\)$/{ s//\1/; q; }
23153 /^X\(\/\).*/{ s//\1/; q; }
23154 s/.*/./; q'`
23155 { if $as_mkdir_p; then
23156 mkdir -p "$ac_dir"
23157 else
23158 as_dir="$ac_dir"
23159 as_dirs=
23160 while test ! -d "$as_dir"; do
23161 as_dirs="$as_dir $as_dirs"
23162 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23163$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23164 X"$as_dir" : 'X\(//\)[^/]' \| \
23165 X"$as_dir" : 'X\(//\)$' \| \
23166 X"$as_dir" : 'X\(/\)' \| \
23167 . : '\(.\)' 2>/dev/null ||
23168echo X"$as_dir" |
23169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23171 /^X\(\/\/\)$/{ s//\1/; q; }
23172 /^X\(\/\).*/{ s//\1/; q; }
23173 s/.*/./; q'`
23174 done
23175 test ! -n "$as_dirs" || mkdir $as_dirs
23176 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23177echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23178 { (exit 1); exit 1; }; }; }
23179
23180 ac_builddir=.
23181
23182if test "$ac_dir" != .; then
23183 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23184 # A "../" for each directory in $ac_dir_suffix.
23185 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23186else
23187 ac_dir_suffix= ac_top_builddir=
23188fi
23189
23190case $srcdir in
23191 .) # No --srcdir option. We are building in place.
23192 ac_srcdir=.
23193 if test -z "$ac_top_builddir"; then
23194 ac_top_srcdir=.
23195 else
23196 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23197 fi ;;
23198 [\\/]* | ?:[\\/]* ) # Absolute path.
23199 ac_srcdir=$srcdir$ac_dir_suffix;
23200 ac_top_srcdir=$srcdir ;;
23201 *) # Relative path.
23202 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23203 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23204esac
23205
23206# Do not use `cd foo && pwd` to compute absolute paths, because
23207# the directories may not exist.
23208case `pwd` in
23209.) ac_abs_builddir="$ac_dir";;
23210*)
23211 case "$ac_dir" in
23212 .) ac_abs_builddir=`pwd`;;
23213 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23214 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23215 esac;;
23216esac
23217case $ac_abs_builddir in
23218.) ac_abs_top_builddir=${ac_top_builddir}.;;
23219*)
23220 case ${ac_top_builddir}. in
23221 .) ac_abs_top_builddir=$ac_abs_builddir;;
23222 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23223 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23224 esac;;
23225esac
23226case $ac_abs_builddir in
23227.) ac_abs_srcdir=$ac_srcdir;;
23228*)
23229 case $ac_srcdir in
23230 .) ac_abs_srcdir=$ac_abs_builddir;;
23231 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23232 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23233 esac;;
23234esac
23235case $ac_abs_builddir in
23236.) ac_abs_top_srcdir=$ac_top_srcdir;;
23237*)
23238 case $ac_top_srcdir in
23239 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23240 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23241 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23242 esac;;
23243esac
c906108c 23244
c906108c 23245
bec39cab
AC
23246 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23247echo "$as_me: executing $ac_dest commands" >&6;}
23248 case $ac_dest in
23249 default )
c906108c 23250
2c0fc042 23251sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23252/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23253/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23254mv -f Makefile.tmp Makefile
23255
2acceee2 23256
c906108c
SS
23257case x$CONFIG_HEADERS in
23258xconfig.h:config.in)
23259echo > stamp-h ;;
23260esac
bec39cab
AC
23261 ;;
23262 esac
23263done
23264_ACEOF
c906108c 23265
bec39cab
AC
23266cat >>$CONFIG_STATUS <<\_ACEOF
23267
23268{ (exit 0); exit 0; }
23269_ACEOF
c906108c 23270chmod +x $CONFIG_STATUS
bec39cab
AC
23271ac_clean_files=$ac_clean_files_save
23272
23273
23274# configure is writing to config.log, and then calls config.status.
23275# config.status does its own redirection, appending to config.log.
23276# Unfortunately, on DOS this fails, as config.log is still kept open
23277# by configure, so config.status won't be able to write to it; its
23278# output is simply discarded. So we exec the FD to /dev/null,
23279# effectively closing config.log, so it can be properly (re)opened and
23280# appended to by config.status. When coming back to configure, we
23281# need to make the FD available again.
23282if test "$no_create" != yes; then
23283 ac_cs_success=:
23284 ac_config_status_args=
23285 test "$silent" = yes &&
23286 ac_config_status_args="$ac_config_status_args --quiet"
23287 exec 5>/dev/null
23288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23289 exec 5>>config.log
23290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23291 # would make configure fail if this is the last instruction.
23292 $ac_cs_success || { (exit 1); exit 1; }
23293fi
c906108c 23294
bec39cab
AC
23295#
23296# CONFIG_SUBDIRS section.
23297#
c906108c
SS
23298if test "$no_recursion" != yes; then
23299
23300 # Remove --cache-file and --srcdir arguments so they do not pile up.
23301 ac_sub_configure_args=
23302 ac_prev=
23303 for ac_arg in $ac_configure_args; do
23304 if test -n "$ac_prev"; then
23305 ac_prev=
23306 continue
23307 fi
bec39cab 23308 case $ac_arg in
c906108c
SS
23309 -cache-file | --cache-file | --cache-fil | --cache-fi \
23310 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23311 ac_prev=cache_file ;;
23312 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23313 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23314 | --c=*)
23315 ;;
23316 --config-cache | -C)
c906108c
SS
23317 ;;
23318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23319 ac_prev=srcdir ;;
23320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23321 ;;
bec39cab
AC
23322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23323 ac_prev=prefix ;;
23324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23325 ;;
c906108c
SS
23326 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23327 esac
23328 done
23329
bec39cab
AC
23330 # Always prepend --prefix to ensure using the same prefix
23331 # in subdir configurations.
23332 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23333
23334 ac_popdir=`pwd`
23335 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23336
23337 # Do not complain, so a configure script can configure whichever
23338 # parts of a large source tree are present.
bec39cab 23339 test -d $srcdir/$ac_dir || continue
c906108c 23340
bec39cab
AC
23341 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23342echo "$as_me: configuring in $ac_dir" >&6;}
23343 { if $as_mkdir_p; then
23344 mkdir -p "$ac_dir"
23345 else
23346 as_dir="$ac_dir"
23347 as_dirs=
23348 while test ! -d "$as_dir"; do
23349 as_dirs="$as_dir $as_dirs"
23350 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23352 X"$as_dir" : 'X\(//\)[^/]' \| \
23353 X"$as_dir" : 'X\(//\)$' \| \
23354 X"$as_dir" : 'X\(/\)' \| \
23355 . : '\(.\)' 2>/dev/null ||
23356echo X"$as_dir" |
23357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23359 /^X\(\/\/\)$/{ s//\1/; q; }
23360 /^X\(\/\).*/{ s//\1/; q; }
23361 s/.*/./; q'`
23362 done
23363 test ! -n "$as_dirs" || mkdir $as_dirs
23364 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23365echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23366 { (exit 1); exit 1; }; }; }
c906108c 23367
bec39cab
AC
23368 ac_builddir=.
23369
23370if test "$ac_dir" != .; then
23371 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23372 # A "../" for each directory in $ac_dir_suffix.
23373 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23374else
23375 ac_dir_suffix= ac_top_builddir=
23376fi
23377
23378case $srcdir in
23379 .) # No --srcdir option. We are building in place.
23380 ac_srcdir=.
23381 if test -z "$ac_top_builddir"; then
23382 ac_top_srcdir=.
23383 else
23384 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23385 fi ;;
23386 [\\/]* | ?:[\\/]* ) # Absolute path.
23387 ac_srcdir=$srcdir$ac_dir_suffix;
23388 ac_top_srcdir=$srcdir ;;
23389 *) # Relative path.
23390 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23391 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23392esac
c906108c 23393
bec39cab
AC
23394# Do not use `cd foo && pwd` to compute absolute paths, because
23395# the directories may not exist.
23396case `pwd` in
23397.) ac_abs_builddir="$ac_dir";;
23398*)
23399 case "$ac_dir" in
23400 .) ac_abs_builddir=`pwd`;;
23401 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23402 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23403 esac;;
23404esac
23405case $ac_abs_builddir in
23406.) ac_abs_top_builddir=${ac_top_builddir}.;;
23407*)
23408 case ${ac_top_builddir}. in
23409 .) ac_abs_top_builddir=$ac_abs_builddir;;
23410 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23411 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23412 esac;;
23413esac
23414case $ac_abs_builddir in
23415.) ac_abs_srcdir=$ac_srcdir;;
23416*)
23417 case $ac_srcdir in
23418 .) ac_abs_srcdir=$ac_abs_builddir;;
23419 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23420 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23421 esac;;
23422esac
23423case $ac_abs_builddir in
23424.) ac_abs_top_srcdir=$ac_top_srcdir;;
23425*)
23426 case $ac_top_srcdir in
23427 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23428 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23429 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23430 esac;;
23431esac
c906108c 23432
c906108c 23433
bec39cab 23434 cd $ac_dir
c906108c
SS
23435
23436 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23437 if test -f $ac_srcdir/configure.gnu; then
23438 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23439 elif test -f $ac_srcdir/configure; then
23440 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23441 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23442 ac_sub_configure=$ac_configure
23443 else
bec39cab
AC
23444 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23445echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23446 ac_sub_configure=
23447 fi
23448
23449 # The recursion is here.
23450 if test -n "$ac_sub_configure"; then
c906108c 23451 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23452 case $cache_file in
23453 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23454 *) # Relative path.
bec39cab 23455 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23456 esac
c906108c 23457
bec39cab
AC
23458 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23459echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23460 # The eval makes quoting arguments work.
bec39cab
AC
23461 eval $ac_sub_configure $ac_sub_configure_args \
23462 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23463 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23464echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23465 { (exit 1); exit 1; }; }
c906108c
SS
23466 fi
23467
23468 cd $ac_popdir
23469 done
23470fi
23471
23472
23473exit 0
This page took 1.652886 seconds and 4 git commands to generate.