* elfread.c (elf_symtab_read): Skip symbols which BFD considers
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
bec39cab 3# Generated by GNU Autoconf 2.59.
c906108c 4#
bec39cab 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subdirs_all="$ac_subdirs_all doc testsuite"
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
065a1afc 316ac_subdirs_all="$ac_subdirs_all nlm"
c21a4eee 317ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
bec39cab 318ac_subst_files='host_makefile_frag target_makefile_frag'
c906108c
SS
319
320# Initialize some variables set by options.
bec39cab
AC
321ac_init_help=
322ac_init_version=false
c906108c
SS
323# The variables have the same names as the options, with
324# dashes changed to underlines.
bec39cab 325cache_file=/dev/null
c906108c 326exec_prefix=NONE
c906108c 327no_create=
c906108c
SS
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
c906108c
SS
336verbose=
337x_includes=NONE
338x_libraries=NONE
bec39cab
AC
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
348datadir='${prefix}/share'
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
352libdir='${exec_prefix}/lib'
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
355infodir='${prefix}/info'
356mandir='${prefix}/man'
357
c906108c
SS
358ac_prev=
359for ac_option
360do
c906108c
SS
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
bec39cab 368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
bec39cab 372 case $ac_option in
c906108c
SS
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 377 bindir=$ac_optarg ;;
c906108c
SS
378
379 -build | --build | --buil | --bui | --bu)
bec39cab 380 ac_prev=build_alias ;;
c906108c 381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 382 build_alias=$ac_optarg ;;
c906108c
SS
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
c906108c
SS
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
bec39cab 398 datadir=$ac_optarg ;;
c906108c
SS
399
400 -disable-* | --disable-*)
bec39cab 401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 402 # Reject names that are not valid shell variable names.
bec39cab
AC
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
c906108c
SS
408
409 -enable-* | --enable-*)
bec39cab 410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 411 # Reject names that are not valid shell variable names.
bec39cab
AC
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
418 *) ac_optarg=yes ;;
419 esac
bec39cab 420 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
bec39cab 429 exec_prefix=$ac_optarg ;;
c906108c
SS
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
bec39cab
AC
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
c906108c
SS
441
442 -host | --host | --hos | --ho)
bec39cab 443 ac_prev=host_alias ;;
c906108c 444 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 445 host_alias=$ac_optarg ;;
c906108c
SS
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 452 includedir=$ac_optarg ;;
c906108c
SS
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 457 infodir=$ac_optarg ;;
c906108c
SS
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 462 libdir=$ac_optarg ;;
c906108c
SS
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
bec39cab 469 libexecdir=$ac_optarg ;;
c906108c
SS
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 478 localstatedir=$ac_optarg ;;
c906108c
SS
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 483 mandir=$ac_optarg ;;
c906108c
SS
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 490 | --no-cr | --no-c | -n)
c906108c
SS
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 504 oldincludedir=$ac_optarg ;;
c906108c
SS
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 509 prefix=$ac_optarg ;;
c906108c
SS
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 516 program_prefix=$ac_optarg ;;
c906108c
SS
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 523 program_suffix=$ac_optarg ;;
c906108c
SS
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 540 program_transform_name=$ac_optarg ;;
c906108c
SS
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
bec39cab 550 sbindir=$ac_optarg ;;
c906108c
SS
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
bec39cab 561 sharedstatedir=$ac_optarg ;;
c906108c
SS
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
bec39cab 566 site=$ac_optarg ;;
3ace7edb 567
c906108c
SS
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 571 srcdir=$ac_optarg ;;
c906108c
SS
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 578 sysconfdir=$ac_optarg ;;
c906108c
SS
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 581 ac_prev=target_alias ;;
c906108c 582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 583 target_alias=$ac_optarg ;;
c906108c
SS
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
bec39cab
AC
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
c906108c
SS
590
591 -with-* | --with-*)
bec39cab 592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 593 # Reject names that are not valid shell variable names.
bec39cab
AC
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
c906108c 597 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
600 *) ac_optarg=yes ;;
601 esac
bec39cab 602 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
603
604 -without-* | --without-*)
bec39cab 605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 606 # Reject names that are not valid shell variable names.
bec39cab
AC
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
c906108c
SS
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 622 x_includes=$ac_optarg ;;
c906108c
SS
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 629 x_libraries=$ac_optarg ;;
c906108c 630
bec39cab
AC
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
c906108c
SS
634 ;;
635
bec39cab
AC
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
c906108c 646 *)
bec39cab
AC
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
652 ;;
653
654 esac
655done
656
657if test -n "$ac_prev"; then
bec39cab
AC
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
c906108c 661fi
c906108c 662
bec39cab
AC
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
665do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672done
c906108c 673
bec39cab
AC
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 677do
bec39cab
AC
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
c906108c
SS
683 esac
684done
685
bec39cab
AC
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702fi
c906108c 703
bec39cab
AC
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
c906108c 708
c906108c
SS
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
bec39cab
AC
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
c906108c
SS
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
c906108c 737 else
bec39cab
AC
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
c906108c
SS
740 fi
741fi
bec39cab
AC
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
c906108c 778
bec39cab
AC
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786\`configure' configures this package to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE. See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
806_ACEOF
807
808 cat <<_ACEOF
809Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
835_ACEOF
836
837 cat <<\_ACEOF
838
839Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852_ACEOF
853fi
854
855if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
bec39cab
AC
864 --disable-nls do not use Native Language Support
865 --disable-gdbcli disable command-line interface (CLI)
866 --disable-gdbmi disable machine-interface (MI)
867 --enable-tui enable full-screen terminal user interface (TUI)
868 --enable-gdbtk enable gdbtk graphical user interface (GUI)
869 --enable-profiling enable profiling of GDB
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
874
875Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-included-gettext use the GNU gettext library included here
879 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
880 --with-libunwind Use libunwind frame unwinding support
881 --without-included-regex don't use included regex; this is the default
882 on systems with version 2 of the GNU C library
883 (use with caution on other system)
884 --with-sysroot=DIR Search for usr/lib et al within DIR.
885 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
886 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
887 --with-tclinclude=DIR Directory where tcl private headers are
888 --with-tkinclude=DIR Directory where tk private headers are
889 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
890 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
893
894Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CPP C preprocessor
902
903Use these variables to override the choices made by `configure' or to help
904it to find libraries and programs with nonstandard names/locations.
905
906_ACEOF
907fi
908
909if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
911 ac_popdir=`pwd`
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
914 ac_builddir=.
915
916if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920else
921 ac_dir_suffix= ac_top_builddir=
922fi
923
924case $srcdir in
925 .) # No --srcdir option. We are building in place.
926 ac_srcdir=.
927 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=.
929 else
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 fi ;;
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
935 *) # Relative path.
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938esac
939
940# Do not use `cd foo && pwd` to compute absolute paths, because
941# the directories may not exist.
942case `pwd` in
943.) ac_abs_builddir="$ac_dir";;
944*)
945 case "$ac_dir" in
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_builddir=${ac_top_builddir}.;;
953*)
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_srcdir=$ac_srcdir;;
962*)
963 case $ac_srcdir in
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 esac;;
968esac
969case $ac_abs_builddir in
970.) ac_abs_top_srcdir=$ac_top_srcdir;;
971*)
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976 esac;;
977esac
978
979 cd $ac_dir
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
982 echo
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
985 echo
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
989 echo
990 $ac_configure --help
3ace7edb 991 else
bec39cab
AC
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993 fi
121ce6e5 994 cd "$ac_popdir"
bec39cab
AC
995 done
996fi
997
998test -n "$ac_init_help" && exit 0
999if $ac_init_version; then
1000 cat <<\_ACEOF
1001
1002Copyright (C) 2003 Free Software Foundation, Inc.
1003This configure script is free software; the Free Software Foundation
1004gives unlimited permission to copy, distribute and modify it.
1005_ACEOF
1006 exit 0
1007fi
1008exec 5>config.log
1009cat >&5 <<_ACEOF
1010This file contains any messages produced by compilers while
1011running configure, to aid debugging if configure makes a mistake.
1012
1013It was created by $as_me, which was
1014generated by GNU Autoconf 2.59. Invocation command line was
1015
1016 $ $0 $@
1017
1018_ACEOF
1019{
1020cat <<_ASUNAME
1021## --------- ##
1022## Platform. ##
1023## --------- ##
1024
1025hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029uname -v = `(uname -v) 2>/dev/null || echo unknown`
1030
1031/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1033
1034/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1041
1042_ASUNAME
1043
1044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045for as_dir in $PATH
1046do
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050done
1051
1052} >&5
1053
1054cat >&5 <<_ACEOF
1055
1056
1057## ----------- ##
1058## Core tests. ##
1059## ----------- ##
1060
1061_ACEOF
1062
1063
1064# Keep a trace of the command line.
1065# Strip out --no-create and --no-recursion so they do not pile up.
1066# Strip out --silent because we don't want to record it for future runs.
1067# Also quote any args containing shell meta-characters.
1068# Make two passes to allow for proper duplicate-argument suppression.
1069ac_configure_args=
1070ac_configure_args0=
1071ac_configure_args1=
1072ac_sep=
1073ac_must_keep_next=false
1074for ac_pass in 1 2
1075do
1076 for ac_arg
1077 do
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1088 2)
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1101 ;;
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1104 fi
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1108 ;;
1109 esac
1110 done
1111done
1112$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1114
1115# When interrupted or exit'd, cleanup temporary files, and complete
1116# config.log. We remove comments because anyway the quotes in there
1117# would cause problems or look ugly.
1118# WARNING: Be sure not to use single quotes in there, as some shells,
1119# such as our DU 5.0 friend, will then `close' the trap.
1120trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1122 {
1123 echo
1124
1125 cat <<\_ASBOX
1126## ---------------- ##
1127## Cache variables. ##
1128## ---------------- ##
1129_ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1132{
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 ;;
1140 *)
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ;;
1144 esac;
1145}
1146 echo
1147
1148 cat <<\_ASBOX
1149## ----------------- ##
1150## Output variables. ##
1151## ----------------- ##
1152_ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163## ------------- ##
1164## Output files. ##
1165## ------------- ##
1166_ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1169 do
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1174 fi
1175
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178## ----------- ##
1179## confdefs.h. ##
1180## ----------- ##
1181_ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
3ace7edb 1185 fi
bec39cab
AC
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1193 ' 0
1194for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196done
1197ac_signal=0
1198
1199# confdefs.h avoids OS command line length limits that DEFS can exceed.
1200rm -rf conftest* confdefs.h
1201# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202echo >confdefs.h
1203
1204# Predefined preprocessor variables.
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_NAME "$PACKAGE_NAME"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_VERSION "$PACKAGE_VERSION"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_STRING "$PACKAGE_STRING"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228_ACEOF
1229
1230
1231# Let the site file select an alternate cache file if it wants to.
1232# Prefer explicitly selected file to automatically selected ones.
1233if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
c906108c
SS
1238 fi
1239fi
1240for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
bec39cab
AC
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1245 . "$ac_site_file"
1246 fi
1247done
1248
1249if test -r "$cache_file"; then
bec39cab
AC
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1259 fi
c906108c 1260else
bec39cab
AC
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1264fi
1265
1266# Check that the precious variables saved in the cache have kept the same
1267# value.
1268ac_cache_corrupted=false
1269for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1285 *)
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1307 fi
1308done
1309if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
c906108c
SS
1315fi
1316
1317ac_ext=c
c906108c 1318ac_cpp='$CPP $CPPFLAGS'
bec39cab
AC
1319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1322
1323
1324
bec39cab
AC
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341 ac_config_headers="$ac_config_headers config.h:config.in"
1342
1343echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1344echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
413ccac7
AC
1345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1346if test "${enable_maintainer_mode+set}" = set; then
1347 enableval="$enable_maintainer_mode"
1348 USE_MAINTAINER_MODE=$enableval
1349else
1350 USE_MAINTAINER_MODE=no
bec39cab
AC
1351fi;
1352 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1353echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1354
413ccac7
AC
1355
1356if test $USE_MAINTAINER_MODE = yes; then
1357 MAINTAINER_MODE_TRUE=
1358 MAINTAINER_MODE_FALSE='#'
1359else
1360 MAINTAINER_MODE_TRUE='#'
1361 MAINTAINER_MODE_FALSE=
1362fi
85981d60 1363
413ccac7 1364 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1365
c906108c 1366
bec39cab
AC
1367
1368ac_ext=c
1369ac_cpp='$CPP $CPPFLAGS'
1370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375set dummy ${ac_tool_prefix}gcc; ac_word=$2
1376echo "$as_me:$LINENO: checking for $ac_word" >&5
1377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1383else
1384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 break 2
1394 fi
1395done
1396done
1397
1398fi
1399fi
1400CC=$ac_cv_prog_CC
1401if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403echo "${ECHO_T}$CC" >&6
1404else
1405 echo "$as_me:$LINENO: result: no" >&5
1406echo "${ECHO_T}no" >&6
1407fi
1408
1409fi
1410if test -z "$ac_cv_prog_CC"; then
1411 ac_ct_CC=$CC
1412 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1413set dummy gcc; ac_word=$2
bec39cab
AC
1414echo "$as_me:$LINENO: checking for $ac_word" >&5
1415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1421else
1422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423for as_dir in $PATH
1424do
1425 IFS=$as_save_IFS
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC="gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431 break 2
1432 fi
1433done
1434done
1435
1436fi
1437fi
1438ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441echo "${ECHO_T}$ac_ct_CC" >&6
1442else
1443 echo "$as_me:$LINENO: result: no" >&5
1444echo "${ECHO_T}no" >&6
1445fi
1446
1447 CC=$ac_ct_CC
1448else
1449 CC="$ac_cv_prog_CC"
1450fi
1451
1452if test -z "$CC"; then
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1455set dummy ${ac_tool_prefix}cc; ac_word=$2
1456echo "$as_me:$LINENO: checking for $ac_word" >&5
1457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1460else
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1463else
bec39cab
AC
1464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465for as_dir in $PATH
1466do
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_CC="${ac_tool_prefix}cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 break 2
1474 fi
1475done
1476done
1477
c906108c
SS
1478fi
1479fi
bec39cab 1480CC=$ac_cv_prog_CC
c906108c 1481if test -n "$CC"; then
bec39cab
AC
1482 echo "$as_me:$LINENO: result: $CC" >&5
1483echo "${ECHO_T}$CC" >&6
1484else
1485 echo "$as_me:$LINENO: result: no" >&5
1486echo "${ECHO_T}no" >&6
1487fi
1488
1489fi
1490if test -z "$ac_cv_prog_CC"; then
1491 ac_ct_CC=$CC
1492 # Extract the first word of "cc", so it can be a program name with args.
1493set dummy cc; ac_word=$2
1494echo "$as_me:$LINENO: checking for $ac_word" >&5
1495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498else
1499 if test -n "$ac_ct_CC"; then
1500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1501else
1502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503for as_dir in $PATH
1504do
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_ac_ct_CC="cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511 break 2
1512 fi
1513done
1514done
1515
1516fi
1517fi
1518ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519if test -n "$ac_ct_CC"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1522else
bec39cab
AC
1523 echo "$as_me:$LINENO: result: no" >&5
1524echo "${ECHO_T}no" >&6
c906108c
SS
1525fi
1526
bec39cab
AC
1527 CC=$ac_ct_CC
1528else
1529 CC="$ac_cv_prog_CC"
1530fi
1531
1532fi
c906108c
SS
1533if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535set dummy cc; ac_word=$2
bec39cab
AC
1536echo "$as_me:$LINENO: checking for $ac_word" >&5
1537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1540else
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1543else
c906108c 1544 ac_prog_rejected=no
bec39cab
AC
1545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546for as_dir in $PATH
1547do
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553 ac_prog_rejected=yes
1554 continue
1555 fi
1556 ac_cv_prog_CC="cc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1559 fi
1560done
1561done
1562
c906108c
SS
1563if test $ac_prog_rejected = yes; then
1564 # We found a bogon in the path, so make sure we never use it.
1565 set dummy $ac_cv_prog_CC
1566 shift
bec39cab 1567 if test $# != 0; then
c906108c
SS
1568 # We chose a different compiler from the bogus one.
1569 # However, it has the same basename, so the bogon will be chosen
1570 # first if we set CC to just the basename; use the full file name.
1571 shift
bec39cab 1572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1573 fi
1574fi
1575fi
1576fi
bec39cab 1577CC=$ac_cv_prog_CC
c906108c 1578if test -n "$CC"; then
bec39cab
AC
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580echo "${ECHO_T}$CC" >&6
c906108c 1581else
bec39cab
AC
1582 echo "$as_me:$LINENO: result: no" >&5
1583echo "${ECHO_T}no" >&6
c906108c
SS
1584fi
1585
bec39cab
AC
1586fi
1587if test -z "$CC"; then
1588 if test -n "$ac_tool_prefix"; then
1589 for ac_prog in cl
1590 do
1591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1593echo "$as_me:$LINENO: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1597else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600else
bec39cab
AC
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612done
1613done
1614
c906108c
SS
1615fi
1616fi
bec39cab 1617CC=$ac_cv_prog_CC
c906108c 1618if test -n "$CC"; then
bec39cab
AC
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620echo "${ECHO_T}$CC" >&6
c906108c 1621else
bec39cab
AC
1622 echo "$as_me:$LINENO: result: no" >&5
1623echo "${ECHO_T}no" >&6
c906108c 1624fi
bec39cab
AC
1625
1626 test -n "$CC" && break
1627 done
1628fi
1629if test -z "$CC"; then
1630 ac_ct_CC=$CC
1631 for ac_prog in cl
1632do
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
c906108c 1653 fi
bec39cab
AC
1654done
1655done
1656
1657fi
1658fi
1659ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662echo "${ECHO_T}$ac_ct_CC" >&6
1663else
1664 echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
c906108c
SS
1666fi
1667
bec39cab
AC
1668 test -n "$ac_ct_CC" && break
1669done
c906108c 1670
bec39cab
AC
1671 CC=$ac_ct_CC
1672fi
1673
1674fi
1675
1676
1677test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678See \`config.log' for more details." >&5
1679echo "$as_me: error: no acceptable C compiler found in \$PATH
1680See \`config.log' for more details." >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683# Provide some information about the compiler.
1684echo "$as_me:$LINENO:" \
1685 "checking for C compiler version" >&5
1686ac_compiler=`set X $ac_compile; echo $2`
1687{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688 (eval $ac_compiler --version </dev/null >&5) 2>&5
1689 ac_status=$?
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
1692{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693 (eval $ac_compiler -v </dev/null >&5) 2>&5
1694 ac_status=$?
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698 (eval $ac_compiler -V </dev/null >&5) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702
1703cat >conftest.$ac_ext <<_ACEOF
1704/* confdefs.h. */
1705_ACEOF
1706cat confdefs.h >>conftest.$ac_ext
1707cat >>conftest.$ac_ext <<_ACEOF
1708/* end confdefs.h. */
1709
1710int
1711main ()
1712{
1713
1714 ;
1715 return 0;
1716}
1717_ACEOF
1718ac_clean_files_save=$ac_clean_files
1719ac_clean_files="$ac_clean_files a.out a.exe b.out"
1720# Try to create an executable without -o first, disregard a.out.
1721# It will help us diagnose broken compilers, and finding out an intuition
1722# of exeext.
1723echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1724echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1725ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
1731 # Find the output, starting from the most likely. This scheme is
1732# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733# resort.
1734
1735# Be careful to initialize this variable, since it used to be cached.
1736# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1737ac_cv_exeext=
1738# b.out is created by i960 compilers.
1739for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1740do
1741 test -f "$ac_file" || continue
1742 case $ac_file in
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1744 ;;
1745 conftest.$ac_ext )
1746 # This is the source file.
1747 ;;
1748 [ab].out )
1749 # We found the default executable, but exeext='' is most
1750 # certainly right.
1751 break;;
1752 *.* )
1753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool,
1755 # but it would be cool to find out if it's true. Does anybody
1756 # maintain Libtool? --akim.
1757 export ac_cv_exeext
1758 break;;
1759 * )
1760 break;;
1761 esac
1762done
1763else
1764 echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1768See \`config.log' for more details." >&5
1769echo "$as_me: error: C compiler cannot create executables
1770See \`config.log' for more details." >&2;}
1771 { (exit 77); exit 77; }; }
1772fi
1773
1774ac_exeext=$ac_cv_exeext
1775echo "$as_me:$LINENO: result: $ac_file" >&5
1776echo "${ECHO_T}$ac_file" >&6
1777
1778# Check the compiler produces executables we can run. If not, either
1779# the compiler is broken, or we cross compile.
1780echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783# If not cross compiling, check that we can run a simple program.
1784if test "$cross_compiling" != yes; then
1785 if { ac_try='./$ac_file'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1787 (eval $ac_try) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1791 cross_compiling=no
c906108c 1792 else
bec39cab
AC
1793 if test "$cross_compiling" = maybe; then
1794 cross_compiling=yes
1795 else
1796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797If you meant to cross compile, use \`--host'.
1798See \`config.log' for more details." >&5
1799echo "$as_me: error: cannot run C compiled programs.
1800If you meant to cross compile, use \`--host'.
1801See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1803 fi
c906108c 1804 fi
bec39cab
AC
1805fi
1806echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
1808
1809rm -f a.out a.exe conftest$ac_cv_exeext b.out
1810ac_clean_files=$ac_clean_files_save
1811# Check the compiler produces executables we can run. If not, either
1812# the compiler is broken, or we cross compile.
1813echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1814echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815echo "$as_me:$LINENO: result: $cross_compiling" >&5
1816echo "${ECHO_T}$cross_compiling" >&6
1817
1818echo "$as_me:$LINENO: checking for suffix of executables" >&5
1819echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827# work properly (i.e., refer to `conftest.exe'), while it won't with
1828# `rm'.
1829for ac_file in conftest.exe conftest conftest.*; do
1830 test -f "$ac_file" || continue
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 export ac_cv_exeext
1835 break;;
1836 * ) break;;
1837 esac
1838done
c906108c 1839else
bec39cab
AC
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1841See \`config.log' for more details." >&5
1842echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1843See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
c906108c 1845fi
c906108c 1846
bec39cab
AC
1847rm -f conftest$ac_cv_exeext
1848echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1849echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1850
bec39cab
AC
1851rm -f conftest.$ac_ext
1852EXEEXT=$ac_cv_exeext
1853ac_exeext=$EXEEXT
1854echo "$as_me:$LINENO: checking for suffix of object files" >&5
1855echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1856if test "${ac_cv_objext+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 cat >conftest.$ac_ext <<_ACEOF
1860/* confdefs.h. */
1861_ACEOF
1862cat confdefs.h >>conftest.$ac_ext
1863cat >>conftest.$ac_ext <<_ACEOF
1864/* end confdefs.h. */
c906108c 1865
bec39cab
AC
1866int
1867main ()
1868{
c906108c 1869
bec39cab
AC
1870 ;
1871 return 0;
1872}
1873_ACEOF
1874rm -f conftest.o conftest.obj
1875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1881 case $ac_file in
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1884 break;;
1885 esac
1886done
c906108c 1887else
bec39cab
AC
1888 echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1892See \`config.log' for more details." >&5
1893echo "$as_me: error: cannot compute suffix of object files: cannot compile
1894See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
c906108c
SS
1896fi
1897
bec39cab
AC
1898rm -f conftest.$ac_cv_objext conftest.$ac_ext
1899fi
1900echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1901echo "${ECHO_T}$ac_cv_objext" >&6
1902OBJEXT=$ac_cv_objext
1903ac_objext=$OBJEXT
1904echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1905echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1906if test "${ac_cv_c_compiler_gnu+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1908else
bec39cab
AC
1909 cat >conftest.$ac_ext <<_ACEOF
1910/* confdefs.h. */
1911_ACEOF
1912cat confdefs.h >>conftest.$ac_ext
1913cat >>conftest.$ac_ext <<_ACEOF
1914/* end confdefs.h. */
1915
1916int
1917main ()
1918{
1919#ifndef __GNUC__
1920 choke me
1921#endif
1922
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927rm -f conftest.$ac_objext
1928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1930 ac_status=$?
1931 grep -v '^ *+' conftest.er1 >conftest.err
1932 rm -f conftest.er1
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
121ce6e5 1936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938 (eval $ac_try) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 (eval $ac_try) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1948 ac_compiler_gnu=yes
1949else
1950 echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953ac_compiler_gnu=no
1954fi
1955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956ac_cv_c_compiler_gnu=$ac_compiler_gnu
1957
1958fi
1959echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1960echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1961GCC=`test $ac_compiler_gnu = yes && echo yes`
1962ac_test_CFLAGS=${CFLAGS+set}
1963ac_save_CFLAGS=$CFLAGS
1964CFLAGS="-g"
1965echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1966echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1967if test "${ac_cv_prog_cc_g+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970 cat >conftest.$ac_ext <<_ACEOF
1971/* confdefs.h. */
1972_ACEOF
1973cat confdefs.h >>conftest.$ac_ext
1974cat >>conftest.$ac_ext <<_ACEOF
1975/* end confdefs.h. */
1976
1977int
1978main ()
1979{
1980
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985rm -f conftest.$ac_objext
1986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>conftest.er1
1988 ac_status=$?
1989 grep -v '^ *+' conftest.er1 >conftest.err
1990 rm -f conftest.er1
1991 cat conftest.err >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
121ce6e5 1994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; } &&
2000 { ac_try='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
c906108c
SS
2006 ac_cv_prog_cc_g=yes
2007else
bec39cab
AC
2008 echo "$as_me: failed program was:" >&5
2009sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2010
bec39cab 2011ac_cv_prog_cc_g=no
c906108c 2012fi
bec39cab
AC
2013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2014fi
2015echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2016echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2017if test "$ac_test_CFLAGS" = set; then
bec39cab 2018 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2019elif test $ac_cv_prog_cc_g = yes; then
2020 if test "$GCC" = yes; then
2021 CFLAGS="-g -O2"
2022 else
2023 CFLAGS="-g"
2024 fi
2025else
2026 if test "$GCC" = yes; then
2027 CFLAGS="-O2"
2028 else
2029 CFLAGS=
2030 fi
2031fi
bec39cab
AC
2032echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2033echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2034if test "${ac_cv_prog_cc_stdc+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 ac_cv_prog_cc_stdc=no
2038ac_save_CC=$CC
2039cat >conftest.$ac_ext <<_ACEOF
2040/* confdefs.h. */
2041_ACEOF
2042cat confdefs.h >>conftest.$ac_ext
2043cat >>conftest.$ac_ext <<_ACEOF
2044/* end confdefs.h. */
c906108c
SS
2045#include <stdarg.h>
2046#include <stdio.h>
2047#include <sys/types.h>
2048#include <sys/stat.h>
2049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2050struct buf { int x; };
2051FILE * (*rcsopen) (struct buf *, struct stat *, int);
2052static char *e (p, i)
2053 char **p;
2054 int i;
2055{
2056 return p[i];
2057}
2058static char *f (char * (*g) (char **, int), char **p, ...)
2059{
2060 char *s;
2061 va_list v;
2062 va_start (v,p);
2063 s = g (p, va_arg (v,int));
2064 va_end (v);
2065 return s;
2066}
bec39cab
AC
2067
2068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2069 function prototypes and stuff, but not '\xHH' hex character constants.
2070 These don't provoke an error unfortunately, instead are silently treated
2071 as 'x'. The following induces an error, until -std1 is added to get
2072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2073 array size at least. It's necessary to write '\x00'==0 to get something
2074 that's true only with -std1. */
2075int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2076
c906108c
SS
2077int test (int i, double x);
2078struct s1 {int (*f) (int a);};
2079struct s2 {int (*f) (double a);};
2080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081int argc;
2082char **argv;
bec39cab
AC
2083int
2084main ()
2085{
c906108c 2086return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091# Don't try gcc -ansi; that turns off useful extensions and
2092# breaks some systems' header files.
2093# AIX -qlanglvl=ansi
2094# Ultrix and OSF/1 -std1
2095# HP-UX 10.20 and later -Ae
2096# HP-UX older versions -Aa -D_HPUX_SOURCE
2097# SVR4 -Xc -D__EXTENSIONS__
2098for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099do
2100 CC="$ac_save_CC $ac_arg"
2101 rm -f conftest.$ac_objext
2102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2104 ac_status=$?
2105 grep -v '^ *+' conftest.er1 >conftest.err
2106 rm -f conftest.er1
2107 cat conftest.err >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
121ce6e5 2110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 (eval $ac_try) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 (eval $ac_try) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 ac_cv_prog_cc_stdc=$ac_arg
2123break
c906108c 2124else
bec39cab
AC
2125 echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
c906108c 2128fi
bec39cab 2129rm -f conftest.err conftest.$ac_objext
c906108c 2130done
bec39cab
AC
2131rm -f conftest.$ac_ext conftest.$ac_objext
2132CC=$ac_save_CC
c906108c
SS
2133
2134fi
2135
bec39cab
AC
2136case "x$ac_cv_prog_cc_stdc" in
2137 x|xno)
2138 echo "$as_me:$LINENO: result: none needed" >&5
2139echo "${ECHO_T}none needed" >&6 ;;
2140 *)
2141 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2142echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2143 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2144esac
2145
bec39cab
AC
2146# Some people use a C++ compiler to compile C. Since we use `exit',
2147# in C++ we need to declare it. In case someone uses the same compiler
2148# for both compiling C and C++ we need to have the C++ compiler decide
2149# the declaration of exit, since it's the most demanding environment.
2150cat >conftest.$ac_ext <<_ACEOF
2151#ifndef __cplusplus
2152 choke me
2153#endif
2154_ACEOF
2155rm -f conftest.$ac_objext
2156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2157 (eval $ac_compile) 2>conftest.er1
2158 ac_status=$?
2159 grep -v '^ *+' conftest.er1 >conftest.err
2160 rm -f conftest.er1
2161 cat conftest.err >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); } &&
121ce6e5 2164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; } &&
2170 { ac_try='test -s conftest.$ac_objext'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2176 for ac_declaration in \
2177 '' \
2178 'extern "C" void std::exit (int) throw (); using std::exit;' \
2179 'extern "C" void std::exit (int); using std::exit;' \
2180 'extern "C" void exit (int) throw ();' \
2181 'extern "C" void exit (int);' \
2182 'void exit (int);'
2183do
2184 cat >conftest.$ac_ext <<_ACEOF
2185/* confdefs.h. */
2186_ACEOF
2187cat confdefs.h >>conftest.$ac_ext
2188cat >>conftest.$ac_ext <<_ACEOF
2189/* end confdefs.h. */
2190$ac_declaration
2191#include <stdlib.h>
2192int
2193main ()
2194{
2195exit (42);
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2203 ac_status=$?
2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
121ce6e5 2209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2221 :
2222else
2223 echo "$as_me: failed program was:" >&5
2224sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2225
bec39cab 2226continue
c906108c 2227fi
bec39cab
AC
2228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 cat >conftest.$ac_ext <<_ACEOF
2230/* confdefs.h. */
2231_ACEOF
2232cat confdefs.h >>conftest.$ac_ext
2233cat >>conftest.$ac_ext <<_ACEOF
2234/* end confdefs.h. */
2235$ac_declaration
2236int
2237main ()
2238{
2239exit (42);
2240 ;
2241 return 0;
2242}
2243_ACEOF
2244rm -f conftest.$ac_objext
2245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>conftest.er1
2247 ac_status=$?
2248 grep -v '^ *+' conftest.er1 >conftest.err
2249 rm -f conftest.er1
2250 cat conftest.err >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
121ce6e5 2253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2265 break
2266else
2267 echo "$as_me: failed program was:" >&5
2268sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2269
bec39cab
AC
2270fi
2271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272done
2273rm -f conftest*
2274if test -n "$ac_declaration"; then
2275 echo '#ifdef __cplusplus' >>confdefs.h
2276 echo $ac_declaration >>confdefs.h
2277 echo '#endif' >>confdefs.h
c906108c
SS
2278fi
2279
bec39cab
AC
2280else
2281 echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2283
bec39cab
AC
2284fi
2285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286ac_ext=c
2287ac_cpp='$CPP $CPPFLAGS'
2288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2291
60ca704f 2292
bec39cab
AC
2293cat >>confdefs.h <<\_ACEOF
2294#define _GNU_SOURCE 1
2295_ACEOF
c906108c
SS
2296
2297
8bb2c122 2298
bec39cab
AC
2299ac_ext=c
2300ac_cpp='$CPP $CPPFLAGS'
2301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2305echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2306# On Suns, sometimes $CPP names a directory.
2307if test -n "$CPP" && test -d "$CPP"; then
2308 CPP=
8bb2c122 2309fi
bec39cab
AC
2310if test -z "$CPP"; then
2311 if test "${ac_cv_prog_CPP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 # Double quotes because CPP needs to be expanded
2315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2316 do
2317 ac_preproc_ok=false
2318for ac_c_preproc_warn_flag in '' yes
2319do
2320 # Use a header file that comes with gcc, so configuring glibc
2321 # with a fresh cross-compiler works.
2322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323 # <limits.h> exists even on freestanding compilers.
2324 # On the NeXT, cc -E runs the code through the compiler's parser,
2325 # not just through cpp. "Syntax error" is here to catch this case.
2326 cat >conftest.$ac_ext <<_ACEOF
2327/* confdefs.h. */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h. */
2332#ifdef __STDC__
2333# include <limits.h>
2334#else
2335# include <assert.h>
2336#endif
2337 Syntax error
2338_ACEOF
2339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2341 ac_status=$?
2342 grep -v '^ *+' conftest.er1 >conftest.err
2343 rm -f conftest.er1
2344 cat conftest.err >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } >/dev/null; then
2347 if test -s conftest.err; then
2348 ac_cpp_err=$ac_c_preproc_warn_flag
2349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2350 else
2351 ac_cpp_err=
2352 fi
8bb2c122 2353else
bec39cab 2354 ac_cpp_err=yes
8bb2c122 2355fi
bec39cab
AC
2356if test -z "$ac_cpp_err"; then
2357 :
8bb2c122 2358else
bec39cab
AC
2359 echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 # Broken: fails on valid input.
2363continue
2364fi
2365rm -f conftest.err conftest.$ac_ext
2366
2367 # OK, works on sane cases. Now check whether non-existent headers
2368 # can be detected and how.
2369 cat >conftest.$ac_ext <<_ACEOF
2370/* confdefs.h. */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h. */
2375#include <ac_nonexistent.h>
2376_ACEOF
2377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } >/dev/null; then
2385 if test -s conftest.err; then
2386 ac_cpp_err=$ac_c_preproc_warn_flag
2387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2388 else
2389 ac_cpp_err=
2390 fi
8bb2c122 2391else
bec39cab 2392 ac_cpp_err=yes
8bb2c122 2393fi
bec39cab
AC
2394if test -z "$ac_cpp_err"; then
2395 # Broken: success on invalid input.
2396continue
8bb2c122 2397else
bec39cab
AC
2398 echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2400
bec39cab
AC
2401 # Passes both tests.
2402ac_preproc_ok=:
2403break
8bb2c122 2404fi
bec39cab 2405rm -f conftest.err conftest.$ac_ext
8bb2c122 2406
bec39cab
AC
2407done
2408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2409rm -f conftest.err conftest.$ac_ext
2410if $ac_preproc_ok; then
2411 break
2412fi
8bb2c122 2413
bec39cab
AC
2414 done
2415 ac_cv_prog_CPP=$CPP
ddc9cd0f 2416
c906108c 2417fi
bec39cab
AC
2418 CPP=$ac_cv_prog_CPP
2419else
2420 ac_cv_prog_CPP=$CPP
c906108c 2421fi
bec39cab
AC
2422echo "$as_me:$LINENO: result: $CPP" >&5
2423echo "${ECHO_T}$CPP" >&6
2424ac_preproc_ok=false
2425for ac_c_preproc_warn_flag in '' yes
2426do
2427 # Use a header file that comes with gcc, so configuring glibc
2428 # with a fresh cross-compiler works.
2429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2430 # <limits.h> exists even on freestanding compilers.
2431 # On the NeXT, cc -E runs the code through the compiler's parser,
2432 # not just through cpp. "Syntax error" is here to catch this case.
2433 cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h. */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h. */
2439#ifdef __STDC__
2440# include <limits.h>
2441#else
2442# include <assert.h>
2443#endif
2444 Syntax error
2445_ACEOF
2446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } >/dev/null; then
2454 if test -s conftest.err; then
2455 ac_cpp_err=$ac_c_preproc_warn_flag
2456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2457 else
2458 ac_cpp_err=
2459 fi
c906108c 2460else
bec39cab 2461 ac_cpp_err=yes
c906108c 2462fi
bec39cab
AC
2463if test -z "$ac_cpp_err"; then
2464 :
c906108c 2465else
bec39cab
AC
2466 echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469 # Broken: fails on valid input.
2470continue
2471fi
2472rm -f conftest.err conftest.$ac_ext
2473
2474 # OK, works on sane cases. Now check whether non-existent headers
2475 # can be detected and how.
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482#include <ac_nonexistent.h>
2483_ACEOF
2484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486 ac_status=$?
2487 grep -v '^ *+' conftest.er1 >conftest.err
2488 rm -f conftest.er1
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } >/dev/null; then
2492 if test -s conftest.err; then
2493 ac_cpp_err=$ac_c_preproc_warn_flag
2494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2495 else
2496 ac_cpp_err=
2497 fi
c906108c 2498else
bec39cab 2499 ac_cpp_err=yes
c906108c 2500fi
bec39cab
AC
2501if test -z "$ac_cpp_err"; then
2502 # Broken: success on invalid input.
2503continue
c906108c 2504else
bec39cab
AC
2505 echo "$as_me: failed program was:" >&5
2506sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2507
bec39cab
AC
2508 # Passes both tests.
2509ac_preproc_ok=:
2510break
c906108c 2511fi
bec39cab 2512rm -f conftest.err conftest.$ac_ext
c906108c 2513
bec39cab
AC
2514done
2515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2516rm -f conftest.err conftest.$ac_ext
2517if $ac_preproc_ok; then
c906108c
SS
2518 :
2519else
bec39cab
AC
2520 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2521See \`config.log' for more details." >&5
2522echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2523See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
c906108c 2525fi
c906108c 2526
bec39cab
AC
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534echo "$as_me:$LINENO: checking for egrep" >&5
2535echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2536if test "${ac_cv_prog_egrep+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2540 then ac_cv_prog_egrep='grep -E'
2541 else ac_cv_prog_egrep='egrep'
2542 fi
c906108c 2543fi
bec39cab
AC
2544echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2545echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2546 EGREP=$ac_cv_prog_egrep
c906108c 2547
bec39cab
AC
2548
2549
2550echo "$as_me:$LINENO: checking for AIX" >&5
2551echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2552cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h. */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h. */
2558#ifdef _AIX
2559 yes
2560#endif
2561
2562_ACEOF
c906108c 2563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab
AC
2564 $EGREP "yes" >/dev/null 2>&1; then
2565 echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567cat >>confdefs.h <<\_ACEOF
2568#define _ALL_SOURCE 1
2569_ACEOF
2570
c906108c 2571else
bec39cab
AC
2572 echo "$as_me:$LINENO: result: no" >&5
2573echo "${ECHO_T}no" >&6
c906108c
SS
2574fi
2575rm -f conftest*
2576
c906108c 2577
bec39cab
AC
2578echo "$as_me:$LINENO: checking for library containing strerror" >&5
2579echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2580if test "${ac_cv_search_strerror+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2582else
bec39cab
AC
2583 ac_func_search_save_LIBS=$LIBS
2584ac_cv_search_strerror=no
2585cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h. */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h. */
c906108c 2591
bec39cab
AC
2592/* Override any gcc2 internal prototype to avoid an error. */
2593#ifdef __cplusplus
2594extern "C"
2595#endif
2596/* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2598char strerror ();
2599int
2600main ()
2601{
2602strerror ();
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext conftest$ac_exeext
2608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609 (eval $ac_link) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
121ce6e5 2616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest$ac_exeext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv_search_strerror="none required"
2629else
2630 echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633fi
2634rm -f conftest.err conftest.$ac_objext \
2635 conftest$ac_exeext conftest.$ac_ext
2636if test "$ac_cv_search_strerror" = no; then
2637 for ac_lib in cposix; do
2638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2639 cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
2645
2646/* Override any gcc2 internal prototype to avoid an error. */
2647#ifdef __cplusplus
2648extern "C"
2649#endif
2650/* We use char because int might match the return type of a gcc2
2651 builtin and then its argument prototype would still apply. */
2652char strerror ();
2653int
2654main ()
2655{
2656strerror ();
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661rm -f conftest.$ac_objext conftest$ac_exeext
2662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2663 (eval $ac_link) 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
121ce6e5 2670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest$ac_exeext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_cv_search_strerror="-l$ac_lib"
2683break
c906108c 2684else
bec39cab
AC
2685 echo "$as_me: failed program was:" >&5
2686sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2687
2688fi
bec39cab
AC
2689rm -f conftest.err conftest.$ac_objext \
2690 conftest$ac_exeext conftest.$ac_ext
2691 done
c906108c 2692fi
bec39cab 2693LIBS=$ac_func_search_save_LIBS
c906108c 2694fi
bec39cab
AC
2695echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2696echo "${ECHO_T}$ac_cv_search_strerror" >&6
2697if test "$ac_cv_search_strerror" != no; then
2698 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2699
c906108c
SS
2700fi
2701
c906108c 2702
c906108c 2703
bec39cab
AC
2704
2705echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2706echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2707if test "${am_cv_prog_cc_stdc+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2709else
bec39cab
AC
2710 am_cv_prog_cc_stdc=no
2711ac_save_CC="$CC"
2712# Don't try gcc -ansi; that turns off useful extensions and
2713# breaks some systems' header files.
2714# AIX -qlanglvl=ansi
2715# Ultrix and OSF/1 -std1
2716# HP-UX 10.20 and later -Ae
2717# HP-UX older versions -Aa -D_HPUX_SOURCE
2718# SVR4 -Xc -D__EXTENSIONS__
2719for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2720do
2721 CC="$ac_save_CC $ac_arg"
2722 cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h. */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h. */
2728#include <stdarg.h>
2729#include <stdio.h>
2730#include <sys/types.h>
2731#include <sys/stat.h>
2732/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2733struct buf { int x; };
2734FILE * (*rcsopen) (struct buf *, struct stat *, int);
2735static char *e (p, i)
2736 char **p;
2737 int i;
2738{
2739 return p[i];
2740}
2741static char *f (char * (*g) (char **, int), char **p, ...)
2742{
2743 char *s;
2744 va_list v;
2745 va_start (v,p);
2746 s = g (p, va_arg (v,int));
2747 va_end (v);
2748 return s;
2749}
2750int test (int i, double x);
2751struct s1 {int (*f) (int a);};
2752struct s2 {int (*f) (double a);};
2753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2754int argc;
2755char **argv;
c906108c 2756
bec39cab
AC
2757int
2758main ()
2759{
c906108c 2760
bec39cab 2761return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2762
bec39cab
AC
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext
2768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2770 ac_status=$?
2771 grep -v '^ *+' conftest.er1 >conftest.err
2772 rm -f conftest.er1
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
121ce6e5 2776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2789else
bec39cab
AC
2790 echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2792
2793fi
bec39cab
AC
2794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795done
2796CC="$ac_save_CC"
c906108c
SS
2797
2798fi
2799
bec39cab
AC
2800if test -z "$am_cv_prog_cc_stdc"; then
2801 echo "$as_me:$LINENO: result: none needed" >&5
2802echo "${ECHO_T}none needed" >&6
c906108c 2803else
bec39cab
AC
2804 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2805echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2806fi
bec39cab
AC
2807case "x$am_cv_prog_cc_stdc" in
2808 x|xno) ;;
2809 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2810esac
c906108c 2811
c906108c 2812
bec39cab
AC
2813ac_aux_dir=
2814for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2815 if test -f $ac_dir/install-sh; then
2816 ac_aux_dir=$ac_dir
2817 ac_install_sh="$ac_aux_dir/install-sh -c"
2818 break
2819 elif test -f $ac_dir/install.sh; then
2820 ac_aux_dir=$ac_dir
2821 ac_install_sh="$ac_aux_dir/install.sh -c"
2822 break
2823 elif test -f $ac_dir/shtool; then
2824 ac_aux_dir=$ac_dir
2825 ac_install_sh="$ac_aux_dir/shtool install -c"
2826 break
2827 fi
2828done
2829if test -z "$ac_aux_dir"; then
2830 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2831echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2832 { (exit 1); exit 1; }; }
c906108c 2833fi
bec39cab
AC
2834ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2835ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2836ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2837
bec39cab
AC
2838# Make sure we can run config.sub.
2839$ac_config_sub sun4 >/dev/null 2>&1 ||
2840 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2841echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2842 { (exit 1); exit 1; }; }
2843
2844echo "$as_me:$LINENO: checking build system type" >&5
2845echo $ECHO_N "checking build system type... $ECHO_C" >&6
2846if test "${ac_cv_build+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 ac_cv_build_alias=$build_alias
2850test -z "$ac_cv_build_alias" &&
2851 ac_cv_build_alias=`$ac_config_guess`
2852test -z "$ac_cv_build_alias" &&
2853 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2854echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2855 { (exit 1); exit 1; }; }
2856ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2857 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2858echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2859 { (exit 1); exit 1; }; }
2860
2861fi
2862echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2863echo "${ECHO_T}$ac_cv_build" >&6
2864build=$ac_cv_build
2865build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2866build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2867build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2868
2869
2870echo "$as_me:$LINENO: checking host system type" >&5
2871echo $ECHO_N "checking host system type... $ECHO_C" >&6
2872if test "${ac_cv_host+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875 ac_cv_host_alias=$host_alias
2876test -z "$ac_cv_host_alias" &&
2877 ac_cv_host_alias=$ac_cv_build_alias
2878ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2879 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2880echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2881 { (exit 1); exit 1; }; }
2882
2883fi
2884echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2885echo "${ECHO_T}$ac_cv_host" >&6
2886host=$ac_cv_host
2887host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2888host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2889host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2890
2891
2892echo "$as_me:$LINENO: checking target system type" >&5
2893echo $ECHO_N "checking target system type... $ECHO_C" >&6
2894if test "${ac_cv_target+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896else
2897 ac_cv_target_alias=$target_alias
2898test "x$ac_cv_target_alias" = "x" &&
2899 ac_cv_target_alias=$ac_cv_host_alias
2900ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2901 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2902echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2903 { (exit 1); exit 1; }; }
2904
2905fi
2906echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2907echo "${ECHO_T}$ac_cv_target" >&6
2908target=$ac_cv_target
2909target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2910target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2911target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2912
c906108c 2913
bec39cab
AC
2914# The aliases save the names the user supplied, while $host etc.
2915# will get canonicalized.
2916test -n "$target_alias" &&
2917 test "$program_prefix$program_suffix$program_transform_name" = \
2918 NONENONEs,x,x, &&
2919 program_prefix=${target_alias}-
c906108c 2920
c906108c 2921
bec39cab
AC
2922CONFIG_OBS=
2923CONFIG_DEPS=
2924CONFIG_SRCS=
2925ENABLE_CFLAGS=
c906108c 2926
bec39cab
AC
2927CONFIG_ALL=
2928CONFIG_CLEAN=
2929CONFIG_INSTALL=
2930CONFIG_UNINSTALL=
2931
2932
2933echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2934echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2935set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2936if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939 cat >conftest.make <<\_ACEOF
2940all:
2941 @echo 'ac_maketemp="$(MAKE)"'
2942_ACEOF
2943# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2944eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2945if test -n "$ac_maketemp"; then
2946 eval ac_cv_prog_make_${ac_make}_set=yes
c906108c 2947else
bec39cab 2948 eval ac_cv_prog_make_${ac_make}_set=no
c906108c 2949fi
bec39cab
AC
2950rm -f conftest.make
2951fi
2952if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2953 echo "$as_me:$LINENO: result: yes" >&5
2954echo "${ECHO_T}yes" >&6
2955 SET_MAKE=
2956else
2957 echo "$as_me:$LINENO: result: no" >&5
2958echo "${ECHO_T}no" >&6
2959 SET_MAKE="MAKE=${MAKE-make}"
c906108c
SS
2960fi
2961
bec39cab
AC
2962if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2965echo "$as_me:$LINENO: checking for $ac_word" >&5
2966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967if test "${ac_cv_prog_RANLIB+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 if test -n "$RANLIB"; then
2971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984done
2985done
c906108c 2986
bec39cab
AC
2987fi
2988fi
2989RANLIB=$ac_cv_prog_RANLIB
2990if test -n "$RANLIB"; then
2991 echo "$as_me:$LINENO: result: $RANLIB" >&5
2992echo "${ECHO_T}$RANLIB" >&6
c906108c 2993else
bec39cab
AC
2994 echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6
c906108c
SS
2996fi
2997
bec39cab
AC
2998fi
2999if test -z "$ac_cv_prog_RANLIB"; then
3000 ac_ct_RANLIB=$RANLIB
3001 # Extract the first word of "ranlib", so it can be a program name with args.
3002set dummy ranlib; ac_word=$2
3003echo "$as_me:$LINENO: checking for $ac_word" >&5
3004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007else
3008 if test -n "$ac_ct_RANLIB"; then
3009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_RANLIB="ranlib"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022done
c906108c 3023done
bec39cab
AC
3024
3025 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3026fi
3027fi
3028ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3029if test -n "$ac_ct_RANLIB"; then
3030 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3031echo "${ECHO_T}$ac_ct_RANLIB" >&6
3032else
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
c906108c
SS
3035fi
3036
bec39cab 3037 RANLIB=$ac_ct_RANLIB
c906108c 3038else
bec39cab
AC
3039 RANLIB="$ac_cv_prog_RANLIB"
3040fi
3041
3042echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3043echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3044if test "${ac_cv_header_stdc+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3046else
bec39cab
AC
3047 cat >conftest.$ac_ext <<_ACEOF
3048/* confdefs.h. */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
3052/* end confdefs.h. */
3053#include <stdlib.h>
3054#include <stdarg.h>
3055#include <string.h>
3056#include <float.h>
3057
3058int
c906108c
SS
3059main ()
3060{
bec39cab
AC
3061
3062 ;
3063 return 0;
c906108c 3064}
bec39cab
AC
3065_ACEOF
3066rm -f conftest.$ac_objext
3067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
121ce6e5 3075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 (eval $ac_try) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_cv_header_stdc=yes
c906108c 3088else
bec39cab
AC
3089 echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3091
bec39cab 3092ac_cv_header_stdc=no
c906108c 3093fi
bec39cab 3094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3095
bec39cab
AC
3096if test $ac_cv_header_stdc = yes; then
3097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104#include <string.h>
c906108c 3105
bec39cab
AC
3106_ACEOF
3107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 $EGREP "memchr" >/dev/null 2>&1; then
3109 :
c906108c 3110else
bec39cab 3111 ac_cv_header_stdc=no
c906108c 3112fi
bec39cab 3113rm -f conftest*
c906108c 3114
bec39cab 3115fi
c906108c 3116
bec39cab
AC
3117if test $ac_cv_header_stdc = yes; then
3118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3119 cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125#include <stdlib.h>
c906108c 3126
bec39cab
AC
3127_ACEOF
3128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3129 $EGREP "free" >/dev/null 2>&1; then
3130 :
c906108c 3131else
bec39cab 3132 ac_cv_header_stdc=no
c906108c
SS
3133fi
3134rm -f conftest*
c906108c 3135
c906108c 3136fi
c906108c 3137
bec39cab
AC
3138if test $ac_cv_header_stdc = yes; then
3139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
c906108c 3140 if test "$cross_compiling" = yes; then
bec39cab 3141 :
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 <ctype.h>
3150#if ((' ' & 0x0FF) == 0x020)
3151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3153#else
3154# define ISLOWER(c) \
3155 (('a' <= (c) && (c) <= 'i') \
3156 || ('j' <= (c) && (c) <= 'r') \
3157 || ('s' <= (c) && (c) <= 'z'))
3158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3159#endif
c906108c 3160
bec39cab
AC
3161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3162int
3163main ()
3164{
3165 int i;
3166 for (i = 0; i < 256; i++)
3167 if (XOR (islower (i), ISLOWER (i))
3168 || toupper (i) != TOUPPER (i))
3169 exit(2);
3170 exit (0);
3171}
3172_ACEOF
3173rm -f conftest$ac_exeext
3174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 :
3185else
3186 echo "$as_me: program exited with status $ac_status" >&5
3187echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3189
bec39cab
AC
3190( exit $ac_status )
3191ac_cv_header_stdc=no
3192fi
3193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3194fi
3195fi
3196fi
3197echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3198echo "${ECHO_T}$ac_cv_header_stdc" >&6
3199if test $ac_cv_header_stdc = yes; then
c906108c 3200
bec39cab
AC
3201cat >>confdefs.h <<\_ACEOF
3202#define STDC_HEADERS 1
3203_ACEOF
c906108c 3204
bec39cab 3205fi
c906108c 3206
bec39cab
AC
3207echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3208echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3209if test "${ac_cv_c_const+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212 cat >conftest.$ac_ext <<_ACEOF
3213/* confdefs.h. */
3214_ACEOF
3215cat confdefs.h >>conftest.$ac_ext
3216cat >>conftest.$ac_ext <<_ACEOF
3217/* end confdefs.h. */
c906108c 3218
bec39cab
AC
3219int
3220main ()
3221{
3222/* FIXME: Include the comments suggested by Paul. */
3223#ifndef __cplusplus
3224 /* Ultrix mips cc rejects this. */
3225 typedef int charset[2];
3226 const charset x;
3227 /* SunOS 4.1.1 cc rejects this. */
3228 char const *const *ccp;
3229 char **p;
3230 /* NEC SVR4.0.2 mips cc rejects this. */
3231 struct point {int x, y;};
3232 static struct point const zero = {0,0};
3233 /* AIX XL C 1.02.0.0 rejects this.
3234 It does not let you subtract one const X* pointer from another in
3235 an arm of an if-expression whose if-part is not a constant
3236 expression */
3237 const char *g = "string";
3238 ccp = &g + (g ? g-g : 0);
3239 /* HPUX 7.0 cc rejects these. */
3240 ++ccp;
3241 p = (char**) ccp;
3242 ccp = (char const *const *) p;
3243 { /* SCO 3.2v4 cc rejects this. */
3244 char *t;
3245 char const *s = 0 ? (char *) 0 : (char const *) 0;
3246
3247 *t++ = 0;
3248 }
3249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3250 int x[] = {25, 17};
3251 const int *foo = &x[0];
3252 ++foo;
3253 }
3254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3255 typedef const int *iptr;
3256 iptr p = 0;
3257 ++p;
3258 }
3259 { /* AIX XL C 1.02.0.0 rejects this saying
3260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3261 struct s { int j; const int *ap[3]; };
3262 struct s *b; b->j = 5;
3263 }
3264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3265 const int foo = 10;
3266 }
3267#endif
c906108c 3268
bec39cab
AC
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
121ce6e5 3282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_cv_c_const=yes
c906108c 3295else
bec39cab
AC
3296 echo "$as_me: failed program was:" >&5
3297sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3298
bec39cab
AC
3299ac_cv_c_const=no
3300fi
3301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3302fi
bec39cab
AC
3303echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3304echo "${ECHO_T}$ac_cv_c_const" >&6
3305if test $ac_cv_c_const = no; then
c906108c 3306
bec39cab
AC
3307cat >>confdefs.h <<\_ACEOF
3308#define const
3309_ACEOF
c906108c
SS
3310
3311fi
3312
bec39cab
AC
3313echo "$as_me:$LINENO: checking for inline" >&5
3314echo $ECHO_N "checking for inline... $ECHO_C" >&6
3315if test "${ac_cv_c_inline+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3317else
bec39cab
AC
3318 ac_cv_c_inline=no
3319for ac_kw in inline __inline__ __inline; do
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326#ifndef __cplusplus
3327typedef int foo_t;
3328static $ac_kw foo_t static_foo () {return 0; }
3329$ac_kw foo_t foo () {return 0; }
c906108c
SS
3330#endif
3331
bec39cab
AC
3332_ACEOF
3333rm -f conftest.$ac_objext
3334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
121ce6e5 3342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_c_inline=$ac_kw; break
c906108c 3355else
bec39cab
AC
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3358
c906108c 3359fi
bec39cab 3360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
3361done
3362
bec39cab
AC
3363fi
3364echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3365echo "${ECHO_T}$ac_cv_c_inline" >&6
c906108c 3366
c906108c 3367
bec39cab
AC
3368case $ac_cv_c_inline in
3369 inline | yes) ;;
3370 *)
3371 case $ac_cv_c_inline in
3372 no) ac_val=;;
3373 *) ac_val=$ac_cv_c_inline;;
3374 esac
3375 cat >>confdefs.h <<_ACEOF
3376#ifndef __cplusplus
3377#define inline $ac_val
c906108c 3378#endif
bec39cab
AC
3379_ACEOF
3380 ;;
3381esac
c906108c 3382
bec39cab 3383# On IRIX 5.3, sys/types and inttypes.h are conflicting.
c906108c 3384
c906108c 3385
c906108c 3386
c906108c 3387
c906108c 3388
c906108c 3389
c906108c 3390
c906108c 3391
c906108c 3392
bec39cab
AC
3393for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3394 inttypes.h stdint.h unistd.h
3395do
3396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3397echo "$as_me:$LINENO: checking for $ac_header" >&5
3398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3399if eval "test \"\${$as_ac_Header+set}\" = set"; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401else
3402 cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h. */
3408$ac_includes_default
3409
3410#include <$ac_header>
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
121ce6e5 3421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 (eval $ac_try) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 eval "$as_ac_Header=yes"
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438eval "$as_ac_Header=no"
3439fi
3440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441fi
3442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3444if test `eval echo '${'$as_ac_Header'}'` = yes; then
3445 cat >>confdefs.h <<_ACEOF
3446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3447_ACEOF
c906108c 3448
c906108c
SS
3449fi
3450
bec39cab 3451done
c906108c 3452
c906108c 3453
bec39cab
AC
3454echo "$as_me:$LINENO: checking for off_t" >&5
3455echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3456if test "${ac_cv_type_off_t+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3458else
bec39cab
AC
3459 cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465$ac_includes_default
3466int
3467main ()
3468{
3469if ((off_t *) 0)
3470 return 0;
3471if (sizeof (off_t))
3472 return 0;
3473 ;
3474 return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
121ce6e5 3486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 (eval $ac_try) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_type_off_t=yes
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_type_off_t=no
c906108c 3504fi
bec39cab 3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3506fi
bec39cab
AC
3507echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3508echo "${ECHO_T}$ac_cv_type_off_t" >&6
3509if test $ac_cv_type_off_t = yes; then
3510 :
c906108c 3511else
bec39cab
AC
3512
3513cat >>confdefs.h <<_ACEOF
3514#define off_t long
3515_ACEOF
3516
3517fi
3518
3519echo "$as_me:$LINENO: checking for size_t" >&5
3520echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3521if test "${ac_cv_type_size_t+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h. */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h. */
3530$ac_includes_default
3531int
3532main ()
3533{
3534if ((size_t *) 0)
3535 return 0;
3536if (sizeof (size_t))
3537 return 0;
3538 ;
3539 return 0;
3540}
3541_ACEOF
3542rm -f conftest.$ac_objext
3543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>conftest.er1
3545 ac_status=$?
3546 grep -v '^ *+' conftest.er1 >conftest.err
3547 rm -f conftest.er1
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
121ce6e5 3551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_type_size_t=yes
c906108c 3564else
bec39cab
AC
3565 echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568ac_cv_type_size_t=no
c906108c 3569fi
bec39cab 3570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3571fi
bec39cab
AC
3572echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3573echo "${ECHO_T}$ac_cv_type_size_t" >&6
3574if test $ac_cv_type_size_t = yes; then
3575 :
3576else
c906108c 3577
bec39cab
AC
3578cat >>confdefs.h <<_ACEOF
3579#define size_t unsigned
3580_ACEOF
c906108c 3581
c906108c 3582fi
bec39cab
AC
3583
3584# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3585# for constant arguments. Useless!
3586echo "$as_me:$LINENO: checking for working alloca.h" >&5
3587echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3588if test "${ac_cv_working_alloca_h+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591 cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
3597#include <alloca.h>
3598int
3599main ()
3600{
3601char *p = (char *) alloca (2 * sizeof (int));
3602 ;
3603 return 0;
3604}
3605_ACEOF
3606rm -f conftest.$ac_objext conftest$ac_exeext
3607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3608 (eval $ac_link) 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
121ce6e5 3615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_working_alloca_h=yes
3628else
3629 echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632ac_cv_working_alloca_h=no
3633fi
3634rm -f conftest.err conftest.$ac_objext \
3635 conftest$ac_exeext conftest.$ac_ext
3636fi
3637echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3638echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3639if test $ac_cv_working_alloca_h = yes; then
3640
3641cat >>confdefs.h <<\_ACEOF
3642#define HAVE_ALLOCA_H 1
3643_ACEOF
c906108c
SS
3644
3645fi
bec39cab
AC
3646
3647echo "$as_me:$LINENO: checking for alloca" >&5
3648echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3649if test "${ac_cv_func_alloca_works+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3651else
bec39cab
AC
3652 cat >conftest.$ac_ext <<_ACEOF
3653/* confdefs.h. */
3654_ACEOF
3655cat confdefs.h >>conftest.$ac_ext
3656cat >>conftest.$ac_ext <<_ACEOF
3657/* end confdefs.h. */
3658#ifdef __GNUC__
3659# define alloca __builtin_alloca
3660#else
3661# ifdef _MSC_VER
3662# include <malloc.h>
3663# define alloca _alloca
3664# else
3665# if HAVE_ALLOCA_H
3666# include <alloca.h>
3667# else
3668# ifdef _AIX
3669 #pragma alloca
3670# else
3671# ifndef alloca /* predefined by HP cc +Olibcalls */
3672char *alloca ();
3673# endif
3674# endif
3675# endif
3676# endif
3677#endif
c906108c 3678
bec39cab
AC
3679int
3680main ()
3681{
3682char *p = (char *) alloca (1);
3683 ;
3684 return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext conftest$ac_exeext
3688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
121ce6e5 3696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 (eval $ac_try) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest$ac_exeext'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; }; then
3708 ac_cv_func_alloca_works=yes
c906108c 3709else
bec39cab
AC
3710 echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713ac_cv_func_alloca_works=no
c906108c 3714fi
bec39cab
AC
3715rm -f conftest.err conftest.$ac_objext \
3716 conftest$ac_exeext conftest.$ac_ext
c906108c 3717fi
bec39cab
AC
3718echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3719echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3720
3721if test $ac_cv_func_alloca_works = yes; then
3722
3723cat >>confdefs.h <<\_ACEOF
3724#define HAVE_ALLOCA 1
3725_ACEOF
c906108c 3726
c906108c 3727else
bec39cab
AC
3728 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3729# that cause trouble. Some versions do not even contain alloca or
3730# contain a buggy version. If you still want to use their alloca,
3731# use ar to extract alloca.o from them instead of compiling alloca.c.
c906108c 3732
bec39cab 3733ALLOCA=alloca.$ac_objext
c906108c 3734
bec39cab
AC
3735cat >>confdefs.h <<\_ACEOF
3736#define C_ALLOCA 1
3737_ACEOF
c906108c 3738
bec39cab
AC
3739
3740echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3741echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3742if test "${ac_cv_os_cray+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3744else
bec39cab
AC
3745 cat >conftest.$ac_ext <<_ACEOF
3746/* confdefs.h. */
3747_ACEOF
3748cat confdefs.h >>conftest.$ac_ext
3749cat >>conftest.$ac_ext <<_ACEOF
3750/* end confdefs.h. */
3751#if defined(CRAY) && ! defined(CRAY2)
3752webecray
3753#else
3754wenotbecray
3755#endif
3756
3757_ACEOF
3758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759 $EGREP "webecray" >/dev/null 2>&1; then
3760 ac_cv_os_cray=yes
c906108c 3761else
bec39cab 3762 ac_cv_os_cray=no
c906108c 3763fi
bec39cab
AC
3764rm -f conftest*
3765
3766fi
3767echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3768echo "${ECHO_T}$ac_cv_os_cray" >&6
3769if test $ac_cv_os_cray = yes; then
3770 for ac_func in _getb67 GETB67 getb67; do
3771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3772echo "$as_me:$LINENO: checking for $ac_func" >&5
3773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3774if eval "test \"\${$as_ac_var+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3785#define $ac_func innocuous_$ac_func
3786
c906108c 3787/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
3788 which can conflict with char $ac_func (); below.
3789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 <limits.h> exists even on freestanding compilers. */
3791
3792#ifdef __STDC__
3793# include <limits.h>
3794#else
3795# include <assert.h>
3796#endif
c906108c 3797
bec39cab 3798#undef $ac_func
c906108c 3799
bec39cab
AC
3800/* Override any gcc2 internal prototype to avoid an error. */
3801#ifdef __cplusplus
3802extern "C"
3803{
3804#endif
3805/* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3807char $ac_func ();
c906108c
SS
3808/* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3812choke me
3813#else
bec39cab
AC
3814char (*f) () = $ac_func;
3815#endif
3816#ifdef __cplusplus
3817}
c906108c
SS
3818#endif
3819
bec39cab
AC
3820int
3821main ()
3822{
3823return f != $ac_func;
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext conftest$ac_exeext
3829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830 (eval $ac_link) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
121ce6e5 3837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest$ac_exeext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 eval "$as_ac_var=yes"
3850else
3851 echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854eval "$as_ac_var=no"
3855fi
3856rm -f conftest.err conftest.$ac_objext \
3857 conftest$ac_exeext conftest.$ac_ext
3858fi
3859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3861if test `eval echo '${'$as_ac_var'}'` = yes; then
3862
3863cat >>confdefs.h <<_ACEOF
3864#define CRAY_STACKSEG_END $ac_func
3865_ACEOF
c906108c 3866
bec39cab 3867 break
c906108c 3868fi
c906108c 3869
c906108c 3870 done
c906108c 3871fi
bec39cab
AC
3872
3873echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3874echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3875if test "${ac_cv_c_stack_direction+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3877else
bec39cab
AC
3878 if test "$cross_compiling" = yes; then
3879 ac_cv_c_stack_direction=0
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. */
3887int
3888find_stack_direction ()
3889{
3890 static char *addr = 0;
3891 auto char dummy;
3892 if (addr == 0)
3893 {
3894 addr = &dummy;
3895 return find_stack_direction ();
3896 }
3897 else
3898 return (&dummy > addr) ? 1 : -1;
3899}
c906108c 3900
bec39cab
AC
3901int
3902main ()
3903{
3904 exit (find_stack_direction () < 0);
3905}
3906_ACEOF
3907rm -f conftest$ac_exeext
3908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_cv_c_stack_direction=1
c906108c 3919else
bec39cab
AC
3920 echo "$as_me: program exited with status $ac_status" >&5
3921echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924( exit $ac_status )
3925ac_cv_c_stack_direction=-1
3926fi
3927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3928fi
c906108c 3929fi
bec39cab
AC
3930echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3931echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3932
3933cat >>confdefs.h <<_ACEOF
3934#define STACK_DIRECTION $ac_cv_c_stack_direction
3935_ACEOF
c906108c 3936
c906108c 3937
c906108c
SS
3938fi
3939
3940
c906108c 3941
bec39cab
AC
3942for ac_header in stdlib.h unistd.h
3943do
3944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3945if eval "test \"\${$as_ac_Header+set}\" = set"; then
3946 echo "$as_me:$LINENO: checking for $ac_header" >&5
3947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3948if eval "test \"\${$as_ac_Header+set}\" = set"; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950fi
3951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3953else
3954 # Is the header compilable?
3955echo "$as_me:$LINENO: checking $ac_header usability" >&5
3956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3957cat >conftest.$ac_ext <<_ACEOF
3958/* confdefs.h. */
3959_ACEOF
3960cat confdefs.h >>conftest.$ac_ext
3961cat >>conftest.$ac_ext <<_ACEOF
3962/* end confdefs.h. */
3963$ac_includes_default
3964#include <$ac_header>
3965_ACEOF
3966rm -f conftest.$ac_objext
3967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3969 ac_status=$?
3970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
121ce6e5 3975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 ac_header_compiler=yes
3988else
3989 echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
3992ac_header_compiler=no
3993fi
3994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3996echo "${ECHO_T}$ac_header_compiler" >&6
3997
3998# Is the header present?
3999echo "$as_me:$LINENO: checking $ac_header presence" >&5
4000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4001cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
4007#include <$ac_header>
4008_ACEOF
4009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4011 ac_status=$?
4012 grep -v '^ *+' conftest.er1 >conftest.err
4013 rm -f conftest.er1
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } >/dev/null; then
4017 if test -s conftest.err; then
4018 ac_cpp_err=$ac_c_preproc_warn_flag
4019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4020 else
4021 ac_cpp_err=
4022 fi
c906108c 4023else
bec39cab 4024 ac_cpp_err=yes
c906108c 4025fi
bec39cab
AC
4026if test -z "$ac_cpp_err"; then
4027 ac_header_preproc=yes
c906108c 4028else
bec39cab
AC
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 ac_header_preproc=no
c906108c 4033fi
bec39cab
AC
4034rm -f conftest.err conftest.$ac_ext
4035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4036echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 4037
bec39cab
AC
4038# So? What about this header?
4039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4040 yes:no: )
4041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4045 ac_header_preproc=yes
4046 ;;
4047 no:yes:* )
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4055echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4060 (
4061 cat <<\_ASBOX
4062## ------------------------------------------ ##
4063## Report this to the AC_PACKAGE_NAME lists. ##
4064## ------------------------------------------ ##
4065_ASBOX
4066 ) |
4067 sed "s/^/$as_me: WARNING: /" >&2
4068 ;;
4069esac
4070echo "$as_me:$LINENO: checking for $ac_header" >&5
4071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4072if eval "test \"\${$as_ac_Header+set}\" = set"; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074else
4075 eval "$as_ac_Header=\$ac_header_preproc"
4076fi
4077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4079
4080fi
4081if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084_ACEOF
4085
4086fi
4087
4088done
4089
4090
4091for ac_func in getpagesize
4092do
4093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4094echo "$as_me:$LINENO: checking for $ac_func" >&5
4095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4096if eval "test \"\${$as_ac_var+set}\" = set"; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h. */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h. */
4105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4107#define $ac_func innocuous_$ac_func
4108
4109/* System header to define __stub macros and hopefully few prototypes,
4110 which can conflict with char $ac_func (); below.
4111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112 <limits.h> exists even on freestanding compilers. */
4113
4114#ifdef __STDC__
4115# include <limits.h>
4116#else
4117# include <assert.h>
4118#endif
4119
4120#undef $ac_func
4121
4122/* Override any gcc2 internal prototype to avoid an error. */
4123#ifdef __cplusplus
4124extern "C"
4125{
4126#endif
4127/* We use char because int might match the return type of a gcc2
4128 builtin and then its argument prototype would still apply. */
4129char $ac_func ();
4130/* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4134choke me
4135#else
4136char (*f) () = $ac_func;
4137#endif
4138#ifdef __cplusplus
4139}
4140#endif
4141
4142int
4143main ()
4144{
4145return f != $ac_func;
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150rm -f conftest.$ac_objext conftest$ac_exeext
4151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
121ce6e5 4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest$ac_exeext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 eval "$as_ac_var=yes"
4172else
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
4176eval "$as_ac_var=no"
4177fi
4178rm -f conftest.err conftest.$ac_objext \
4179 conftest$ac_exeext conftest.$ac_ext
4180fi
4181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4183if test `eval echo '${'$as_ac_var'}'` = yes; then
4184 cat >>confdefs.h <<_ACEOF
4185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4186_ACEOF
4187
4188fi
4189done
4190
4191echo "$as_me:$LINENO: checking for working mmap" >&5
4192echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4193if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196 if test "$cross_compiling" = yes; then
4197 ac_cv_func_mmap_fixed_mapped=no
4198else
4199 cat >conftest.$ac_ext <<_ACEOF
4200/* confdefs.h. */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
4204/* end confdefs.h. */
4205$ac_includes_default
4206/* malloc might have been renamed as rpl_malloc. */
4207#undef malloc
4208
4209/* Thanks to Mike Haertel and Jim Avera for this test.
4210 Here is a matrix of mmap possibilities:
4211 mmap private not fixed
4212 mmap private fixed at somewhere currently unmapped
4213 mmap private fixed at somewhere already mapped
4214 mmap shared not fixed
4215 mmap shared fixed at somewhere currently unmapped
4216 mmap shared fixed at somewhere already mapped
4217 For private mappings, we should verify that changes cannot be read()
4218 back from the file, nor mmap's back from the file at a different
4219 address. (There have been systems where private was not correctly
4220 implemented like the infamous i386 svr4.0, and systems where the
4221 VM page cache was not coherent with the file system buffer cache
4222 like early versions of FreeBSD and possibly contemporary NetBSD.)
4223 For shared mappings, we should conversely verify that changes get
4224 propagated back to all the places they're supposed to be.
4225
4226 Grep wants private fixed already mapped.
4227 The main things grep needs to know about mmap are:
4228 * does it exist and is it safe to write into the mmap'd area
4229 * how to use it (BSD variants) */
4230
4231#include <fcntl.h>
4232#include <sys/mman.h>
4233
4234#if !STDC_HEADERS && !HAVE_STDLIB_H
4235char *malloc ();
4236#endif
4237
4238/* This mess was copied from the GNU getpagesize.h. */
4239#if !HAVE_GETPAGESIZE
4240/* Assume that all systems that can run configure have sys/param.h. */
4241# if !HAVE_SYS_PARAM_H
4242# define HAVE_SYS_PARAM_H 1
4243# endif
4244
4245# ifdef _SC_PAGESIZE
4246# define getpagesize() sysconf(_SC_PAGESIZE)
4247# else /* no _SC_PAGESIZE */
4248# if HAVE_SYS_PARAM_H
4249# include <sys/param.h>
4250# ifdef EXEC_PAGESIZE
4251# define getpagesize() EXEC_PAGESIZE
4252# else /* no EXEC_PAGESIZE */
4253# ifdef NBPG
4254# define getpagesize() NBPG * CLSIZE
4255# ifndef CLSIZE
4256# define CLSIZE 1
4257# endif /* no CLSIZE */
4258# else /* no NBPG */
4259# ifdef NBPC
4260# define getpagesize() NBPC
4261# else /* no NBPC */
4262# ifdef PAGESIZE
4263# define getpagesize() PAGESIZE
4264# endif /* PAGESIZE */
4265# endif /* no NBPC */
4266# endif /* no NBPG */
4267# endif /* no EXEC_PAGESIZE */
4268# else /* no HAVE_SYS_PARAM_H */
4269# define getpagesize() 8192 /* punt totally */
4270# endif /* no HAVE_SYS_PARAM_H */
4271# endif /* no _SC_PAGESIZE */
4272
4273#endif /* no HAVE_GETPAGESIZE */
4274
4275int
4276main ()
4277{
4278 char *data, *data2, *data3;
4279 int i, pagesize;
4280 int fd;
4281
4282 pagesize = getpagesize ();
4283
4284 /* First, make a file with some known garbage in it. */
4285 data = (char *) malloc (pagesize);
4286 if (!data)
4287 exit (1);
4288 for (i = 0; i < pagesize; ++i)
4289 *(data + i) = rand ();
4290 umask (0);
4291 fd = creat ("conftest.mmap", 0600);
4292 if (fd < 0)
4293 exit (1);
4294 if (write (fd, data, pagesize) != pagesize)
4295 exit (1);
4296 close (fd);
4297
4298 /* Next, try to mmap the file at a fixed address which already has
4299 something else allocated at it. If we can, also make sure that
4300 we see the same garbage. */
4301 fd = open ("conftest.mmap", O_RDWR);
4302 if (fd < 0)
4303 exit (1);
4304 data2 = (char *) malloc (2 * pagesize);
4305 if (!data2)
4306 exit (1);
4307 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4308 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4309 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4310 exit (1);
4311 for (i = 0; i < pagesize; ++i)
4312 if (*(data + i) != *(data2 + i))
4313 exit (1);
4314
4315 /* Finally, make sure that changes to the mapped area do not
4316 percolate back to the file as seen by read(). (This is a bug on
4317 some variants of i386 svr4.0.) */
4318 for (i = 0; i < pagesize; ++i)
4319 *(data2 + i) = *(data2 + i) + 1;
4320 data3 = (char *) malloc (pagesize);
4321 if (!data3)
4322 exit (1);
4323 if (read (fd, data3, pagesize) != pagesize)
4324 exit (1);
4325 for (i = 0; i < pagesize; ++i)
4326 if (*(data + i) != *(data3 + i))
4327 exit (1);
4328 close (fd);
4329 exit (0);
4330}
4331_ACEOF
4332rm -f conftest$ac_exeext
4333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4334 (eval $ac_link) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_func_mmap_fixed_mapped=yes
4344else
4345 echo "$as_me: program exited with status $ac_status" >&5
4346echo "$as_me: failed program was:" >&5
4347sed 's/^/| /' conftest.$ac_ext >&5
4348
4349( exit $ac_status )
4350ac_cv_func_mmap_fixed_mapped=no
4351fi
4352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4353fi
4354fi
4355echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4356echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4357if test $ac_cv_func_mmap_fixed_mapped = yes; then
4358
4359cat >>confdefs.h <<\_ACEOF
4360#define HAVE_MMAP 1
4361_ACEOF
4362
4363fi
4364rm -f conftest.mmap
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4377unistd.h values.h sys/param.h
4378do
4379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4380if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381 echo "$as_me:$LINENO: checking for $ac_header" >&5
4382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4383if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385fi
4386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4388else
4389 # Is the header compilable?
4390echo "$as_me:$LINENO: checking $ac_header usability" >&5
4391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4392cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h. */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h. */
4398$ac_includes_default
4399#include <$ac_header>
4400_ACEOF
4401rm -f conftest.$ac_objext
4402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403 (eval $ac_compile) 2>conftest.er1
4404 ac_status=$?
4405 grep -v '^ *+' conftest.er1 >conftest.err
4406 rm -f conftest.er1
4407 cat conftest.err >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } &&
121ce6e5 4410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_header_compiler=yes
4423else
4424 echo "$as_me: failed program was:" >&5
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
4427ac_header_compiler=no
4428fi
4429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4431echo "${ECHO_T}$ac_header_compiler" >&6
4432
4433# Is the header present?
4434echo "$as_me:$LINENO: checking $ac_header presence" >&5
4435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4436cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442#include <$ac_header>
4443_ACEOF
4444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null; then
4452 if test -s conftest.err; then
4453 ac_cpp_err=$ac_c_preproc_warn_flag
4454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4455 else
4456 ac_cpp_err=
4457 fi
4458else
4459 ac_cpp_err=yes
4460fi
4461if test -z "$ac_cpp_err"; then
4462 ac_header_preproc=yes
4463else
4464 echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_header_preproc=no
4468fi
4469rm -f conftest.err conftest.$ac_ext
4470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4471echo "${ECHO_T}$ac_header_preproc" >&6
4472
4473# So? What about this header?
4474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4475 yes:no: )
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4480 ac_header_preproc=yes
4481 ;;
4482 no:yes:* )
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4495 (
4496 cat <<\_ASBOX
4497## ------------------------------------------ ##
4498## Report this to the AC_PACKAGE_NAME lists. ##
4499## ------------------------------------------ ##
4500_ASBOX
4501 ) |
4502 sed "s/^/$as_me: WARNING: /" >&2
4503 ;;
4504esac
4505echo "$as_me:$LINENO: checking for $ac_header" >&5
4506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4507if eval "test \"\${$as_ac_Header+set}\" = set"; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510 eval "$as_ac_Header=\$ac_header_preproc"
4511fi
4512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4514
4515fi
4516if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517 cat >>confdefs.h <<_ACEOF
4518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4519_ACEOF
4520
4521fi
4522
4523done
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4536__argz_count __argz_stringify __argz_next
4537do
4538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4539echo "$as_me:$LINENO: checking for $ac_func" >&5
4540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4541if eval "test \"\${$as_ac_var+set}\" = set"; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4552#define $ac_func innocuous_$ac_func
4553
4554/* System header to define __stub macros and hopefully few prototypes,
4555 which can conflict with char $ac_func (); below.
4556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 <limits.h> exists even on freestanding compilers. */
4558
4559#ifdef __STDC__
4560# include <limits.h>
4561#else
4562# include <assert.h>
4563#endif
4564
4565#undef $ac_func
4566
4567/* Override any gcc2 internal prototype to avoid an error. */
4568#ifdef __cplusplus
4569extern "C"
4570{
4571#endif
4572/* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4574char $ac_func ();
4575/* The GNU C library defines this for functions which it implements
4576 to always fail with ENOSYS. Some functions are actually named
4577 something starting with __ and the normal name is an alias. */
4578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4579choke me
4580#else
4581char (*f) () = $ac_func;
4582#endif
4583#ifdef __cplusplus
4584}
4585#endif
4586
4587int
4588main ()
4589{
4590return f != $ac_func;
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595rm -f conftest.$ac_objext conftest$ac_exeext
4596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4597 (eval $ac_link) 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
121ce6e5 4604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest$ac_exeext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 eval "$as_ac_var=yes"
4617else
4618 echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621eval "$as_ac_var=no"
4622fi
4623rm -f conftest.err conftest.$ac_objext \
4624 conftest$ac_exeext conftest.$ac_ext
4625fi
4626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4628if test `eval echo '${'$as_ac_var'}'` = yes; then
4629 cat >>confdefs.h <<_ACEOF
4630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4631_ACEOF
4632
4633fi
4634done
4635
4636
4637 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4638
4639for ac_func in stpcpy
4640do
4641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4642echo "$as_me:$LINENO: checking for $ac_func" >&5
4643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644if eval "test \"\${$as_ac_var+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646else
4647 cat >conftest.$ac_ext <<_ACEOF
4648/* confdefs.h. */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h. */
4653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4655#define $ac_func innocuous_$ac_func
4656
4657/* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func (); below.
4659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 <limits.h> exists even on freestanding compilers. */
4661
4662#ifdef __STDC__
4663# include <limits.h>
4664#else
4665# include <assert.h>
4666#endif
4667
4668#undef $ac_func
4669
4670/* Override any gcc2 internal prototype to avoid an error. */
4671#ifdef __cplusplus
4672extern "C"
4673{
4674#endif
4675/* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677char $ac_func ();
4678/* The GNU C library defines this for functions which it implements
4679 to always fail with ENOSYS. Some functions are actually named
4680 something starting with __ and the normal name is an alias. */
4681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4682choke me
4683#else
4684char (*f) () = $ac_func;
4685#endif
4686#ifdef __cplusplus
4687}
4688#endif
4689
4690int
4691main ()
4692{
4693return f != $ac_func;
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698rm -f conftest.$ac_objext conftest$ac_exeext
4699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
121ce6e5 4707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4719 eval "$as_ac_var=yes"
4720else
4721 echo "$as_me: failed program was:" >&5
4722sed 's/^/| /' conftest.$ac_ext >&5
4723
4724eval "$as_ac_var=no"
4725fi
4726rm -f conftest.err conftest.$ac_objext \
4727 conftest$ac_exeext conftest.$ac_ext
4728fi
4729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4731if test `eval echo '${'$as_ac_var'}'` = yes; then
4732 cat >>confdefs.h <<_ACEOF
4733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4734_ACEOF
4735
4736fi
4737done
4738
4739 fi
4740 if test "${ac_cv_func_stpcpy}" = "yes"; then
4741
4742cat >>confdefs.h <<\_ACEOF
4743#define HAVE_STPCPY 1
4744_ACEOF
4745
4746 fi
4747
4748 if test $ac_cv_header_locale_h = yes; then
4749 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4750echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4751if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754 cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
4760#include <locale.h>
4761int
4762main ()
4763{
4764return LC_MESSAGES
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769rm -f conftest.$ac_objext conftest$ac_exeext
4770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
121ce6e5 4778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 am_cv_val_LC_MESSAGES=yes
4791else
4792 echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795am_cv_val_LC_MESSAGES=no
4796fi
4797rm -f conftest.err conftest.$ac_objext \
4798 conftest$ac_exeext conftest.$ac_ext
4799fi
4800echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4801echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4802 if test $am_cv_val_LC_MESSAGES = yes; then
4803
4804cat >>confdefs.h <<\_ACEOF
4805#define HAVE_LC_MESSAGES 1
4806_ACEOF
4807
4808 fi
4809 fi
4810 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4811echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4812 # Check whether --enable-nls or --disable-nls was given.
4813if test "${enable_nls+set}" = set; then
4814 enableval="$enable_nls"
4815 USE_NLS=$enableval
4816else
4817 USE_NLS=yes
4818fi;
4819 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4820echo "${ECHO_T}$USE_NLS" >&6
4821
4822
4823 USE_INCLUDED_LIBINTL=no
4824
4825 if test "$USE_NLS" = "yes"; then
bec39cab
AC
4826 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4827echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4828
4829# Check whether --with-included-gettext or --without-included-gettext was given.
4830if test "${with_included_gettext+set}" = set; then
4831 withval="$with_included_gettext"
4832 nls_cv_force_use_gnu_gettext=$withval
4833else
4834 nls_cv_force_use_gnu_gettext=no
4835fi;
4836 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4837echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4838
4839 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4840 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4841 nls_cv_header_intl=
4842 nls_cv_header_libgt=
a53bf506 4843 CATOBJEXT=
bec39cab
AC
4844
4845 if test "${ac_cv_header_libintl_h+set}" = set; then
4846 echo "$as_me:$LINENO: checking for libintl.h" >&5
4847echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4848if test "${ac_cv_header_libintl_h+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850fi
4851echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4852echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4853else
4854 # Is the header compilable?
4855echo "$as_me:$LINENO: checking libintl.h usability" >&5
4856echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4857cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h. */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h. */
4863$ac_includes_default
4864#include <libintl.h>
4865_ACEOF
4866rm -f conftest.$ac_objext
4867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
121ce6e5 4875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 (eval $ac_try) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_header_compiler=yes
4888else
4889 echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892ac_header_compiler=no
4893fi
4894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4896echo "${ECHO_T}$ac_header_compiler" >&6
4897
4898# Is the header present?
4899echo "$as_me:$LINENO: checking libintl.h presence" >&5
4900echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4901cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907#include <libintl.h>
4908_ACEOF
4909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev/null; then
4917 if test -s conftest.err; then
4918 ac_cpp_err=$ac_c_preproc_warn_flag
4919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4920 else
4921 ac_cpp_err=
4922 fi
4923else
4924 ac_cpp_err=yes
4925fi
4926if test -z "$ac_cpp_err"; then
4927 ac_header_preproc=yes
4928else
4929 echo "$as_me: failed program was:" >&5
4930sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_header_preproc=no
4933fi
4934rm -f conftest.err conftest.$ac_ext
4935echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4936echo "${ECHO_T}$ac_header_preproc" >&6
4937
4938# So? What about this header?
4939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4940 yes:no: )
4941 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4942echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4944echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4945 ac_header_preproc=yes
4946 ;;
4947 no:yes:* )
4948 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4949echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4950 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4951echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4952 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4953echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4954 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4955echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4956 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4957echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4959echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4960 (
4961 cat <<\_ASBOX
4962## ------------------------------------------ ##
4963## Report this to the AC_PACKAGE_NAME lists. ##
4964## ------------------------------------------ ##
4965_ASBOX
4966 ) |
4967 sed "s/^/$as_me: WARNING: /" >&2
4968 ;;
4969esac
4970echo "$as_me:$LINENO: checking for libintl.h" >&5
4971echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4972if test "${ac_cv_header_libintl_h+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975 ac_cv_header_libintl_h=$ac_header_preproc
4976fi
4977echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4978echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4979
4980fi
4981if test $ac_cv_header_libintl_h = yes; then
4982 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4983echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4984if test "${gt_cv_func_gettext_libc+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987 cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h. */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h. */
4993#include <libintl.h>
4994int
4995main ()
4996{
4997return (int) gettext ("")
4998 ;
4999 return 0;
5000}
5001_ACEOF
5002rm -f conftest.$ac_objext conftest$ac_exeext
5003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
121ce6e5 5011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try='test -s conftest$ac_exeext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 gt_cv_func_gettext_libc=yes
5024else
5025 echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
5028gt_cv_func_gettext_libc=no
5029fi
5030rm -f conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5032fi
5033echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5034echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5035
5036 if test "$gt_cv_func_gettext_libc" != "yes"; then
5037 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5038echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5039if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041else
5042 ac_check_lib_save_LIBS=$LIBS
5043LIBS="-lintl $LIBS"
5044cat >conftest.$ac_ext <<_ACEOF
5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
5050
5051/* Override any gcc2 internal prototype to avoid an error. */
5052#ifdef __cplusplus
5053extern "C"
5054#endif
5055/* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5057char bindtextdomain ();
5058int
5059main ()
5060{
5061bindtextdomain ();
5062 ;
5063 return 0;
5064}
5065_ACEOF
5066rm -f conftest.$ac_objext conftest$ac_exeext
5067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5068 (eval $ac_link) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
121ce6e5 5075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_cv_lib_intl_bindtextdomain=yes
5088else
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092ac_cv_lib_intl_bindtextdomain=no
5093fi
5094rm -f conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
5096LIBS=$ac_check_lib_save_LIBS
5097fi
5098echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5099echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5100if test $ac_cv_lib_intl_bindtextdomain = yes; then
5101 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5102echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5103if test "${gt_cv_func_gettext_libintl+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106 cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
5112
5113int
5114main ()
5115{
5116return (int) gettext ("")
5117 ;
5118 return 0;
5119}
5120_ACEOF
5121rm -f conftest.$ac_objext conftest$ac_exeext
5122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
121ce6e5 5130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; } &&
5136 { ac_try='test -s conftest$ac_exeext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 gt_cv_func_gettext_libintl=yes
5143else
5144 echo "$as_me: failed program was:" >&5
5145sed 's/^/| /' conftest.$ac_ext >&5
5146
5147gt_cv_func_gettext_libintl=no
5148fi
5149rm -f conftest.err conftest.$ac_objext \
5150 conftest$ac_exeext conftest.$ac_ext
5151fi
5152echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5153echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5154fi
5155
5156 fi
5157
5158 if test "$gt_cv_func_gettext_libc" = "yes" \
5159 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5160
5161cat >>confdefs.h <<\_ACEOF
5162#define HAVE_GETTEXT 1
5163_ACEOF
5164
5165 # Extract the first word of "msgfmt", so it can be a program name with args.
5166set dummy msgfmt; ac_word=$2
5167echo "$as_me:$LINENO: checking for $ac_word" >&5
5168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169if test "${ac_cv_path_MSGFMT+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172 case "$MSGFMT" in
5173 /*)
5174 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5175 ;;
5176 *)
5177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5178 for ac_dir in $PATH; do
5179 test -z "$ac_dir" && ac_dir=.
5180 if test -f $ac_dir/$ac_word; then
5181 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5182 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5183 break
5184 fi
5185 fi
5186 done
5187 IFS="$ac_save_ifs"
5188 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5189 ;;
5190esac
5191fi
5192MSGFMT="$ac_cv_path_MSGFMT"
5193if test -n "$MSGFMT"; then
5194 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5195echo "${ECHO_T}$MSGFMT" >&6
5196else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199fi
5200 if test "$MSGFMT" != "no"; then
5201
5202for ac_func in dcgettext
5203do
5204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5205echo "$as_me:$LINENO: checking for $ac_func" >&5
5206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5207if eval "test \"\${$as_ac_var+set}\" = set"; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210 cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h. */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5215/* end confdefs.h. */
5216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5218#define $ac_func innocuous_$ac_func
5219
5220/* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char $ac_func (); below.
5222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223 <limits.h> exists even on freestanding compilers. */
5224
5225#ifdef __STDC__
5226# include <limits.h>
5227#else
5228# include <assert.h>
5229#endif
5230
5231#undef $ac_func
5232
5233/* Override any gcc2 internal prototype to avoid an error. */
5234#ifdef __cplusplus
5235extern "C"
5236{
5237#endif
5238/* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5240char $ac_func ();
5241/* The GNU C library defines this for functions which it implements
5242 to always fail with ENOSYS. Some functions are actually named
5243 something starting with __ and the normal name is an alias. */
5244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5245choke me
5246#else
5247char (*f) () = $ac_func;
5248#endif
5249#ifdef __cplusplus
5250}
5251#endif
5252
5253int
5254main ()
5255{
5256return f != $ac_func;
5257 ;
5258 return 0;
5259}
5260_ACEOF
5261rm -f conftest.$ac_objext conftest$ac_exeext
5262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
121ce6e5 5270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 eval "$as_ac_var=yes"
5283else
5284 echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287eval "$as_ac_var=no"
5288fi
5289rm -f conftest.err conftest.$ac_objext \
5290 conftest$ac_exeext conftest.$ac_ext
5291fi
5292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5293echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5294if test `eval echo '${'$as_ac_var'}'` = yes; then
5295 cat >>confdefs.h <<_ACEOF
5296#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5297_ACEOF
5298
5299fi
5300done
5301
5302 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5303set dummy gmsgfmt; ac_word=$2
5304echo "$as_me:$LINENO: checking for $ac_word" >&5
5305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5306if test "${ac_cv_path_GMSGFMT+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 case $GMSGFMT in
5310 [\\/]* | ?:[\\/]*)
5311 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5312 ;;
5313 *)
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325done
5326done
5327
5328 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5329 ;;
5330esac
5331fi
5332GMSGFMT=$ac_cv_path_GMSGFMT
5333
5334if test -n "$GMSGFMT"; then
5335 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5336echo "${ECHO_T}$GMSGFMT" >&6
5337else
5338 echo "$as_me:$LINENO: result: no" >&5
5339echo "${ECHO_T}no" >&6
5340fi
5341
5342 # Extract the first word of "xgettext", so it can be a program name with args.
5343set dummy xgettext; ac_word=$2
5344echo "$as_me:$LINENO: checking for $ac_word" >&5
5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346if test "${ac_cv_path_XGETTEXT+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349 case "$XGETTEXT" in
5350 /*)
5351 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5352 ;;
5353 *)
5354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5355 for ac_dir in $PATH; do
5356 test -z "$ac_dir" && ac_dir=.
5357 if test -f $ac_dir/$ac_word; then
5358 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5359 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5360 break
5361 fi
5362 fi
5363 done
5364 IFS="$ac_save_ifs"
5365 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5366 ;;
5367esac
5368fi
5369XGETTEXT="$ac_cv_path_XGETTEXT"
5370if test -n "$XGETTEXT"; then
5371 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5372echo "${ECHO_T}$XGETTEXT" >&6
5373else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378 cat >conftest.$ac_ext <<_ACEOF
5379/* confdefs.h. */
5380_ACEOF
5381cat confdefs.h >>conftest.$ac_ext
5382cat >>conftest.$ac_ext <<_ACEOF
5383/* end confdefs.h. */
5384
5385int
5386main ()
5387{
5388extern int _nl_msg_cat_cntr;
5389 return _nl_msg_cat_cntr
5390 ;
5391 return 0;
5392}
5393_ACEOF
5394rm -f conftest.$ac_objext conftest$ac_exeext
5395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5396 (eval $ac_link) 2>conftest.er1
5397 ac_status=$?
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
121ce6e5 5403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 (eval $ac_try) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; } &&
5409 { ac_try='test -s conftest$ac_exeext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 CATOBJEXT=.gmo
5416 DATADIRNAME=share
5417else
5418 echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
5421CATOBJEXT=.mo
5422 DATADIRNAME=lib
5423fi
5424rm -f conftest.err conftest.$ac_objext \
5425 conftest$ac_exeext conftest.$ac_ext
5426 INSTOBJEXT=.mo
5427 fi
5428 fi
5429
5430fi
5431
5432
5433
5434
a53bf506 5435 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
5436 # Neither gettext nor catgets in included in the C library.
5437 # Fall back on GNU gettext library (assuming it is present).
5438 nls_cv_use_gnu_gettext=yes
bec39cab
AC
5439 fi
5440 fi
5441
5442 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5443 INTLOBJS="\$(GETTOBJS)"
5444 # Extract the first word of "msgfmt", so it can be a program name with args.
5445set dummy msgfmt; ac_word=$2
5446echo "$as_me:$LINENO: checking for $ac_word" >&5
5447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5448if test "${ac_cv_path_MSGFMT+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451 case "$MSGFMT" in
5452 /*)
5453 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5454 ;;
5455 *)
5456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5457 for ac_dir in $PATH; do
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f $ac_dir/$ac_word; then
5460 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5461 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5462 break
5463 fi
5464 fi
5465 done
5466 IFS="$ac_save_ifs"
5467 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5468 ;;
5469esac
5470fi
5471MSGFMT="$ac_cv_path_MSGFMT"
5472if test -n "$MSGFMT"; then
5473 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5474echo "${ECHO_T}$MSGFMT" >&6
5475else
5476 echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6
5478fi
5479
5480 # Extract the first word of "gmsgfmt", so it can be a program name with args.
c906108c 5481set dummy gmsgfmt; ac_word=$2
bec39cab
AC
5482echo "$as_me:$LINENO: checking for $ac_word" >&5
5483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5484if test "${ac_cv_path_GMSGFMT+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486else
5487 case $GMSGFMT in
5488 [\\/]* | ?:[\\/]*)
5489 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5490 ;;
5491 *)
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503done
5504done
5505
5506 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5507 ;;
5508esac
5509fi
5510GMSGFMT=$ac_cv_path_GMSGFMT
5511
5512if test -n "$GMSGFMT"; then
5513 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5514echo "${ECHO_T}$GMSGFMT" >&6
5515else
5516 echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6
5518fi
5519
5520 # Extract the first word of "xgettext", so it can be a program name with args.
5521set dummy xgettext; ac_word=$2
5522echo "$as_me:$LINENO: checking for $ac_word" >&5
5523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5524if test "${ac_cv_path_XGETTEXT+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527 case "$XGETTEXT" in
5528 /*)
5529 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5530 ;;
5531 *)
5532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5533 for ac_dir in $PATH; do
5534 test -z "$ac_dir" && ac_dir=.
5535 if test -f $ac_dir/$ac_word; then
5536 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5537 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5538 break
5539 fi
5540 fi
5541 done
5542 IFS="$ac_save_ifs"
5543 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5544 ;;
5545esac
5546fi
5547XGETTEXT="$ac_cv_path_XGETTEXT"
5548if test -n "$XGETTEXT"; then
5549 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5550echo "${ECHO_T}$XGETTEXT" >&6
5551else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554fi
5555
5556
5557 USE_INCLUDED_LIBINTL=yes
5558 CATOBJEXT=.gmo
5559 INSTOBJEXT=.mo
5560 DATADIRNAME=share
5561 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5562 INTLLIBS=$INTLDEPS
5563 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5564 nls_cv_header_intl=libintl.h
5565 nls_cv_header_libgt=libgettext.h
5566 fi
5567
5568 if test "$XGETTEXT" != ":"; then
5569 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5570 : ;
5571 else
5572 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5573echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5574 XGETTEXT=":"
5575 fi
5576 fi
5577
5578 # We need to process the po/ directory.
5579 POSUB=po
5580 else
5581 DATADIRNAME=share
5582 nls_cv_header_intl=libintl.h
5583 nls_cv_header_libgt=libgettext.h
5584 fi
5585
5586 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5587 # because some of the sources are only built for this goal.
5588 if test "$PACKAGE" = gettext; then
5589 USE_NLS=yes
5590 USE_INCLUDED_LIBINTL=yes
5591 fi
5592
5593 for lang in $ALL_LINGUAS; do
5594 GMOFILES="$GMOFILES $lang.gmo"
5595 POFILES="$POFILES $lang.po"
5596 done
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
c46f8c51
AC
5609 if test "x$CATOBJEXT" != "x"; then
5610
5611cat >>confdefs.h <<\_ACEOF
5612#define ENABLE_NLS 1
5613_ACEOF
5614
5615 fi
bec39cab
AC
5616
5617
5618 if test "x$CATOBJEXT" != "x"; then
5619 if test "x$ALL_LINGUAS" = "x"; then
5620 LINGUAS=
5621 else
5622 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5623echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5624 NEW_LINGUAS=
5625 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5626 case "$ALL_LINGUAS" in
5627 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5628 esac
5629 done
5630 LINGUAS=$NEW_LINGUAS
5631 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5632echo "${ECHO_T}$LINGUAS" >&6
5633 fi
5634
5635 if test -n "$LINGUAS"; then
5636 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5637 fi
5638 fi
5639
5640 if test $ac_cv_header_locale_h = yes; then
5641 INCLUDE_LOCALE_H="#include <locale.h>"
5642 else
5643 INCLUDE_LOCALE_H="\
5644/* The system does not provide the header <locale.h>. Take care yourself. */"
5645 fi
5646
5647
5648 if test -f $srcdir/po2tbl.sed.in; then
5649 if test "$CATOBJEXT" = ".cat"; then
5650 if test "${ac_cv_header_linux_version_h+set}" = set; then
5651 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5652echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5653if test "${ac_cv_header_linux_version_h+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655fi
5656echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5657echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5658else
5659 # Is the header compilable?
5660echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5661echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5662cat >conftest.$ac_ext <<_ACEOF
5663/* confdefs.h. */
5664_ACEOF
5665cat confdefs.h >>conftest.$ac_ext
5666cat >>conftest.$ac_ext <<_ACEOF
5667/* end confdefs.h. */
5668$ac_includes_default
5669#include <linux/version.h>
5670_ACEOF
5671rm -f conftest.$ac_objext
5672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
121ce6e5 5680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_header_compiler=yes
5693else
5694 echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697ac_header_compiler=no
5698fi
5699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5700echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5701echo "${ECHO_T}$ac_header_compiler" >&6
5702
5703# Is the header present?
5704echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5705echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5706cat >conftest.$ac_ext <<_ACEOF
5707/* confdefs.h. */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
5711/* end confdefs.h. */
5712#include <linux/version.h>
5713_ACEOF
5714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5716 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } >/dev/null; then
5722 if test -s conftest.err; then
5723 ac_cpp_err=$ac_c_preproc_warn_flag
5724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5725 else
5726 ac_cpp_err=
5727 fi
5728else
5729 ac_cpp_err=yes
5730fi
5731if test -z "$ac_cpp_err"; then
5732 ac_header_preproc=yes
5733else
5734 echo "$as_me: failed program was:" >&5
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
5737 ac_header_preproc=no
5738fi
5739rm -f conftest.err conftest.$ac_ext
5740echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5741echo "${ECHO_T}$ac_header_preproc" >&6
5742
5743# So? What about this header?
5744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5745 yes:no: )
5746 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5747echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5748 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5749echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5750 ac_header_preproc=yes
5751 ;;
5752 no:yes:* )
5753 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5754echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5756echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5757 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5758echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5759 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5760echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5762echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5764echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5765 (
5766 cat <<\_ASBOX
5767## ------------------------------------------ ##
5768## Report this to the AC_PACKAGE_NAME lists. ##
5769## ------------------------------------------ ##
5770_ASBOX
5771 ) |
5772 sed "s/^/$as_me: WARNING: /" >&2
5773 ;;
5774esac
5775echo "$as_me:$LINENO: checking for linux/version.h" >&5
5776echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5777if test "${ac_cv_header_linux_version_h+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 ac_cv_header_linux_version_h=$ac_header_preproc
5781fi
5782echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5783echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5784
5785fi
5786if test $ac_cv_header_linux_version_h = yes; then
5787 msgformat=linux
5788else
5789 msgformat=xopen
5790fi
5791
5792
5793
5794 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5795 fi
5796 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5797 $srcdir/po2tbl.sed.in > po2tbl.sed
5798 fi
5799
5800 if test "$PACKAGE" = "gettext"; then
5801 GT_NO="#NO#"
5802 GT_YES=
5803 else
5804 GT_NO=
5805 GT_YES="#YES#"
5806 fi
5807
5808
5809
5810 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5811
5812
5813 l=
5814
5815
5816 if test -f $srcdir/po/POTFILES.in; then
5817 test -d po || mkdir po
5818 if test "x$srcdir" != "x."; then
5819 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5820 posrcprefix="$srcdir/"
5821 else
5822 posrcprefix="../$srcdir/"
5823 fi
5824 else
5825 posrcprefix="../"
5826 fi
5827 rm -f po/POTFILES
5828 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5829 < $srcdir/po/POTFILES.in > po/POTFILES
5830 fi
5831
5832
5833localedir='${datadir}/locale'
5834
5835
5836if test "x$POSUB" != x; then
5837
5838 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5839echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5840 # Look for .po and .gmo files in the source directory.
5841 CATALOGS=
5842 XLINGUAS=
5843 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5844 # If there aren't any .gmo files the shell will give us the
5845 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5846 # weeded out.
5847 case "$cat" in *\**)
5848 continue;;
5849 esac
5850 # The quadruple backslash is collapsed to a double backslash
5851 # by the backticks, then collapsed again by the double quotes,
5852 # leaving us with one backslash in the sed expression (right
5853 # before the dot that mustn't act as a wildcard).
5854 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5855 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5856 # The user is allowed to set LINGUAS to a list of languages to
5857 # install catalogs for. If it's empty that means "all of them."
5858 if test "x$LINGUAS" = x; then
5859 CATALOGS="$CATALOGS $cat"
5860 XLINGUAS="$XLINGUAS $lang"
5861 else
5862 case "$LINGUAS" in *$lang*)
5863 CATALOGS="$CATALOGS $cat"
5864 XLINGUAS="$XLINGUAS $lang"
5865 ;;
5866 esac
5867 fi
5868 done
5869 LINGUAS="$XLINGUAS"
5870 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5871echo "${ECHO_T}$LINGUAS" >&6
5872
5873 CONFIG_ALL="$CONFIG_ALL all-po"
5874 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5875 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5876 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5877fi
5878
5879PACKAGE=gdb
5880
5881cat >>confdefs.h <<_ACEOF
5882#define PACKAGE "$PACKAGE"
5883_ACEOF
5884
5885
5886
5887debugdir=${libdir}/debug
5888
5889
5890# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5891if test "${with_separate_debug_dir+set}" = set; then
5892 withval="$with_separate_debug_dir"
5893 debugdir="${withval}"
5894fi;
5895
5896
5897 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5899 ac_define_dir=`eval echo $debugdir`
5900 ac_define_dir=`eval echo $ac_define_dir`
5901
5902cat >>confdefs.h <<_ACEOF
5903#define DEBUGDIR "$ac_define_dir"
5904_ACEOF
5905
5906
5907#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5908
5909
5910
5911subdirs="$subdirs doc testsuite"
5912
5913
121ce6e5
DJ
5914# Provide defaults for some variables set by the per-host and per-target
5915# configuration.
5916gdb_host_obs=posix-hdep.o
5917
bec39cab
AC
5918. $srcdir/configure.host
5919
5920. $srcdir/configure.tgt
5921
5922# Fetch the default architecture and default target vector from BFD.
5923targ=$target; . $srcdir/../bfd/config.bfd
5924
5925# We only want the first architecture, so strip off the others if
5926# there is more than one.
5927targ_archs=`echo $targ_archs | sed 's/ .*//'`
5928
5929if test "x$targ_archs" != x; then
5930
5931cat >>confdefs.h <<_ACEOF
5932#define DEFAULT_BFD_ARCH $targ_archs
5933_ACEOF
5934
5935fi
5936if test "x$targ_defvec" != x; then
5937
5938cat >>confdefs.h <<_ACEOF
5939#define DEFAULT_BFD_VEC $targ_defvec
5940_ACEOF
5941
5942fi
5943
5944test "$program_prefix" != NONE &&
5945 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5946# Use a double $ so make ignores it.
5947test "$program_suffix" != NONE &&
5948 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5949# Double any \ or $. echo might interpret backslashes.
5950# By default was `s,x,x', remove it if useless.
5951cat <<\_ACEOF >conftest.sed
5952s/[\\$]/&&/g;s/;s,x,x,$//
5953_ACEOF
5954program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5955rm conftest.sed
5956
5957
5958# The CLI cannot be disabled yet, but may be in the future.
5959
5960# Enable CLI.
5961# Check whether --enable-gdbcli or --disable-gdbcli was given.
5962if test "${enable_gdbcli+set}" = set; then
5963 enableval="$enable_gdbcli"
5964 case $enableval in
5965 yes)
5966 ;;
5967 no)
5968 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5969echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5970 { (exit 1); exit 1; }; } ;;
5971 *)
5972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
5973echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
5974 { (exit 1); exit 1; }; } ;;
5975 esac
5976else
5977 enable_gdbcli=yes
5978fi;
5979if test x"$enable_gdbcli" = xyes; then
5980 if test -d $srcdir/cli; then
5981 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5982 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5983 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5984 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5985 fi
5986fi
5987
5988# Enable MI.
5989# Check whether --enable-gdbmi or --disable-gdbmi was given.
5990if test "${enable_gdbmi+set}" = set; then
5991 enableval="$enable_gdbmi"
5992 case $enableval in
5993 yes | no)
5994 ;;
5995 *)
5996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
5997echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
5998 { (exit 1); exit 1; }; } ;;
5999 esac
6000else
6001 enable_gdbmi=yes
6002fi;
6003if test x"$enable_gdbmi" = xyes; then
6004 if test -d $srcdir/mi; then
6005 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6006 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6007 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6008 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6009 fi
6010fi
6011
6012# Enable TUI.
6013# Check whether --enable-tui or --disable-tui was given.
6014if test "${enable_tui+set}" = set; then
6015 enableval="$enable_tui"
6016 case $enableval in
6017 yes | no)
6018 ;;
6019 *)
6020 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6021echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6022 { (exit 1); exit 1; }; } ;;
6023 esac
6024else
6025 enable_tui=yes
6026fi;
6027
6028# Enable gdbtk.
6029# Check whether --enable-gdbtk or --disable-gdbtk was given.
6030if test "${enable_gdbtk+set}" = set; then
6031 enableval="$enable_gdbtk"
6032 case $enableval in
6033 yes | no)
6034 ;;
6035 *)
6036 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6037echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6038 { (exit 1); exit 1; }; } ;;
6039 esac
6040else
04ac69aa 6041 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
6042 enable_gdbtk=yes
6043 else
6044 enable_gdbtk=no
6045 fi
6046fi;
6047# We unconditionally disable gdbtk tests on selected platforms.
6048case $host_os in
6049 go32* | windows*)
6050 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6051echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6052 enable_gdbtk=no ;;
6053esac
6054
6055# Libunwind support.
6056
6057# Check whether --with-libunwind or --without-libunwind was given.
6058if test "${with_libunwind+set}" = set; then
6059 withval="$with_libunwind"
6060 case "${withval}" in
6061 yes) enable_libunwind=yes ;;
6062 no) enable_libunwind=no ;;
6063 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6064echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6065 { (exit 1); exit 1; }; } ;;
6066esac
6067else
6068
6069
6070for ac_header in libunwind.h
6071do
6072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6073if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo "$as_me:$LINENO: checking for $ac_header" >&5
6075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6076if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078fi
6079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6081else
6082 # Is the header compilable?
6083echo "$as_me:$LINENO: checking $ac_header usability" >&5
6084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6085cat >conftest.$ac_ext <<_ACEOF
6086/* confdefs.h. */
6087_ACEOF
6088cat confdefs.h >>conftest.$ac_ext
6089cat >>conftest.$ac_ext <<_ACEOF
6090/* end confdefs.h. */
6091$ac_includes_default
6092#include <$ac_header>
6093_ACEOF
6094rm -f conftest.$ac_objext
6095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096 (eval $ac_compile) 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
121ce6e5 6103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; } &&
6109 { ac_try='test -s conftest.$ac_objext'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6115 ac_header_compiler=yes
6116else
6117 echo "$as_me: failed program was:" >&5
6118sed 's/^/| /' conftest.$ac_ext >&5
6119
6120ac_header_compiler=no
6121fi
6122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6124echo "${ECHO_T}$ac_header_compiler" >&6
6125
6126# Is the header present?
6127echo "$as_me:$LINENO: checking $ac_header presence" >&5
6128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6129cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
6135#include <$ac_header>
6136_ACEOF
6137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } >/dev/null; then
6145 if test -s conftest.err; then
6146 ac_cpp_err=$ac_c_preproc_warn_flag
6147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6148 else
6149 ac_cpp_err=
6150 fi
6151else
6152 ac_cpp_err=yes
6153fi
6154if test -z "$ac_cpp_err"; then
6155 ac_header_preproc=yes
6156else
6157 echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 ac_header_preproc=no
6161fi
6162rm -f conftest.err conftest.$ac_ext
6163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6164echo "${ECHO_T}$ac_header_preproc" >&6
6165
6166# So? What about this header?
6167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6168 yes:no: )
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6173 ac_header_preproc=yes
6174 ;;
6175 no:yes:* )
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6188 (
6189 cat <<\_ASBOX
6190## ------------------------------------------ ##
6191## Report this to the AC_PACKAGE_NAME lists. ##
6192## ------------------------------------------ ##
6193_ASBOX
6194 ) |
6195 sed "s/^/$as_me: WARNING: /" >&2
6196 ;;
6197esac
6198echo "$as_me:$LINENO: checking for $ac_header" >&5
6199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6200if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 eval "$as_ac_Header=\$ac_header_preproc"
6204fi
6205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6207
6208fi
6209if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6212_ACEOF
6213
6214fi
6215
6216done
6217
6218
6219for ac_header in libunwind-ia64.h
6220do
6221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6222if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223 echo "$as_me:$LINENO: checking for $ac_header" >&5
6224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227fi
6228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6230else
6231 # Is the header compilable?
6232echo "$as_me:$LINENO: checking $ac_header usability" >&5
6233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6234cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h. */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h. */
6240$ac_includes_default
6241#include <$ac_header>
6242_ACEOF
6243rm -f conftest.$ac_objext
6244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245 (eval $ac_compile) 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
121ce6e5 6252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_header_compiler=yes
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269ac_header_compiler=no
6270fi
6271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6273echo "${ECHO_T}$ac_header_compiler" >&6
6274
6275# Is the header present?
6276echo "$as_me:$LINENO: checking $ac_header presence" >&5
6277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6278cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284#include <$ac_header>
6285_ACEOF
6286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null; then
6294 if test -s conftest.err; then
6295 ac_cpp_err=$ac_c_preproc_warn_flag
6296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6297 else
6298 ac_cpp_err=
6299 fi
6300else
6301 ac_cpp_err=yes
6302fi
6303if test -z "$ac_cpp_err"; then
6304 ac_header_preproc=yes
6305else
6306 echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 ac_header_preproc=no
6310fi
6311rm -f conftest.err conftest.$ac_ext
6312echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6313echo "${ECHO_T}$ac_header_preproc" >&6
6314
6315# So? What about this header?
6316case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6317 yes:no: )
6318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6321echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6322 ac_header_preproc=yes
6323 ;;
6324 no:yes:* )
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6326echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6328echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6330echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6332echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6336echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6337 (
6338 cat <<\_ASBOX
6339## ------------------------------------------ ##
6340## Report this to the AC_PACKAGE_NAME lists. ##
6341## ------------------------------------------ ##
6342_ASBOX
6343 ) |
6344 sed "s/^/$as_me: WARNING: /" >&2
6345 ;;
6346esac
6347echo "$as_me:$LINENO: checking for $ac_header" >&5
6348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6349if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
6352 eval "$as_ac_Header=\$ac_header_preproc"
6353fi
6354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6356
6357fi
6358if test `eval echo '${'$as_ac_Header'}'` = yes; then
6359 cat >>confdefs.h <<_ACEOF
6360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361_ACEOF
6362
6363fi
6364
6365done
6366
6367 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6368 enable_libunwind=yes;
6369 fi
6370
6371fi;
6372
6373if test x"$enable_libunwind" = xyes; then
6374
6375for ac_header in libunwind.h
6376do
6377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383fi
6384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386else
6387 # Is the header compilable?
6388echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
6397#include <$ac_header>
6398_ACEOF
6399rm -f conftest.$ac_objext
6400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
121ce6e5 6408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_header_compiler=yes
6421else
6422 echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425ac_header_compiler=no
6426fi
6427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6429echo "${ECHO_T}$ac_header_compiler" >&6
6430
6431# Is the header present?
6432echo "$as_me:$LINENO: checking $ac_header presence" >&5
6433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6434cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h. */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h. */
6440#include <$ac_header>
6441_ACEOF
6442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } >/dev/null; then
6450 if test -s conftest.err; then
6451 ac_cpp_err=$ac_c_preproc_warn_flag
6452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6453 else
6454 ac_cpp_err=
6455 fi
6456else
6457 ac_cpp_err=yes
6458fi
6459if test -z "$ac_cpp_err"; then
6460 ac_header_preproc=yes
6461else
6462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 ac_header_preproc=no
6466fi
6467rm -f conftest.err conftest.$ac_ext
6468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469echo "${ECHO_T}$ac_header_preproc" >&6
6470
6471# So? What about this header?
6472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6473 yes:no: )
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6478 ac_header_preproc=yes
6479 ;;
6480 no:yes:* )
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6484echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6488echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6493 (
6494 cat <<\_ASBOX
6495## ------------------------------------------ ##
6496## Report this to the AC_PACKAGE_NAME lists. ##
6497## ------------------------------------------ ##
6498_ASBOX
6499 ) |
6500 sed "s/^/$as_me: WARNING: /" >&2
6501 ;;
6502esac
6503echo "$as_me:$LINENO: checking for $ac_header" >&5
6504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6505if eval "test \"\${$as_ac_Header+set}\" = set"; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 eval "$as_ac_Header=\$ac_header_preproc"
6509fi
6510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6512
6513fi
6514if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h <<_ACEOF
6516#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517_ACEOF
6518
6519fi
6520
6521done
6522
6523
6524for ac_header in libunwind-ia64.h
6525do
6526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528 echo "$as_me:$LINENO: checking for $ac_header" >&5
6529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6530if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532fi
6533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6535else
6536 # Is the header compilable?
6537echo "$as_me:$LINENO: checking $ac_header usability" >&5
6538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6539cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h. */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h. */
6545$ac_includes_default
6546#include <$ac_header>
6547_ACEOF
6548rm -f conftest.$ac_objext
6549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
121ce6e5 6557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_header_compiler=yes
6570else
6571 echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574ac_header_compiler=no
6575fi
6576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6578echo "${ECHO_T}$ac_header_compiler" >&6
6579
6580# Is the header present?
6581echo "$as_me:$LINENO: checking $ac_header presence" >&5
6582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6583cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h. */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h. */
6589#include <$ac_header>
6590_ACEOF
6591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } >/dev/null; then
6599 if test -s conftest.err; then
6600 ac_cpp_err=$ac_c_preproc_warn_flag
6601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6602 else
6603 ac_cpp_err=
6604 fi
6605else
6606 ac_cpp_err=yes
6607fi
6608if test -z "$ac_cpp_err"; then
6609 ac_header_preproc=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_header_preproc=no
6615fi
6616rm -f conftest.err conftest.$ac_ext
6617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618echo "${ECHO_T}$ac_header_preproc" >&6
6619
6620# So? What about this header?
6621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6622 yes:no: )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6627 ac_header_preproc=yes
6628 ;;
6629 no:yes:* )
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6642 (
6643 cat <<\_ASBOX
6644## ------------------------------------------ ##
6645## Report this to the AC_PACKAGE_NAME lists. ##
6646## ------------------------------------------ ##
6647_ASBOX
6648 ) |
6649 sed "s/^/$as_me: WARNING: /" >&2
6650 ;;
6651esac
6652echo "$as_me:$LINENO: checking for $ac_header" >&5
6653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6654if eval "test \"\${$as_ac_Header+set}\" = set"; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657 eval "$as_ac_Header=\$ac_header_preproc"
6658fi
6659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6661
6662fi
6663if test `eval echo '${'$as_ac_Header'}'` = yes; then
6664 cat >>confdefs.h <<_ACEOF
6665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666_ACEOF
6667
6668fi
6669
6670done
6671
60ca704f
SE
6672
6673cat >>confdefs.h <<\_ACEOF
bec39cab
AC
6674#define HAVE_LIBUNWIND 1
6675_ACEOF
6676
6677 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6678 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6679 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6680fi
6681
6682# Profiling support.
6683# Check whether --enable-profiling or --disable-profiling was given.
6684if test "${enable_profiling+set}" = set; then
6685 enableval="$enable_profiling"
6686 case $enableval in
6687 yes | no)
6688 ;;
6689 *)
6690 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6691echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6692 { (exit 1); exit 1; }; } ;;
6693 esac
6694else
6695 enable_profiling=no
6696fi;
6697
6698
6699
6700for ac_func in monstartup _mcleanup
6701do
6702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703echo "$as_me:$LINENO: checking for $ac_func" >&5
6704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6705if eval "test \"\${$as_ac_var+set}\" = set"; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707else
6708 cat >conftest.$ac_ext <<_ACEOF
6709/* confdefs.h. */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h. */
6714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6716#define $ac_func innocuous_$ac_func
6717
6718/* System header to define __stub macros and hopefully few prototypes,
6719 which can conflict with char $ac_func (); below.
6720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721 <limits.h> exists even on freestanding compilers. */
6722
6723#ifdef __STDC__
6724# include <limits.h>
6725#else
6726# include <assert.h>
6727#endif
6728
6729#undef $ac_func
6730
6731/* Override any gcc2 internal prototype to avoid an error. */
6732#ifdef __cplusplus
6733extern "C"
6734{
6735#endif
6736/* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6738char $ac_func ();
6739/* The GNU C library defines this for functions which it implements
6740 to always fail with ENOSYS. Some functions are actually named
6741 something starting with __ and the normal name is an alias. */
6742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6743choke me
6744#else
6745char (*f) () = $ac_func;
6746#endif
6747#ifdef __cplusplus
6748}
6749#endif
6750
6751int
6752main ()
6753{
6754return f != $ac_func;
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759rm -f conftest.$ac_objext conftest$ac_exeext
6760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761 (eval $ac_link) 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
121ce6e5 6768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 eval "$as_ac_var=yes"
6781else
6782 echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785eval "$as_ac_var=no"
6786fi
6787rm -f conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789fi
6790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6792if test `eval echo '${'$as_ac_var'}'` = yes; then
6793 cat >>confdefs.h <<_ACEOF
6794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6795_ACEOF
6796
6797fi
6798done
6799
6800echo "$as_me:$LINENO: checking for _etext" >&5
6801echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6802if test "${ac_cv_var__etext+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 cat >conftest.$ac_ext <<_ACEOF
6806/* confdefs.h. */
6807_ACEOF
6808cat confdefs.h >>conftest.$ac_ext
6809cat >>conftest.$ac_ext <<_ACEOF
6810/* end confdefs.h. */
6811#include <stdlib.h>
6812extern char _etext;
6813
6814int
6815main ()
6816{
6817free (&_etext);
6818 ;
6819 return 0;
6820}
6821_ACEOF
6822rm -f conftest.$ac_objext conftest$ac_exeext
6823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
121ce6e5 6831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest$ac_exeext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_cv_var__etext=yes
6844else
6845 echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848ac_cv_var__etext=no
6849fi
6850rm -f conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852fi
6853echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6854echo "${ECHO_T}$ac_cv_var__etext" >&6
6855if test $ac_cv_var__etext = yes; then
6856
6857cat >>confdefs.h <<\_ACEOF
6858#define HAVE__ETEXT 1
6859_ACEOF
6860
6861fi
6862if test "$enable_profiling" = yes ; then
6863 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6864 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6865echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6866 { (exit 1); exit 1; }; }
6867 fi
6868 PROFILE_CFLAGS=-pg
6869 OLD_CFLAGS="$CFLAGS"
6870 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6871
6872 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6873echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6874if test "${ac_cv_cc_supports_pg+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6876else
bec39cab
AC
6877 cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h. */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h. */
6883
6884int
6885main ()
6886{
6887int x;
6888 ;
6889 return 0;
6890}
6891_ACEOF
6892rm -f conftest.$ac_objext
6893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
121ce6e5 6901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest.$ac_objext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 ac_cv_cc_supports_pg=yes
6914else
6915 echo "$as_me: failed program was:" >&5
6916sed 's/^/| /' conftest.$ac_ext >&5
6917
6918ac_cv_cc_supports_pg=no
6919fi
6920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6921fi
6922echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6923echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6924
6925 if test $ac_cv_cc_supports_pg = no; then
6926 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6927echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6928 { (exit 1); exit 1; }; }
6929 fi
6930
6931 CFLAGS="$OLD_CFLAGS"
6932fi
6933
6934# --------------------- #
6935# Checks for programs. #
6936# --------------------- #
6937
6938for ac_prog in gawk mawk nawk awk
6939do
6940 # Extract the first word of "$ac_prog", so it can be a program name with args.
6941set dummy $ac_prog; ac_word=$2
6942echo "$as_me:$LINENO: checking for $ac_word" >&5
6943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6944if test "${ac_cv_prog_AWK+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946else
6947 if test -n "$AWK"; then
6948 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_AWK="$ac_prog"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961done
6962done
6963
6964fi
6965fi
6966AWK=$ac_cv_prog_AWK
6967if test -n "$AWK"; then
6968 echo "$as_me:$LINENO: result: $AWK" >&5
6969echo "${ECHO_T}$AWK" >&6
6970else
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
6973fi
6974
6975 test -n "$AWK" && break
6976done
6977
6978# Find a good install program. We prefer a C program (faster),
6979# so one script is as good as another. But avoid the broken or
6980# incompatible versions:
6981# SysV /etc/install, /usr/sbin/install
6982# SunOS /usr/etc/install
6983# IRIX /sbin/install
6984# AIX /bin/install
6985# AmigaOS /C/install, which installs bootblocks on floppy discs
6986# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6987# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6988# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6989# OS/2's system install, which has a completely different semantic
6990# ./install, which can be erroneously created by make from ./install.sh.
6991echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6992echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6993if test -z "$INSTALL"; then
6994if test "${ac_cv_path_install+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 # Account for people who put trailing slashes in PATH elements.
7003case $as_dir/ in
7004 ./ | .// | /cC/* | \
7005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7006 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7007 /usr/ucb/* ) ;;
c906108c 7008 *)
bec39cab
AC
7009 # OSF1 and SCO ODT 3.0 have their own names for install.
7010 # Don't use installbsd from OSF since it installs stuff as root
7011 # by default.
7012 for ac_prog in ginstall scoinst install; do
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7015 if test $ac_prog = install &&
7016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7017 # AIX install. It has an incompatible calling convention.
7018 :
7019 elif test $ac_prog = install &&
7020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7021 # program-specific install script used by HP pwplus--don't use.
7022 :
7023 else
7024 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7025 break 3
7026 fi
7027 fi
7028 done
7029 done
7030 ;;
c906108c 7031esac
bec39cab
AC
7032done
7033
7034
7035fi
7036 if test "${ac_cv_path_install+set}" = set; then
7037 INSTALL=$ac_cv_path_install
7038 else
7039 # As a last resort, use the slow shell script. We don't cache a
7040 # path for INSTALL within a source directory, because that will
7041 # break other packages using the cache if that directory is
7042 # removed, or if the path is relative.
7043 INSTALL=$ac_install_sh
7044 fi
7045fi
7046echo "$as_me:$LINENO: result: $INSTALL" >&5
7047echo "${ECHO_T}$INSTALL" >&6
7048
7049# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7050# It thinks the first close brace ends the variable substitution.
7051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7052
7053test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7054
7055test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7056
7057echo "$as_me:$LINENO: checking whether ln -s works" >&5
7058echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7059LN_S=$as_ln_s
7060if test "$LN_S" = "ln -s"; then
7061 echo "$as_me:$LINENO: result: yes" >&5
7062echo "${ECHO_T}yes" >&6
7063else
7064 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7065echo "${ECHO_T}no, using $LN_S" >&6
7066fi
7067
7068if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7070set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7071echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7073if test "${ac_cv_prog_RANLIB+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 if test -n "$RANLIB"; then
7077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090done
7091done
7092
7093fi
7094fi
7095RANLIB=$ac_cv_prog_RANLIB
7096if test -n "$RANLIB"; then
7097 echo "$as_me:$LINENO: result: $RANLIB" >&5
7098echo "${ECHO_T}$RANLIB" >&6
7099else
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102fi
7103
7104fi
7105if test -z "$ac_cv_prog_RANLIB"; then
7106 ac_ct_RANLIB=$RANLIB
7107 # Extract the first word of "ranlib", so it can be a program name with args.
7108set dummy ranlib; ac_word=$2
7109echo "$as_me:$LINENO: checking for $ac_word" >&5
7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114 if test -n "$ac_ct_RANLIB"; then
7115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7116else
7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_ac_ct_RANLIB="ranlib"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129done
7130
7131 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7132fi
7133fi
7134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7135if test -n "$ac_ct_RANLIB"; then
7136 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7137echo "${ECHO_T}$ac_ct_RANLIB" >&6
7138else
7139 echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6
7141fi
7142
7143 RANLIB=$ac_ct_RANLIB
7144else
7145 RANLIB="$ac_cv_prog_RANLIB"
7146fi
7147
7148for ac_prog in 'bison -y' byacc
7149do
7150 # Extract the first word of "$ac_prog", so it can be a program name with args.
7151set dummy $ac_prog; ac_word=$2
7152echo "$as_me:$LINENO: checking for $ac_word" >&5
7153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7154if test "${ac_cv_prog_YACC+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157 if test -n "$YACC"; then
7158 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7159else
7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_YACC="$ac_prog"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171done
7172done
7173
7174fi
7175fi
7176YACC=$ac_cv_prog_YACC
7177if test -n "$YACC"; then
7178 echo "$as_me:$LINENO: result: $YACC" >&5
7179echo "${ECHO_T}$YACC" >&6
7180else
7181 echo "$as_me:$LINENO: result: no" >&5
7182echo "${ECHO_T}no" >&6
7183fi
7184
7185 test -n "$YACC" && break
7186done
7187test -n "$YACC" || YACC="yacc"
7188
7189
7190if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7192set dummy ${ac_tool_prefix}ar; ac_word=$2
7193echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7195if test "${ac_cv_prog_AR+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198 if test -n "$AR"; then
7199 ac_cv_prog_AR="$AR" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_AR="${ac_tool_prefix}ar"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
7214
7215fi
7216fi
7217AR=$ac_cv_prog_AR
7218if test -n "$AR"; then
7219 echo "$as_me:$LINENO: result: $AR" >&5
7220echo "${ECHO_T}$AR" >&6
7221else
7222 echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6
7224fi
7225
7226fi
7227if test -z "$ac_cv_prog_AR"; then
7228 ac_ct_AR=$AR
7229 # Extract the first word of "ar", so it can be a program name with args.
7230set dummy ar; ac_word=$2
7231echo "$as_me:$LINENO: checking for $ac_word" >&5
7232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236 if test -n "$ac_ct_AR"; then
7237 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_AR="ar"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250done
7251done
7252
7253fi
7254fi
7255ac_ct_AR=$ac_cv_prog_ac_ct_AR
7256if test -n "$ac_ct_AR"; then
7257 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7258echo "${ECHO_T}$ac_ct_AR" >&6
7259else
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262fi
7263
7264 AR=$ac_ct_AR
7265else
7266 AR="$ac_cv_prog_AR"
7267fi
7268
7269if test -n "$ac_tool_prefix"; then
7270 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7271set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7272echo "$as_me:$LINENO: checking for $ac_word" >&5
7273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7274if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276else
7277 if test -n "$DLLTOOL"; then
7278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7279else
7280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291done
7292done
7293
7294fi
7295fi
7296DLLTOOL=$ac_cv_prog_DLLTOOL
7297if test -n "$DLLTOOL"; then
7298 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7299echo "${ECHO_T}$DLLTOOL" >&6
7300else
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303fi
7304
7305fi
7306if test -z "$ac_cv_prog_DLLTOOL"; then
7307 ac_ct_DLLTOOL=$DLLTOOL
7308 # Extract the first word of "dlltool", so it can be a program name with args.
7309set dummy dlltool; ac_word=$2
7310echo "$as_me:$LINENO: checking for $ac_word" >&5
7311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7312if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315 if test -n "$ac_ct_DLLTOOL"; then
7316 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7317else
7318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329done
7330done
7331
7332fi
7333fi
7334ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7335if test -n "$ac_ct_DLLTOOL"; then
7336 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7337echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7338else
7339 echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
7341fi
7342
7343 DLLTOOL=$ac_ct_DLLTOOL
7344else
7345 DLLTOOL="$ac_cv_prog_DLLTOOL"
7346fi
7347
7348if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7350set dummy ${ac_tool_prefix}windres; ac_word=$2
7351echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353if test "${ac_cv_prog_WINDRES+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356 if test -n "$WINDRES"; then
7357 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370done
7371done
7372
7373fi
7374fi
7375WINDRES=$ac_cv_prog_WINDRES
7376if test -n "$WINDRES"; then
7377 echo "$as_me:$LINENO: result: $WINDRES" >&5
7378echo "${ECHO_T}$WINDRES" >&6
7379else
7380 echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6
7382fi
7383
7384fi
7385if test -z "$ac_cv_prog_WINDRES"; then
7386 ac_ct_WINDRES=$WINDRES
7387 # Extract the first word of "windres", so it can be a program name with args.
7388set dummy windres; ac_word=$2
7389echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 if test -n "$ac_ct_WINDRES"; then
7395 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_WINDRES="windres"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409done
7410
7411fi
7412fi
7413ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7414if test -n "$ac_ct_WINDRES"; then
7415 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7416echo "${ECHO_T}$ac_ct_WINDRES" >&6
7417else
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
c906108c 7420fi
bec39cab
AC
7421
7422 WINDRES=$ac_ct_WINDRES
c906108c 7423else
bec39cab 7424 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
7425fi
7426
bec39cab
AC
7427
7428# Needed for GNU/Hurd.
7429if test -n "$ac_tool_prefix"; then
7430 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7431set dummy ${ac_tool_prefix}mig; ac_word=$2
7432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434if test "${ac_cv_prog_MIG+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7436else
bec39cab
AC
7437 if test -n "$MIG"; then
7438 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453
c906108c 7454fi
bec39cab
AC
7455fi
7456MIG=$ac_cv_prog_MIG
7457if test -n "$MIG"; then
7458 echo "$as_me:$LINENO: result: $MIG" >&5
7459echo "${ECHO_T}$MIG" >&6
c906108c 7460else
bec39cab
AC
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
c906108c
SS
7463fi
7464
bec39cab
AC
7465fi
7466if test -z "$ac_cv_prog_MIG"; then
7467 ac_ct_MIG=$MIG
7468 # Extract the first word of "mig", so it can be a program name with args.
7469set dummy mig; ac_word=$2
7470echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 if test -n "$ac_ct_MIG"; then
7476 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7477else
7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_ac_ct_MIG="mig"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489done
7490done
c906108c 7491
bec39cab
AC
7492fi
7493fi
7494ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7495if test -n "$ac_ct_MIG"; then
7496 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7497echo "${ECHO_T}$ac_ct_MIG" >&6
7498else
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501fi
c906108c 7502
bec39cab
AC
7503 MIG=$ac_ct_MIG
7504else
7505 MIG="$ac_cv_prog_MIG"
7506fi
c906108c 7507
c906108c 7508
bec39cab
AC
7509# ---------------------- #
7510# Checks for libraries. #
7511# ---------------------- #
c906108c 7512
bec39cab 7513# We might need to link with -lm; most simulators need it.
c906108c 7514
bec39cab
AC
7515echo "$as_me:$LINENO: checking for main in -lm" >&5
7516echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7517if test "${ac_cv_lib_m_main+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 ac_check_lib_save_LIBS=$LIBS
7521LIBS="-lm $LIBS"
7522cat >conftest.$ac_ext <<_ACEOF
7523/* confdefs.h. */
7524_ACEOF
7525cat confdefs.h >>conftest.$ac_ext
7526cat >>conftest.$ac_ext <<_ACEOF
7527/* end confdefs.h. */
c906108c 7528
c906108c 7529
bec39cab
AC
7530int
7531main ()
7532{
7533main ();
7534 ;
7535 return 0;
7536}
7537_ACEOF
7538rm -f conftest.$ac_objext conftest$ac_exeext
7539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540 (eval $ac_link) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
121ce6e5 7547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_lib_m_main=yes
7560else
7561 echo "$as_me: failed program was:" >&5
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
7564ac_cv_lib_m_main=no
7565fi
7566rm -f conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568LIBS=$ac_check_lib_save_LIBS
7569fi
7570echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7571echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7572if test $ac_cv_lib_m_main = yes; then
7573 cat >>confdefs.h <<_ACEOF
7574#define HAVE_LIBM 1
7575_ACEOF
7576
7577 LIBS="-lm $LIBS"
c906108c 7578
c906108c 7579fi
bec39cab
AC
7580
7581
7582# We need to link with -lw to get `wctype' on Solaris before Solaris
7583# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7584# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7585# is known to have this problem). Therefore we avoid libw if we can.
7586echo "$as_me:$LINENO: checking for wctype" >&5
7587echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7588if test "${ac_cv_func_wctype+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 cat >conftest.$ac_ext <<_ACEOF
7592/* confdefs.h. */
7593_ACEOF
7594cat confdefs.h >>conftest.$ac_ext
7595cat >>conftest.$ac_ext <<_ACEOF
7596/* end confdefs.h. */
7597/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7599#define wctype innocuous_wctype
7600
7601/* System header to define __stub macros and hopefully few prototypes,
7602 which can conflict with char wctype (); below.
7603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604 <limits.h> exists even on freestanding compilers. */
7605
7606#ifdef __STDC__
7607# include <limits.h>
7608#else
7609# include <assert.h>
7610#endif
7611
7612#undef wctype
7613
7614/* Override any gcc2 internal prototype to avoid an error. */
7615#ifdef __cplusplus
7616extern "C"
7617{
7618#endif
7619/* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7621char wctype ();
7622/* The GNU C library defines this for functions which it implements
7623 to always fail with ENOSYS. Some functions are actually named
7624 something starting with __ and the normal name is an alias. */
7625#if defined (__stub_wctype) || defined (__stub___wctype)
7626choke me
7627#else
7628char (*f) () = wctype;
7629#endif
7630#ifdef __cplusplus
7631}
7632#endif
7633
7634int
7635main ()
7636{
7637return f != wctype;
7638 ;
7639 return 0;
7640}
7641_ACEOF
7642rm -f conftest.$ac_objext conftest$ac_exeext
7643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644 (eval $ac_link) 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
121ce6e5 7651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 (eval $ac_try) 2>&5
7654 ac_status=$?
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; } &&
7657 { ac_try='test -s conftest$ac_exeext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 ac_cv_func_wctype=yes
7664else
7665 echo "$as_me: failed program was:" >&5
7666sed 's/^/| /' conftest.$ac_ext >&5
7667
7668ac_cv_func_wctype=no
7669fi
7670rm -f conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
7672fi
7673echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7674echo "${ECHO_T}$ac_cv_func_wctype" >&6
7675if test $ac_cv_func_wctype = yes; then
7676 :
c906108c 7677else
c906108c 7678
bec39cab
AC
7679echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7680echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7681if test "${ac_cv_lib_w_wctype+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684 ac_check_lib_save_LIBS=$LIBS
7685LIBS="-lw $LIBS"
7686cat >conftest.$ac_ext <<_ACEOF
7687/* confdefs.h. */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h. */
c906108c 7692
bec39cab
AC
7693/* Override any gcc2 internal prototype to avoid an error. */
7694#ifdef __cplusplus
7695extern "C"
7696#endif
7697/* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699char wctype ();
7700int
7701main ()
7702{
7703wctype ();
7704 ;
7705 return 0;
7706}
7707_ACEOF
7708rm -f conftest.$ac_objext conftest$ac_exeext
7709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710 (eval $ac_link) 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
121ce6e5 7717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest$ac_exeext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_lib_w_wctype=yes
7730else
7731 echo "$as_me: failed program was:" >&5
7732sed 's/^/| /' conftest.$ac_ext >&5
7733
7734ac_cv_lib_w_wctype=no
7735fi
7736rm -f conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7738LIBS=$ac_check_lib_save_LIBS
7739fi
7740echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7741echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7742if test $ac_cv_lib_w_wctype = yes; then
7743 cat >>confdefs.h <<_ACEOF
7744#define HAVE_LIBW 1
7745_ACEOF
c906108c 7746
bec39cab 7747 LIBS="-lw $LIBS"
c906108c 7748
bec39cab 7749fi
c906108c 7750
bec39cab 7751fi
c906108c 7752
ddc9cd0f 7753
bec39cab
AC
7754# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7755echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7756echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7757if test "${ac_cv_search_gethostbyname+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760 ac_func_search_save_LIBS=$LIBS
7761ac_cv_search_gethostbyname=no
7762cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h. */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h. */
ddc9cd0f 7768
bec39cab
AC
7769/* Override any gcc2 internal prototype to avoid an error. */
7770#ifdef __cplusplus
7771extern "C"
7772#endif
7773/* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7775char gethostbyname ();
7776int
7777main ()
7778{
7779gethostbyname ();
7780 ;
7781 return 0;
7782}
7783_ACEOF
7784rm -f conftest.$ac_objext conftest$ac_exeext
7785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7786 (eval $ac_link) 2>conftest.er1
7787 ac_status=$?
7788 grep -v '^ *+' conftest.er1 >conftest.err
7789 rm -f conftest.er1
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } &&
121ce6e5 7793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_search_gethostbyname="none required"
7806else
7807 echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7809
bec39cab
AC
7810fi
7811rm -f conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7813if test "$ac_cv_search_gethostbyname" = no; then
7814 for ac_lib in nsl; do
7815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7816 cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h. */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
7821/* end confdefs.h. */
ddc9cd0f 7822
bec39cab
AC
7823/* Override any gcc2 internal prototype to avoid an error. */
7824#ifdef __cplusplus
7825extern "C"
7826#endif
7827/* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7829char gethostbyname ();
7830int
7831main ()
7832{
7833gethostbyname ();
7834 ;
7835 return 0;
7836}
7837_ACEOF
7838rm -f conftest.$ac_objext conftest$ac_exeext
7839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>conftest.er1
7841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
121ce6e5 7847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_search_gethostbyname="-l$ac_lib"
7860break
7861else
7862 echo "$as_me: failed program was:" >&5
7863sed 's/^/| /' conftest.$ac_ext >&5
7864
7865fi
7866rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
ddc9cd0f 7868 done
bec39cab
AC
7869fi
7870LIBS=$ac_func_search_save_LIBS
7871fi
7872echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7873echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7874if test "$ac_cv_search_gethostbyname" != no; then
7875 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
ddc9cd0f 7876
ddc9cd0f
AC
7877fi
7878
0fbb3da7 7879
bec39cab
AC
7880# Some systems (e.g. Solaris) have `socketpair' in libsocket.
7881echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7882echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7883if test "${ac_cv_search_socketpair+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886 ac_func_search_save_LIBS=$LIBS
7887ac_cv_search_socketpair=no
7888cat >conftest.$ac_ext <<_ACEOF
7889/* confdefs.h. */
7890_ACEOF
7891cat confdefs.h >>conftest.$ac_ext
7892cat >>conftest.$ac_ext <<_ACEOF
7893/* end confdefs.h. */
0fbb3da7 7894
bec39cab
AC
7895/* Override any gcc2 internal prototype to avoid an error. */
7896#ifdef __cplusplus
7897extern "C"
7898#endif
7899/* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7901char socketpair ();
7902int
7903main ()
7904{
7905socketpair ();
7906 ;
7907 return 0;
7908}
7909_ACEOF
7910rm -f conftest.$ac_objext conftest$ac_exeext
7911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>conftest.er1
7913 ac_status=$?
7914 grep -v '^ *+' conftest.er1 >conftest.err
7915 rm -f conftest.er1
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
121ce6e5 7919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 (eval $ac_try) 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_search_socketpair="none required"
7932else
7933 echo "$as_me: failed program was:" >&5
7934sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 7935
5b5d99cf 7936fi
bec39cab
AC
7937rm -f conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939if test "$ac_cv_search_socketpair" = no; then
7940 for ac_lib in socket; do
7941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7942 cat >conftest.$ac_ext <<_ACEOF
7943/* confdefs.h. */
7944_ACEOF
7945cat confdefs.h >>conftest.$ac_ext
7946cat >>conftest.$ac_ext <<_ACEOF
7947/* end confdefs.h. */
5b5d99cf 7948
bec39cab
AC
7949/* Override any gcc2 internal prototype to avoid an error. */
7950#ifdef __cplusplus
7951extern "C"
7952#endif
7953/* We use char because int might match the return type of a gcc2
7954 builtin and then its argument prototype would still apply. */
7955char socketpair ();
7956int
7957main ()
7958{
7959socketpair ();
7960 ;
7961 return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext conftest$ac_exeext
7965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
121ce6e5 7973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_search_socketpair="-l$ac_lib"
7986break
7987else
7988 echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7990
bec39cab
AC
7991fi
7992rm -f conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 done
7995fi
7996LIBS=$ac_func_search_save_LIBS
7997fi
7998echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
7999echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8000if test "$ac_cv_search_socketpair" != no; then
8001 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
96baa820 8002
bec39cab 8003fi
96baa820 8004
c906108c 8005
bec39cab
AC
8006# For the TUI, we need enhanced curses functionality.
8007#
8008# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8009# curses library because the latter might not provide all the
8010# functionality we need. However, this leads to problems on systems
8011# where the linker searches /usr/local/lib, but the compiler doesn't
8012# search /usr/local/include, if ncurses is installed in /usr/local. A
8013# default installation of ncurses on alpha*-dec-osf* will lead to such
8014# a situation.
8015echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8016echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8017if test "${ac_cv_search_waddstr+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020 ac_func_search_save_LIBS=$LIBS
8021ac_cv_search_waddstr=no
8022cat >conftest.$ac_ext <<_ACEOF
8023/* confdefs.h. */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h. */
c906108c 8028
bec39cab
AC
8029/* Override any gcc2 internal prototype to avoid an error. */
8030#ifdef __cplusplus
8031extern "C"
8032#endif
8033/* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8035char waddstr ();
8036int
8037main ()
8038{
8039waddstr ();
8040 ;
8041 return 0;
8042}
8043_ACEOF
8044rm -f conftest.$ac_objext conftest$ac_exeext
8045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
121ce6e5 8053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_search_waddstr="none required"
8066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8069
bec39cab
AC
8070fi
8071rm -f conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073if test "$ac_cv_search_waddstr" = no; then
8074 for ac_lib in ncurses cursesX curses; do
8075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8076 cat >conftest.$ac_ext <<_ACEOF
8077/* confdefs.h. */
8078_ACEOF
8079cat confdefs.h >>conftest.$ac_ext
8080cat >>conftest.$ac_ext <<_ACEOF
8081/* end confdefs.h. */
1ba607ad 8082
bec39cab
AC
8083/* Override any gcc2 internal prototype to avoid an error. */
8084#ifdef __cplusplus
8085extern "C"
8086#endif
8087/* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8089char waddstr ();
8090int
8091main ()
8092{
8093waddstr ();
8094 ;
8095 return 0;
8096}
8097_ACEOF
8098rm -f conftest.$ac_objext conftest$ac_exeext
8099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
121ce6e5 8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest$ac_exeext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_cv_search_waddstr="-l$ac_lib"
8120break
8121else
8122 echo "$as_me: failed program was:" >&5
8123sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
8124
8125fi
bec39cab
AC
8126rm -f conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8128 done
1ba607ad 8129fi
bec39cab
AC
8130LIBS=$ac_func_search_save_LIBS
8131fi
8132echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8133echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8134if test "$ac_cv_search_waddstr" != no; then
8135 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 8136
8bb2c122 8137fi
8bb2c122 8138
8bb2c122 8139
bec39cab
AC
8140# Since GDB uses Readline, we need termcap functionality. In many
8141# cases this will be provided by the curses library, but some systems
8142# have a seperate termcap library, or no curses library at all.
8bb2c122 8143
bec39cab
AC
8144case $host_os in
8145 cygwin*)
8146 if test -d $srcdir/libtermcap; then
8147 LIBS="../libtermcap/libtermcap.a $LIBS"
8148 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8149 fi ;;
8150 go32* | *djgpp*)
8151 ac_cv_search_tgetent="none required"
8152 ;;
7ef34f2c
MM
8153 *mingw32*)
8154 ac_cv_search_tgetent="none required"
8155 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8156 ;;
bec39cab 8157esac
627af7ea 8158
bec39cab
AC
8159# These are the libraries checked by Readline.
8160echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8161echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8162if test "${ac_cv_search_tgetent+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165 ac_func_search_save_LIBS=$LIBS
8166ac_cv_search_tgetent=no
8167cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8173
8174/* Override any gcc2 internal prototype to avoid an error. */
8175#ifdef __cplusplus
8176extern "C"
8177#endif
8178/* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180char tgetent ();
8181int
8182main ()
8183{
8184tgetent ();
8185 ;
8186 return 0;
8187}
8188_ACEOF
8189rm -f conftest.$ac_objext conftest$ac_exeext
8190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
121ce6e5 8198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_search_tgetent="none required"
627af7ea 8211else
bec39cab
AC
8212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8214
627af7ea 8215fi
bec39cab
AC
8216rm -f conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8218if test "$ac_cv_search_tgetent" = no; then
8219 for ac_lib in termcap tinfo curses ncurses; do
8220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8221 cat >conftest.$ac_ext <<_ACEOF
8222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
627af7ea 8227
bec39cab
AC
8228/* Override any gcc2 internal prototype to avoid an error. */
8229#ifdef __cplusplus
8230extern "C"
8231#endif
8232/* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8234char tgetent ();
8235int
8236main ()
8237{
8238tgetent ();
8239 ;
8240 return 0;
8241}
8242_ACEOF
8243rm -f conftest.$ac_objext conftest$ac_exeext
8244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
121ce6e5 8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_search_tgetent="-l$ac_lib"
8265break
627af7ea 8266else
bec39cab
AC
8267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 8269
627af7ea 8270fi
bec39cab
AC
8271rm -f conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8273 done
8274fi
8275LIBS=$ac_func_search_save_LIBS
8276fi
8277echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8278echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8279if test "$ac_cv_search_tgetent" != no; then
8280 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 8281
06825bd1
MK
8282fi
8283
06825bd1 8284
bec39cab
AC
8285if test "$ac_cv_search_tgetent" = no; then
8286 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8287echo "$as_me: error: no termcap library found" >&2;}
8288 { (exit 1); exit 1; }; }
8ee53726
MK
8289fi
8290
bec39cab
AC
8291# ------------------------- #
8292# Checks for header files. #
8293# ------------------------- #
8ee53726 8294
0e5d83e3 8295
bec39cab
AC
8296
8297
8298
8299
8300ac_header_dirent=no
8301for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8302 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8303echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8304echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8305if eval "test \"\${$as_ac_Header+set}\" = set"; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308 cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h. */
8310_ACEOF
8311cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h. */
8314#include <sys/types.h>
0e5d83e3 8315#include <$ac_hdr>
bec39cab
AC
8316
8317int
8318main ()
8319{
8320if ((DIR *) 0)
8321return 0;
8322 ;
8323 return 0;
8324}
8325_ACEOF
8326rm -f conftest.$ac_objext
8327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328 (eval $ac_compile) 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } &&
121ce6e5 8335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 (eval $ac_try) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest.$ac_objext'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 eval "$as_ac_Header=yes"
8348else
8349 echo "$as_me: failed program was:" >&5
8350sed 's/^/| /' conftest.$ac_ext >&5
8351
8352eval "$as_ac_Header=no"
8353fi
8354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8355fi
8356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8358if test `eval echo '${'$as_ac_Header'}'` = yes; then
8359 cat >>confdefs.h <<_ACEOF
8360#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8361_ACEOF
8362
8363ac_header_dirent=$ac_hdr; break
0e5d83e3 8364fi
0e5d83e3 8365
bec39cab
AC
8366done
8367# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8368if test $ac_header_dirent = dirent.h; then
8369 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8370echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8371if test "${ac_cv_search_opendir+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374 ac_func_search_save_LIBS=$LIBS
8375ac_cv_search_opendir=no
8376cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
0e5d83e3 8382
bec39cab
AC
8383/* Override any gcc2 internal prototype to avoid an error. */
8384#ifdef __cplusplus
8385extern "C"
8386#endif
8387/* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8389char opendir ();
8390int
8391main ()
8392{
8393opendir ();
8394 ;
8395 return 0;
8396}
8397_ACEOF
8398rm -f conftest.$ac_objext conftest$ac_exeext
8399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
121ce6e5 8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_search_opendir="none required"
8420else
8421 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424fi
8425rm -f conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
8427if test "$ac_cv_search_opendir" = no; then
8428 for ac_lib in dir; do
8429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8430 cat >conftest.$ac_ext <<_ACEOF
8431/* confdefs.h. */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
8435/* end confdefs.h. */
0e5d83e3 8436
bec39cab
AC
8437/* Override any gcc2 internal prototype to avoid an error. */
8438#ifdef __cplusplus
8439extern "C"
8440#endif
8441/* We use char because int might match the return type of a gcc2
8442 builtin and then its argument prototype would still apply. */
8443char opendir ();
8444int
8445main ()
8446{
8447opendir ();
8448 ;
8449 return 0;
8450}
8451_ACEOF
8452rm -f conftest.$ac_objext conftest$ac_exeext
8453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
121ce6e5 8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_search_opendir="-l$ac_lib"
8474break
0e5d83e3 8475else
bec39cab
AC
8476 echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
0e5d83e3 8478
0e5d83e3 8479fi
bec39cab
AC
8480rm -f conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8482 done
0e5d83e3 8483fi
bec39cab 8484LIBS=$ac_func_search_save_LIBS
0e5d83e3 8485fi
bec39cab
AC
8486echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8487echo "${ECHO_T}$ac_cv_search_opendir" >&6
8488if test "$ac_cv_search_opendir" != no; then
8489 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 8490
0e5d83e3
JJ
8491fi
8492
d28f9cdf 8493else
bec39cab
AC
8494 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8495echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8496if test "${ac_cv_search_opendir+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498else
8499 ac_func_search_save_LIBS=$LIBS
8500ac_cv_search_opendir=no
8501cat >conftest.$ac_ext <<_ACEOF
8502/* confdefs.h. */
8503_ACEOF
8504cat confdefs.h >>conftest.$ac_ext
8505cat >>conftest.$ac_ext <<_ACEOF
8506/* end confdefs.h. */
d28f9cdf 8507
d28f9cdf 8508/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8509#ifdef __cplusplus
8510extern "C"
8511#endif
d28f9cdf 8512/* We use char because int might match the return type of a gcc2
bec39cab
AC
8513 builtin and then its argument prototype would still apply. */
8514char opendir ();
8515int
8516main ()
8517{
8518opendir ();
8519 ;
8520 return 0;
8521}
8522_ACEOF
8523rm -f conftest.$ac_objext conftest$ac_exeext
8524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
121ce6e5 8532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
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 x; 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. */
d28f9cdf 8561
bec39cab
AC
8562/* Override any gcc2 internal prototype to avoid an error. */
8563#ifdef __cplusplus
8564extern "C"
d28f9cdf 8565#endif
bec39cab
AC
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); } &&
121ce6e5 8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest$ac_exeext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_cv_search_opendir="-l$ac_lib"
8599break
d28f9cdf 8600else
bec39cab
AC
8601 echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
d28f9cdf 8604fi
bec39cab
AC
8605rm -f conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8607 done
8608fi
8609LIBS=$ac_func_search_save_LIBS
d28f9cdf 8610fi
bec39cab
AC
8611echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8612echo "${ECHO_T}$ac_cv_search_opendir" >&6
8613if test "$ac_cv_search_opendir" != no; then
8614 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 8615
d28f9cdf
DJ
8616fi
8617
bec39cab 8618fi
b0b1c2c0 8619
bec39cab
AC
8620echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8621echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8622if test "${ac_cv_header_stat_broken+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 8624else
bec39cab
AC
8625 cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
8631#include <sys/types.h>
8632#include <sys/stat.h>
b0b1c2c0 8633
bec39cab
AC
8634#if defined(S_ISBLK) && defined(S_IFDIR)
8635# if S_ISBLK (S_IFDIR)
8636You lose.
8637# endif
8638#endif
b0b1c2c0 8639
bec39cab
AC
8640#if defined(S_ISBLK) && defined(S_IFCHR)
8641# if S_ISBLK (S_IFCHR)
8642You lose.
8643# endif
8644#endif
d28f9cdf 8645
bec39cab
AC
8646#if defined(S_ISLNK) && defined(S_IFREG)
8647# if S_ISLNK (S_IFREG)
8648You lose.
8649# endif
8650#endif
d28f9cdf 8651
bec39cab
AC
8652#if defined(S_ISSOCK) && defined(S_IFREG)
8653# if S_ISSOCK (S_IFREG)
8654You lose.
8655# endif
8656#endif
8657
8658_ACEOF
8659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660 $EGREP "You lose" >/dev/null 2>&1; then
8661 ac_cv_header_stat_broken=yes
d28f9cdf 8662else
bec39cab 8663 ac_cv_header_stat_broken=no
d28f9cdf
DJ
8664fi
8665rm -f conftest*
d28f9cdf 8666
d28f9cdf 8667fi
bec39cab
AC
8668echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8669echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8670if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 8671
bec39cab
AC
8672cat >>confdefs.h <<\_ACEOF
8673#define STAT_MACROS_BROKEN 1
8674_ACEOF
8bb2c122 8675
7a292a7a 8676fi
bec39cab
AC
8677
8678echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8679echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8680if test "${ac_cv_header_stdc+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 8682else
bec39cab
AC
8683 cat >conftest.$ac_ext <<_ACEOF
8684/* confdefs.h. */
8685_ACEOF
8686cat confdefs.h >>conftest.$ac_ext
8687cat >>conftest.$ac_ext <<_ACEOF
8688/* end confdefs.h. */
8689#include <stdlib.h>
8690#include <stdarg.h>
8691#include <string.h>
8692#include <float.h>
7a292a7a 8693
bec39cab
AC
8694int
8695main ()
8696{
7a292a7a 8697
bec39cab
AC
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext
8703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
121ce6e5 8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_header_stdc=yes
c906108c 8724else
bec39cab
AC
8725 echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8727
bec39cab 8728ac_cv_header_stdc=no
c906108c 8729fi
bec39cab 8730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 8731
bec39cab
AC
8732if test $ac_cv_header_stdc = yes; then
8733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8734 cat >conftest.$ac_ext <<_ACEOF
8735/* confdefs.h. */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h. */
8740#include <string.h>
c906108c 8741
bec39cab
AC
8742_ACEOF
8743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744 $EGREP "memchr" >/dev/null 2>&1; then
8745 :
8bb2c122 8746else
bec39cab 8747 ac_cv_header_stdc=no
8bb2c122 8748fi
bec39cab
AC
8749rm -f conftest*
8750
c906108c
SS
8751fi
8752
bec39cab
AC
8753if test $ac_cv_header_stdc = yes; then
8754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8755 cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
8761#include <stdlib.h>
8762
8763_ACEOF
8764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8765 $EGREP "free" >/dev/null 2>&1; then
8766 :
c906108c 8767else
bec39cab 8768 ac_cv_header_stdc=no
c906108c 8769fi
bec39cab
AC
8770rm -f conftest*
8771
c906108c
SS
8772fi
8773
bec39cab
AC
8774if test $ac_cv_header_stdc = yes; then
8775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8776 if test "$cross_compiling" = yes; then
8777 :
c906108c 8778else
bec39cab
AC
8779 cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785#include <ctype.h>
8786#if ((' ' & 0x0FF) == 0x020)
8787# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8788# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8789#else
8790# define ISLOWER(c) \
8791 (('a' <= (c) && (c) <= 'i') \
8792 || ('j' <= (c) && (c) <= 'r') \
8793 || ('s' <= (c) && (c) <= 'z'))
8794# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8795#endif
8796
8797#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8798int
8799main ()
8800{
8801 int i;
8802 for (i = 0; i < 256; i++)
8803 if (XOR (islower (i), ISLOWER (i))
8804 || toupper (i) != TOUPPER (i))
8805 exit(2);
8806 exit (0);
8807}
8808_ACEOF
8809rm -f conftest$ac_exeext
8810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811 (eval $ac_link) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 :
8821else
8822 echo "$as_me: program exited with status $ac_status" >&5
8823echo "$as_me: failed program was:" >&5
8824sed 's/^/| /' conftest.$ac_ext >&5
8825
8826( exit $ac_status )
8827ac_cv_header_stdc=no
c906108c 8828fi
bec39cab 8829rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 8830fi
c906108c 8831fi
bec39cab
AC
8832fi
8833echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8834echo "${ECHO_T}$ac_cv_header_stdc" >&6
8835if test $ac_cv_header_stdc = yes; then
c906108c 8836
bec39cab
AC
8837cat >>confdefs.h <<\_ACEOF
8838#define STDC_HEADERS 1
8839_ACEOF
c906108c 8840
bec39cab 8841fi
8bb2c122 8842
bec39cab 8843
7cb9022a 8844for ac_header in nlist.h
bec39cab
AC
8845do
8846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847if eval "test \"\${$as_ac_Header+set}\" = set"; then
8848 echo "$as_me:$LINENO: checking for $ac_header" >&5
8849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8850if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852fi
8853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8855else
8856 # Is the header compilable?
8857echo "$as_me:$LINENO: checking $ac_header usability" >&5
8858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8859cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
8865$ac_includes_default
8866#include <$ac_header>
8867_ACEOF
8868rm -f conftest.$ac_objext
8869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
121ce6e5 8877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest.$ac_objext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_header_compiler=yes
8890else
8891 echo "$as_me: failed program was:" >&5
8892sed 's/^/| /' conftest.$ac_ext >&5
8893
8894ac_header_compiler=no
8895fi
8896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8897echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8898echo "${ECHO_T}$ac_header_compiler" >&6
8899
8900# Is the header present?
8901echo "$as_me:$LINENO: checking $ac_header presence" >&5
8902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8903cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h. */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h. */
8909#include <$ac_header>
8910_ACEOF
8911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } >/dev/null; then
8919 if test -s conftest.err; then
8920 ac_cpp_err=$ac_c_preproc_warn_flag
8921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8922 else
8923 ac_cpp_err=
8924 fi
c906108c 8925else
bec39cab 8926 ac_cpp_err=yes
c906108c 8927fi
bec39cab
AC
8928if test -z "$ac_cpp_err"; then
8929 ac_header_preproc=yes
c906108c 8930else
bec39cab
AC
8931 echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 8933
bec39cab
AC
8934 ac_header_preproc=no
8935fi
8936rm -f conftest.err conftest.$ac_ext
8937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8938echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8939
bec39cab
AC
8940# So? What about this header?
8941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8942 yes:no: )
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8947 ac_header_preproc=yes
8948 ;;
8949 no:yes:* )
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8962 (
8963 cat <<\_ASBOX
8964## ------------------------------------------ ##
8965## Report this to the AC_PACKAGE_NAME lists. ##
8966## ------------------------------------------ ##
8967_ASBOX
8968 ) |
8969 sed "s/^/$as_me: WARNING: /" >&2
8970 ;;
8971esac
8972echo "$as_me:$LINENO: checking for $ac_header" >&5
8973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8974if eval "test \"\${$as_ac_Header+set}\" = set"; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 8976else
bec39cab 8977 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 8978fi
bec39cab
AC
8979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8981
95ca63c4 8982fi
bec39cab
AC
8983if test `eval echo '${'$as_ac_Header'}'` = yes; then
8984 cat >>confdefs.h <<_ACEOF
8985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8986_ACEOF
8987
95ca63c4
CF
8988fi
8989
bec39cab 8990done
95ca63c4
CF
8991
8992
7cb9022a 8993for ac_header in link.h
bec39cab
AC
8994do
8995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 8996echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
8997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9000else
7cb9022a 9001 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9002/* confdefs.h. */
9003_ACEOF
9004cat confdefs.h >>conftest.$ac_ext
9005cat >>conftest.$ac_ext <<_ACEOF
9006/* end confdefs.h. */
7cb9022a
MK
9007#if HAVE_SYS_TYPES_H
9008# include <sys/types.h>
9009#endif
9010#if HAVE_NLIST_H
9011# include <nlist.h>
9012#endif
9013
9014
bec39cab
AC
9015#include <$ac_header>
9016_ACEOF
9017rm -f conftest.$ac_objext
9018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019 (eval $ac_compile) 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
121ce6e5 9026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
7cb9022a 9038 eval "$as_ac_Header=yes"
bec39cab
AC
9039else
9040 echo "$as_me: failed program was:" >&5
9041sed 's/^/| /' conftest.$ac_ext >&5
9042
7cb9022a 9043eval "$as_ac_Header=no"
bec39cab
AC
9044fi
9045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
9046fi
9047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9049if test `eval echo '${'$as_ac_Header'}'` = yes; then
9050 cat >>confdefs.h <<_ACEOF
9051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9052_ACEOF
95ca63c4 9053
bec39cab 9054fi
95ca63c4 9055
bec39cab 9056done
95ca63c4 9057
c906108c 9058
7cb9022a 9059for ac_header in machine/reg.h
bec39cab
AC
9060do
9061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062if eval "test \"\${$as_ac_Header+set}\" = set"; then
9063 echo "$as_me:$LINENO: checking for $ac_header" >&5
9064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067fi
9068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9070else
9071 # Is the header compilable?
9072echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9074cat >conftest.$ac_ext <<_ACEOF
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
9080$ac_includes_default
9081#include <$ac_header>
9082_ACEOF
9083rm -f conftest.$ac_objext
9084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085 (eval $ac_compile) 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
121ce6e5 9092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_header_compiler=yes
9105else
9106 echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109ac_header_compiler=no
9110fi
9111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9113echo "${ECHO_T}$ac_header_compiler" >&6
9114
9115# Is the header present?
9116echo "$as_me:$LINENO: checking $ac_header presence" >&5
9117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9118cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124#include <$ac_header>
9125_ACEOF
9126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } >/dev/null; then
9134 if test -s conftest.err; then
9135 ac_cpp_err=$ac_c_preproc_warn_flag
9136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9137 else
9138 ac_cpp_err=
9139 fi
75c6e08a 9140else
bec39cab 9141 ac_cpp_err=yes
75c6e08a 9142fi
bec39cab
AC
9143if test -z "$ac_cpp_err"; then
9144 ac_header_preproc=yes
9145else
9146 echo "$as_me: failed program was:" >&5
9147sed 's/^/| /' conftest.$ac_ext >&5
9148
9149 ac_header_preproc=no
75c6e08a 9150fi
bec39cab
AC
9151rm -f conftest.err conftest.$ac_ext
9152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9153echo "${ECHO_T}$ac_header_preproc" >&6
9154
9155# So? What about this header?
9156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9157 yes:no: )
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9162 ac_header_preproc=yes
9163 ;;
9164 no:yes:* )
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9177 (
9178 cat <<\_ASBOX
9179## ------------------------------------------ ##
9180## Report this to the AC_PACKAGE_NAME lists. ##
9181## ------------------------------------------ ##
9182_ASBOX
9183 ) |
9184 sed "s/^/$as_me: WARNING: /" >&2
9185 ;;
9186esac
9187echo "$as_me:$LINENO: checking for $ac_header" >&5
9188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9189if eval "test \"\${$as_ac_Header+set}\" = set"; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 9191else
bec39cab
AC
9192 eval "$as_ac_Header=\$ac_header_preproc"
9193fi
9194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9196
75c6e08a 9197fi
bec39cab
AC
9198if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199 cat >>confdefs.h <<_ACEOF
9200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9201_ACEOF
75c6e08a 9202
bec39cab 9203fi
75c6e08a 9204
bec39cab 9205done
75c6e08a
MK
9206
9207
9a156167 9208
bec39cab
AC
9209for ac_header in poll.h sys/poll.h
9210do
9211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9212if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213 echo "$as_me:$LINENO: checking for $ac_header" >&5
9214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217fi
9218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9220else
9221 # Is the header compilable?
9222echo "$as_me:$LINENO: checking $ac_header usability" >&5
9223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9224cat >conftest.$ac_ext <<_ACEOF
9225/* confdefs.h. */
9226_ACEOF
9227cat confdefs.h >>conftest.$ac_ext
9228cat >>conftest.$ac_ext <<_ACEOF
9229/* end confdefs.h. */
9230$ac_includes_default
9231#include <$ac_header>
9232_ACEOF
9233rm -f conftest.$ac_objext
9234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235 (eval $ac_compile) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
121ce6e5 9242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_header_compiler=yes
9255else
9256 echo "$as_me: failed program was:" >&5
9257sed 's/^/| /' conftest.$ac_ext >&5
9258
9259ac_header_compiler=no
9260fi
9261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9263echo "${ECHO_T}$ac_header_compiler" >&6
9264
9265# Is the header present?
9266echo "$as_me:$LINENO: checking $ac_header presence" >&5
9267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9268cat >conftest.$ac_ext <<_ACEOF
9269/* confdefs.h. */
9270_ACEOF
9271cat confdefs.h >>conftest.$ac_ext
9272cat >>conftest.$ac_ext <<_ACEOF
9273/* end confdefs.h. */
9274#include <$ac_header>
9275_ACEOF
9276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9278 ac_status=$?
9279 grep -v '^ *+' conftest.er1 >conftest.err
9280 rm -f conftest.er1
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } >/dev/null; then
9284 if test -s conftest.err; then
9285 ac_cpp_err=$ac_c_preproc_warn_flag
9286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9287 else
9288 ac_cpp_err=
9289 fi
9a156167 9290else
bec39cab 9291 ac_cpp_err=yes
9a156167 9292fi
bec39cab
AC
9293if test -z "$ac_cpp_err"; then
9294 ac_header_preproc=yes
9295else
9296 echo "$as_me: failed program was:" >&5
9297sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9298
bec39cab 9299 ac_header_preproc=no
9a156167 9300fi
bec39cab
AC
9301rm -f conftest.err conftest.$ac_ext
9302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9303echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9304
bec39cab
AC
9305# So? What about this header?
9306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9307 yes:no: )
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9312 ac_header_preproc=yes
9313 ;;
9314 no:yes:* )
9315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9327 (
9328 cat <<\_ASBOX
9329## ------------------------------------------ ##
9330## Report this to the AC_PACKAGE_NAME lists. ##
9331## ------------------------------------------ ##
9332_ASBOX
9333 ) |
9334 sed "s/^/$as_me: WARNING: /" >&2
9335 ;;
9336esac
9337echo "$as_me:$LINENO: checking for $ac_header" >&5
9338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9339if eval "test \"\${$as_ac_Header+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9341else
bec39cab 9342 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9343fi
bec39cab
AC
9344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 9346
bec39cab
AC
9347fi
9348if test `eval echo '${'$as_ac_Header'}'` = yes; then
9349 cat >>confdefs.h <<_ACEOF
9350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9351_ACEOF
9a156167 9352
bec39cab 9353fi
9a156167 9354
bec39cab 9355done
9a156167 9356
9a156167 9357
9a156167 9358
bec39cab
AC
9359
9360for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9361do
9362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363if eval "test \"\${$as_ac_Header+set}\" = set"; then
9364 echo "$as_me:$LINENO: checking for $ac_header" >&5
9365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9366if eval "test \"\${$as_ac_Header+set}\" = set"; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368fi
9369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9371else
9372 # Is the header compilable?
9373echo "$as_me:$LINENO: checking $ac_header usability" >&5
9374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9375cat >conftest.$ac_ext <<_ACEOF
9376/* confdefs.h. */
9377_ACEOF
9378cat confdefs.h >>conftest.$ac_ext
9379cat >>conftest.$ac_ext <<_ACEOF
9380/* end confdefs.h. */
9381$ac_includes_default
9382#include <$ac_header>
9383_ACEOF
9384rm -f conftest.$ac_objext
9385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
121ce6e5 9393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_header_compiler=yes
9406else
9407 echo "$as_me: failed program was:" >&5
9408sed 's/^/| /' conftest.$ac_ext >&5
9409
9410ac_header_compiler=no
9411fi
9412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9414echo "${ECHO_T}$ac_header_compiler" >&6
9415
9416# Is the header present?
9417echo "$as_me:$LINENO: checking $ac_header presence" >&5
9418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9419cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
9425#include <$ac_header>
9426_ACEOF
9427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } >/dev/null; then
9435 if test -s conftest.err; then
9436 ac_cpp_err=$ac_c_preproc_warn_flag
9437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9438 else
9439 ac_cpp_err=
9440 fi
9a156167 9441else
bec39cab 9442 ac_cpp_err=yes
9a156167 9443fi
bec39cab
AC
9444if test -z "$ac_cpp_err"; then
9445 ac_header_preproc=yes
9446else
9447 echo "$as_me: failed program was:" >&5
9448sed 's/^/| /' conftest.$ac_ext >&5
9a156167 9449
bec39cab 9450 ac_header_preproc=no
9a156167 9451fi
bec39cab
AC
9452rm -f conftest.err conftest.$ac_ext
9453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9454echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 9455
bec39cab
AC
9456# So? What about this header?
9457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9458 yes:no: )
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9463 ac_header_preproc=yes
9464 ;;
9465 no:yes:* )
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9478 (
9479 cat <<\_ASBOX
9480## ------------------------------------------ ##
9481## Report this to the AC_PACKAGE_NAME lists. ##
9482## ------------------------------------------ ##
9483_ASBOX
9484 ) |
9485 sed "s/^/$as_me: WARNING: /" >&2
9486 ;;
9487esac
9488echo "$as_me:$LINENO: checking for $ac_header" >&5
9489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9490if eval "test \"\${$as_ac_Header+set}\" = set"; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9492else
bec39cab 9493 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9494fi
bec39cab
AC
9495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
9497
9498fi
bec39cab
AC
9499if test `eval echo '${'$as_ac_Header'}'` = yes; then
9500 cat >>confdefs.h <<_ACEOF
9501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9502_ACEOF
9a156167 9503
bec39cab
AC
9504fi
9505
9506done
9a156167 9507
c890192f 9508
bec39cab
AC
9509for ac_header in stddef.h
9510do
9511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9512if eval "test \"\${$as_ac_Header+set}\" = set"; then
9513 echo "$as_me:$LINENO: checking for $ac_header" >&5
9514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9515if eval "test \"\${$as_ac_Header+set}\" = set"; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517fi
9518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9520else
9521 # Is the header compilable?
9522echo "$as_me:$LINENO: checking $ac_header usability" >&5
9523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9524cat >conftest.$ac_ext <<_ACEOF
9525/* confdefs.h. */
9526_ACEOF
9527cat confdefs.h >>conftest.$ac_ext
9528cat >>conftest.$ac_ext <<_ACEOF
9529/* end confdefs.h. */
9530$ac_includes_default
9531#include <$ac_header>
9532_ACEOF
9533rm -f conftest.$ac_objext
9534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
121ce6e5 9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest.$ac_objext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_header_compiler=yes
9555else
9556 echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559ac_header_compiler=no
9560fi
9561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9563echo "${ECHO_T}$ac_header_compiler" >&6
9564
9565# Is the header present?
9566echo "$as_me:$LINENO: checking $ac_header presence" >&5
9567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9568cat >conftest.$ac_ext <<_ACEOF
9569/* confdefs.h. */
9570_ACEOF
9571cat confdefs.h >>conftest.$ac_ext
9572cat >>conftest.$ac_ext <<_ACEOF
9573/* end confdefs.h. */
9574#include <$ac_header>
9575_ACEOF
9576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } >/dev/null; then
9584 if test -s conftest.err; then
9585 ac_cpp_err=$ac_c_preproc_warn_flag
9586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9587 else
9588 ac_cpp_err=
9589 fi
c890192f 9590else
bec39cab
AC
9591 ac_cpp_err=yes
9592fi
9593if test -z "$ac_cpp_err"; then
9594 ac_header_preproc=yes
c890192f 9595else
bec39cab
AC
9596 echo "$as_me: failed program was:" >&5
9597sed 's/^/| /' conftest.$ac_ext >&5
9598
9599 ac_header_preproc=no
c890192f 9600fi
bec39cab
AC
9601rm -f conftest.err conftest.$ac_ext
9602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9603echo "${ECHO_T}$ac_header_preproc" >&6
9604
9605# So? What about this header?
9606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9607 yes:no: )
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9612 ac_header_preproc=yes
9613 ;;
9614 no:yes:* )
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9627 (
9628 cat <<\_ASBOX
9629## ------------------------------------------ ##
9630## Report this to the AC_PACKAGE_NAME lists. ##
9631## ------------------------------------------ ##
9632_ASBOX
9633 ) |
9634 sed "s/^/$as_me: WARNING: /" >&2
9635 ;;
9636esac
9637echo "$as_me:$LINENO: checking for $ac_header" >&5
9638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9639if eval "test \"\${$as_ac_Header+set}\" = set"; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 9641else
bec39cab 9642 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 9643fi
bec39cab
AC
9644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9646
c890192f 9647fi
bec39cab
AC
9648if test `eval echo '${'$as_ac_Header'}'` = yes; then
9649 cat >>confdefs.h <<_ACEOF
9650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9651_ACEOF
c890192f 9652
c890192f
MK
9653fi
9654
bec39cab 9655done
9a156167 9656
bec39cab
AC
9657
9658for ac_header in stdlib.h
9659do
9660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9661if eval "test \"\${$as_ac_Header+set}\" = set"; then
9662 echo "$as_me:$LINENO: checking for $ac_header" >&5
9663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9664if eval "test \"\${$as_ac_Header+set}\" = set"; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666fi
9667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9669else
9670 # Is the header compilable?
9671echo "$as_me:$LINENO: checking $ac_header usability" >&5
9672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9673cat >conftest.$ac_ext <<_ACEOF
9674/* confdefs.h. */
9675_ACEOF
9676cat confdefs.h >>conftest.$ac_ext
9677cat >>conftest.$ac_ext <<_ACEOF
9678/* end confdefs.h. */
9679$ac_includes_default
9680#include <$ac_header>
9681_ACEOF
9682rm -f conftest.$ac_objext
9683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684 (eval $ac_compile) 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
121ce6e5 9691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest.$ac_objext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 ac_header_compiler=yes
9704else
9705 echo "$as_me: failed program was:" >&5
9706sed 's/^/| /' conftest.$ac_ext >&5
9707
9708ac_header_compiler=no
9709fi
9710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9712echo "${ECHO_T}$ac_header_compiler" >&6
9713
9714# Is the header present?
9715echo "$as_me:$LINENO: checking $ac_header presence" >&5
9716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9717cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h. */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h. */
9723#include <$ac_header>
9724_ACEOF
9725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } >/dev/null; then
9733 if test -s conftest.err; then
9734 ac_cpp_err=$ac_c_preproc_warn_flag
9735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9736 else
9737 ac_cpp_err=
9738 fi
9a156167 9739else
bec39cab
AC
9740 ac_cpp_err=yes
9741fi
9742if test -z "$ac_cpp_err"; then
9743 ac_header_preproc=yes
9a156167 9744else
bec39cab
AC
9745 echo "$as_me: failed program was:" >&5
9746sed 's/^/| /' conftest.$ac_ext >&5
9747
9748 ac_header_preproc=no
9a156167 9749fi
bec39cab
AC
9750rm -f conftest.err conftest.$ac_ext
9751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9752echo "${ECHO_T}$ac_header_preproc" >&6
9753
9754# So? What about this header?
9755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9756 yes:no: )
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9761 ac_header_preproc=yes
9762 ;;
9763 no:yes:* )
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9776 (
9777 cat <<\_ASBOX
9778## ------------------------------------------ ##
9779## Report this to the AC_PACKAGE_NAME lists. ##
9780## ------------------------------------------ ##
9781_ASBOX
9782 ) |
9783 sed "s/^/$as_me: WARNING: /" >&2
9784 ;;
9785esac
9786echo "$as_me:$LINENO: checking for $ac_header" >&5
9787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9788if eval "test \"\${$as_ac_Header+set}\" = set"; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 9790else
bec39cab 9791 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 9792fi
bec39cab
AC
9793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9795
9a156167 9796fi
bec39cab
AC
9797if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9800_ACEOF
9a156167 9801
9a156167
MK
9802fi
9803
bec39cab
AC
9804done
9805
06825bd1 9806
bec39cab
AC
9807for ac_header in stdint.h
9808do
9809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9810if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811 echo "$as_me:$LINENO: checking for $ac_header" >&5
9812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815fi
9816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9818else
9819 # Is the header compilable?
9820echo "$as_me:$LINENO: checking $ac_header usability" >&5
9821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828$ac_includes_default
9829#include <$ac_header>
9830_ACEOF
9831rm -f conftest.$ac_objext
9832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
121ce6e5 9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest.$ac_objext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_header_compiler=yes
9853else
9854 echo "$as_me: failed program was:" >&5
9855sed 's/^/| /' conftest.$ac_ext >&5
9856
9857ac_header_compiler=no
9858fi
9859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9861echo "${ECHO_T}$ac_header_compiler" >&6
9862
9863# Is the header present?
9864echo "$as_me:$LINENO: checking $ac_header presence" >&5
9865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9866cat >conftest.$ac_ext <<_ACEOF
9867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
9871/* end confdefs.h. */
9872#include <$ac_header>
9873_ACEOF
9874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } >/dev/null; then
9882 if test -s conftest.err; then
9883 ac_cpp_err=$ac_c_preproc_warn_flag
9884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9885 else
9886 ac_cpp_err=
9887 fi
06825bd1 9888else
bec39cab
AC
9889 ac_cpp_err=yes
9890fi
9891if test -z "$ac_cpp_err"; then
9892 ac_header_preproc=yes
06825bd1 9893else
bec39cab
AC
9894 echo "$as_me: failed program was:" >&5
9895sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ac_header_preproc=no
06825bd1 9898fi
bec39cab
AC
9899rm -f conftest.err conftest.$ac_ext
9900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9901echo "${ECHO_T}$ac_header_preproc" >&6
9902
9903# So? What about this header?
9904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9905 yes:no: )
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9910 ac_header_preproc=yes
9911 ;;
9912 no:yes:* )
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9925 (
9926 cat <<\_ASBOX
9927## ------------------------------------------ ##
9928## Report this to the AC_PACKAGE_NAME lists. ##
9929## ------------------------------------------ ##
9930_ASBOX
9931 ) |
9932 sed "s/^/$as_me: WARNING: /" >&2
9933 ;;
9934esac
9935echo "$as_me:$LINENO: checking for $ac_header" >&5
9936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9937if eval "test \"\${$as_ac_Header+set}\" = set"; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 9939else
bec39cab 9940 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 9941fi
bec39cab
AC
9942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9944
06825bd1 9945fi
bec39cab
AC
9946if test `eval echo '${'$as_ac_Header'}'` = yes; then
9947 cat >>confdefs.h <<_ACEOF
9948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9949_ACEOF
06825bd1 9950
06825bd1 9951fi
4f0be353 9952
bec39cab 9953done
4f0be353 9954
06825bd1 9955
06825bd1 9956
bec39cab
AC
9957
9958for ac_header in string.h memory.h strings.h
9959do
9960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo "$as_me:$LINENO: checking for $ac_header" >&5
9963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9964if eval "test \"\${$as_ac_Header+set}\" = set"; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966fi
9967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9969else
9970 # Is the header compilable?
9971echo "$as_me:$LINENO: checking $ac_header usability" >&5
9972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9973cat >conftest.$ac_ext <<_ACEOF
9974/* confdefs.h. */
9975_ACEOF
9976cat confdefs.h >>conftest.$ac_ext
9977cat >>conftest.$ac_ext <<_ACEOF
9978/* end confdefs.h. */
9979$ac_includes_default
9980#include <$ac_header>
9981_ACEOF
9982rm -f conftest.$ac_objext
9983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
121ce6e5 9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_header_compiler=yes
10004else
10005 echo "$as_me: failed program was:" >&5
10006sed 's/^/| /' conftest.$ac_ext >&5
10007
10008ac_header_compiler=no
10009fi
10010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10012echo "${ECHO_T}$ac_header_compiler" >&6
10013
10014# Is the header present?
10015echo "$as_me:$LINENO: checking $ac_header presence" >&5
10016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10017cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
10023#include <$ac_header>
10024_ACEOF
10025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10036 else
10037 ac_cpp_err=
10038 fi
06825bd1 10039else
bec39cab
AC
10040 ac_cpp_err=yes
10041fi
10042if test -z "$ac_cpp_err"; then
10043 ac_header_preproc=yes
06825bd1 10044else
bec39cab
AC
10045 echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048 ac_header_preproc=no
06825bd1 10049fi
bec39cab
AC
10050rm -f conftest.err conftest.$ac_ext
10051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052echo "${ECHO_T}$ac_header_preproc" >&6
10053
10054# So? What about this header?
10055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10056 yes:no: )
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc=yes
10062 ;;
10063 no:yes:* )
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10067echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10071echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10076 (
10077 cat <<\_ASBOX
10078## ------------------------------------------ ##
10079## Report this to the AC_PACKAGE_NAME lists. ##
10080## ------------------------------------------ ##
10081_ASBOX
10082 ) |
10083 sed "s/^/$as_me: WARNING: /" >&2
10084 ;;
10085esac
10086echo "$as_me:$LINENO: checking for $ac_header" >&5
10087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10088if eval "test \"\${$as_ac_Header+set}\" = set"; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090else
10091 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 10092fi
bec39cab
AC
10093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 10095
06825bd1 10096fi
bec39cab
AC
10097if test `eval echo '${'$as_ac_Header'}'` = yes; then
10098 cat >>confdefs.h <<_ACEOF
10099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10100_ACEOF
06825bd1 10101
06825bd1
MK
10102fi
10103
bec39cab 10104done
5ee754fc 10105
bec39cab
AC
10106
10107for ac_header in sys/fault.h
5ee754fc 10108do
bec39cab
AC
10109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110if eval "test \"\${$as_ac_Header+set}\" = set"; then
10111 echo "$as_me:$LINENO: checking for $ac_header" >&5
10112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10113if eval "test \"\${$as_ac_Header+set}\" = set"; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10115fi
10116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10118else
10119 # Is the header compilable?
10120echo "$as_me:$LINENO: checking $ac_header usability" >&5
10121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10122cat >conftest.$ac_ext <<_ACEOF
10123/* confdefs.h. */
10124_ACEOF
10125cat confdefs.h >>conftest.$ac_ext
10126cat >>conftest.$ac_ext <<_ACEOF
10127/* end confdefs.h. */
10128$ac_includes_default
10129#include <$ac_header>
10130_ACEOF
10131rm -f conftest.$ac_objext
10132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10133 (eval $ac_compile) 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
121ce6e5 10140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest.$ac_objext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_header_compiler=yes
10153else
10154 echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
10157ac_header_compiler=no
10158fi
10159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10161echo "${ECHO_T}$ac_header_compiler" >&6
10162
10163# Is the header present?
10164echo "$as_me:$LINENO: checking $ac_header presence" >&5
10165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10166cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h. */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h. */
10172#include <$ac_header>
10173_ACEOF
10174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } >/dev/null; then
10182 if test -s conftest.err; then
10183 ac_cpp_err=$ac_c_preproc_warn_flag
10184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10185 else
10186 ac_cpp_err=
10187 fi
5ee754fc 10188else
bec39cab 10189 ac_cpp_err=yes
5ee754fc 10190fi
bec39cab
AC
10191if test -z "$ac_cpp_err"; then
10192 ac_header_preproc=yes
10193else
10194 echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10196
bec39cab 10197 ac_header_preproc=no
5ee754fc 10198fi
bec39cab
AC
10199rm -f conftest.err conftest.$ac_ext
10200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10201echo "${ECHO_T}$ac_header_preproc" >&6
10202
10203# So? What about this header?
10204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10205 yes:no: )
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10210 ac_header_preproc=yes
10211 ;;
10212 no:yes:* )
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10225 (
10226 cat <<\_ASBOX
10227## ------------------------------------------ ##
10228## Report this to the AC_PACKAGE_NAME lists. ##
10229## ------------------------------------------ ##
10230_ASBOX
10231 ) |
10232 sed "s/^/$as_me: WARNING: /" >&2
10233 ;;
10234esac
10235echo "$as_me:$LINENO: checking for $ac_header" >&5
10236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10237if eval "test \"\${$as_ac_Header+set}\" = set"; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10239else
bec39cab 10240 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10241fi
bec39cab
AC
10242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 10244
5ee754fc 10245fi
bec39cab
AC
10246if test `eval echo '${'$as_ac_Header'}'` = yes; then
10247 cat >>confdefs.h <<_ACEOF
10248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10249_ACEOF
c906108c 10250
5ee754fc 10251fi
bec39cab
AC
10252
10253done
10254
10255
10256for ac_header in sys/file.h
10257do
10258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10259if eval "test \"\${$as_ac_Header+set}\" = set"; then
10260 echo "$as_me:$LINENO: checking for $ac_header" >&5
10261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10262if eval "test \"\${$as_ac_Header+set}\" = set"; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264fi
10265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10267else
10268 # Is the header compilable?
10269echo "$as_me:$LINENO: checking $ac_header usability" >&5
10270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10271cat >conftest.$ac_ext <<_ACEOF
10272/* confdefs.h. */
10273_ACEOF
10274cat confdefs.h >>conftest.$ac_ext
10275cat >>conftest.$ac_ext <<_ACEOF
10276/* end confdefs.h. */
10277$ac_includes_default
10278#include <$ac_header>
10279_ACEOF
10280rm -f conftest.$ac_objext
10281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282 (eval $ac_compile) 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
121ce6e5 10289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest.$ac_objext'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_header_compiler=yes
10302else
10303 echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
10306ac_header_compiler=no
10307fi
10308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10310echo "${ECHO_T}$ac_header_compiler" >&6
10311
10312# Is the header present?
10313echo "$as_me:$LINENO: checking $ac_header presence" >&5
10314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10315cat >conftest.$ac_ext <<_ACEOF
10316/* confdefs.h. */
10317_ACEOF
10318cat confdefs.h >>conftest.$ac_ext
10319cat >>conftest.$ac_ext <<_ACEOF
10320/* end confdefs.h. */
10321#include <$ac_header>
10322_ACEOF
10323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } >/dev/null; then
10331 if test -s conftest.err; then
10332 ac_cpp_err=$ac_c_preproc_warn_flag
10333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10334 else
10335 ac_cpp_err=
10336 fi
5ee754fc 10337else
bec39cab 10338 ac_cpp_err=yes
5ee754fc 10339fi
bec39cab
AC
10340if test -z "$ac_cpp_err"; then
10341 ac_header_preproc=yes
10342else
10343 echo "$as_me: failed program was:" >&5
10344sed 's/^/| /' conftest.$ac_ext >&5
c906108c 10345
bec39cab 10346 ac_header_preproc=no
5ee754fc 10347fi
bec39cab
AC
10348rm -f conftest.err conftest.$ac_ext
10349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10350echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 10351
bec39cab
AC
10352# So? What about this header?
10353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10354 yes:no: )
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10359 ac_header_preproc=yes
10360 ;;
10361 no:yes:* )
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10374 (
10375 cat <<\_ASBOX
10376## ------------------------------------------ ##
10377## Report this to the AC_PACKAGE_NAME lists. ##
10378## ------------------------------------------ ##
10379_ASBOX
10380 ) |
10381 sed "s/^/$as_me: WARNING: /" >&2
10382 ;;
10383esac
10384echo "$as_me:$LINENO: checking for $ac_header" >&5
10385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10386if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10388else
bec39cab
AC
10389 eval "$as_ac_Header=\$ac_header_preproc"
10390fi
10391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10393
bec39cab
AC
10394fi
10395if test `eval echo '${'$as_ac_Header'}'` = yes; then
10396 cat >>confdefs.h <<_ACEOF
10397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10398_ACEOF
5ee754fc 10399
bec39cab 10400fi
5ee754fc 10401
bec39cab 10402done
5ee754fc 10403
5ee754fc 10404
bec39cab
AC
10405for ac_header in sys/filio.h
10406do
10407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409 echo "$as_me:$LINENO: checking for $ac_header" >&5
10410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10411if eval "test \"\${$as_ac_Header+set}\" = set"; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413fi
10414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10416else
10417 # Is the header compilable?
10418echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10420cat >conftest.$ac_ext <<_ACEOF
10421/* confdefs.h. */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h. */
10426$ac_includes_default
10427#include <$ac_header>
10428_ACEOF
10429rm -f conftest.$ac_objext
10430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
121ce6e5 10438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_header_compiler=yes
10451else
10452 echo "$as_me: failed program was:" >&5
10453sed 's/^/| /' conftest.$ac_ext >&5
10454
10455ac_header_compiler=no
10456fi
10457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10459echo "${ECHO_T}$ac_header_compiler" >&6
10460
10461# Is the header present?
10462echo "$as_me:$LINENO: checking $ac_header presence" >&5
10463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10464cat >conftest.$ac_ext <<_ACEOF
10465/* confdefs.h. */
10466_ACEOF
10467cat confdefs.h >>conftest.$ac_ext
10468cat >>conftest.$ac_ext <<_ACEOF
10469/* end confdefs.h. */
10470#include <$ac_header>
10471_ACEOF
10472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } >/dev/null; then
10480 if test -s conftest.err; then
10481 ac_cpp_err=$ac_c_preproc_warn_flag
10482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10483 else
10484 ac_cpp_err=
10485 fi
5ee754fc 10486else
bec39cab 10487 ac_cpp_err=yes
5ee754fc 10488fi
bec39cab
AC
10489if test -z "$ac_cpp_err"; then
10490 ac_header_preproc=yes
10491else
10492 echo "$as_me: failed program was:" >&5
10493sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10494
bec39cab 10495 ac_header_preproc=no
5ee754fc 10496fi
bec39cab
AC
10497rm -f conftest.err conftest.$ac_ext
10498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10500
bec39cab
AC
10501# So? What about this header?
10502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10503 yes:no: )
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10508 ac_header_preproc=yes
10509 ;;
10510 no:yes:* )
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10523 (
10524 cat <<\_ASBOX
10525## ------------------------------------------ ##
10526## Report this to the AC_PACKAGE_NAME lists. ##
10527## ------------------------------------------ ##
10528_ASBOX
10529 ) |
10530 sed "s/^/$as_me: WARNING: /" >&2
10531 ;;
10532esac
10533echo "$as_me:$LINENO: checking for $ac_header" >&5
10534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10535if eval "test \"\${$as_ac_Header+set}\" = set"; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10537else
bec39cab 10538 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10539fi
bec39cab
AC
10540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10542
5ee754fc 10543fi
bec39cab
AC
10544if test `eval echo '${'$as_ac_Header'}'` = yes; then
10545 cat >>confdefs.h <<_ACEOF
10546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10547_ACEOF
5ee754fc
MK
10548
10549fi
10550
bec39cab
AC
10551done
10552
10553
10554for ac_header in sys/ioctl.h
10555do
10556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10557if eval "test \"\${$as_ac_Header+set}\" = set"; then
10558 echo "$as_me:$LINENO: checking for $ac_header" >&5
10559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10560if eval "test \"\${$as_ac_Header+set}\" = set"; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562fi
10563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10565else
10566 # Is the header compilable?
10567echo "$as_me:$LINENO: checking $ac_header usability" >&5
10568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10569cat >conftest.$ac_ext <<_ACEOF
10570/* confdefs.h. */
10571_ACEOF
10572cat confdefs.h >>conftest.$ac_ext
10573cat >>conftest.$ac_ext <<_ACEOF
10574/* end confdefs.h. */
10575$ac_includes_default
10576#include <$ac_header>
10577_ACEOF
10578rm -f conftest.$ac_objext
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
121ce6e5 10587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_header_compiler=yes
10600else
10601 echo "$as_me: failed program was:" >&5
10602sed 's/^/| /' conftest.$ac_ext >&5
10603
10604ac_header_compiler=no
10605fi
10606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608echo "${ECHO_T}$ac_header_compiler" >&6
10609
10610# Is the header present?
10611echo "$as_me:$LINENO: checking $ac_header presence" >&5
10612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10613cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619#include <$ac_header>
10620_ACEOF
10621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } >/dev/null; then
10629 if test -s conftest.err; then
10630 ac_cpp_err=$ac_c_preproc_warn_flag
10631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10632 else
10633 ac_cpp_err=
10634 fi
5ee754fc 10635else
bec39cab 10636 ac_cpp_err=yes
5ee754fc 10637fi
bec39cab
AC
10638if test -z "$ac_cpp_err"; then
10639 ac_header_preproc=yes
10640else
10641 echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10643
bec39cab 10644 ac_header_preproc=no
5ee754fc 10645fi
bec39cab
AC
10646rm -f conftest.err conftest.$ac_ext
10647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10649
bec39cab
AC
10650# So? What about this header?
10651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652 yes:no: )
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10657 ac_header_preproc=yes
10658 ;;
10659 no:yes:* )
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10672 (
10673 cat <<\_ASBOX
10674## ------------------------------------------ ##
10675## Report this to the AC_PACKAGE_NAME lists. ##
10676## ------------------------------------------ ##
10677_ASBOX
10678 ) |
10679 sed "s/^/$as_me: WARNING: /" >&2
10680 ;;
10681esac
10682echo "$as_me:$LINENO: checking for $ac_header" >&5
10683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10684if eval "test \"\${$as_ac_Header+set}\" = set"; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 10686else
bec39cab 10687 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10688fi
bec39cab
AC
10689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
10691
10692fi
bec39cab
AC
10693if test `eval echo '${'$as_ac_Header'}'` = yes; then
10694 cat >>confdefs.h <<_ACEOF
10695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696_ACEOF
10697
5ee754fc
MK
10698fi
10699
bec39cab 10700done
5ee754fc 10701
5ee754fc 10702
bec39cab 10703for ac_header in sys/param.h
5ee754fc 10704do
bec39cab
AC
10705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10706if eval "test \"\${$as_ac_Header+set}\" = set"; then
10707 echo "$as_me:$LINENO: checking for $ac_header" >&5
10708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10709if eval "test \"\${$as_ac_Header+set}\" = set"; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711fi
10712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10714else
10715 # Is the header compilable?
10716echo "$as_me:$LINENO: checking $ac_header usability" >&5
10717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10718cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h. */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h. */
10724$ac_includes_default
10725#include <$ac_header>
10726_ACEOF
10727rm -f conftest.$ac_objext
10728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10729 (eval $ac_compile) 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
121ce6e5 10736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; } &&
10742 { ac_try='test -s conftest.$ac_objext'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_header_compiler=yes
10749else
10750 echo "$as_me: failed program was:" >&5
10751sed 's/^/| /' conftest.$ac_ext >&5
10752
10753ac_header_compiler=no
10754fi
10755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10757echo "${ECHO_T}$ac_header_compiler" >&6
10758
10759# Is the header present?
10760echo "$as_me:$LINENO: checking $ac_header presence" >&5
10761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10762cat >conftest.$ac_ext <<_ACEOF
10763/* confdefs.h. */
10764_ACEOF
10765cat confdefs.h >>conftest.$ac_ext
10766cat >>conftest.$ac_ext <<_ACEOF
10767/* end confdefs.h. */
10768#include <$ac_header>
10769_ACEOF
10770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10772 ac_status=$?
10773 grep -v '^ *+' conftest.er1 >conftest.err
10774 rm -f conftest.er1
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } >/dev/null; then
10778 if test -s conftest.err; then
10779 ac_cpp_err=$ac_c_preproc_warn_flag
10780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10781 else
10782 ac_cpp_err=
10783 fi
5ee754fc 10784else
bec39cab 10785 ac_cpp_err=yes
5ee754fc 10786fi
bec39cab
AC
10787if test -z "$ac_cpp_err"; then
10788 ac_header_preproc=yes
10789else
10790 echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 10792
bec39cab 10793 ac_header_preproc=no
5ee754fc 10794fi
bec39cab
AC
10795rm -f conftest.err conftest.$ac_ext
10796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10797echo "${ECHO_T}$ac_header_preproc" >&6
10798
10799# So? What about this header?
10800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10801 yes:no: )
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10806 ac_header_preproc=yes
10807 ;;
10808 no:yes:* )
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10812echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10816echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10821 (
10822 cat <<\_ASBOX
10823## ------------------------------------------ ##
10824## Report this to the AC_PACKAGE_NAME lists. ##
10825## ------------------------------------------ ##
10826_ASBOX
10827 ) |
10828 sed "s/^/$as_me: WARNING: /" >&2
10829 ;;
10830esac
10831echo "$as_me:$LINENO: checking for $ac_header" >&5
10832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10833if eval "test \"\${$as_ac_Header+set}\" = set"; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 10835else
bec39cab 10836 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10837fi
bec39cab
AC
10838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 10840
5ee754fc 10841fi
bec39cab
AC
10842if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843 cat >>confdefs.h <<_ACEOF
10844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845_ACEOF
10846
5ee754fc 10847fi
bec39cab 10848
5ee754fc
MK
10849done
10850
bec39cab
AC
10851
10852for ac_header in sys/proc.h
5ee754fc 10853do
bec39cab 10854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 10855echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
10856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10857if eval "test \"\${$as_ac_Header+set}\" = set"; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10859else
7cb9022a 10860 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10861/* confdefs.h. */
10862_ACEOF
10863cat confdefs.h >>conftest.$ac_ext
10864cat >>conftest.$ac_ext <<_ACEOF
10865/* end confdefs.h. */
7cb9022a
MK
10866#if HAVE_SYS_PARAM_H
10867# include <sys/param.h>
10868#endif
10869
10870
bec39cab
AC
10871#include <$ac_header>
10872_ACEOF
10873rm -f conftest.$ac_objext
10874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875 (eval $ac_compile) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
121ce6e5 10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
7cb9022a 10894 eval "$as_ac_Header=yes"
bec39cab
AC
10895else
10896 echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
7cb9022a 10899eval "$as_ac_Header=no"
bec39cab
AC
10900fi
10901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10902fi
bec39cab
AC
10903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10905if test `eval echo '${'$as_ac_Header'}'` = yes; then
10906 cat >>confdefs.h <<_ACEOF
10907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10908_ACEOF
10909
5ee754fc 10910fi
bec39cab 10911
5ee754fc
MK
10912done
10913
bec39cab
AC
10914
10915for ac_header in sys/procfs.h
5ee754fc 10916do
bec39cab
AC
10917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10918if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919 echo "$as_me:$LINENO: checking for $ac_header" >&5
10920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10921if eval "test \"\${$as_ac_Header+set}\" = set"; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10923fi
10924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10926else
10927 # Is the header compilable?
10928echo "$as_me:$LINENO: checking $ac_header usability" >&5
10929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10930cat >conftest.$ac_ext <<_ACEOF
10931/* confdefs.h. */
10932_ACEOF
10933cat confdefs.h >>conftest.$ac_ext
10934cat >>conftest.$ac_ext <<_ACEOF
10935/* end confdefs.h. */
10936$ac_includes_default
10937#include <$ac_header>
10938_ACEOF
10939rm -f conftest.$ac_objext
10940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10941 (eval $ac_compile) 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
121ce6e5 10948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest.$ac_objext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_header_compiler=yes
10961else
10962 echo "$as_me: failed program was:" >&5
10963sed 's/^/| /' conftest.$ac_ext >&5
10964
10965ac_header_compiler=no
10966fi
10967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10969echo "${ECHO_T}$ac_header_compiler" >&6
10970
10971# Is the header present?
10972echo "$as_me:$LINENO: checking $ac_header presence" >&5
10973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10974cat >conftest.$ac_ext <<_ACEOF
10975/* confdefs.h. */
10976_ACEOF
10977cat confdefs.h >>conftest.$ac_ext
10978cat >>conftest.$ac_ext <<_ACEOF
10979/* end confdefs.h. */
10980#include <$ac_header>
10981_ACEOF
10982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10984 ac_status=$?
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } >/dev/null; then
10990 if test -s conftest.err; then
10991 ac_cpp_err=$ac_c_preproc_warn_flag
10992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10993 else
10994 ac_cpp_err=
10995 fi
10996else
10997 ac_cpp_err=yes
5ee754fc 10998fi
bec39cab
AC
10999if test -z "$ac_cpp_err"; then
11000 ac_header_preproc=yes
5ee754fc 11001else
bec39cab
AC
11002 echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 ac_header_preproc=no
5ee754fc 11006fi
bec39cab
AC
11007rm -f conftest.err conftest.$ac_ext
11008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11009echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11010
bec39cab
AC
11011# So? What about this header?
11012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11013 yes:no: )
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11018 ac_header_preproc=yes
11019 ;;
11020 no:yes:* )
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11033 (
11034 cat <<\_ASBOX
11035## ------------------------------------------ ##
11036## Report this to the AC_PACKAGE_NAME lists. ##
11037## ------------------------------------------ ##
11038_ASBOX
11039 ) |
11040 sed "s/^/$as_me: WARNING: /" >&2
11041 ;;
11042esac
11043echo "$as_me:$LINENO: checking for $ac_header" >&5
11044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11045if eval "test \"\${$as_ac_Header+set}\" = set"; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047else
11048 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11049fi
bec39cab
AC
11050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11052
5ee754fc 11053fi
bec39cab
AC
11054if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11057_ACEOF
11058
5ee754fc 11059fi
bec39cab 11060
5ee754fc
MK
11061done
11062
bec39cab
AC
11063
11064
11065for ac_header in sys/ptrace.h ptrace.h
5ee754fc 11066do
bec39cab
AC
11067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11068if eval "test \"\${$as_ac_Header+set}\" = set"; then
11069 echo "$as_me:$LINENO: checking for $ac_header" >&5
11070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11071if eval "test \"\${$as_ac_Header+set}\" = set"; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073fi
11074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11076else
11077 # Is the header compilable?
11078echo "$as_me:$LINENO: checking $ac_header usability" >&5
11079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11080cat >conftest.$ac_ext <<_ACEOF
11081/* confdefs.h. */
11082_ACEOF
11083cat confdefs.h >>conftest.$ac_ext
11084cat >>conftest.$ac_ext <<_ACEOF
11085/* end confdefs.h. */
11086$ac_includes_default
11087#include <$ac_header>
11088_ACEOF
11089rm -f conftest.$ac_objext
11090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
121ce6e5 11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_header_compiler=yes
11111else
11112 echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115ac_header_compiler=no
11116fi
11117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11119echo "${ECHO_T}$ac_header_compiler" >&6
11120
11121# Is the header present?
11122echo "$as_me:$LINENO: checking $ac_header presence" >&5
11123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11124cat >conftest.$ac_ext <<_ACEOF
11125/* confdefs.h. */
11126_ACEOF
11127cat confdefs.h >>conftest.$ac_ext
11128cat >>conftest.$ac_ext <<_ACEOF
11129/* end confdefs.h. */
11130#include <$ac_header>
11131_ACEOF
11132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } >/dev/null; then
11140 if test -s conftest.err; then
11141 ac_cpp_err=$ac_c_preproc_warn_flag
11142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11143 else
11144 ac_cpp_err=
11145 fi
11146else
11147 ac_cpp_err=yes
5ee754fc 11148fi
bec39cab
AC
11149if test -z "$ac_cpp_err"; then
11150 ac_header_preproc=yes
5ee754fc 11151else
bec39cab
AC
11152 echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
11155 ac_header_preproc=no
5ee754fc 11156fi
bec39cab
AC
11157rm -f conftest.err conftest.$ac_ext
11158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11159echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11160
bec39cab
AC
11161# So? What about this header?
11162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11163 yes:no: )
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11168 ac_header_preproc=yes
11169 ;;
11170 no:yes:* )
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11183 (
11184 cat <<\_ASBOX
11185## ------------------------------------------ ##
11186## Report this to the AC_PACKAGE_NAME lists. ##
11187## ------------------------------------------ ##
11188_ASBOX
11189 ) |
11190 sed "s/^/$as_me: WARNING: /" >&2
11191 ;;
11192esac
11193echo "$as_me:$LINENO: checking for $ac_header" >&5
11194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11195if eval "test \"\${$as_ac_Header+set}\" = set"; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11199fi
bec39cab
AC
11200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11202
5ee754fc 11203fi
bec39cab
AC
11204if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207_ACEOF
11208
5ee754fc 11209fi
bec39cab 11210
5ee754fc
MK
11211done
11212
bec39cab
AC
11213
11214
11215for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 11216do
bec39cab
AC
11217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11218if eval "test \"\${$as_ac_Header+set}\" = set"; then
11219 echo "$as_me:$LINENO: checking for $ac_header" >&5
11220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11221if eval "test \"\${$as_ac_Header+set}\" = set"; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223fi
11224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11226else
11227 # Is the header compilable?
11228echo "$as_me:$LINENO: checking $ac_header usability" >&5
11229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11230cat >conftest.$ac_ext <<_ACEOF
11231/* confdefs.h. */
11232_ACEOF
11233cat confdefs.h >>conftest.$ac_ext
11234cat >>conftest.$ac_ext <<_ACEOF
11235/* end confdefs.h. */
11236$ac_includes_default
11237#include <$ac_header>
11238_ACEOF
11239rm -f conftest.$ac_objext
11240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
121ce6e5 11248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_header_compiler=yes
11261else
11262 echo "$as_me: failed program was:" >&5
11263sed 's/^/| /' conftest.$ac_ext >&5
11264
11265ac_header_compiler=no
11266fi
11267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11269echo "${ECHO_T}$ac_header_compiler" >&6
11270
11271# Is the header present?
11272echo "$as_me:$LINENO: checking $ac_header presence" >&5
11273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11274cat >conftest.$ac_ext <<_ACEOF
11275/* confdefs.h. */
11276_ACEOF
11277cat confdefs.h >>conftest.$ac_ext
11278cat >>conftest.$ac_ext <<_ACEOF
11279/* end confdefs.h. */
11280#include <$ac_header>
11281_ACEOF
11282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } >/dev/null; then
11290 if test -s conftest.err; then
11291 ac_cpp_err=$ac_c_preproc_warn_flag
11292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11293 else
11294 ac_cpp_err=
11295 fi
11296else
11297 ac_cpp_err=yes
5ee754fc 11298fi
bec39cab
AC
11299if test -z "$ac_cpp_err"; then
11300 ac_header_preproc=yes
5ee754fc 11301else
bec39cab
AC
11302 echo "$as_me: failed program was:" >&5
11303sed 's/^/| /' conftest.$ac_ext >&5
11304
11305 ac_header_preproc=no
5ee754fc 11306fi
bec39cab
AC
11307rm -f conftest.err conftest.$ac_ext
11308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11310
bec39cab
AC
11311# So? What about this header?
11312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11313 yes:no: )
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11318 ac_header_preproc=yes
11319 ;;
11320 no:yes:* )
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11328echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11333 (
11334 cat <<\_ASBOX
11335## ------------------------------------------ ##
11336## Report this to the AC_PACKAGE_NAME lists. ##
11337## ------------------------------------------ ##
11338_ASBOX
11339 ) |
11340 sed "s/^/$as_me: WARNING: /" >&2
11341 ;;
11342esac
11343echo "$as_me:$LINENO: checking for $ac_header" >&5
11344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11345if eval "test \"\${$as_ac_Header+set}\" = set"; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347else
11348 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11349fi
bec39cab
AC
11350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11352
5ee754fc 11353fi
bec39cab
AC
11354if test `eval echo '${'$as_ac_Header'}'` = yes; then
11355 cat >>confdefs.h <<_ACEOF
11356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11357_ACEOF
11358
5ee754fc 11359fi
bec39cab 11360
5ee754fc
MK
11361done
11362
bec39cab
AC
11363
11364for ac_header in sys/select.h
5ee754fc 11365do
bec39cab
AC
11366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11367if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368 echo "$as_me:$LINENO: checking for $ac_header" >&5
11369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11370if eval "test \"\${$as_ac_Header+set}\" = set"; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372fi
11373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11375else
11376 # Is the header compilable?
11377echo "$as_me:$LINENO: checking $ac_header usability" >&5
11378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11379cat >conftest.$ac_ext <<_ACEOF
11380/* confdefs.h. */
11381_ACEOF
11382cat confdefs.h >>conftest.$ac_ext
11383cat >>conftest.$ac_ext <<_ACEOF
11384/* end confdefs.h. */
11385$ac_includes_default
11386#include <$ac_header>
11387_ACEOF
11388rm -f conftest.$ac_objext
11389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
121ce6e5 11397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest.$ac_objext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11410else
11411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414ac_header_compiler=no
11415fi
11416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11418echo "${ECHO_T}$ac_header_compiler" >&6
11419
11420# Is the header present?
11421echo "$as_me:$LINENO: checking $ac_header presence" >&5
11422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11423cat >conftest.$ac_ext <<_ACEOF
11424/* confdefs.h. */
11425_ACEOF
11426cat confdefs.h >>conftest.$ac_ext
11427cat >>conftest.$ac_ext <<_ACEOF
11428/* end confdefs.h. */
11429#include <$ac_header>
11430_ACEOF
11431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } >/dev/null; then
11439 if test -s conftest.err; then
11440 ac_cpp_err=$ac_c_preproc_warn_flag
11441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11442 else
11443 ac_cpp_err=
11444 fi
11445else
11446 ac_cpp_err=yes
5ee754fc 11447fi
bec39cab
AC
11448if test -z "$ac_cpp_err"; then
11449 ac_header_preproc=yes
5ee754fc 11450else
bec39cab
AC
11451 echo "$as_me: failed program was:" >&5
11452sed 's/^/| /' conftest.$ac_ext >&5
11453
11454 ac_header_preproc=no
5ee754fc 11455fi
bec39cab
AC
11456rm -f conftest.err conftest.$ac_ext
11457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11459
bec39cab
AC
11460# So? What about this header?
11461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462 yes:no: )
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11468 ;;
11469 no:yes:* )
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482 (
11483 cat <<\_ASBOX
11484## ------------------------------------------ ##
11485## Report this to the AC_PACKAGE_NAME lists. ##
11486## ------------------------------------------ ##
11487_ASBOX
11488 ) |
11489 sed "s/^/$as_me: WARNING: /" >&2
11490 ;;
11491esac
11492echo "$as_me:$LINENO: checking for $ac_header" >&5
11493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11494if eval "test \"\${$as_ac_Header+set}\" = set"; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11498fi
bec39cab
AC
11499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11501
5ee754fc 11502fi
bec39cab
AC
11503if test `eval echo '${'$as_ac_Header'}'` = yes; then
11504 cat >>confdefs.h <<_ACEOF
11505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11506_ACEOF
11507
5ee754fc 11508fi
bec39cab 11509
5ee754fc
MK
11510done
11511
bec39cab
AC
11512
11513for ac_header in sys/syscall.h
5ee754fc 11514do
bec39cab
AC
11515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516if eval "test \"\${$as_ac_Header+set}\" = set"; then
11517 echo "$as_me:$LINENO: checking for $ac_header" >&5
11518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11519if eval "test \"\${$as_ac_Header+set}\" = set"; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521fi
11522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11524else
11525 # Is the header compilable?
11526echo "$as_me:$LINENO: checking $ac_header usability" >&5
11527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11528cat >conftest.$ac_ext <<_ACEOF
11529/* confdefs.h. */
11530_ACEOF
11531cat confdefs.h >>conftest.$ac_ext
11532cat >>conftest.$ac_ext <<_ACEOF
11533/* end confdefs.h. */
11534$ac_includes_default
11535#include <$ac_header>
11536_ACEOF
11537rm -f conftest.$ac_objext
11538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
121ce6e5 11546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest.$ac_objext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_header_compiler=yes
11559else
11560 echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
11563ac_header_compiler=no
11564fi
11565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11567echo "${ECHO_T}$ac_header_compiler" >&6
11568
11569# Is the header present?
11570echo "$as_me:$LINENO: checking $ac_header presence" >&5
11571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11572cat >conftest.$ac_ext <<_ACEOF
11573/* confdefs.h. */
11574_ACEOF
11575cat confdefs.h >>conftest.$ac_ext
11576cat >>conftest.$ac_ext <<_ACEOF
11577/* end confdefs.h. */
11578#include <$ac_header>
11579_ACEOF
11580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } >/dev/null; then
11588 if test -s conftest.err; then
11589 ac_cpp_err=$ac_c_preproc_warn_flag
11590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11591 else
11592 ac_cpp_err=
11593 fi
11594else
11595 ac_cpp_err=yes
5ee754fc 11596fi
bec39cab
AC
11597if test -z "$ac_cpp_err"; then
11598 ac_header_preproc=yes
5ee754fc 11599else
bec39cab
AC
11600 echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
11603 ac_header_preproc=no
5ee754fc 11604fi
bec39cab
AC
11605rm -f conftest.err conftest.$ac_ext
11606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11607echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11608
bec39cab
AC
11609# So? What about this header?
11610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11611 yes:no: )
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11616 ac_header_preproc=yes
11617 ;;
11618 no:yes:* )
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11631 (
11632 cat <<\_ASBOX
11633## ------------------------------------------ ##
11634## Report this to the AC_PACKAGE_NAME lists. ##
11635## ------------------------------------------ ##
11636_ASBOX
11637 ) |
11638 sed "s/^/$as_me: WARNING: /" >&2
11639 ;;
11640esac
11641echo "$as_me:$LINENO: checking for $ac_header" >&5
11642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11643if eval "test \"\${$as_ac_Header+set}\" = set"; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11645else
11646 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 11647fi
bec39cab
AC
11648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11650
5ee754fc 11651fi
bec39cab
AC
11652if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653 cat >>confdefs.h <<_ACEOF
11654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655_ACEOF
11656
5ee754fc 11657fi
bec39cab 11658
5ee754fc
MK
11659done
11660
bec39cab
AC
11661
11662for ac_header in sys/types.h
5ee754fc 11663do
bec39cab
AC
11664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11665if eval "test \"\${$as_ac_Header+set}\" = set"; then
11666 echo "$as_me:$LINENO: checking for $ac_header" >&5
11667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11668if eval "test \"\${$as_ac_Header+set}\" = set"; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670fi
11671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11673else
11674 # Is the header compilable?
11675echo "$as_me:$LINENO: checking $ac_header usability" >&5
11676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11677cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h. */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h. */
11683$ac_includes_default
11684#include <$ac_header>
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
121ce6e5 11695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
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/user.h
5ee754fc 11812do
bec39cab 11813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7cb9022a 11814echo "$as_me:$LINENO: checking for $ac_header" >&5
bec39cab
AC
11815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11816if eval "test \"\${$as_ac_Header+set}\" = set"; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11818else
7cb9022a 11819 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
7cb9022a
MK
11825#if HAVE_SYS_PARAM_H
11826# include <sys/param.h>
11827#endif
11828
11829
bec39cab
AC
11830#include <$ac_header>
11831_ACEOF
11832rm -f conftest.$ac_objext
11833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
121ce6e5 11841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
7cb9022a 11853 eval "$as_ac_Header=yes"
bec39cab
AC
11854else
11855 echo "$as_me: failed program was:" >&5
11856sed 's/^/| /' conftest.$ac_ext >&5
11857
7cb9022a 11858eval "$as_ac_Header=no"
bec39cab
AC
11859fi
11860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11861fi
bec39cab
AC
11862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11864if test `eval echo '${'$as_ac_Header'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11867_ACEOF
11868
5ee754fc 11869fi
bec39cab 11870
5ee754fc
MK
11871done
11872
bec39cab
AC
11873
11874
11875for ac_header in sys/wait.h wait.h
5ee754fc 11876do
bec39cab
AC
11877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11878if eval "test \"\${$as_ac_Header+set}\" = set"; then
11879 echo "$as_me:$LINENO: checking for $ac_header" >&5
11880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11881if eval "test \"\${$as_ac_Header+set}\" = set"; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883fi
11884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11886else
11887 # Is the header compilable?
11888echo "$as_me:$LINENO: checking $ac_header usability" >&5
11889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11890cat >conftest.$ac_ext <<_ACEOF
11891/* confdefs.h. */
11892_ACEOF
11893cat confdefs.h >>conftest.$ac_ext
11894cat >>conftest.$ac_ext <<_ACEOF
11895/* end confdefs.h. */
11896$ac_includes_default
11897#include <$ac_header>
11898_ACEOF
11899rm -f conftest.$ac_objext
11900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
121ce6e5 11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 ac_header_compiler=yes
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925ac_header_compiler=no
11926fi
11927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11929echo "${ECHO_T}$ac_header_compiler" >&6
11930
11931# Is the header present?
11932echo "$as_me:$LINENO: checking $ac_header presence" >&5
11933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11934cat >conftest.$ac_ext <<_ACEOF
11935/* confdefs.h. */
11936_ACEOF
11937cat confdefs.h >>conftest.$ac_ext
11938cat >>conftest.$ac_ext <<_ACEOF
11939/* end confdefs.h. */
11940#include <$ac_header>
11941_ACEOF
11942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } >/dev/null; then
11950 if test -s conftest.err; then
11951 ac_cpp_err=$ac_c_preproc_warn_flag
11952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11953 else
11954 ac_cpp_err=
11955 fi
11956else
11957 ac_cpp_err=yes
5ee754fc 11958fi
bec39cab
AC
11959if test -z "$ac_cpp_err"; then
11960 ac_header_preproc=yes
5ee754fc 11961else
bec39cab
AC
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_header_preproc=no
5ee754fc 11966fi
bec39cab
AC
11967rm -f conftest.err conftest.$ac_ext
11968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11969echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 11970
bec39cab
AC
11971# So? What about this header?
11972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11973 yes:no: )
11974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11975echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11977echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11978 ac_header_preproc=yes
11979 ;;
11980 no:yes:* )
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11982echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11984echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11986echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11988echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11992echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11993 (
11994 cat <<\_ASBOX
11995## ------------------------------------------ ##
11996## Report this to the AC_PACKAGE_NAME lists. ##
11997## ------------------------------------------ ##
11998_ASBOX
11999 ) |
12000 sed "s/^/$as_me: WARNING: /" >&2
12001 ;;
12002esac
12003echo "$as_me:$LINENO: checking for $ac_header" >&5
12004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12005if eval "test \"\${$as_ac_Header+set}\" = set"; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12009fi
bec39cab
AC
12010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12012
9608ab8b 12013fi
bec39cab
AC
12014if test `eval echo '${'$as_ac_Header'}'` = yes; then
12015 cat >>confdefs.h <<_ACEOF
12016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12017_ACEOF
12018
9608ab8b 12019fi
bec39cab 12020
9608ab8b 12021done
5ee754fc 12022
bec39cab
AC
12023
12024
12025
12026for ac_header in termios.h termio.h sgtty.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); } &&
121ce6e5 12059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; } &&
12065 { ac_try='test -s conftest.$ac_objext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_header_compiler=yes
12072else
12073 echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
12075
12076ac_header_compiler=no
12077fi
12078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12080echo "${ECHO_T}$ac_header_compiler" >&6
12081
12082# Is the header present?
12083echo "$as_me:$LINENO: checking $ac_header presence" >&5
12084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12085cat >conftest.$ac_ext <<_ACEOF
12086/* confdefs.h. */
12087_ACEOF
12088cat confdefs.h >>conftest.$ac_ext
12089cat >>conftest.$ac_ext <<_ACEOF
12090/* end confdefs.h. */
12091#include <$ac_header>
12092_ACEOF
12093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } >/dev/null; then
12101 if test -s conftest.err; then
12102 ac_cpp_err=$ac_c_preproc_warn_flag
12103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12104 else
12105 ac_cpp_err=
12106 fi
12107else
12108 ac_cpp_err=yes
9608ab8b 12109fi
bec39cab
AC
12110if test -z "$ac_cpp_err"; then
12111 ac_header_preproc=yes
9608ab8b 12112else
bec39cab
AC
12113 echo "$as_me: failed program was:" >&5
12114sed 's/^/| /' conftest.$ac_ext >&5
12115
12116 ac_header_preproc=no
9608ab8b 12117fi
bec39cab
AC
12118rm -f conftest.err conftest.$ac_ext
12119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12120echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 12121
bec39cab
AC
12122# So? What about this header?
12123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12124 yes:no: )
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12128echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12129 ac_header_preproc=yes
12130 ;;
12131 no:yes:* )
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12133echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12135echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12137echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12139echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12143echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12144 (
12145 cat <<\_ASBOX
12146## ------------------------------------------ ##
12147## Report this to the AC_PACKAGE_NAME lists. ##
12148## ------------------------------------------ ##
12149_ASBOX
12150 ) |
12151 sed "s/^/$as_me: WARNING: /" >&2
12152 ;;
12153esac
12154echo "$as_me:$LINENO: checking for $ac_header" >&5
12155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12156if eval "test \"\${$as_ac_Header+set}\" = set"; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158else
12159 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 12160fi
bec39cab
AC
12161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12163
9608ab8b 12164fi
bec39cab
AC
12165if test `eval echo '${'$as_ac_Header'}'` = yes; then
12166 cat >>confdefs.h <<_ACEOF
12167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12168_ACEOF
12169
9608ab8b 12170fi
bec39cab 12171
5ee754fc 12172done
9608ab8b 12173
bec39cab
AC
12174
12175for ac_header in unistd.h
78434e59 12176do
bec39cab
AC
12177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12178if eval "test \"\${$as_ac_Header+set}\" = set"; then
12179 echo "$as_me:$LINENO: checking for $ac_header" >&5
12180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183fi
12184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12186else
12187 # Is the header compilable?
12188echo "$as_me:$LINENO: checking $ac_header usability" >&5
12189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12190cat >conftest.$ac_ext <<_ACEOF
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
12196$ac_includes_default
12197#include <$ac_header>
12198_ACEOF
12199rm -f conftest.$ac_objext
12200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
121ce6e5 12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_header_compiler=yes
12221else
12222 echo "$as_me: failed program was:" >&5
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
12225ac_header_compiler=no
12226fi
12227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229echo "${ECHO_T}$ac_header_compiler" >&6
12230
12231# Is the header present?
12232echo "$as_me:$LINENO: checking $ac_header presence" >&5
12233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12234cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
12239/* end confdefs.h. */
12240#include <$ac_header>
12241_ACEOF
12242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev/null; then
12250 if test -s conftest.err; then
12251 ac_cpp_err=$ac_c_preproc_warn_flag
12252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12253 else
12254 ac_cpp_err=
12255 fi
12256else
12257 ac_cpp_err=yes
78434e59 12258fi
bec39cab
AC
12259if test -z "$ac_cpp_err"; then
12260 ac_header_preproc=yes
78434e59 12261else
bec39cab
AC
12262 echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_header_preproc=no
78434e59 12266fi
bec39cab
AC
12267rm -f conftest.err conftest.$ac_ext
12268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12269echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 12270
bec39cab
AC
12271# So? What about this header?
12272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12273 yes:no: )
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12278 ac_header_preproc=yes
12279 ;;
12280 no:yes:* )
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12293 (
12294 cat <<\_ASBOX
12295## ------------------------------------------ ##
12296## Report this to the AC_PACKAGE_NAME lists. ##
12297## ------------------------------------------ ##
12298_ASBOX
12299 ) |
12300 sed "s/^/$as_me: WARNING: /" >&2
12301 ;;
12302esac
12303echo "$as_me:$LINENO: checking for $ac_header" >&5
12304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12305if eval "test \"\${$as_ac_Header+set}\" = set"; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307else
12308 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 12309fi
bec39cab
AC
12310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12312
086ec9eb 12313fi
bec39cab
AC
12314if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317_ACEOF
12318
086ec9eb 12319fi
bec39cab 12320
086ec9eb
MK
12321done
12322
9608ab8b 12323
b1d19a62 12324# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
12325# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12326# think that we don't have <curses.h> if we're using GCC.
12327case $host_os in
b1d19a62 12328 solaris2.[789])
5ee754fc 12329 if test "$GCC" = yes; then
bec39cab
AC
12330
12331cat >>confdefs.h <<\_ACEOF
5ee754fc 12332#define _MSE_INT_H 1
bec39cab 12333_ACEOF
5ee754fc
MK
12334
12335 fi ;;
12336esac
bec39cab
AC
12337
12338
12339
12340
12341for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 12342do
bec39cab
AC
12343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12344if eval "test \"\${$as_ac_Header+set}\" = set"; then
12345 echo "$as_me:$LINENO: checking for $ac_header" >&5
12346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12347if eval "test \"\${$as_ac_Header+set}\" = set"; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349fi
12350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12352else
12353 # Is the header compilable?
12354echo "$as_me:$LINENO: checking $ac_header usability" >&5
12355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12356cat >conftest.$ac_ext <<_ACEOF
12357/* confdefs.h. */
12358_ACEOF
12359cat confdefs.h >>conftest.$ac_ext
12360cat >>conftest.$ac_ext <<_ACEOF
12361/* end confdefs.h. */
12362$ac_includes_default
12363#include <$ac_header>
12364_ACEOF
12365rm -f conftest.$ac_objext
12366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12367 (eval $ac_compile) 2>conftest.er1
12368 ac_status=$?
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
121ce6e5 12374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest.$ac_objext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12387else
12388 echo "$as_me: failed program was:" >&5
12389sed 's/^/| /' conftest.$ac_ext >&5
12390
12391ac_header_compiler=no
12392fi
12393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12395echo "${ECHO_T}$ac_header_compiler" >&6
12396
12397# Is the header present?
12398echo "$as_me:$LINENO: checking $ac_header presence" >&5
12399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12400cat >conftest.$ac_ext <<_ACEOF
12401/* confdefs.h. */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
12405/* end confdefs.h. */
12406#include <$ac_header>
12407_ACEOF
12408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } >/dev/null; then
12416 if test -s conftest.err; then
12417 ac_cpp_err=$ac_c_preproc_warn_flag
12418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12419 else
12420 ac_cpp_err=
12421 fi
12422else
12423 ac_cpp_err=yes
c906108c 12424fi
bec39cab
AC
12425if test -z "$ac_cpp_err"; then
12426 ac_header_preproc=yes
12427else
12428 echo "$as_me: failed program was:" >&5
12429sed 's/^/| /' conftest.$ac_ext >&5
12430
12431 ac_header_preproc=no
c906108c 12432fi
bec39cab
AC
12433rm -f conftest.err conftest.$ac_ext
12434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12435echo "${ECHO_T}$ac_header_preproc" >&6
12436
12437# So? What about this header?
12438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12439 yes:no: )
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12444 ac_header_preproc=yes
12445 ;;
12446 no:yes:* )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12459 (
12460 cat <<\_ASBOX
12461## ------------------------------------------ ##
12462## Report this to the AC_PACKAGE_NAME lists. ##
12463## ------------------------------------------ ##
12464_ASBOX
12465 ) |
12466 sed "s/^/$as_me: WARNING: /" >&2
12467 ;;
12468esac
12469echo "$as_me:$LINENO: checking for $ac_header" >&5
12470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12471if eval "test \"\${$as_ac_Header+set}\" = set"; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12473else
bec39cab 12474 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 12475fi
bec39cab
AC
12476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12478
12479fi
12480if test `eval echo '${'$as_ac_Header'}'` = yes; then
12481 cat >>confdefs.h <<_ACEOF
12482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12483_ACEOF
12484
12485fi
12486
5ee754fc 12487done
c906108c 12488
bec39cab 12489
065a1afc 12490for ac_header in ncurses/term.h
3b78cdbb 12491do
bec39cab
AC
12492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12493if eval "test \"\${$as_ac_Header+set}\" = set"; then
12494 echo "$as_me:$LINENO: checking for $ac_header" >&5
12495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12496if eval "test \"\${$as_ac_Header+set}\" = set"; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498fi
12499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12501else
12502 # Is the header compilable?
12503echo "$as_me:$LINENO: checking $ac_header usability" >&5
12504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12505cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
12511$ac_includes_default
12512#include <$ac_header>
12513_ACEOF
12514rm -f conftest.$ac_objext
12515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
121ce6e5 12523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; } &&
12529 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12535 ac_header_compiler=yes
12536else
12537 echo "$as_me: failed program was:" >&5
12538sed 's/^/| /' conftest.$ac_ext >&5
12539
12540ac_header_compiler=no
12541fi
12542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12544echo "${ECHO_T}$ac_header_compiler" >&6
12545
12546# Is the header present?
12547echo "$as_me:$LINENO: checking $ac_header presence" >&5
12548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12549cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h. */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */
12555#include <$ac_header>
12556_ACEOF
12557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } >/dev/null; then
12565 if test -s conftest.err; then
12566 ac_cpp_err=$ac_c_preproc_warn_flag
12567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12568 else
12569 ac_cpp_err=
12570 fi
12571else
12572 ac_cpp_err=yes
3b78cdbb 12573fi
bec39cab
AC
12574if test -z "$ac_cpp_err"; then
12575 ac_header_preproc=yes
12576else
12577 echo "$as_me: failed program was:" >&5
12578sed 's/^/| /' conftest.$ac_ext >&5
12579
12580 ac_header_preproc=no
3b78cdbb 12581fi
bec39cab
AC
12582rm -f conftest.err conftest.$ac_ext
12583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12584echo "${ECHO_T}$ac_header_preproc" >&6
12585
12586# So? What about this header?
12587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12588 yes:no: )
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12593 ac_header_preproc=yes
12594 ;;
12595 no:yes:* )
12596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12603echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12608 (
12609 cat <<\_ASBOX
12610## ------------------------------------------ ##
12611## Report this to the AC_PACKAGE_NAME lists. ##
12612## ------------------------------------------ ##
12613_ASBOX
12614 ) |
12615 sed "s/^/$as_me: WARNING: /" >&2
12616 ;;
12617esac
12618echo "$as_me:$LINENO: checking for $ac_header" >&5
12619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12620if eval "test \"\${$as_ac_Header+set}\" = set"; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 12622else
bec39cab
AC
12623 eval "$as_ac_Header=\$ac_header_preproc"
12624fi
12625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12627
3b78cdbb 12628fi
bec39cab
AC
12629if test `eval echo '${'$as_ac_Header'}'` = yes; then
12630 cat >>confdefs.h <<_ACEOF
12631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12632_ACEOF
12633
12634fi
12635
3b78cdbb
DA
12636done
12637
c906108c 12638
065a1afc
JB
12639for ac_header in term.h
12640do
12641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642echo "$as_me:$LINENO: checking for $ac_header" >&5
12643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12644if eval "test \"\${$as_ac_Header+set}\" = set"; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646else
12647 cat >conftest.$ac_ext <<_ACEOF
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */
12653#if HAVE_CURSES_H
12654# include <curses.h>
12655#endif
12656
12657
12658#include <$ac_header>
12659_ACEOF
12660rm -f conftest.$ac_objext
12661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12662 (eval $ac_compile) 2>conftest.er1
12663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
121ce6e5 12669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
065a1afc
JB
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest.$ac_objext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 eval "$as_ac_Header=yes"
12682else
12683 echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686eval "$as_ac_Header=no"
12687fi
12688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12689fi
12690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12692if test `eval echo '${'$as_ac_Header'}'` = yes; then
12693 cat >>confdefs.h <<_ACEOF
12694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12695_ACEOF
12696
12697fi
12698
12699done
12700
12701
5ee754fc
MK
12702# FIXME: kettenis/20030102: In most cases we include these
12703# unconditionally, so what's the point in checking these?
bec39cab
AC
12704
12705
12706for ac_header in ctype.h time.h
c906108c 12707do
bec39cab
AC
12708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709if eval "test \"\${$as_ac_Header+set}\" = set"; then
12710 echo "$as_me:$LINENO: checking for $ac_header" >&5
12711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12712if eval "test \"\${$as_ac_Header+set}\" = set"; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714fi
12715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12717else
12718 # Is the header compilable?
12719echo "$as_me:$LINENO: checking $ac_header usability" >&5
12720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12721cat >conftest.$ac_ext <<_ACEOF
12722/* confdefs.h. */
12723_ACEOF
12724cat confdefs.h >>conftest.$ac_ext
12725cat >>conftest.$ac_ext <<_ACEOF
12726/* end confdefs.h. */
12727$ac_includes_default
12728#include <$ac_header>
12729_ACEOF
12730rm -f conftest.$ac_objext
12731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
121ce6e5 12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_header_compiler=yes
12752else
12753 echo "$as_me: failed program was:" >&5
12754sed 's/^/| /' conftest.$ac_ext >&5
12755
12756ac_header_compiler=no
12757fi
12758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760echo "${ECHO_T}$ac_header_compiler" >&6
12761
12762# Is the header present?
12763echo "$as_me:$LINENO: checking $ac_header presence" >&5
12764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12765cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
12771#include <$ac_header>
12772_ACEOF
12773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } >/dev/null; then
12781 if test -s conftest.err; then
12782 ac_cpp_err=$ac_c_preproc_warn_flag
12783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12784 else
12785 ac_cpp_err=
12786 fi
12787else
12788 ac_cpp_err=yes
c906108c 12789fi
bec39cab
AC
12790if test -z "$ac_cpp_err"; then
12791 ac_header_preproc=yes
12792else
12793 echo "$as_me: failed program was:" >&5
12794sed 's/^/| /' conftest.$ac_ext >&5
12795
12796 ac_header_preproc=no
c906108c 12797fi
bec39cab
AC
12798rm -f conftest.err conftest.$ac_ext
12799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12800echo "${ECHO_T}$ac_header_preproc" >&6
12801
12802# So? What about this header?
12803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12804 yes:no: )
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12809 ac_header_preproc=yes
12810 ;;
12811 no:yes:* )
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12824 (
12825 cat <<\_ASBOX
12826## ------------------------------------------ ##
12827## Report this to the AC_PACKAGE_NAME lists. ##
12828## ------------------------------------------ ##
12829_ASBOX
12830 ) |
12831 sed "s/^/$as_me: WARNING: /" >&2
12832 ;;
12833esac
12834echo "$as_me:$LINENO: checking for $ac_header" >&5
12835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12836if eval "test \"\${$as_ac_Header+set}\" = set"; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 12838else
bec39cab
AC
12839 eval "$as_ac_Header=\$ac_header_preproc"
12840fi
12841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12843
12844fi
12845if test `eval echo '${'$as_ac_Header'}'` = yes; then
12846 cat >>confdefs.h <<_ACEOF
12847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12848_ACEOF
12849
c906108c 12850fi
bec39cab 12851
c906108c
SS
12852done
12853
5ee754fc 12854
666ec76f
MK
12855# ------------------------- #
12856# Checks for declarations. #
12857# ------------------------- #
12858
a3828db0
MK
12859echo "$as_me:$LINENO: checking whether free is declared" >&5
12860echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12861if test "${ac_cv_have_decl_free+set}" = set; then
bec39cab 12862 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 12863else
bec39cab
AC
12864 cat >conftest.$ac_ext <<_ACEOF
12865/* confdefs.h. */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h. */
a3828db0 12870$ac_includes_default
bec39cab
AC
12871int
12872main ()
12873{
a3828db0
MK
12874#ifndef free
12875 char *p = (char *) free;
666ec76f 12876#endif
a3828db0 12877
bec39cab
AC
12878 ;
12879 return 0;
12880}
12881_ACEOF
12882rm -f conftest.$ac_objext
12883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12884 (eval $ac_compile) 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
121ce6e5 12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
a3828db0 12903 ac_cv_have_decl_free=yes
40a7debc 12904else
bec39cab
AC
12905 echo "$as_me: failed program was:" >&5
12906sed 's/^/| /' conftest.$ac_ext >&5
12907
a3828db0 12908ac_cv_have_decl_free=no
40a7debc 12909fi
bec39cab 12910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 12911fi
a3828db0
MK
12912echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12913echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12914if test $ac_cv_have_decl_free = yes; then
40a7debc 12915
a3828db0
MK
12916cat >>confdefs.h <<_ACEOF
12917#define HAVE_DECL_FREE 1
666ec76f
MK
12918_ACEOF
12919
a3828db0 12920
666ec76f 12921else
a3828db0
MK
12922 cat >>confdefs.h <<_ACEOF
12923#define HAVE_DECL_FREE 0
bec39cab 12924_ACEOF
40a7debc 12925
b9362cc7 12926
666ec76f 12927fi
a3828db0
MK
12928echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12929echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12930if test "${ac_cv_have_decl_malloc+set}" = set; then
bec39cab
AC
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932else
12933 cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
12938/* end confdefs.h. */
666ec76f
MK
12939$ac_includes_default
12940int
12941main ()
12942{
a3828db0
MK
12943#ifndef malloc
12944 char *p = (char *) malloc;
12945#endif
12946
666ec76f
MK
12947 ;
12948 return 0;
12949}
12950_ACEOF
12951rm -f conftest.$ac_objext
12952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>conftest.er1
12954 ac_status=$?
12955 grep -v '^ *+' conftest.er1 >conftest.err
12956 rm -f conftest.er1
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
121ce6e5 12960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
666ec76f
MK
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest.$ac_objext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
a3828db0 12972 ac_cv_have_decl_malloc=yes
666ec76f
MK
12973else
12974 echo "$as_me: failed program was:" >&5
12975sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 12976
a3828db0
MK
12977ac_cv_have_decl_malloc=no
12978fi
12979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980fi
12981echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12982echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12983if test $ac_cv_have_decl_malloc = yes; then
12984
12985cat >>confdefs.h <<_ACEOF
12986#define HAVE_DECL_MALLOC 1
12987_ACEOF
12988
12989
12990else
12991 cat >>confdefs.h <<_ACEOF
12992#define HAVE_DECL_MALLOC 0
12993_ACEOF
12994
12995
12996fi
12997echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12998echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12999if test "${ac_cv_have_decl_realloc+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001else
13002 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
13003/* confdefs.h. */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
13007/* end confdefs.h. */
13008$ac_includes_default
bec39cab
AC
13009int
13010main ()
13011{
a3828db0
MK
13012#ifndef realloc
13013 char *p = (char *) realloc;
13014#endif
13015
bec39cab
AC
13016 ;
13017 return 0;
13018}
13019_ACEOF
13020rm -f conftest.$ac_objext
13021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022 (eval $ac_compile) 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
121ce6e5 13029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest.$ac_objext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
a3828db0 13041 ac_cv_have_decl_realloc=yes
b9362cc7 13042else
bec39cab
AC
13043 echo "$as_me: failed program was:" >&5
13044sed 's/^/| /' conftest.$ac_ext >&5
13045
a3828db0 13046ac_cv_have_decl_realloc=no
b9362cc7 13047fi
bec39cab 13048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 13049fi
a3828db0
MK
13050echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13051echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13052if test $ac_cv_have_decl_realloc = yes; then
b9362cc7 13053
666ec76f 13054cat >>confdefs.h <<_ACEOF
a3828db0 13055#define HAVE_DECL_REALLOC 1
bec39cab
AC
13056_ACEOF
13057
bec39cab 13058
a3828db0
MK
13059else
13060 cat >>confdefs.h <<_ACEOF
13061#define HAVE_DECL_REALLOC 0
13062_ACEOF
b9362cc7
AC
13063
13064
a3828db0 13065fi
5ee754fc 13066
a3828db0
MK
13067
13068echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13069echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13070if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab
AC
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072else
13073 cat >conftest.$ac_ext <<_ACEOF
13074/* confdefs.h. */
13075_ACEOF
13076cat confdefs.h >>conftest.$ac_ext
13077cat >>conftest.$ac_ext <<_ACEOF
13078/* end confdefs.h. */
a3828db0 13079$ac_includes_default
bec39cab
AC
13080int
13081main ()
13082{
a3828db0
MK
13083#ifndef strerror
13084 char *p = (char *) strerror;
13085#endif
13086
bec39cab
AC
13087 ;
13088 return 0;
13089}
13090_ACEOF
13091rm -f conftest.$ac_objext
13092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
121ce6e5 13100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; } &&
13106 { ac_try='test -s conftest.$ac_objext'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
a3828db0 13112 ac_cv_have_decl_strerror=yes
c906108c 13113else
bec39cab
AC
13114 echo "$as_me: failed program was:" >&5
13115sed 's/^/| /' conftest.$ac_ext >&5
13116
a3828db0 13117ac_cv_have_decl_strerror=no
c906108c 13118fi
bec39cab 13119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13120fi
a3828db0
MK
13121echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13122echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13123if test $ac_cv_have_decl_strerror = yes; then
c906108c 13124
bec39cab 13125cat >>confdefs.h <<_ACEOF
a3828db0 13126#define HAVE_DECL_STRERROR 1
bec39cab 13127_ACEOF
c906108c 13128
c906108c 13129
a3828db0
MK
13130else
13131 cat >>confdefs.h <<_ACEOF
13132#define HAVE_DECL_STRERROR 0
13133_ACEOF
c906108c 13134
5ee754fc 13135
a3828db0
MK
13136fi
13137echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13138echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13139if test "${ac_cv_have_decl_strstr+set}" = set; then
bec39cab
AC
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13141else
13142 cat >conftest.$ac_ext <<_ACEOF
13143/* confdefs.h. */
13144_ACEOF
13145cat confdefs.h >>conftest.$ac_ext
13146cat >>conftest.$ac_ext <<_ACEOF
13147/* end confdefs.h. */
a3828db0 13148$ac_includes_default
bec39cab
AC
13149int
13150main ()
13151{
a3828db0
MK
13152#ifndef strstr
13153 char *p = (char *) strstr;
bec39cab
AC
13154#endif
13155
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160rm -f conftest.$ac_objext
13161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>conftest.er1
13163 ac_status=$?
13164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
121ce6e5 13169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } &&
13175 { ac_try='test -s conftest.$ac_objext'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
a3828db0 13181 ac_cv_have_decl_strstr=yes
c906108c 13182else
bec39cab
AC
13183 echo "$as_me: failed program was:" >&5
13184sed 's/^/| /' conftest.$ac_ext >&5
13185
a3828db0 13186ac_cv_have_decl_strstr=no
c906108c 13187fi
bec39cab 13188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13189fi
a3828db0
MK
13190echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13191echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13192if test $ac_cv_have_decl_strstr = yes; then
bec39cab 13193
a3828db0
MK
13194cat >>confdefs.h <<_ACEOF
13195#define HAVE_DECL_STRSTR 1
13196_ACEOF
13197
13198
13199else
13200 cat >>confdefs.h <<_ACEOF
13201#define HAVE_DECL_STRSTR 0
bec39cab 13202_ACEOF
c906108c 13203
a3828db0 13204
c906108c
SS
13205fi
13206
a3828db0
MK
13207
13208echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13209echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13210if test "${ac_cv_have_decl_getopt+set}" = set; then
bec39cab 13211 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 13212else
bec39cab
AC
13213 cat >conftest.$ac_ext <<_ACEOF
13214/* confdefs.h. */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */
a3828db0
MK
13219$ac_includes_default
13220int
13221main ()
13222{
13223#ifndef getopt
13224 char *p = (char *) getopt;
bec39cab
AC
13225#endif
13226
a3828db0
MK
13227 ;
13228 return 0;
13229}
bec39cab
AC
13230_ACEOF
13231rm -f conftest.$ac_objext
13232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
121ce6e5 13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try='test -s conftest.$ac_objext'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
a3828db0 13252 ac_cv_have_decl_getopt=yes
bce58c09 13253else
bec39cab
AC
13254 echo "$as_me: failed program was:" >&5
13255sed 's/^/| /' conftest.$ac_ext >&5
13256
a3828db0 13257ac_cv_have_decl_getopt=no
bce58c09 13258fi
bec39cab 13259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 13260fi
a3828db0
MK
13261echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13262echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13263if test $ac_cv_have_decl_getopt = yes; then
bec39cab 13264
a3828db0
MK
13265cat >>confdefs.h <<_ACEOF
13266#define HAVE_DECL_GETOPT 1
13267_ACEOF
bce58c09 13268
a3828db0
MK
13269
13270else
13271 cat >>confdefs.h <<_ACEOF
13272#define HAVE_DECL_GETOPT 0
bec39cab 13273_ACEOF
bce58c09 13274
c906108c 13275
e5a7de23
EZ
13276fi
13277echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13278echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13279if test "${ac_cv_have_decl_snprintf+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282 cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288$ac_includes_default
13289int
13290main ()
13291{
13292#ifndef snprintf
13293 char *p = (char *) snprintf;
13294#endif
13295
13296 ;
13297 return 0;
13298}
13299_ACEOF
13300rm -f conftest.$ac_objext
13301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
121ce6e5 13309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e5a7de23
EZ
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_cv_have_decl_snprintf=yes
13322else
13323 echo "$as_me: failed program was:" >&5
13324sed 's/^/| /' conftest.$ac_ext >&5
13325
13326ac_cv_have_decl_snprintf=no
13327fi
13328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13329fi
13330echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13331echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13332if test $ac_cv_have_decl_snprintf = yes; then
13333
13334cat >>confdefs.h <<_ACEOF
13335#define HAVE_DECL_SNPRINTF 1
13336_ACEOF
13337
13338
13339else
13340 cat >>confdefs.h <<_ACEOF
13341#define HAVE_DECL_SNPRINTF 0
13342_ACEOF
13343
13344
13345fi
13346echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13347echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13348if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350else
13351 cat >conftest.$ac_ext <<_ACEOF
13352/* confdefs.h. */
13353_ACEOF
13354cat confdefs.h >>conftest.$ac_ext
13355cat >>conftest.$ac_ext <<_ACEOF
13356/* end confdefs.h. */
13357$ac_includes_default
13358int
13359main ()
13360{
13361#ifndef vsnprintf
13362 char *p = (char *) vsnprintf;
13363#endif
13364
13365 ;
13366 return 0;
13367}
13368_ACEOF
13369rm -f conftest.$ac_objext
13370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
121ce6e5 13378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e5a7de23
EZ
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } &&
13384 { ac_try='test -s conftest.$ac_objext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_have_decl_vsnprintf=yes
13391else
13392 echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395ac_cv_have_decl_vsnprintf=no
13396fi
13397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13398fi
13399echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13400echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13401if test $ac_cv_have_decl_vsnprintf = yes; then
13402
13403cat >>confdefs.h <<_ACEOF
13404#define HAVE_DECL_VSNPRINTF 1
13405_ACEOF
13406
13407
13408else
13409 cat >>confdefs.h <<_ACEOF
13410#define HAVE_DECL_VSNPRINTF 0
13411_ACEOF
13412
13413
a3828db0 13414fi
5ee754fc 13415
a3828db0
MK
13416
13417
13418# ----------------------- #
13419# Checks for structures. #
13420# ----------------------- #
13421
13422echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13423echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13424if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
bec39cab
AC
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426else
13427 cat >conftest.$ac_ext <<_ACEOF
13428/* confdefs.h. */
13429_ACEOF
13430cat confdefs.h >>conftest.$ac_ext
13431cat >>conftest.$ac_ext <<_ACEOF
13432/* end confdefs.h. */
a3828db0 13433$ac_includes_default
bec39cab
AC
13434int
13435main ()
13436{
a3828db0
MK
13437static struct stat ac_aggr;
13438if (ac_aggr.st_blocks)
13439return 0;
bec39cab
AC
13440 ;
13441 return 0;
13442}
13443_ACEOF
a3828db0
MK
13444rm -f conftest.$ac_objext
13445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13446 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
121ce6e5 13453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
a3828db0 13459 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
a3828db0 13465 ac_cv_member_struct_stat_st_blocks=yes
bec39cab
AC
13466else
13467 echo "$as_me: failed program was:" >&5
13468sed 's/^/| /' conftest.$ac_ext >&5
13469
a3828db0
MK
13470cat >conftest.$ac_ext <<_ACEOF
13471/* confdefs.h. */
bec39cab
AC
13472_ACEOF
13473cat confdefs.h >>conftest.$ac_ext
13474cat >>conftest.$ac_ext <<_ACEOF
13475/* end confdefs.h. */
a3828db0 13476$ac_includes_default
bec39cab
AC
13477int
13478main ()
13479{
a3828db0
MK
13480static struct stat ac_aggr;
13481if (sizeof ac_aggr.st_blocks)
13482return 0;
bec39cab
AC
13483 ;
13484 return 0;
13485}
13486_ACEOF
a3828db0
MK
13487rm -f conftest.$ac_objext
13488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
121ce6e5 13496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
a3828db0 13502 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
a3828db0 13508 ac_cv_member_struct_stat_st_blocks=yes
46711df8 13509else
bec39cab
AC
13510 echo "$as_me: failed program was:" >&5
13511sed 's/^/| /' conftest.$ac_ext >&5
13512
a3828db0 13513ac_cv_member_struct_stat_st_blocks=no
46711df8 13514fi
a3828db0 13515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13516fi
a3828db0
MK
13517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13518fi
13519echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13520echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13521if test $ac_cv_member_struct_stat_st_blocks = yes; then
46711df8 13522
a3828db0
MK
13523cat >>confdefs.h <<_ACEOF
13524#define HAVE_STRUCT_STAT_ST_BLOCKS 1
bec39cab 13525_ACEOF
46711df8 13526
46711df8 13527
d3ea6809
MM
13528fi
13529
13530echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13531echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13532if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534else
13535 cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541$ac_includes_default
13542int
13543main ()
13544{
13545static struct stat ac_aggr;
13546if (ac_aggr.st_blksize)
13547return 0;
13548 ;
13549 return 0;
13550}
13551_ACEOF
13552rm -f conftest.$ac_objext
13553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
121ce6e5 13561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest.$ac_objext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_member_struct_stat_st_blksize=yes
13574else
13575 echo "$as_me: failed program was:" >&5
13576sed 's/^/| /' conftest.$ac_ext >&5
13577
13578cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
13584$ac_includes_default
13585int
13586main ()
13587{
13588static struct stat ac_aggr;
13589if (sizeof ac_aggr.st_blksize)
13590return 0;
13591 ;
13592 return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext
13596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
121ce6e5 13604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_member_struct_stat_st_blksize=yes
13617else
13618 echo "$as_me: failed program was:" >&5
13619sed 's/^/| /' conftest.$ac_ext >&5
13620
13621ac_cv_member_struct_stat_st_blksize=no
13622fi
13623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13624fi
13625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13626fi
13627echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13628echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13629if test $ac_cv_member_struct_stat_st_blksize = yes; then
13630
13631cat >>confdefs.h <<_ACEOF
13632#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13633_ACEOF
13634
13635
a3828db0 13636fi
46711df8 13637
46711df8 13638
a3828db0
MK
13639# ------------------ #
13640# Checks for types. #
13641# ------------------ #
46711df8 13642
a3828db0
MK
13643echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13644echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13645if test "${ac_cv_type_signal+set}" = set; then
bec39cab
AC
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13647else
13648 cat >conftest.$ac_ext <<_ACEOF
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
a3828db0
MK
13654#include <sys/types.h>
13655#include <signal.h>
13656#ifdef signal
13657# undef signal
bec39cab 13658#endif
bec39cab 13659#ifdef __cplusplus
a3828db0 13660extern "C" void (*signal (int, void (*)(int)))(int);
46711df8 13661#else
a3828db0 13662void (*signal ()) ();
46711df8
MK
13663#endif
13664
bec39cab
AC
13665int
13666main ()
13667{
a3828db0 13668int i;
bec39cab
AC
13669 ;
13670 return 0;
13671}
13672_ACEOF
a3828db0
MK
13673rm -f conftest.$ac_objext
13674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
121ce6e5 13682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
a3828db0 13688 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
a3828db0 13694 ac_cv_type_signal=void
bec39cab
AC
13695else
13696 echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
a3828db0 13699ac_cv_type_signal=int
bec39cab 13700fi
a3828db0 13701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 13702fi
a3828db0
MK
13703echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13704echo "${ECHO_T}$ac_cv_type_signal" >&6
bec39cab
AC
13705
13706cat >>confdefs.h <<_ACEOF
a3828db0 13707#define RETSIGTYPE $ac_cv_type_signal
bec39cab 13708_ACEOF
46711df8 13709
46711df8 13710
f9f87d2c
MK
13711echo "$as_me:$LINENO: checking for socklen_t" >&5
13712echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13713if test "${ac_cv_type_socklen_t+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716 cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h. */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h. */
13722#include <sys/types.h>
13723#include <sys/socket.h>
13724
13725
13726int
13727main ()
13728{
13729if ((socklen_t *) 0)
13730 return 0;
13731if (sizeof (socklen_t))
13732 return 0;
13733 ;
13734 return 0;
13735}
13736_ACEOF
13737rm -f conftest.$ac_objext
13738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
121ce6e5 13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f9f87d2c
MK
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_cv_type_socklen_t=yes
13759else
13760 echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
13763ac_cv_type_socklen_t=no
13764fi
13765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13766fi
13767echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13768echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13769if test $ac_cv_type_socklen_t = yes; then
13770
13771cat >>confdefs.h <<_ACEOF
13772#define HAVE_SOCKLEN_T 1
13773_ACEOF
13774
13775
3be60c3d
MK
13776fi
13777
13778echo "$as_me:$LINENO: checking for uintptr_t" >&5
13779echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13780if test "${ac_cv_type_uintptr_t+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783 cat >conftest.$ac_ext <<_ACEOF
13784/* confdefs.h. */
13785_ACEOF
13786cat confdefs.h >>conftest.$ac_ext
13787cat >>conftest.$ac_ext <<_ACEOF
13788/* end confdefs.h. */
13789#include <stdint.h>
13790
13791int
13792main ()
13793{
13794if ((uintptr_t *) 0)
13795 return 0;
13796if (sizeof (uintptr_t))
13797 return 0;
13798 ;
13799 return 0;
13800}
13801_ACEOF
13802rm -f conftest.$ac_objext
13803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804 (eval $ac_compile) 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
121ce6e5 13811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3be60c3d
MK
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_type_uintptr_t=yes
13824else
13825 echo "$as_me: failed program was:" >&5
13826sed 's/^/| /' conftest.$ac_ext >&5
13827
13828ac_cv_type_uintptr_t=no
13829fi
13830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13831fi
13832echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13833echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13834if test $ac_cv_type_uintptr_t = yes; then
13835
13836cat >>confdefs.h <<_ACEOF
13837#define HAVE_UINTPTR_T 1
13838_ACEOF
13839
13840
f9f87d2c
MK
13841fi
13842
46711df8 13843
a3828db0
MK
13844# ------------------------------------- #
13845# Checks for compiler characteristics. #
13846# ------------------------------------- #
13847
13848echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13849echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13850if test "${ac_cv_c_const+set}" = set; then
bec39cab 13851 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 13852else
bec39cab
AC
13853 cat >conftest.$ac_ext <<_ACEOF
13854/* confdefs.h. */
13855_ACEOF
13856cat confdefs.h >>conftest.$ac_ext
13857cat >>conftest.$ac_ext <<_ACEOF
13858/* end confdefs.h. */
bec39cab
AC
13859
13860int
46711df8
MK
13861main ()
13862{
a3828db0
MK
13863/* FIXME: Include the comments suggested by Paul. */
13864#ifndef __cplusplus
13865 /* Ultrix mips cc rejects this. */
13866 typedef int charset[2];
13867 const charset x;
13868 /* SunOS 4.1.1 cc rejects this. */
13869 char const *const *ccp;
13870 char **p;
13871 /* NEC SVR4.0.2 mips cc rejects this. */
13872 struct point {int x, y;};
13873 static struct point const zero = {0,0};
13874 /* AIX XL C 1.02.0.0 rejects this.
13875 It does not let you subtract one const X* pointer from another in
13876 an arm of an if-expression whose if-part is not a constant
13877 expression */
13878 const char *g = "string";
13879 ccp = &g + (g ? g-g : 0);
13880 /* HPUX 7.0 cc rejects these. */
13881 ++ccp;
13882 p = (char**) ccp;
13883 ccp = (char const *const *) p;
13884 { /* SCO 3.2v4 cc rejects this. */
13885 char *t;
13886 char const *s = 0 ? (char *) 0 : (char const *) 0;
13887
13888 *t++ = 0;
13889 }
13890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13891 int x[] = {25, 17};
13892 const int *foo = &x[0];
13893 ++foo;
13894 }
13895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13896 typedef const int *iptr;
13897 iptr p = 0;
13898 ++p;
13899 }
13900 { /* AIX XL C 1.02.0.0 rejects this saying
13901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13902 struct s { int j; const int *ap[3]; };
13903 struct s *b; b->j = 5;
13904 }
13905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13906 const int foo = 10;
13907 }
13908#endif
13909
13910 ;
13911 return 0;
46711df8 13912}
bec39cab 13913_ACEOF
a3828db0
MK
13914rm -f conftest.$ac_objext
13915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916 (eval $ac_compile) 2>conftest.er1
13917 ac_status=$?
13918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
121ce6e5 13923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
bec39cab
AC
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
a3828db0 13935 ac_cv_c_const=yes
46711df8 13936else
a3828db0 13937 echo "$as_me: failed program was:" >&5
bec39cab
AC
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
a3828db0 13940ac_cv_c_const=no
46711df8 13941fi
a3828db0 13942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 13943fi
a3828db0
MK
13944echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13945echo "${ECHO_T}$ac_cv_c_const" >&6
13946if test $ac_cv_c_const = no; then
46711df8 13947
a3828db0
MK
13948cat >>confdefs.h <<\_ACEOF
13949#define const
bec39cab
AC
13950_ACEOF
13951
46711df8
MK
13952fi
13953
a3828db0
MK
13954echo "$as_me:$LINENO: checking for inline" >&5
13955echo $ECHO_N "checking for inline... $ECHO_C" >&6
13956if test "${ac_cv_c_inline+set}" = set; then
bec39cab 13957 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 13958else
a3828db0
MK
13959 ac_cv_c_inline=no
13960for ac_kw in inline __inline__ __inline; do
13961 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
13962/* confdefs.h. */
13963_ACEOF
13964cat confdefs.h >>conftest.$ac_ext
13965cat >>conftest.$ac_ext <<_ACEOF
13966/* end confdefs.h. */
a3828db0
MK
13967#ifndef __cplusplus
13968typedef int foo_t;
13969static $ac_kw foo_t static_foo () {return 0; }
13970$ac_kw foo_t foo () {return 0; }
13971#endif
13972
bec39cab
AC
13973_ACEOF
13974rm -f conftest.$ac_objext
13975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976 (eval $ac_compile) 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
121ce6e5 13983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
a3828db0 13995 ac_cv_c_inline=$ac_kw; break
bec39cab
AC
13996else
13997 echo "$as_me: failed program was:" >&5
13998sed 's/^/| /' conftest.$ac_ext >&5
13999
bec39cab
AC
14000fi
14001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 14002done
bec39cab 14003
74c1b268 14004fi
a3828db0
MK
14005echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14006echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 14007
bec39cab 14008
a3828db0
MK
14009case $ac_cv_c_inline in
14010 inline | yes) ;;
14011 *)
14012 case $ac_cv_c_inline in
14013 no) ac_val=;;
14014 *) ac_val=$ac_cv_c_inline;;
14015 esac
14016 cat >>confdefs.h <<_ACEOF
14017#ifndef __cplusplus
14018#define inline $ac_val
14019#endif
14020_ACEOF
bec39cab
AC
14021 ;;
14022esac
bec39cab 14023
74c1b268 14024
a3828db0
MK
14025# ------------------------------ #
14026# Checks for library functions. #
14027# ------------------------------ #
bec39cab 14028
a3828db0
MK
14029# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14030# for constant arguments. Useless!
14031echo "$as_me:$LINENO: checking for working alloca.h" >&5
14032echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14033if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036 cat >conftest.$ac_ext <<_ACEOF
14037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
a3828db0 14042#include <alloca.h>
bec39cab
AC
14043int
14044main ()
14045{
a3828db0 14046char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
14047 ;
14048 return 0;
14049}
14050_ACEOF
14051rm -f conftest.$ac_objext conftest$ac_exeext
14052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053 (eval $ac_link) 2>conftest.er1
14054 ac_status=$?
14055 grep -v '^ *+' conftest.er1 >conftest.err
14056 rm -f conftest.er1
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
121ce6e5 14060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
a3828db0 14072 ac_cv_working_alloca_h=yes
bec39cab
AC
14073else
14074 echo "$as_me: failed program was:" >&5
14075sed 's/^/| /' conftest.$ac_ext >&5
14076
a3828db0 14077ac_cv_working_alloca_h=no
bec39cab
AC
14078fi
14079rm -f conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
14081fi
a3828db0
MK
14082echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14083echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14084if test $ac_cv_working_alloca_h = yes; then
14085
14086cat >>confdefs.h <<\_ACEOF
14087#define HAVE_ALLOCA_H 1
bec39cab 14088_ACEOF
74c1b268 14089
74c1b268
AC
14090fi
14091
a3828db0
MK
14092echo "$as_me:$LINENO: checking for alloca" >&5
14093echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14094if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 14095 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 14096else
bec39cab
AC
14097 cat >conftest.$ac_ext <<_ACEOF
14098/* confdefs.h. */
14099_ACEOF
14100cat confdefs.h >>conftest.$ac_ext
14101cat >>conftest.$ac_ext <<_ACEOF
14102/* end confdefs.h. */
a3828db0
MK
14103#ifdef __GNUC__
14104# define alloca __builtin_alloca
14105#else
14106# ifdef _MSC_VER
14107# include <malloc.h>
14108# define alloca _alloca
14109# else
14110# if HAVE_ALLOCA_H
14111# include <alloca.h>
14112# else
14113# ifdef _AIX
14114 #pragma alloca
14115# else
14116# ifndef alloca /* predefined by HP cc +Olibcalls */
14117char *alloca ();
14118# endif
14119# endif
14120# endif
97bf5e38 14121# endif
a3828db0 14122#endif
97bf5e38 14123
bec39cab
AC
14124int
14125main ()
14126{
a3828db0 14127char *p = (char *) alloca (1);
bec39cab
AC
14128 ;
14129 return 0;
14130}
14131_ACEOF
a3828db0
MK
14132rm -f conftest.$ac_objext conftest$ac_exeext
14133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134 (eval $ac_link) 2>conftest.er1
bec39cab
AC
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
121ce6e5 14141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; } &&
a3828db0 14147 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
a3828db0 14153 ac_cv_func_alloca_works=yes
0200359f 14154else
bec39cab
AC
14155 echo "$as_me: failed program was:" >&5
14156sed 's/^/| /' conftest.$ac_ext >&5
0200359f 14157
a3828db0 14158ac_cv_func_alloca_works=no
0200359f 14159fi
a3828db0
MK
14160rm -f conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
72473524 14162fi
a3828db0
MK
14163echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14164echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 14165
a3828db0
MK
14166if test $ac_cv_func_alloca_works = yes; then
14167
14168cat >>confdefs.h <<\_ACEOF
14169#define HAVE_ALLOCA 1
bec39cab
AC
14170_ACEOF
14171
a3828db0
MK
14172else
14173 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14174# that cause trouble. Some versions do not even contain alloca or
14175# contain a buggy version. If you still want to use their alloca,
14176# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 14177
a3828db0 14178ALLOCA=alloca.$ac_objext
bec39cab 14179
a3828db0
MK
14180cat >>confdefs.h <<\_ACEOF
14181#define C_ALLOCA 1
14182_ACEOF
bec39cab 14183
a3828db0
MK
14184
14185echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14186echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14187if test "${ac_cv_os_cray+set}" = set; then
bec39cab 14188 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14189else
a3828db0 14190 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14191/* confdefs.h. */
14192_ACEOF
14193cat confdefs.h >>conftest.$ac_ext
14194cat >>conftest.$ac_ext <<_ACEOF
14195/* end confdefs.h. */
a3828db0
MK
14196#if defined(CRAY) && ! defined(CRAY2)
14197webecray
14198#else
14199wenotbecray
14200#endif
14201
14202_ACEOF
14203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14204 $EGREP "webecray" >/dev/null 2>&1; then
14205 ac_cv_os_cray=yes
14206else
14207 ac_cv_os_cray=no
14208fi
14209rm -f conftest*
14210
14211fi
14212echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14213echo "${ECHO_T}$ac_cv_os_cray" >&6
14214if test $ac_cv_os_cray = yes; then
14215 for ac_func in _getb67 GETB67 getb67; do
14216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14217echo "$as_me:$LINENO: checking for $ac_func" >&5
14218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14219if eval "test \"\${$as_ac_var+set}\" = set"; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221else
14222 cat >conftest.$ac_ext <<_ACEOF
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
14228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14230#define $ac_func innocuous_$ac_func
14231
14232/* System header to define __stub macros and hopefully few prototypes,
14233 which can conflict with char $ac_func (); below.
14234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14235 <limits.h> exists even on freestanding compilers. */
14236
14237#ifdef __STDC__
14238# include <limits.h>
14239#else
14240# include <assert.h>
14241#endif
14242
14243#undef $ac_func
14244
14245/* Override any gcc2 internal prototype to avoid an error. */
14246#ifdef __cplusplus
14247extern "C"
14248{
14249#endif
14250/* We use char because int might match the return type of a gcc2
14251 builtin and then its argument prototype would still apply. */
14252char $ac_func ();
14253/* The GNU C library defines this for functions which it implements
14254 to always fail with ENOSYS. Some functions are actually named
14255 something starting with __ and the normal name is an alias. */
14256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14257choke me
14258#else
14259char (*f) () = $ac_func;
14260#endif
14261#ifdef __cplusplus
14262}
14263#endif
14264
14265int
14266main ()
14267{
14268return f != $ac_func;
14269 ;
14270 return 0;
14271}
14272_ACEOF
14273rm -f conftest.$ac_objext conftest$ac_exeext
14274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275 (eval $ac_link) 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
121ce6e5 14282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 eval "$as_ac_var=yes"
14295else
14296 echo "$as_me: failed program was:" >&5
14297sed 's/^/| /' conftest.$ac_ext >&5
14298
14299eval "$as_ac_var=no"
14300fi
14301rm -f conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext conftest.$ac_ext
14303fi
14304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14306if test `eval echo '${'$as_ac_var'}'` = yes; then
14307
14308cat >>confdefs.h <<_ACEOF
14309#define CRAY_STACKSEG_END $ac_func
14310_ACEOF
14311
14312 break
14313fi
14314
14315 done
14316fi
14317
14318echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14319echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14320if test "${ac_cv_c_stack_direction+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14322else
14323 if test "$cross_compiling" = yes; then
14324 ac_cv_c_stack_direction=0
14325else
14326 cat >conftest.$ac_ext <<_ACEOF
14327/* confdefs.h. */
14328_ACEOF
14329cat confdefs.h >>conftest.$ac_ext
14330cat >>conftest.$ac_ext <<_ACEOF
14331/* end confdefs.h. */
14332int
14333find_stack_direction ()
14334{
14335 static char *addr = 0;
14336 auto char dummy;
14337 if (addr == 0)
14338 {
14339 addr = &dummy;
14340 return find_stack_direction ();
14341 }
14342 else
14343 return (&dummy > addr) ? 1 : -1;
14344}
14345
14346int
14347main ()
14348{
14349 exit (find_stack_direction () < 0);
14350}
14351_ACEOF
14352rm -f conftest$ac_exeext
14353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14354 (eval $ac_link) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 ac_cv_c_stack_direction=1
14364else
14365 echo "$as_me: program exited with status $ac_status" >&5
14366echo "$as_me: failed program was:" >&5
14367sed 's/^/| /' conftest.$ac_ext >&5
14368
14369( exit $ac_status )
14370ac_cv_c_stack_direction=-1
14371fi
14372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14373fi
14374fi
14375echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14376echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14377
14378cat >>confdefs.h <<_ACEOF
14379#define STACK_DIRECTION $ac_cv_c_stack_direction
14380_ACEOF
14381
14382
14383fi
14384
14385
14386
14387for ac_header in stdlib.h unistd.h
14388do
14389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14390if eval "test \"\${$as_ac_Header+set}\" = set"; then
14391 echo "$as_me:$LINENO: checking for $ac_header" >&5
14392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14393if eval "test \"\${$as_ac_Header+set}\" = set"; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14395fi
14396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14398else
14399 # Is the header compilable?
14400echo "$as_me:$LINENO: checking $ac_header usability" >&5
14401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14402cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408$ac_includes_default
14409#include <$ac_header>
14410_ACEOF
14411rm -f conftest.$ac_objext
14412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>conftest.er1
14414 ac_status=$?
bec39cab
AC
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
121ce6e5 14420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest.$ac_objext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_header_compiler=yes
14433else
14434 echo "$as_me: failed program was:" >&5
14435sed 's/^/| /' conftest.$ac_ext >&5
14436
14437ac_header_compiler=no
14438fi
14439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14441echo "${ECHO_T}$ac_header_compiler" >&6
14442
14443# Is the header present?
14444echo "$as_me:$LINENO: checking $ac_header presence" >&5
14445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14446cat >conftest.$ac_ext <<_ACEOF
14447/* confdefs.h. */
14448_ACEOF
14449cat confdefs.h >>conftest.$ac_ext
14450cat >>conftest.$ac_ext <<_ACEOF
14451/* end confdefs.h. */
14452#include <$ac_header>
14453_ACEOF
14454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14456 ac_status=$?
14457 grep -v '^ *+' conftest.er1 >conftest.err
14458 rm -f conftest.er1
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } >/dev/null; then
14462 if test -s conftest.err; then
14463 ac_cpp_err=$ac_c_preproc_warn_flag
14464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14465 else
14466 ac_cpp_err=
14467 fi
14468else
14469 ac_cpp_err=yes
14470fi
14471if test -z "$ac_cpp_err"; then
14472 ac_header_preproc=yes
97bf5e38 14473else
bec39cab
AC
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 ac_header_preproc=no
72473524 14478fi
bec39cab
AC
14479rm -f conftest.err conftest.$ac_ext
14480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14481echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 14482
bec39cab
AC
14483# So? What about this header?
14484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14485 yes:no: )
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14490 ac_header_preproc=yes
14491 ;;
14492 no:yes:* )
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14505 (
14506 cat <<\_ASBOX
14507## ------------------------------------------ ##
14508## Report this to the AC_PACKAGE_NAME lists. ##
14509## ------------------------------------------ ##
14510_ASBOX
14511 ) |
14512 sed "s/^/$as_me: WARNING: /" >&2
14513 ;;
14514esac
14515echo "$as_me:$LINENO: checking for $ac_header" >&5
14516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14517if eval "test \"\${$as_ac_Header+set}\" = set"; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14519else
bec39cab
AC
14520 eval "$as_ac_Header=\$ac_header_preproc"
14521fi
14522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14524
14525fi
14526if test `eval echo '${'$as_ac_Header'}'` = yes; then
14527 cat >>confdefs.h <<_ACEOF
14528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14529_ACEOF
14530
14531fi
14532
14533done
14534
14535
a3828db0 14536for ac_func in getpagesize
bec39cab
AC
14537do
14538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14539echo "$as_me:$LINENO: checking for $ac_func" >&5
14540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14541if eval "test \"\${$as_ac_var+set}\" = set"; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543else
14544 cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14552#define $ac_func innocuous_$ac_func
14553
97bf5e38 14554/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
14555 which can conflict with char $ac_func (); below.
14556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14557 <limits.h> exists even on freestanding compilers. */
2b2d558c 14558
bec39cab
AC
14559#ifdef __STDC__
14560# include <limits.h>
14561#else
14562# include <assert.h>
14563#endif
97bf5e38 14564
bec39cab
AC
14565#undef $ac_func
14566
14567/* Override any gcc2 internal prototype to avoid an error. */
14568#ifdef __cplusplus
14569extern "C"
14570{
14571#endif
14572/* We use char because int might match the return type of a gcc2
14573 builtin and then its argument prototype would still apply. */
14574char $ac_func ();
97bf5e38
MK
14575/* The GNU C library defines this for functions which it implements
14576 to always fail with ENOSYS. Some functions are actually named
14577 something starting with __ and the normal name is an alias. */
bec39cab 14578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38
MK
14579choke me
14580#else
bec39cab
AC
14581char (*f) () = $ac_func;
14582#endif
14583#ifdef __cplusplus
14584}
97bf5e38
MK
14585#endif
14586
bec39cab
AC
14587int
14588main ()
14589{
14590return f != $ac_func;
14591 ;
14592 return 0;
14593}
14594_ACEOF
14595rm -f conftest.$ac_objext conftest$ac_exeext
14596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597 (eval $ac_link) 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
121ce6e5 14604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest$ac_exeext'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 eval "$as_ac_var=yes"
14617else
14618 echo "$as_me: failed program was:" >&5
14619sed 's/^/| /' conftest.$ac_ext >&5
14620
14621eval "$as_ac_var=no"
14622fi
14623rm -f conftest.err conftest.$ac_objext \
14624 conftest$ac_exeext conftest.$ac_ext
14625fi
14626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14628if test `eval echo '${'$as_ac_var'}'` = yes; then
14629 cat >>confdefs.h <<_ACEOF
14630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14631_ACEOF
14632
2b2d558c 14633fi
bec39cab 14634done
2b2d558c 14635
a3828db0
MK
14636echo "$as_me:$LINENO: checking for working mmap" >&5
14637echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14638if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 14639 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 14640else
bec39cab 14641 if test "$cross_compiling" = yes; then
a3828db0 14642 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
14643else
14644 cat >conftest.$ac_ext <<_ACEOF
a3828db0 14645/* confdefs.h. */
bec39cab
AC
14646_ACEOF
14647cat confdefs.h >>conftest.$ac_ext
14648cat >>conftest.$ac_ext <<_ACEOF
14649/* end confdefs.h. */
a3828db0
MK
14650$ac_includes_default
14651/* malloc might have been renamed as rpl_malloc. */
14652#undef malloc
bec39cab 14653
a3828db0
MK
14654/* Thanks to Mike Haertel and Jim Avera for this test.
14655 Here is a matrix of mmap possibilities:
14656 mmap private not fixed
14657 mmap private fixed at somewhere currently unmapped
14658 mmap private fixed at somewhere already mapped
14659 mmap shared not fixed
14660 mmap shared fixed at somewhere currently unmapped
14661 mmap shared fixed at somewhere already mapped
14662 For private mappings, we should verify that changes cannot be read()
14663 back from the file, nor mmap's back from the file at a different
14664 address. (There have been systems where private was not correctly
14665 implemented like the infamous i386 svr4.0, and systems where the
14666 VM page cache was not coherent with the file system buffer cache
14667 like early versions of FreeBSD and possibly contemporary NetBSD.)
14668 For shared mappings, we should conversely verify that changes get
14669 propagated back to all the places they're supposed to be.
7dfa765c 14670
a3828db0
MK
14671 Grep wants private fixed already mapped.
14672 The main things grep needs to know about mmap are:
14673 * does it exist and is it safe to write into the mmap'd area
14674 * how to use it (BSD variants) */
7dfa765c 14675
a3828db0
MK
14676#include <fcntl.h>
14677#include <sys/mman.h>
7dfa765c 14678
a3828db0
MK
14679#if !STDC_HEADERS && !HAVE_STDLIB_H
14680char *malloc ();
14681#endif
7dfa765c 14682
a3828db0
MK
14683/* This mess was copied from the GNU getpagesize.h. */
14684#if !HAVE_GETPAGESIZE
14685/* Assume that all systems that can run configure have sys/param.h. */
14686# if !HAVE_SYS_PARAM_H
14687# define HAVE_SYS_PARAM_H 1
14688# endif
64bb1671 14689
a3828db0
MK
14690# ifdef _SC_PAGESIZE
14691# define getpagesize() sysconf(_SC_PAGESIZE)
14692# else /* no _SC_PAGESIZE */
14693# if HAVE_SYS_PARAM_H
14694# include <sys/param.h>
14695# ifdef EXEC_PAGESIZE
14696# define getpagesize() EXEC_PAGESIZE
14697# else /* no EXEC_PAGESIZE */
14698# ifdef NBPG
14699# define getpagesize() NBPG * CLSIZE
14700# ifndef CLSIZE
14701# define CLSIZE 1
14702# endif /* no CLSIZE */
14703# else /* no NBPG */
14704# ifdef NBPC
14705# define getpagesize() NBPC
14706# else /* no NBPC */
14707# ifdef PAGESIZE
14708# define getpagesize() PAGESIZE
14709# endif /* PAGESIZE */
14710# endif /* no NBPC */
14711# endif /* no NBPG */
14712# endif /* no EXEC_PAGESIZE */
14713# else /* no HAVE_SYS_PARAM_H */
14714# define getpagesize() 8192 /* punt totally */
14715# endif /* no HAVE_SYS_PARAM_H */
14716# endif /* no _SC_PAGESIZE */
64bb1671 14717
a3828db0 14718#endif /* no HAVE_GETPAGESIZE */
64bb1671 14719
a3828db0
MK
14720int
14721main ()
14722{
14723 char *data, *data2, *data3;
14724 int i, pagesize;
14725 int fd;
97bf5e38 14726
a3828db0
MK
14727 pagesize = getpagesize ();
14728
14729 /* First, make a file with some known garbage in it. */
14730 data = (char *) malloc (pagesize);
14731 if (!data)
14732 exit (1);
14733 for (i = 0; i < pagesize; ++i)
14734 *(data + i) = rand ();
14735 umask (0);
14736 fd = creat ("conftest.mmap", 0600);
14737 if (fd < 0)
14738 exit (1);
14739 if (write (fd, data, pagesize) != pagesize)
14740 exit (1);
14741 close (fd);
14742
14743 /* Next, try to mmap the file at a fixed address which already has
14744 something else allocated at it. If we can, also make sure that
14745 we see the same garbage. */
14746 fd = open ("conftest.mmap", O_RDWR);
14747 if (fd < 0)
14748 exit (1);
14749 data2 = (char *) malloc (2 * pagesize);
14750 if (!data2)
14751 exit (1);
14752 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14753 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14754 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14755 exit (1);
14756 for (i = 0; i < pagesize; ++i)
14757 if (*(data + i) != *(data2 + i))
14758 exit (1);
14759
14760 /* Finally, make sure that changes to the mapped area do not
14761 percolate back to the file as seen by read(). (This is a bug on
14762 some variants of i386 svr4.0.) */
14763 for (i = 0; i < pagesize; ++i)
14764 *(data2 + i) = *(data2 + i) + 1;
14765 data3 = (char *) malloc (pagesize);
14766 if (!data3)
14767 exit (1);
14768 if (read (fd, data3, pagesize) != pagesize)
14769 exit (1);
14770 for (i = 0; i < pagesize; ++i)
14771 if (*(data + i) != *(data3 + i))
14772 exit (1);
14773 close (fd);
14774 exit (0);
97bf5e38 14775}
bec39cab
AC
14776_ACEOF
14777rm -f conftest$ac_exeext
14778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779 (eval $ac_link) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
a3828db0 14788 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 14789else
bec39cab
AC
14790 echo "$as_me: program exited with status $ac_status" >&5
14791echo "$as_me: failed program was:" >&5
14792sed 's/^/| /' conftest.$ac_ext >&5
14793
14794( exit $ac_status )
a3828db0 14795ac_cv_func_mmap_fixed_mapped=no
0afdd437 14796fi
a3828db0 14797rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 14798fi
a3828db0
MK
14799fi
14800echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14801echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14802if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
14803
14804cat >>confdefs.h <<\_ACEOF
a3828db0 14805#define HAVE_MMAP 1
bec39cab 14806_ACEOF
0afdd437
MK
14807
14808fi
a3828db0 14809rm -f conftest.mmap
0afdd437 14810
a3828db0
MK
14811echo "$as_me:$LINENO: checking for pid_t" >&5
14812echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14813if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815else
14816 cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h. */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h. */
a3828db0 14822$ac_includes_default
bec39cab
AC
14823int
14824main ()
14825{
a3828db0
MK
14826if ((pid_t *) 0)
14827 return 0;
14828if (sizeof (pid_t))
14829 return 0;
bec39cab
AC
14830 ;
14831 return 0;
14832}
14833_ACEOF
a3828db0
MK
14834rm -f conftest.$ac_objext
14835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14837 ac_status=$?
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
121ce6e5 14843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; } &&
a3828db0 14849 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
a3828db0 14855 ac_cv_type_pid_t=yes
bec39cab
AC
14856else
14857 echo "$as_me: failed program was:" >&5
14858sed 's/^/| /' conftest.$ac_ext >&5
14859
a3828db0 14860ac_cv_type_pid_t=no
bec39cab 14861fi
a3828db0 14862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14863fi
a3828db0
MK
14864echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14865echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14866if test $ac_cv_type_pid_t = yes; then
14867 :
14868else
14869
14870cat >>confdefs.h <<_ACEOF
14871#define pid_t int
bec39cab 14872_ACEOF
7e89e357 14873
7e89e357
JT
14874fi
14875
bec39cab 14876
a3828db0
MK
14877
14878for ac_header in unistd.h vfork.h
7be570e7 14879do
a3828db0
MK
14880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881if eval "test \"\${$as_ac_Header+set}\" = set"; then
14882 echo "$as_me:$LINENO: checking for $ac_header" >&5
14883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14884if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14885 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
14886fi
14887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14889else
a3828db0
MK
14890 # Is the header compilable?
14891echo "$as_me:$LINENO: checking $ac_header usability" >&5
14892echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14893cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14894/* confdefs.h. */
14895_ACEOF
14896cat confdefs.h >>conftest.$ac_ext
14897cat >>conftest.$ac_ext <<_ACEOF
14898/* end confdefs.h. */
a3828db0
MK
14899$ac_includes_default
14900#include <$ac_header>
bec39cab 14901_ACEOF
a3828db0
MK
14902rm -f conftest.$ac_objext
14903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14904 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
121ce6e5 14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
a3828db0 14917 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
a3828db0 14923 ac_header_compiler=yes
bec39cab
AC
14924else
14925 echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
a3828db0 14928ac_header_compiler=no
bec39cab 14929fi
a3828db0
MK
14930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932echo "${ECHO_T}$ac_header_compiler" >&6
14933
14934# Is the header present?
14935echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14937cat >conftest.$ac_ext <<_ACEOF
14938/* confdefs.h. */
14939_ACEOF
14940cat confdefs.h >>conftest.$ac_ext
14941cat >>conftest.$ac_ext <<_ACEOF
14942/* end confdefs.h. */
14943#include <$ac_header>
14944_ACEOF
14945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14947 ac_status=$?
14948 grep -v '^ *+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } >/dev/null; then
14953 if test -s conftest.err; then
14954 ac_cpp_err=$ac_c_preproc_warn_flag
14955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14956 else
14957 ac_cpp_err=
14958 fi
14959else
14960 ac_cpp_err=yes
14961fi
14962if test -z "$ac_cpp_err"; then
14963 ac_header_preproc=yes
14964else
14965 echo "$as_me: failed program was:" >&5
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 ac_header_preproc=no
14969fi
14970rm -f conftest.err conftest.$ac_ext
14971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14972echo "${ECHO_T}$ac_header_preproc" >&6
14973
14974# So? What about this header?
14975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14976 yes:no: )
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14978echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14980echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14981 ac_header_preproc=yes
14982 ;;
14983 no:yes:* )
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14985echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14987echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14989echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14991echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14995echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14996 (
14997 cat <<\_ASBOX
14998## ------------------------------------------ ##
14999## Report this to the AC_PACKAGE_NAME lists. ##
15000## ------------------------------------------ ##
15001_ASBOX
15002 ) |
15003 sed "s/^/$as_me: WARNING: /" >&2
15004 ;;
15005esac
15006echo "$as_me:$LINENO: checking for $ac_header" >&5
15007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15008if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15010else
15011 eval "$as_ac_Header=\$ac_header_preproc"
15012fi
15013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15015
bec39cab 15016fi
a3828db0 15017if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 15018 cat >>confdefs.h <<_ACEOF
a3828db0 15019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 15020_ACEOF
14abd0fb 15021
14abd0fb 15022fi
a3828db0 15023
14abd0fb
MK
15024done
15025
bec39cab 15026
a3828db0
MK
15027
15028for ac_func in fork vfork
14abd0fb 15029do
bec39cab
AC
15030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15031echo "$as_me:$LINENO: checking for $ac_func" >&5
15032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15033if eval "test \"\${$as_ac_var+set}\" = set"; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035else
15036 cat >conftest.$ac_ext <<_ACEOF
15037/* confdefs.h. */
15038_ACEOF
15039cat confdefs.h >>conftest.$ac_ext
15040cat >>conftest.$ac_ext <<_ACEOF
15041/* end confdefs.h. */
15042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15044#define $ac_func innocuous_$ac_func
15045
14abd0fb 15046/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15047 which can conflict with char $ac_func (); below.
15048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15049 <limits.h> exists even on freestanding compilers. */
15050
15051#ifdef __STDC__
15052# include <limits.h>
15053#else
15054# include <assert.h>
15055#endif
14abd0fb 15056
bec39cab 15057#undef $ac_func
14abd0fb 15058
bec39cab
AC
15059/* Override any gcc2 internal prototype to avoid an error. */
15060#ifdef __cplusplus
15061extern "C"
15062{
15063#endif
15064/* We use char because int might match the return type of a gcc2
15065 builtin and then its argument prototype would still apply. */
15066char $ac_func ();
14abd0fb
MK
15067/* The GNU C library defines this for functions which it implements
15068 to always fail with ENOSYS. Some functions are actually named
15069 something starting with __ and the normal name is an alias. */
15070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15071choke me
15072#else
bec39cab
AC
15073char (*f) () = $ac_func;
15074#endif
15075#ifdef __cplusplus
15076}
14abd0fb
MK
15077#endif
15078
bec39cab
AC
15079int
15080main ()
15081{
15082return f != $ac_func;
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087rm -f conftest.$ac_objext conftest$ac_exeext
15088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089 (eval $ac_link) 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
121ce6e5 15096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest$ac_exeext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 eval "$as_ac_var=yes"
15109else
15110 echo "$as_me: failed program was:" >&5
15111sed 's/^/| /' conftest.$ac_ext >&5
15112
15113eval "$as_ac_var=no"
15114fi
15115rm -f conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117fi
15118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15120if test `eval echo '${'$as_ac_var'}'` = yes; then
15121 cat >>confdefs.h <<_ACEOF
15122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15123_ACEOF
7be570e7 15124
7be570e7
JM
15125fi
15126done
15127
a3828db0
MK
15128if test "x$ac_cv_func_fork" = xyes; then
15129 echo "$as_me:$LINENO: checking for working fork" >&5
15130echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15131if test "${ac_cv_func_fork_works+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15133else
15134 if test "$cross_compiling" = yes; then
15135 ac_cv_func_fork_works=cross
15136else
15137 cat >conftest.$ac_ext <<_ACEOF
121ce6e5
DJ
15138/* confdefs.h. */
15139_ACEOF
15140cat confdefs.h >>conftest.$ac_ext
15141cat >>conftest.$ac_ext <<_ACEOF
15142/* end confdefs.h. */
15143$ac_includes_default
15144int
15145main ()
15146{
15147
15148 /* By Ruediger Kuhlmann. */
15149 if (fork() < 0)
15150 exit (1);
15151 exit (0);
15152
15153 ;
15154 return 0;
15155}
a3828db0
MK
15156_ACEOF
15157rm -f conftest$ac_exeext
15158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_cv_func_fork_works=yes
15169else
15170 echo "$as_me: program exited with status $ac_status" >&5
15171echo "$as_me: failed program was:" >&5
15172sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 15173
a3828db0
MK
15174( exit $ac_status )
15175ac_cv_func_fork_works=no
15176fi
15177rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15178fi
15179fi
15180echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15181echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15182
15183else
15184 ac_cv_func_fork_works=$ac_cv_func_fork
15185fi
15186if test "x$ac_cv_func_fork_works" = xcross; then
15187 case $host in
15188 *-*-amigaos* | *-*-msdosdjgpp*)
15189 # Override, as these systems have only a dummy fork() stub
15190 ac_cv_func_fork_works=no
15191 ;;
15192 *)
15193 ac_cv_func_fork_works=yes
15194 ;;
15195 esac
15196 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15197echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15198fi
15199ac_cv_func_vfork_works=$ac_cv_func_vfork
15200if test "x$ac_cv_func_vfork" = xyes; then
15201 echo "$as_me:$LINENO: checking for working vfork" >&5
15202echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15203if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 15204 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
15205else
15206 if test "$cross_compiling" = yes; then
15207 ac_cv_func_vfork_works=cross
bec39cab
AC
15208else
15209 cat >conftest.$ac_ext <<_ACEOF
15210/* confdefs.h. */
15211_ACEOF
15212cat confdefs.h >>conftest.$ac_ext
15213cat >>conftest.$ac_ext <<_ACEOF
15214/* end confdefs.h. */
a3828db0
MK
15215/* Thanks to Paul Eggert for this test. */
15216#include <stdio.h>
15217#include <stdlib.h>
15218#include <sys/types.h>
15219#include <sys/stat.h>
15220#include <sys/wait.h>
15221#if HAVE_UNISTD_H
15222# include <unistd.h>
bec39cab 15223#endif
a3828db0
MK
15224#if HAVE_VFORK_H
15225# include <vfork.h>
bec39cab 15226#endif
a3828db0
MK
15227/* On some sparc systems, changes by the child to local and incoming
15228 argument registers are propagated back to the parent. The compiler
15229 is told about this with #include <vfork.h>, but some compilers
15230 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15231 static variable whose address is put into a register that is
15232 clobbered by the vfork. */
15233static void
bec39cab 15234#ifdef __cplusplus
a3828db0
MK
15235sparc_address_test (int arg)
15236# else
15237sparc_address_test (arg) int arg;
c906108c 15238#endif
a3828db0
MK
15239{
15240 static pid_t child;
15241 if (!child) {
15242 child = vfork ();
15243 if (child < 0) {
15244 perror ("vfork");
15245 _exit(2);
15246 }
15247 if (!child) {
15248 arg = getpid();
15249 write(-1, "", 0);
15250 _exit (arg);
15251 }
15252 }
15253}
97bf5e38 15254
bec39cab
AC
15255int
15256main ()
15257{
a3828db0
MK
15258 pid_t parent = getpid ();
15259 pid_t child;
15260
15261 sparc_address_test (0);
15262
15263 child = vfork ();
15264
15265 if (child == 0) {
15266 /* Here is another test for sparc vfork register problems. This
15267 test uses lots of local variables, at least as many local
15268 variables as main has allocated so far including compiler
15269 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15270 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15271 reuse the register of parent for one of the local variables,
15272 since it will think that parent can't possibly be used any more
15273 in this routine. Assigning to the local variable will thus
15274 munge parent in the parent process. */
15275 pid_t
15276 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15277 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15278 /* Convince the compiler that p..p7 are live; otherwise, it might
15279 use the same hardware register for all 8 local variables. */
15280 if (p != p1 || p != p2 || p != p3 || p != p4
15281 || p != p5 || p != p6 || p != p7)
15282 _exit(1);
15283
15284 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15285 from child file descriptors. If the child closes a descriptor
15286 before it execs or exits, this munges the parent's descriptor
15287 as well. Test for this by closing stdout in the child. */
15288 _exit(close(fileno(stdout)) != 0);
15289 } else {
15290 int status;
15291 struct stat st;
15292
15293 while (wait(&status) != child)
15294 ;
15295 exit(
15296 /* Was there some problem with vforking? */
15297 child < 0
15298
15299 /* Did the child fail? (This shouldn't happen.) */
15300 || status
15301
15302 /* Did the vfork/compiler bug occur? */
15303 || parent != getpid()
15304
15305 /* Did the file descriptor bug occur? */
15306 || fstat(fileno(stdout), &st) != 0
15307 );
15308 }
bec39cab
AC
15309}
15310_ACEOF
a3828db0 15311rm -f conftest$ac_exeext
bec39cab 15312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 15313 (eval $ac_link) 2>&5
bec39cab
AC
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 15316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
a3828db0
MK
15322 ac_cv_func_vfork_works=yes
15323else
15324 echo "$as_me: program exited with status $ac_status" >&5
15325echo "$as_me: failed program was:" >&5
15326sed 's/^/| /' conftest.$ac_ext >&5
15327
15328( exit $ac_status )
15329ac_cv_func_vfork_works=no
15330fi
15331rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15332fi
15333fi
15334echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15335echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15336
15337fi;
15338if test "x$ac_cv_func_fork_works" = xcross; then
15339 ac_cv_func_vfork_works=$ac_cv_func_vfork
15340 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15341echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15342fi
15343
15344if test "x$ac_cv_func_vfork_works" = xyes; then
15345
15346cat >>confdefs.h <<\_ACEOF
15347#define HAVE_WORKING_VFORK 1
15348_ACEOF
15349
bec39cab 15350else
bec39cab 15351
a3828db0
MK
15352cat >>confdefs.h <<\_ACEOF
15353#define vfork fork
15354_ACEOF
15355
bec39cab 15356fi
a3828db0
MK
15357if test "x$ac_cv_func_fork_works" = xyes; then
15358
15359cat >>confdefs.h <<\_ACEOF
15360#define HAVE_WORKING_FORK 1
bec39cab 15361_ACEOF
c906108c 15362
c906108c
SS
15363fi
15364
bec39cab
AC
15365
15366
a3828db0 15367for ac_func in canonicalize_file_name realpath
97bf5e38 15368do
bec39cab
AC
15369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15370echo "$as_me:$LINENO: checking for $ac_func" >&5
15371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15372if eval "test \"\${$as_ac_var+set}\" = set"; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374else
15375 cat >conftest.$ac_ext <<_ACEOF
15376/* confdefs.h. */
15377_ACEOF
15378cat confdefs.h >>conftest.$ac_ext
15379cat >>conftest.$ac_ext <<_ACEOF
15380/* end confdefs.h. */
15381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15383#define $ac_func innocuous_$ac_func
15384
d3ea6809
MM
15385/* System header to define __stub macros and hopefully few prototypes,
15386 which can conflict with char $ac_func (); below.
15387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15388 <limits.h> exists even on freestanding compilers. */
15389
15390#ifdef __STDC__
15391# include <limits.h>
15392#else
15393# include <assert.h>
15394#endif
15395
15396#undef $ac_func
15397
15398/* Override any gcc2 internal prototype to avoid an error. */
15399#ifdef __cplusplus
15400extern "C"
15401{
15402#endif
15403/* We use char because int might match the return type of a gcc2
15404 builtin and then its argument prototype would still apply. */
15405char $ac_func ();
15406/* The GNU C library defines this for functions which it implements
15407 to always fail with ENOSYS. Some functions are actually named
15408 something starting with __ and the normal name is an alias. */
15409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15410choke me
15411#else
15412char (*f) () = $ac_func;
15413#endif
15414#ifdef __cplusplus
15415}
15416#endif
15417
15418int
15419main ()
15420{
15421return f != $ac_func;
15422 ;
15423 return 0;
15424}
15425_ACEOF
15426rm -f conftest.$ac_objext conftest$ac_exeext
15427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
121ce6e5 15435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d3ea6809
MM
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 eval "$as_ac_var=yes"
15448else
15449 echo "$as_me: failed program was:" >&5
15450sed 's/^/| /' conftest.$ac_ext >&5
15451
15452eval "$as_ac_var=no"
15453fi
15454rm -f conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456fi
15457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15459if test `eval echo '${'$as_ac_var'}'` = yes; then
15460 cat >>confdefs.h <<_ACEOF
15461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15462_ACEOF
15463
15464fi
15465done
15466
15467
15468
15469for ac_func in getuid getgid
15470do
15471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15472echo "$as_me:$LINENO: checking for $ac_func" >&5
15473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15474if eval "test \"\${$as_ac_var+set}\" = set"; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476else
15477 cat >conftest.$ac_ext <<_ACEOF
15478/* confdefs.h. */
15479_ACEOF
15480cat confdefs.h >>conftest.$ac_ext
15481cat >>conftest.$ac_ext <<_ACEOF
15482/* end confdefs.h. */
15483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15485#define $ac_func innocuous_$ac_func
15486
97bf5e38 15487/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15488 which can conflict with char $ac_func (); below.
15489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15490 <limits.h> exists even on freestanding compilers. */
c906108c 15491
bec39cab
AC
15492#ifdef __STDC__
15493# include <limits.h>
15494#else
15495# include <assert.h>
15496#endif
97bf5e38 15497
bec39cab
AC
15498#undef $ac_func
15499
15500/* Override any gcc2 internal prototype to avoid an error. */
15501#ifdef __cplusplus
15502extern "C"
15503{
15504#endif
15505/* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15507char $ac_func ();
97bf5e38
MK
15508/* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15512choke me
c906108c 15513#else
bec39cab
AC
15514char (*f) () = $ac_func;
15515#endif
15516#ifdef __cplusplus
15517}
c906108c 15518#endif
97bf5e38 15519
bec39cab
AC
15520int
15521main ()
15522{
15523return f != $ac_func;
15524 ;
15525 return 0;
15526}
15527_ACEOF
15528rm -f conftest.$ac_objext conftest$ac_exeext
15529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
121ce6e5 15537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 eval "$as_ac_var=yes"
15550else
15551 echo "$as_me: failed program was:" >&5
15552sed 's/^/| /' conftest.$ac_ext >&5
15553
15554eval "$as_ac_var=no"
15555fi
15556rm -f conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15558fi
15559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15560echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15561if test `eval echo '${'$as_ac_var'}'` = yes; then
15562 cat >>confdefs.h <<_ACEOF
15563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15564_ACEOF
c906108c 15565
c906108c 15566fi
97bf5e38 15567done
c906108c 15568
bec39cab 15569
a3828db0 15570for ac_func in poll
97bf5e38 15571do
bec39cab
AC
15572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573echo "$as_me:$LINENO: checking for $ac_func" >&5
15574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15575if eval "test \"\${$as_ac_var+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577else
15578 cat >conftest.$ac_ext <<_ACEOF
15579/* confdefs.h. */
15580_ACEOF
15581cat confdefs.h >>conftest.$ac_ext
15582cat >>conftest.$ac_ext <<_ACEOF
15583/* end confdefs.h. */
15584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15586#define $ac_func innocuous_$ac_func
15587
97bf5e38 15588/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15589 which can conflict with char $ac_func (); below.
15590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15591 <limits.h> exists even on freestanding compilers. */
15592
15593#ifdef __STDC__
15594# include <limits.h>
15595#else
15596# include <assert.h>
15597#endif
c906108c 15598
bec39cab 15599#undef $ac_func
97bf5e38 15600
bec39cab
AC
15601/* Override any gcc2 internal prototype to avoid an error. */
15602#ifdef __cplusplus
15603extern "C"
15604{
15605#endif
15606/* We use char because int might match the return type of a gcc2
15607 builtin and then its argument prototype would still apply. */
15608char $ac_func ();
97bf5e38
MK
15609/* The GNU C library defines this for functions which it implements
15610 to always fail with ENOSYS. Some functions are actually named
15611 something starting with __ and the normal name is an alias. */
15612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15613choke me
c906108c 15614#else
bec39cab
AC
15615char (*f) () = $ac_func;
15616#endif
15617#ifdef __cplusplus
15618}
c906108c 15619#endif
97bf5e38 15620
bec39cab
AC
15621int
15622main ()
15623{
15624return f != $ac_func;
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629rm -f conftest.$ac_objext conftest$ac_exeext
15630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631 (eval $ac_link) 2>conftest.er1
15632 ac_status=$?
15633 grep -v '^ *+' conftest.er1 >conftest.err
15634 rm -f conftest.er1
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
121ce6e5 15638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 eval "$as_ac_var=yes"
15651else
15652 echo "$as_me: failed program was:" >&5
15653sed 's/^/| /' conftest.$ac_ext >&5
15654
15655eval "$as_ac_var=no"
15656fi
15657rm -f conftest.err conftest.$ac_objext \
15658 conftest$ac_exeext conftest.$ac_ext
15659fi
15660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15662if test `eval echo '${'$as_ac_var'}'` = yes; then
15663 cat >>confdefs.h <<_ACEOF
15664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15665_ACEOF
c906108c 15666
c906108c 15667fi
97bf5e38 15668done
c906108c 15669
bec39cab 15670
a3828db0 15671for ac_func in pread64
97bf5e38 15672do
bec39cab
AC
15673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15674echo "$as_me:$LINENO: checking for $ac_func" >&5
15675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15676if eval "test \"\${$as_ac_var+set}\" = set"; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678else
15679 cat >conftest.$ac_ext <<_ACEOF
15680/* confdefs.h. */
15681_ACEOF
15682cat confdefs.h >>conftest.$ac_ext
15683cat >>conftest.$ac_ext <<_ACEOF
15684/* end confdefs.h. */
15685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15687#define $ac_func innocuous_$ac_func
15688
97bf5e38 15689/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15690 which can conflict with char $ac_func (); below.
15691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15692 <limits.h> exists even on freestanding compilers. */
15693
15694#ifdef __STDC__
15695# include <limits.h>
15696#else
15697# include <assert.h>
15698#endif
c906108c 15699
bec39cab 15700#undef $ac_func
97bf5e38 15701
bec39cab
AC
15702/* Override any gcc2 internal prototype to avoid an error. */
15703#ifdef __cplusplus
15704extern "C"
15705{
15706#endif
15707/* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15709char $ac_func ();
97bf5e38
MK
15710/* The GNU C library defines this for functions which it implements
15711 to always fail with ENOSYS. Some functions are actually named
15712 something starting with __ and the normal name is an alias. */
15713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15714choke me
c906108c 15715#else
bec39cab
AC
15716char (*f) () = $ac_func;
15717#endif
15718#ifdef __cplusplus
15719}
c906108c 15720#endif
97bf5e38 15721
bec39cab
AC
15722int
15723main ()
15724{
15725return f != $ac_func;
15726 ;
15727 return 0;
15728}
15729_ACEOF
15730rm -f conftest.$ac_objext conftest$ac_exeext
15731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15732 (eval $ac_link) 2>conftest.er1
15733 ac_status=$?
15734 grep -v '^ *+' conftest.er1 >conftest.err
15735 rm -f conftest.er1
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
121ce6e5 15739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; } &&
15745 { ac_try='test -s conftest$ac_exeext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 eval "$as_ac_var=yes"
15752else
15753 echo "$as_me: failed program was:" >&5
15754sed 's/^/| /' conftest.$ac_ext >&5
15755
15756eval "$as_ac_var=no"
15757fi
15758rm -f conftest.err conftest.$ac_objext \
15759 conftest$ac_exeext conftest.$ac_ext
15760fi
15761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15763if test `eval echo '${'$as_ac_var'}'` = yes; then
15764 cat >>confdefs.h <<_ACEOF
15765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15766_ACEOF
c906108c 15767
c906108c 15768fi
97bf5e38 15769done
c906108c 15770
bec39cab 15771
a3828db0 15772for ac_func in sbrk
b757528f 15773do
bec39cab
AC
15774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15775echo "$as_me:$LINENO: checking for $ac_func" >&5
15776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15777if eval "test \"\${$as_ac_var+set}\" = set"; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15779else
15780 cat >conftest.$ac_ext <<_ACEOF
15781/* confdefs.h. */
15782_ACEOF
15783cat confdefs.h >>conftest.$ac_ext
15784cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h. */
15786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15788#define $ac_func innocuous_$ac_func
15789
b757528f 15790/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15791 which can conflict with char $ac_func (); below.
15792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15793 <limits.h> exists even on freestanding compilers. */
15794
15795#ifdef __STDC__
15796# include <limits.h>
15797#else
15798# include <assert.h>
15799#endif
b757528f 15800
bec39cab 15801#undef $ac_func
b757528f 15802
bec39cab
AC
15803/* Override any gcc2 internal prototype to avoid an error. */
15804#ifdef __cplusplus
15805extern "C"
15806{
15807#endif
15808/* We use char because int might match the return type of a gcc2
15809 builtin and then its argument prototype would still apply. */
15810char $ac_func ();
b757528f
JJ
15811/* The GNU C library defines this for functions which it implements
15812 to always fail with ENOSYS. Some functions are actually named
15813 something starting with __ and the normal name is an alias. */
15814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15815choke me
15816#else
bec39cab
AC
15817char (*f) () = $ac_func;
15818#endif
15819#ifdef __cplusplus
15820}
b757528f
JJ
15821#endif
15822
bec39cab
AC
15823int
15824main ()
15825{
15826return f != $ac_func;
15827 ;
15828 return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext conftest$ac_exeext
15832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15833 (eval $ac_link) 2>conftest.er1
15834 ac_status=$?
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
121ce6e5 15840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest$ac_exeext'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 eval "$as_ac_var=yes"
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857eval "$as_ac_var=no"
15858fi
15859rm -f conftest.err conftest.$ac_objext \
15860 conftest$ac_exeext conftest.$ac_ext
15861fi
15862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15863echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15864if test `eval echo '${'$as_ac_var'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15867_ACEOF
b757528f 15868
b757528f
JJ
15869fi
15870done
15871
bec39cab 15872
a3828db0
MK
15873
15874for ac_func in setpgid setpgrp
bcb3dc3d 15875do
bec39cab
AC
15876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15877echo "$as_me:$LINENO: checking for $ac_func" >&5
15878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15879if eval "test \"\${$as_ac_var+set}\" = set"; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15881else
15882 cat >conftest.$ac_ext <<_ACEOF
15883/* confdefs.h. */
15884_ACEOF
15885cat confdefs.h >>conftest.$ac_ext
15886cat >>conftest.$ac_ext <<_ACEOF
15887/* end confdefs.h. */
15888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15890#define $ac_func innocuous_$ac_func
15891
bcb3dc3d 15892/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15893 which can conflict with char $ac_func (); below.
15894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15895 <limits.h> exists even on freestanding compilers. */
15896
15897#ifdef __STDC__
15898# include <limits.h>
15899#else
15900# include <assert.h>
15901#endif
bcb3dc3d 15902
bec39cab 15903#undef $ac_func
bcb3dc3d 15904
bec39cab
AC
15905/* Override any gcc2 internal prototype to avoid an error. */
15906#ifdef __cplusplus
15907extern "C"
15908{
15909#endif
15910/* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15912char $ac_func ();
bcb3dc3d
MK
15913/* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15917choke me
15918#else
bec39cab
AC
15919char (*f) () = $ac_func;
15920#endif
15921#ifdef __cplusplus
15922}
bcb3dc3d
MK
15923#endif
15924
bec39cab
AC
15925int
15926main ()
15927{
15928return f != $ac_func;
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext conftest$ac_exeext
15934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
121ce6e5 15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 eval "$as_ac_var=yes"
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959eval "$as_ac_var=no"
15960fi
15961rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963fi
15964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15965echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15966if test `eval echo '${'$as_ac_var'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15969_ACEOF
bcb3dc3d 15970
bcb3dc3d
MK
15971fi
15972done
15973
bec39cab 15974
a3828db0
MK
15975
15976
15977for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 15978do
bec39cab
AC
15979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15980echo "$as_me:$LINENO: checking for $ac_func" >&5
15981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15982if eval "test \"\${$as_ac_var+set}\" = set"; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984else
15985 cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15993#define $ac_func innocuous_$ac_func
15994
8b9cf735 15995/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15996 which can conflict with char $ac_func (); below.
15997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15998 <limits.h> exists even on freestanding compilers. */
15999
16000#ifdef __STDC__
16001# include <limits.h>
16002#else
16003# include <assert.h>
16004#endif
8b9cf735 16005
bec39cab 16006#undef $ac_func
8b9cf735 16007
a3828db0
MK
16008/* Override any gcc2 internal prototype to avoid an error. */
16009#ifdef __cplusplus
16010extern "C"
16011{
16012#endif
16013/* We use char because int might match the return type of a gcc2
16014 builtin and then its argument prototype would still apply. */
16015char $ac_func ();
16016/* The GNU C library defines this for functions which it implements
16017 to always fail with ENOSYS. Some functions are actually named
16018 something starting with __ and the normal name is an alias. */
16019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16020choke me
16021#else
16022char (*f) () = $ac_func;
16023#endif
16024#ifdef __cplusplus
16025}
16026#endif
16027
bec39cab
AC
16028int
16029main ()
16030{
a3828db0 16031return f != $ac_func;
bec39cab
AC
16032 ;
16033 return 0;
16034}
16035_ACEOF
a3828db0
MK
16036rm -f conftest.$ac_objext conftest$ac_exeext
16037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
121ce6e5 16045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; } &&
a3828db0 16051 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
a3828db0 16057 eval "$as_ac_var=yes"
086ec9eb 16058else
bec39cab
AC
16059 echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
a3828db0
MK
16062eval "$as_ac_var=no"
16063fi
16064rm -f conftest.err conftest.$ac_objext \
16065 conftest$ac_exeext conftest.$ac_ext
16066fi
16067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16069if test `eval echo '${'$as_ac_var'}'` = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16072_ACEOF
16073
086ec9eb 16074fi
a3828db0
MK
16075done
16076
16077
16078for ac_func in socketpair
16079do
16080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16081echo "$as_me:$LINENO: checking for $ac_func" >&5
16082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16083if eval "test \"\${$as_ac_var+set}\" = set"; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16085else
16086 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16087/* confdefs.h. */
16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h. */
a3828db0
MK
16092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16094#define $ac_func innocuous_$ac_func
16095
16096/* System header to define __stub macros and hopefully few prototypes,
16097 which can conflict with char $ac_func (); below.
16098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16099 <limits.h> exists even on freestanding compilers. */
16100
16101#ifdef __STDC__
16102# include <limits.h>
16103#else
16104# include <assert.h>
16105#endif
16106
16107#undef $ac_func
16108
16109/* Override any gcc2 internal prototype to avoid an error. */
16110#ifdef __cplusplus
16111extern "C"
16112{
16113#endif
16114/* We use char because int might match the return type of a gcc2
16115 builtin and then its argument prototype would still apply. */
16116char $ac_func ();
16117/* The GNU C library defines this for functions which it implements
16118 to always fail with ENOSYS. Some functions are actually named
16119 something starting with __ and the normal name is an alias. */
16120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16121choke me
16122#else
16123char (*f) () = $ac_func;
16124#endif
16125#ifdef __cplusplus
16126}
16127#endif
16128
bec39cab
AC
16129int
16130main ()
16131{
a3828db0 16132return f != $ac_func;
bec39cab
AC
16133 ;
16134 return 0;
16135}
16136_ACEOF
a3828db0
MK
16137rm -f conftest.$ac_objext conftest$ac_exeext
16138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } &&
121ce6e5 16146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
a3828db0 16152 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
a3828db0 16158 eval "$as_ac_var=yes"
086ec9eb 16159else
bec39cab
AC
16160 echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
a3828db0 16163eval "$as_ac_var=no"
086ec9eb 16164fi
a3828db0
MK
16165rm -f conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
086ec9eb 16167fi
a3828db0
MK
16168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16170if test `eval echo '${'$as_ac_var'}'` = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16173_ACEOF
086ec9eb
MK
16174
16175fi
a3828db0 16176done
086ec9eb 16177
a3828db0
MK
16178
16179for ac_func in syscall
16180do
16181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16182echo "$as_me:$LINENO: checking for $ac_func" >&5
16183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16184if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16185 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
16186else
16187 cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
a3828db0
MK
16193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16195#define $ac_func innocuous_$ac_func
16196
16197/* System header to define __stub macros and hopefully few prototypes,
16198 which can conflict with char $ac_func (); below.
16199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16200 <limits.h> exists even on freestanding compilers. */
16201
16202#ifdef __STDC__
16203# include <limits.h>
16204#else
16205# include <assert.h>
16206#endif
16207
16208#undef $ac_func
16209
16210/* Override any gcc2 internal prototype to avoid an error. */
16211#ifdef __cplusplus
16212extern "C"
16213{
16214#endif
16215/* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16217char $ac_func ();
16218/* The GNU C library defines this for functions which it implements
16219 to always fail with ENOSYS. Some functions are actually named
16220 something starting with __ and the normal name is an alias. */
16221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16222choke me
16223#else
16224char (*f) () = $ac_func;
16225#endif
16226#ifdef __cplusplus
16227}
c906108c 16228#endif
97bf5e38 16229
bec39cab
AC
16230int
16231main ()
97bf5e38 16232{
a3828db0 16233return f != $ac_func;
bec39cab
AC
16234 ;
16235 return 0;
97bf5e38 16236}
bec39cab 16237_ACEOF
a3828db0 16238rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 16239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16240 (eval $ac_link) 2>conftest.er1
bec39cab 16241 ac_status=$?
a3828db0
MK
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
bec39cab 16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16246 (exit $ac_status); } &&
121ce6e5 16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a3828db0
MK
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
a3828db0 16259 eval "$as_ac_var=yes"
c906108c 16260else
a3828db0 16261 echo "$as_me: failed program was:" >&5
bec39cab
AC
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
a3828db0 16264eval "$as_ac_var=no"
97bf5e38 16265fi
a3828db0
MK
16266rm -f conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16268fi
16269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16271if test `eval echo '${'$as_ac_var'}'` = yes; then
16272 cat >>confdefs.h <<_ACEOF
16273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16274_ACEOF
c906108c
SS
16275
16276fi
a3828db0 16277done
c906108c 16278
a3828db0
MK
16279
16280for ac_func in ttrace
16281do
16282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16283echo "$as_me:$LINENO: checking for $ac_func" >&5
16284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16285if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 16286 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 16287else
bec39cab
AC
16288 cat >conftest.$ac_ext <<_ACEOF
16289/* confdefs.h. */
16290_ACEOF
16291cat confdefs.h >>conftest.$ac_ext
16292cat >>conftest.$ac_ext <<_ACEOF
16293/* end confdefs.h. */
a3828db0
MK
16294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16296#define $ac_func innocuous_$ac_func
b83266a0 16297
a3828db0
MK
16298/* System header to define __stub macros and hopefully few prototypes,
16299 which can conflict with char $ac_func (); below.
16300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16301 <limits.h> exists even on freestanding compilers. */
16302
16303#ifdef __STDC__
16304# include <limits.h>
16305#else
16306# include <assert.h>
16307#endif
16308
16309#undef $ac_func
16310
16311/* Override any gcc2 internal prototype to avoid an error. */
16312#ifdef __cplusplus
16313extern "C"
16314{
16315#endif
16316/* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16318char $ac_func ();
16319/* The GNU C library defines this for functions which it implements
16320 to always fail with ENOSYS. Some functions are actually named
16321 something starting with __ and the normal name is an alias. */
16322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16323choke me
16324#else
16325char (*f) () = $ac_func;
16326#endif
16327#ifdef __cplusplus
16328}
16329#endif
97bf5e38 16330
bec39cab
AC
16331int
16332main ()
16333{
a3828db0 16334return f != $ac_func;
bec39cab
AC
16335 ;
16336 return 0;
16337}
16338_ACEOF
a3828db0
MK
16339rm -f conftest.$ac_objext conftest$ac_exeext
16340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
121ce6e5 16348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
a3828db0 16354 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
a3828db0 16360 eval "$as_ac_var=yes"
b83266a0 16361else
bec39cab
AC
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
a3828db0 16365eval "$as_ac_var=no"
b83266a0 16366fi
a3828db0
MK
16367rm -f conftest.err conftest.$ac_objext \
16368 conftest$ac_exeext conftest.$ac_ext
b83266a0 16369fi
a3828db0
MK
16370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16372if test `eval echo '${'$as_ac_var'}'` = yes; then
16373 cat >>confdefs.h <<_ACEOF
16374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16375_ACEOF
b83266a0 16376
97bf5e38 16377fi
a3828db0 16378done
b83266a0 16379
a3828db0
MK
16380
16381for ac_func in wborder
16382do
16383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16384echo "$as_me:$LINENO: checking for $ac_func" >&5
16385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16386if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389 cat >conftest.$ac_ext <<_ACEOF
16390/* confdefs.h. */
16391_ACEOF
16392cat confdefs.h >>conftest.$ac_ext
16393cat >>conftest.$ac_ext <<_ACEOF
16394/* end confdefs.h. */
a3828db0
MK
16395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16397#define $ac_func innocuous_$ac_func
a4db0f07 16398
a3828db0
MK
16399/* System header to define __stub macros and hopefully few prototypes,
16400 which can conflict with char $ac_func (); below.
16401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16402 <limits.h> exists even on freestanding compilers. */
16403
16404#ifdef __STDC__
16405# include <limits.h>
16406#else
16407# include <assert.h>
16408#endif
16409
16410#undef $ac_func
16411
16412/* Override any gcc2 internal prototype to avoid an error. */
16413#ifdef __cplusplus
16414extern "C"
16415{
16416#endif
16417/* We use char because int might match the return type of a gcc2
16418 builtin and then its argument prototype would still apply. */
16419char $ac_func ();
16420/* The GNU C library defines this for functions which it implements
16421 to always fail with ENOSYS. Some functions are actually named
16422 something starting with __ and the normal name is an alias. */
16423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16424choke me
16425#else
16426char (*f) () = $ac_func;
16427#endif
16428#ifdef __cplusplus
16429}
16430#endif
97bf5e38 16431
bec39cab
AC
16432int
16433main ()
16434{
a3828db0 16435return f != $ac_func;
bec39cab
AC
16436 ;
16437 return 0;
16438}
16439_ACEOF
a3828db0
MK
16440rm -f conftest.$ac_objext conftest$ac_exeext
16441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16442 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16443 ac_status=$?
16444 grep -v '^ *+' conftest.er1 >conftest.err
16445 rm -f conftest.er1
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
121ce6e5 16449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
a3828db0 16455 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
a3828db0 16461 eval "$as_ac_var=yes"
a4db0f07 16462else
bec39cab
AC
16463 echo "$as_me: failed program was:" >&5
16464sed 's/^/| /' conftest.$ac_ext >&5
16465
a3828db0 16466eval "$as_ac_var=no"
a4db0f07 16467fi
a3828db0
MK
16468rm -f conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
a4db0f07 16470fi
a3828db0
MK
16471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16473if test `eval echo '${'$as_ac_var'}'` = yes; then
16474 cat >>confdefs.h <<_ACEOF
16475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 16476_ACEOF
a4db0f07
RH
16477
16478fi
a3828db0 16479done
c906108c 16480
06825bd1 16481
a3828db0
MK
16482# Check the return and argument types of ptrace. No canned test for
16483# this, so roll our own.
16484gdb_ptrace_headers='
16485#if HAVE_SYS_TYPES_H
16486# include <sys/types.h>
16487#endif
16488#if HAVE_SYS_PTRACE_H
16489# include <sys/ptrace.h>
16490#endif
16491#if HAVE_UNISTD_H
16492# include <unistd.h>
16493#endif
16494'
16495# There is no point in checking if we don't have a prototype.
16496echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16497echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16498if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16500else
16501 cat >conftest.$ac_ext <<_ACEOF
16502/* confdefs.h. */
16503_ACEOF
16504cat confdefs.h >>conftest.$ac_ext
16505cat >>conftest.$ac_ext <<_ACEOF
16506/* end confdefs.h. */
a3828db0
MK
16507$gdb_ptrace_headers
16508
bec39cab
AC
16509int
16510main ()
16511{
a3828db0
MK
16512#ifndef ptrace
16513 char *p = (char *) ptrace;
06825bd1 16514#endif
a3828db0 16515
bec39cab
AC
16516 ;
16517 return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
121ce6e5 16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
a3828db0 16541 ac_cv_have_decl_ptrace=yes
06825bd1 16542else
bec39cab
AC
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
a3828db0 16546ac_cv_have_decl_ptrace=no
06825bd1 16547fi
bec39cab 16548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 16549fi
a3828db0
MK
16550echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16551echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16552if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 16553
a3828db0
MK
16554cat >>confdefs.h <<_ACEOF
16555#define HAVE_DECL_PTRACE 1
16556_ACEOF
bec39cab 16557
bec39cab 16558
a3828db0
MK
16559else
16560 cat >>confdefs.h <<_ACEOF
16561#define HAVE_DECL_PTRACE 0
bec39cab 16562_ACEOF
06825bd1 16563
a3828db0
MK
16564
16565 : ${gdb_cv_func_ptrace_ret='int'}
16566 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16567
06825bd1
MK
16568fi
16569
a3828db0
MK
16570
16571# Check return type.
16572echo "$as_me:$LINENO: checking return type of ptrace" >&5
16573echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16574if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576else
16577 cat >conftest.$ac_ext <<_ACEOF
16578/* confdefs.h. */
16579_ACEOF
16580cat confdefs.h >>conftest.$ac_ext
16581cat >>conftest.$ac_ext <<_ACEOF
16582/* end confdefs.h. */
a3828db0 16583$gdb_ptrace_headers
bec39cab
AC
16584int
16585main ()
16586{
a3828db0 16587extern int ptrace ();
bec39cab
AC
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext
16593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16594 (eval $ac_compile) 2>conftest.er1
16595 ac_status=$?
16596 grep -v '^ *+' conftest.er1 >conftest.err
16597 rm -f conftest.er1
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
121ce6e5 16601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
a3828db0 16613 gdb_cv_func_ptrace_ret='int'
70f9f479 16614else
bec39cab
AC
16615 echo "$as_me: failed program was:" >&5
16616sed 's/^/| /' conftest.$ac_ext >&5
16617
a3828db0 16618gdb_cv_func_ptrace_ret='long'
70f9f479 16619fi
bec39cab 16620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 16621fi
a3828db0
MK
16622echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16623echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 16624
a3828db0
MK
16625cat >>confdefs.h <<_ACEOF
16626#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 16627_ACEOF
70f9f479 16628
a3828db0
MK
16629# Check argument types.
16630echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16631echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16632if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634else
a3828db0
MK
16635
16636for gdb_arg1 in 'int' 'long'; do
16637 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16638 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16639 for gdb_arg4 in 'int' 'long'; do
16640 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16641/* confdefs.h. */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
16645/* end confdefs.h. */
a3828db0 16646$gdb_ptrace_headers
bec39cab
AC
16647int
16648main ()
16649{
a3828db0
MK
16650
16651extern $gdb_cv_func_ptrace_ret
16652 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16653
bec39cab
AC
16654 ;
16655 return 0;
16656}
16657_ACEOF
16658rm -f conftest.$ac_objext
16659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>conftest.er1
16661 ac_status=$?
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
121ce6e5 16667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
a3828db0
MK
16679 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16680 break 4;
5c7f2947 16681else
bec39cab
AC
16682 echo "$as_me: failed program was:" >&5
16683sed 's/^/| /' conftest.$ac_ext >&5
16684
5c7f2947 16685fi
bec39cab 16686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16687 for gdb_arg5 in 'int *' 'int' 'long'; do
16688 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
a3828db0 16694$gdb_ptrace_headers
bec39cab
AC
16695int
16696main ()
16697{
a3828db0
MK
16698
16699extern $gdb_cv_func_ptrace_ret
16700 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16701
bec39cab
AC
16702 ;
16703 return 0;
16704}
16705_ACEOF
16706rm -f conftest.$ac_objext
16707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16708 (eval $ac_compile) 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
121ce6e5 16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
a3828db0
MK
16727
16728gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16729 break 5;
78434e59 16730else
bec39cab
AC
16731 echo "$as_me: failed program was:" >&5
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
78434e59 16734fi
bec39cab 16735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16736 done
16737 done
16738 done
16739 done
16740done
16741# Provide a safe default value.
16742: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16743
78434e59 16744fi
a3828db0
MK
16745echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16746echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16747ac_save_IFS=$IFS; IFS=','
16748set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16749IFS=$ac_save_IFS
16750shift
bec39cab 16751
a3828db0
MK
16752cat >>confdefs.h <<_ACEOF
16753#define PTRACE_TYPE_ARG3 $3
16754_ACEOF
16755
16756if test -n "$5"; then
16757
16758cat >>confdefs.h <<_ACEOF
16759#define PTRACE_TYPE_ARG5 $5
bec39cab 16760_ACEOF
78434e59
MK
16761
16762fi
16763
a3828db0
MK
16764if test "$cross_compiling" = no; then
16765 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16766echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16767if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16768 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16769else
16770 if test "$cross_compiling" = yes; then
16771 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16772echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16773 { (exit 1); exit 1; }; }
bec39cab
AC
16774else
16775 cat >conftest.$ac_ext <<_ACEOF
16776/* confdefs.h. */
16777_ACEOF
16778cat confdefs.h >>conftest.$ac_ext
16779cat >>conftest.$ac_ext <<_ACEOF
16780/* end confdefs.h. */
a3828db0
MK
16781#if HAVE_UNISTD_H
16782# include <unistd.h>
16783#endif
16784
bec39cab
AC
16785int
16786main ()
16787{
a3828db0
MK
16788/* If this system has a BSD-style setpgrp which takes arguments,
16789 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16790 exit successfully. */
16791 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
16792 ;
16793 return 0;
16794}
16795_ACEOF
a3828db0
MK
16796rm -f conftest$ac_exeext
16797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
bec39cab
AC
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
a3828db0 16807 ac_cv_func_setpgrp_void=no
c906108c 16808else
a3828db0
MK
16809 echo "$as_me: program exited with status $ac_status" >&5
16810echo "$as_me: failed program was:" >&5
bec39cab
AC
16811sed 's/^/| /' conftest.$ac_ext >&5
16812
a3828db0
MK
16813( exit $ac_status )
16814ac_cv_func_setpgrp_void=yes
c906108c 16815fi
a3828db0 16816rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 16817fi
a3828db0
MK
16818fi
16819echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16820echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16821if test $ac_cv_func_setpgrp_void = yes; then
16822
16823cat >>confdefs.h <<\_ACEOF
16824#define SETPGRP_VOID 1
bec39cab 16825_ACEOF
97bf5e38
MK
16826
16827fi
a3828db0
MK
16828
16829else
16830 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16831echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16832if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 16833 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16834else
bec39cab
AC
16835 cat >conftest.$ac_ext <<_ACEOF
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
a3828db0
MK
16841
16842#include <unistd.h>
16843
bec39cab
AC
16844int
16845main ()
16846{
a3828db0
MK
16847
16848 if (setpgrp(1,1) == -1)
16849 exit (0);
16850 else
16851 exit (1);
16852
bec39cab
AC
16853 ;
16854 return 0;
16855}
16856_ACEOF
16857rm -f conftest.$ac_objext
16858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859 (eval $ac_compile) 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
121ce6e5 16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
a3828db0 16878 ac_cv_func_setpgrp_void=no
c906108c 16879else
bec39cab
AC
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
a3828db0 16883ac_cv_func_setpgrp_void=yes
c906108c 16884fi
bec39cab 16885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16886fi
a3828db0
MK
16887echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16888echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16889if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 16890 cat >>confdefs.h <<\_ACEOF
a3828db0 16891#define SETPGRP_VOID 1
bec39cab 16892_ACEOF
c3f6f71d 16893
a3828db0 16894fi
c906108c
SS
16895fi
16896
a3828db0
MK
16897# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16898# since sigsetjmp might only be defined as a macro.
16899echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16900echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16901if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16903else
16904 cat >conftest.$ac_ext <<_ACEOF
16905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
a3828db0
MK
16910
16911#include <setjmp.h>
16912
bec39cab
AC
16913int
16914main ()
16915{
a3828db0 16916sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
16917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext
16922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
121ce6e5 16930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; } &&
16936 { ac_try='test -s conftest.$ac_objext'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
a3828db0 16942 gdb_cv_func_sigsetjmp=yes
c906108c 16943else
bec39cab
AC
16944 echo "$as_me: failed program was:" >&5
16945sed 's/^/| /' conftest.$ac_ext >&5
16946
a3828db0 16947gdb_cv_func_sigsetjmp=no
c906108c 16948fi
bec39cab 16949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16950fi
a3828db0
MK
16951echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16952echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16953if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 16954
a3828db0
MK
16955cat >>confdefs.h <<\_ACEOF
16956#define HAVE_SIGSETJMP 1
bec39cab 16957_ACEOF
c906108c 16958
97bf5e38 16959fi
c906108c 16960
a3828db0
MK
16961# Assume we'll default to using the included libiberty regex.
16962gdb_use_included_regex=yes
16963
16964# However, if the system regex is GNU regex, then default to *not*
16965# using the included regex.
16966echo "$as_me:$LINENO: checking for GNU regex" >&5
16967echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16968if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16970else
16971 cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h. */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h. */
a3828db0 16977#include <gnu-versions.h>
bec39cab
AC
16978int
16979main ()
16980{
a3828db0
MK
16981#define REGEX_INTERFACE_VERSION 1
16982#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16983# error "Version mismatch"
16984#endif
bec39cab
AC
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
16990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16991 (eval $ac_compile) 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
121ce6e5 16998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
a3828db0 17010 gdb_cv_have_gnu_regex=yes
c906108c 17011else
bec39cab
AC
17012 echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014
a3828db0 17015gdb_cv_have_gnu_regex=no
c906108c 17016fi
bec39cab 17017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17018fi
a3828db0
MK
17019echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17020echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17021if test $gdb_cv_have_gnu_regex = yes; then
17022 gdb_use_included_regex=no
17023fi
c906108c 17024
a3828db0
MK
17025
17026# Check whether --with-included-regex or --without-included-regex was given.
17027if test "${with_included_regex+set}" = set; then
17028 withval="$with_included_regex"
17029 gdb_with_regex=$withval
17030else
17031 gdb_with_regex=$gdb_use_included_regex
17032fi;
17033if test "$gdb_with_regex" = yes; then
17034
17035cat >>confdefs.h <<\_ACEOF
17036#define USE_INCLUDED_REGEX 1
bec39cab 17037_ACEOF
c906108c 17038
97bf5e38 17039fi
c906108c 17040
5c45e068
MK
17041# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17042echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17043echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17044if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047 cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
a3828db0
MK
17053#include <sys/param.h>
17054#include <sys/proc.h>
5c45e068
MK
17055
17056
bec39cab
AC
17057int
17058main ()
17059{
5c45e068
MK
17060static struct thread ac_aggr;
17061if (ac_aggr.td_pcb)
17062return 0;
bec39cab
AC
17063 ;
17064 return 0;
17065}
17066_ACEOF
17067rm -f conftest.$ac_objext
17068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17069 (eval $ac_compile) 2>conftest.er1
17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
121ce6e5 17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
5c45e068 17088 ac_cv_member_struct_thread_td_pcb=yes
c906108c 17089else
bec39cab
AC
17090 echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
5c45e068
MK
17093cat >conftest.$ac_ext <<_ACEOF
17094/* confdefs.h. */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h. */
17099#include <sys/param.h>
17100#include <sys/proc.h>
17101
17102
17103int
17104main ()
17105{
17106static struct thread ac_aggr;
17107if (sizeof ac_aggr.td_pcb)
17108return 0;
17109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext
17114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115 (eval $ac_compile) 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
121ce6e5 17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; } &&
17128 { ac_try='test -s conftest.$ac_objext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_member_struct_thread_td_pcb=yes
17135else
17136 echo "$as_me: failed program was:" >&5
17137sed 's/^/| /' conftest.$ac_ext >&5
17138
17139ac_cv_member_struct_thread_td_pcb=no
17140fi
17141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17142fi
bec39cab 17143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17144fi
5c45e068
MK
17145echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17146echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17147if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 17148
5c45e068 17149cat >>confdefs.h <<_ACEOF
a3828db0 17150#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 17151_ACEOF
c906108c 17152
5c45e068 17153
97bf5e38 17154fi
c906108c 17155
5c45e068 17156
a3828db0
MK
17157# See if <sys/lwp.h> defines `struct lwp`.
17158echo "$as_me:$LINENO: checking for struct lwp" >&5
17159echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17160if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163 cat >conftest.$ac_ext <<_ACEOF
17164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
a3828db0
MK
17169#include <sys/param.h>
17170#include <sys/lwp.h>
bec39cab
AC
17171int
17172main ()
17173{
a3828db0 17174struct lwp l;
bec39cab
AC
17175 ;
17176 return 0;
17177}
17178_ACEOF
17179rm -f conftest.$ac_objext
17180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17181 (eval $ac_compile) 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
121ce6e5 17188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest.$ac_objext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
a3828db0 17200 gdb_cv_struct_lwp=yes
c906108c 17201else
bec39cab
AC
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
a3828db0 17205gdb_cv_struct_lwp=no
c906108c 17206fi
bec39cab 17207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 17208fi
a3828db0
MK
17209echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17210echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17211if test $gdb_cv_struct_lwp = yes; then
c906108c 17212
a3828db0
MK
17213cat >>confdefs.h <<\_ACEOF
17214#define HAVE_STRUCT_LWP 1
bec39cab 17215_ACEOF
c906108c 17216
97bf5e38 17217fi
c906108c 17218
a3828db0
MK
17219# See if <machine/reg.h> degines `struct reg'.
17220echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17221echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17222if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224else
17225 cat >conftest.$ac_ext <<_ACEOF
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
a3828db0
MK
17231#include <sys/types.h>
17232#include <machine/reg.h>
bec39cab
AC
17233int
17234main ()
17235{
a3828db0 17236struct reg r;
bec39cab
AC
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext
17242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
121ce6e5 17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest.$ac_objext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
a3828db0 17262 gdb_cv_struct_reg=yes
27ca5dad 17263else
bec39cab
AC
17264 echo "$as_me: failed program was:" >&5
17265sed 's/^/| /' conftest.$ac_ext >&5
17266
a3828db0 17267gdb_cv_struct_reg=no
27ca5dad 17268fi
bec39cab 17269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 17270fi
a3828db0
MK
17271echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17272echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17273if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
17274
17275cat >>confdefs.h <<\_ACEOF
a3828db0 17276#define HAVE_STRUCT_REG 1
bec39cab 17277_ACEOF
27ca5dad
MC
17278
17279fi
97bf5e38 17280
a3828db0
MK
17281# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17282# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
5c45e068
MK
17283echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17284echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17285if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 17286 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17287else
bec39cab
AC
17288 cat >conftest.$ac_ext <<_ACEOF
17289/* confdefs.h. */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h. */
a3828db0 17294#include <machine/reg.h>
5c45e068
MK
17295
17296int
17297main ()
17298{
17299static struct reg ac_aggr;
17300if (ac_aggr.r_fs)
17301return 0;
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306rm -f conftest.$ac_objext
17307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308 (eval $ac_compile) 2>conftest.er1
17309 ac_status=$?
17310 grep -v '^ *+' conftest.er1 >conftest.err
17311 rm -f conftest.er1
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
121ce6e5 17315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
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); }; } &&
17321 { ac_try='test -s conftest.$ac_objext'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_member_struct_reg_r_fs=yes
17328else
17329 echo "$as_me: failed program was:" >&5
17330sed 's/^/| /' conftest.$ac_ext >&5
17331
17332cat >conftest.$ac_ext <<_ACEOF
17333/* confdefs.h. */
17334_ACEOF
17335cat confdefs.h >>conftest.$ac_ext
17336cat >>conftest.$ac_ext <<_ACEOF
17337/* end confdefs.h. */
17338#include <machine/reg.h>
17339
bec39cab
AC
17340int
17341main ()
17342{
5c45e068
MK
17343static struct reg ac_aggr;
17344if (sizeof ac_aggr.r_fs)
17345return 0;
bec39cab
AC
17346 ;
17347 return 0;
17348}
17349_ACEOF
17350rm -f conftest.$ac_objext
17351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17352 (eval $ac_compile) 2>conftest.er1
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
121ce6e5 17359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest.$ac_objext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
5c45e068 17371 ac_cv_member_struct_reg_r_fs=yes
3862412b 17372else
bec39cab
AC
17373 echo "$as_me: failed program was:" >&5
17374sed 's/^/| /' conftest.$ac_ext >&5
17375
5c45e068 17376ac_cv_member_struct_reg_r_fs=no
3862412b 17377fi
bec39cab 17378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17379fi
5c45e068
MK
17380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17381fi
17382echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17383echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17384if test $ac_cv_member_struct_reg_r_fs = yes; then
17385
17386cat >>confdefs.h <<_ACEOF
a3828db0 17387#define HAVE_STRUCT_REG_R_FS 1
bec39cab 17388_ACEOF
3862412b 17389
5c45e068 17390
97bf5e38 17391fi
5c45e068
MK
17392echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17393echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17394if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 17395 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17396else
bec39cab
AC
17397 cat >conftest.$ac_ext <<_ACEOF
17398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
a3828db0 17403#include <machine/reg.h>
5c45e068 17404
bec39cab
AC
17405int
17406main ()
17407{
5c45e068
MK
17408static struct reg ac_aggr;
17409if (ac_aggr.r_gs)
17410return 0;
bec39cab
AC
17411 ;
17412 return 0;
17413}
17414_ACEOF
17415rm -f conftest.$ac_objext
17416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417 (eval $ac_compile) 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
121ce6e5 17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try='test -s conftest.$ac_objext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
5c45e068 17436 ac_cv_member_struct_reg_r_gs=yes
3862412b 17437else
bec39cab
AC
17438 echo "$as_me: failed program was:" >&5
17439sed 's/^/| /' conftest.$ac_ext >&5
17440
5c45e068
MK
17441cat >conftest.$ac_ext <<_ACEOF
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447#include <machine/reg.h>
17448
17449int
17450main ()
17451{
17452static struct reg ac_aggr;
17453if (sizeof ac_aggr.r_gs)
17454return 0;
17455 ;
17456 return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext
17460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461 (eval $ac_compile) 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
121ce6e5 17468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5c45e068
MK
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest.$ac_objext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_member_struct_reg_r_gs=yes
17481else
17482 echo "$as_me: failed program was:" >&5
17483sed 's/^/| /' conftest.$ac_ext >&5
17484
17485ac_cv_member_struct_reg_r_gs=no
3862412b 17486fi
bec39cab 17487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 17488fi
5c45e068
MK
17489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17490fi
17491echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17492echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17493if test $ac_cv_member_struct_reg_r_gs = yes; then
17494
17495cat >>confdefs.h <<_ACEOF
a3828db0 17496#define HAVE_STRUCT_REG_R_GS 1
bec39cab 17497_ACEOF
3862412b 17498
5c45e068 17499
97bf5e38 17500fi
3862412b 17501
5c45e068 17502
a3828db0
MK
17503# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17504echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17505echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17506if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 17507 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17508else
bec39cab
AC
17509 cat >conftest.$ac_ext <<_ACEOF
17510/* confdefs.h. */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h. */
a3828db0 17515#include <sys/ptrace.h>
bec39cab
AC
17516int
17517main ()
17518{
a3828db0 17519PTRACE_GETREGS;
bec39cab
AC
17520 ;
17521 return 0;
17522}
17523_ACEOF
17524rm -f conftest.$ac_objext
17525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17526 (eval $ac_compile) 2>conftest.er1
17527 ac_status=$?
17528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
121ce6e5 17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
a3828db0 17545 gdb_cv_have_ptrace_getregs=yes
451928c5 17546else
bec39cab
AC
17547 echo "$as_me: failed program was:" >&5
17548sed 's/^/| /' conftest.$ac_ext >&5
17549
a3828db0 17550gdb_cv_have_ptrace_getregs=no
451928c5 17551fi
bec39cab 17552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17553fi
17554
a3828db0
MK
17555echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17556echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17557if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
17558
17559cat >>confdefs.h <<\_ACEOF
a3828db0 17560#define HAVE_PTRACE_GETREGS 1
bec39cab 17561_ACEOF
451928c5 17562
97bf5e38 17563fi
451928c5 17564
a3828db0
MK
17565# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17566echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17567echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17568if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 17569 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 17570else
bec39cab
AC
17571 cat >conftest.$ac_ext <<_ACEOF
17572/* confdefs.h. */
17573_ACEOF
17574cat confdefs.h >>conftest.$ac_ext
17575cat >>conftest.$ac_ext <<_ACEOF
17576/* end confdefs.h. */
a3828db0 17577#include <sys/ptrace.h>
bec39cab
AC
17578int
17579main ()
17580{
a3828db0 17581PTRACE_GETFPXREGS;
bec39cab
AC
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext
17587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
121ce6e5 17595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest.$ac_objext'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
a3828db0 17607 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 17608else
bec39cab
AC
17609 echo "$as_me: failed program was:" >&5
17610sed 's/^/| /' conftest.$ac_ext >&5
17611
a3828db0 17612gdb_cv_have_ptrace_getfpxregs=no
451928c5 17613fi
bec39cab 17614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
17615fi
17616
a3828db0
MK
17617echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17618echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17619if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
17620
17621cat >>confdefs.h <<\_ACEOF
a3828db0 17622#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 17623_ACEOF
451928c5 17624
97bf5e38 17625fi
451928c5 17626
a3828db0
MK
17627# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17628echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17629echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17630if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 17631 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17632else
bec39cab
AC
17633 cat >conftest.$ac_ext <<_ACEOF
17634/* confdefs.h. */
17635_ACEOF
17636cat confdefs.h >>conftest.$ac_ext
17637cat >>conftest.$ac_ext <<_ACEOF
17638/* end confdefs.h. */
a3828db0
MK
17639#include <sys/types.h>
17640#include <sys/ptrace.h>
bec39cab
AC
17641int
17642main ()
17643{
a3828db0 17644PT_GETDBREGS;
bec39cab
AC
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext
17650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17651 (eval $ac_compile) 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
121ce6e5 17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
a3828db0 17670 gdb_cv_have_pt_getdbregs=yes
3862412b 17671else
bec39cab
AC
17672 echo "$as_me: failed program was:" >&5
17673sed 's/^/| /' conftest.$ac_ext >&5
17674
a3828db0 17675gdb_cv_have_pt_getdbregs=no
3862412b 17676fi
bec39cab 17677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17678fi
17679
a3828db0
MK
17680echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17681echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17682if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
17683
17684cat >>confdefs.h <<\_ACEOF
a3828db0 17685#define HAVE_PT_GETDBREGS 1
bec39cab 17686_ACEOF
3862412b 17687
97bf5e38 17688fi
3862412b 17689
a3828db0
MK
17690# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17691echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17692echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17693if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 17694 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 17695else
bec39cab
AC
17696 cat >conftest.$ac_ext <<_ACEOF
17697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
17701/* end confdefs.h. */
a3828db0
MK
17702#include <sys/types.h>
17703#include <sys/ptrace.h>
bec39cab
AC
17704int
17705main ()
17706{
a3828db0 17707PT_GETXMMREGS;
bec39cab
AC
17708 ;
17709 return 0;
17710}
17711_ACEOF
17712rm -f conftest.$ac_objext
17713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17714 (eval $ac_compile) 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
121ce6e5 17721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; } &&
17727 { ac_try='test -s conftest.$ac_objext'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
a3828db0 17733 gdb_cv_have_pt_getxmmregs=yes
3862412b 17734else
bec39cab
AC
17735 echo "$as_me: failed program was:" >&5
17736sed 's/^/| /' conftest.$ac_ext >&5
17737
a3828db0 17738gdb_cv_have_pt_getxmmregs=no
3862412b 17739fi
bec39cab 17740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
17741fi
17742
a3828db0
MK
17743echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17744echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17745if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
17746
17747cat >>confdefs.h <<\_ACEOF
a3828db0 17748#define HAVE_PT_GETXMMREGS 1
bec39cab 17749_ACEOF
3862412b 17750
97bf5e38 17751fi
3862412b 17752
97bf5e38
MK
17753# If we are configured native on GNU/Linux, work around problems with
17754# sys/procfs.h
17755# Also detect which type of /proc is in use, such as for Unixware or Solaris.
17756
17757if test "${target}" = "${host}"; then
17758 case "${host}" in
17759 i[3456]86-*-linux*)
60ca704f
SE
17760
17761cat >>confdefs.h <<\_ACEOF
97bf5e38 17762#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 17763_ACEOF
97bf5e38 17764
60ca704f
SE
17765
17766cat >>confdefs.h <<\_ACEOF
97bf5e38 17767#define sys_quotactl 1
bec39cab 17768_ACEOF
97bf5e38
MK
17769
17770 ;;
97bf5e38 17771 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
17772
17773cat >>confdefs.h <<\_ACEOF
97bf5e38 17774#define NEW_PROC_API 1
bec39cab 17775_ACEOF
97bf5e38
MK
17776
17777 ;;
0bbc026e 17778 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
17779
17780cat >>confdefs.h <<\_ACEOF
97bf5e38 17781#define NEW_PROC_API 1
bec39cab 17782_ACEOF
c960c18f
AC
17783
17784 ;;
17785 mips-sgi-irix5*)
17786 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
17787
17788cat >>confdefs.h <<\_ACEOF
c960c18f 17789#define _KMEMUSER 1
bec39cab 17790_ACEOF
97bf5e38
MK
17791
17792 ;;
17793 esac
17794fi
17795
17796if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
17797 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17798echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17799 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801else
17802 cat >conftest.$ac_ext <<_ACEOF
17803/* confdefs.h. */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h. */
596c9d4b
KB
17808
17809#define _SYSCALL32
17810#include <sys/procfs.h>
bec39cab
AC
17811int
17812main ()
17813{
97bf5e38 17814pstatus_t avar
bec39cab
AC
17815 ;
17816 return 0;
17817}
17818_ACEOF
17819rm -f conftest.$ac_objext
17820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
121ce6e5 17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest.$ac_objext'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
97bf5e38 17840 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 17841else
bec39cab
AC
17842 echo "$as_me: failed program was:" >&5
17843sed 's/^/| /' conftest.$ac_ext >&5
17844
17845bfd_cv_have_sys_procfs_type_pstatus_t=no
17846
596c9d4b 17847fi
bec39cab 17848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17849fi
17850
97bf5e38 17851 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
17852
17853cat >>confdefs.h <<\_ACEOF
97bf5e38 17854#define HAVE_PSTATUS_T 1
bec39cab 17855_ACEOF
596c9d4b
KB
17856
17857 fi
bec39cab
AC
17858 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17859echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 17860
bec39cab
AC
17861 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17862echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17863 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17865else
bec39cab
AC
17866 cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
596c9d4b
KB
17872
17873#define _SYSCALL32
17874#include <sys/procfs.h>
bec39cab
AC
17875int
17876main ()
17877{
97bf5e38 17878prrun_t avar
bec39cab
AC
17879 ;
17880 return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext
17884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17885 (eval $ac_compile) 2>conftest.er1
17886 ac_status=$?
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
121ce6e5 17892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
97bf5e38 17904 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 17905else
bec39cab
AC
17906 echo "$as_me: failed program was:" >&5
17907sed 's/^/| /' conftest.$ac_ext >&5
17908
17909bfd_cv_have_sys_procfs_type_prrun_t=no
17910
596c9d4b 17911fi
bec39cab 17912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17913fi
17914
97bf5e38 17915 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
17916
17917cat >>confdefs.h <<\_ACEOF
97bf5e38 17918#define HAVE_PRRUN_T 1
bec39cab 17919_ACEOF
596c9d4b
KB
17920
17921 fi
bec39cab
AC
17922 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17923echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 17924
bec39cab
AC
17925 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17926echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17927 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 17929else
bec39cab
AC
17930 cat >conftest.$ac_ext <<_ACEOF
17931/* confdefs.h. */
17932_ACEOF
17933cat confdefs.h >>conftest.$ac_ext
17934cat >>conftest.$ac_ext <<_ACEOF
17935/* end confdefs.h. */
596c9d4b
KB
17936
17937#define _SYSCALL32
17938#include <sys/procfs.h>
bec39cab
AC
17939int
17940main ()
17941{
97bf5e38 17942gregset_t avar
bec39cab
AC
17943 ;
17944 return 0;
17945}
17946_ACEOF
17947rm -f conftest.$ac_objext
17948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17949 (eval $ac_compile) 2>conftest.er1
17950 ac_status=$?
17951 grep -v '^ *+' conftest.er1 >conftest.err
17952 rm -f conftest.er1
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
121ce6e5 17956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
97bf5e38 17968 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 17969else
bec39cab
AC
17970 echo "$as_me: failed program was:" >&5
17971sed 's/^/| /' conftest.$ac_ext >&5
17972
17973bfd_cv_have_sys_procfs_type_gregset_t=no
17974
596c9d4b 17975fi
bec39cab 17976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
17977fi
17978
97bf5e38 17979 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
17980
17981cat >>confdefs.h <<\_ACEOF
97bf5e38 17982#define HAVE_GREGSET_T 1
bec39cab 17983_ACEOF
596c9d4b
KB
17984
17985 fi
bec39cab
AC
17986 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17987echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 17988
bec39cab
AC
17989 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17990echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17991 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 17993else
bec39cab
AC
17994 cat >conftest.$ac_ext <<_ACEOF
17995/* confdefs.h. */
17996_ACEOF
17997cat confdefs.h >>conftest.$ac_ext
17998cat >>conftest.$ac_ext <<_ACEOF
17999/* end confdefs.h. */
97bf5e38
MK
18000
18001#define _SYSCALL32
d84dd0c5 18002#include <sys/procfs.h>
bec39cab
AC
18003int
18004main ()
18005{
97bf5e38 18006fpregset_t avar
bec39cab
AC
18007 ;
18008 return 0;
18009}
18010_ACEOF
18011rm -f conftest.$ac_objext
18012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013 (eval $ac_compile) 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
121ce6e5 18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest.$ac_objext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
97bf5e38 18032 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 18033else
bec39cab
AC
18034 echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037bfd_cv_have_sys_procfs_type_fpregset_t=no
18038
d84dd0c5 18039fi
bec39cab 18040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
18041fi
18042
97bf5e38 18043 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
18044
18045cat >>confdefs.h <<\_ACEOF
97bf5e38 18046#define HAVE_FPREGSET_T 1
bec39cab 18047_ACEOF
d84dd0c5 18048
97bf5e38 18049 fi
bec39cab
AC
18050 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18051echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 18052
bec39cab
AC
18053 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18054echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18055 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18057else
bec39cab
AC
18058 cat >conftest.$ac_ext <<_ACEOF
18059/* confdefs.h. */
18060_ACEOF
18061cat confdefs.h >>conftest.$ac_ext
18062cat >>conftest.$ac_ext <<_ACEOF
18063/* end confdefs.h. */
c906108c 18064
97bf5e38
MK
18065#define _SYSCALL32
18066#include <sys/procfs.h>
bec39cab
AC
18067int
18068main ()
18069{
97bf5e38 18070prgregset_t avar
bec39cab
AC
18071 ;
18072 return 0;
18073}
18074_ACEOF
18075rm -f conftest.$ac_objext
18076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18077 (eval $ac_compile) 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
121ce6e5 18084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest.$ac_objext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
97bf5e38 18096 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 18097else
bec39cab
AC
18098 echo "$as_me: failed program was:" >&5
18099sed 's/^/| /' conftest.$ac_ext >&5
18100
18101bfd_cv_have_sys_procfs_type_prgregset_t=no
18102
c906108c 18103fi
bec39cab 18104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18105fi
18106
97bf5e38 18107 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
18108
18109cat >>confdefs.h <<\_ACEOF
97bf5e38 18110#define HAVE_PRGREGSET_T 1
bec39cab 18111_ACEOF
c906108c 18112
97bf5e38 18113 fi
bec39cab
AC
18114 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18115echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 18116
bec39cab
AC
18117 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18118echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18119 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18121else
bec39cab
AC
18122 cat >conftest.$ac_ext <<_ACEOF
18123/* confdefs.h. */
18124_ACEOF
18125cat confdefs.h >>conftest.$ac_ext
18126cat >>conftest.$ac_ext <<_ACEOF
18127/* end confdefs.h. */
97bf5e38
MK
18128
18129#define _SYSCALL32
18130#include <sys/procfs.h>
bec39cab
AC
18131int
18132main ()
18133{
97bf5e38 18134prfpregset_t avar
bec39cab
AC
18135 ;
18136 return 0;
18137}
18138_ACEOF
18139rm -f conftest.$ac_objext
18140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18141 (eval $ac_compile) 2>conftest.er1
18142 ac_status=$?
18143 grep -v '^ *+' conftest.er1 >conftest.err
18144 rm -f conftest.er1
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
121ce6e5 18148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
97bf5e38 18160 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 18161else
bec39cab
AC
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165bfd_cv_have_sys_procfs_type_prfpregset_t=no
18166
d45fe813 18167fi
bec39cab 18168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18169fi
18170
97bf5e38 18171 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18172
18173cat >>confdefs.h <<\_ACEOF
97bf5e38 18174#define HAVE_PRFPREGSET_T 1
bec39cab 18175_ACEOF
d45fe813 18176
97bf5e38 18177 fi
bec39cab
AC
18178 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18179echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 18180
bec39cab
AC
18181 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18182echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18183 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18185else
bec39cab
AC
18186 cat >conftest.$ac_ext <<_ACEOF
18187/* confdefs.h. */
18188_ACEOF
18189cat confdefs.h >>conftest.$ac_ext
18190cat >>conftest.$ac_ext <<_ACEOF
18191/* end confdefs.h. */
97bf5e38
MK
18192
18193#define _SYSCALL32
18194#include <sys/procfs.h>
bec39cab
AC
18195int
18196main ()
18197{
97bf5e38 18198prgregset32_t avar
bec39cab
AC
18199 ;
18200 return 0;
18201}
18202_ACEOF
18203rm -f conftest.$ac_objext
18204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205 (eval $ac_compile) 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
121ce6e5 18212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest.$ac_objext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
97bf5e38 18224 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 18225else
bec39cab
AC
18226 echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229bfd_cv_have_sys_procfs_type_prgregset32_t=no
18230
d45fe813 18231fi
bec39cab 18232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18233fi
18234
97bf5e38 18235 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
18236
18237cat >>confdefs.h <<\_ACEOF
97bf5e38 18238#define HAVE_PRGREGSET32_T 1
bec39cab 18239_ACEOF
d45fe813 18240
97bf5e38 18241 fi
bec39cab
AC
18242 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18243echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 18244
bec39cab
AC
18245 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18246echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18247 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18249else
bec39cab
AC
18250 cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
97bf5e38
MK
18256
18257#define _SYSCALL32
18258#include <sys/procfs.h>
bec39cab
AC
18259int
18260main ()
18261{
97bf5e38 18262prfpregset32_t avar
bec39cab
AC
18263 ;
18264 return 0;
18265}
18266_ACEOF
18267rm -f conftest.$ac_objext
18268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>conftest.er1
18270 ac_status=$?
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
121ce6e5 18276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest.$ac_objext'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
97bf5e38 18288 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 18289else
bec39cab
AC
18290 echo "$as_me: failed program was:" >&5
18291sed 's/^/| /' conftest.$ac_ext >&5
18292
18293bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18294
d45fe813 18295fi
bec39cab 18296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18297fi
18298
97bf5e38 18299 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
18300
18301cat >>confdefs.h <<\_ACEOF
97bf5e38 18302#define HAVE_PRFPREGSET32_T 1
bec39cab 18303_ACEOF
d45fe813 18304
97bf5e38 18305 fi
bec39cab
AC
18306 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18307echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 18308
bec39cab
AC
18309 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18310echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18311 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 18313else
bec39cab
AC
18314 cat >conftest.$ac_ext <<_ACEOF
18315/* confdefs.h. */
18316_ACEOF
18317cat confdefs.h >>conftest.$ac_ext
18318cat >>conftest.$ac_ext <<_ACEOF
18319/* end confdefs.h. */
97bf5e38 18320
d45fe813 18321#define _SYSCALL32
97bf5e38 18322#include <sys/procfs.h>
bec39cab
AC
18323int
18324main ()
18325{
97bf5e38 18326lwpid_t avar
bec39cab
AC
18327 ;
18328 return 0;
18329}
18330_ACEOF
18331rm -f conftest.$ac_objext
18332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333 (eval $ac_compile) 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
121ce6e5 18340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest.$ac_objext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
97bf5e38 18352 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 18353else
bec39cab
AC
18354 echo "$as_me: failed program was:" >&5
18355sed 's/^/| /' conftest.$ac_ext >&5
18356
18357bfd_cv_have_sys_procfs_type_lwpid_t=no
18358
d45fe813 18359fi
bec39cab 18360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
18361fi
18362
97bf5e38 18363 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
18364
18365cat >>confdefs.h <<\_ACEOF
97bf5e38 18366#define HAVE_LWPID_T 1
bec39cab 18367_ACEOF
d45fe813 18368
97bf5e38 18369 fi
bec39cab
AC
18370 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18371echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 18372
bec39cab
AC
18373 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18374echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18375 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18377else
bec39cab
AC
18378 cat >conftest.$ac_ext <<_ACEOF
18379/* confdefs.h. */
18380_ACEOF
18381cat confdefs.h >>conftest.$ac_ext
18382cat >>conftest.$ac_ext <<_ACEOF
18383/* end confdefs.h. */
c906108c 18384
97bf5e38
MK
18385#define _SYSCALL32
18386#include <sys/procfs.h>
bec39cab
AC
18387int
18388main ()
18389{
97bf5e38 18390psaddr_t avar
bec39cab
AC
18391 ;
18392 return 0;
18393}
18394_ACEOF
18395rm -f conftest.$ac_objext
18396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397 (eval $ac_compile) 2>conftest.er1
18398 ac_status=$?
18399 grep -v '^ *+' conftest.er1 >conftest.err
18400 rm -f conftest.er1
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
121ce6e5 18404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest.$ac_objext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
97bf5e38 18416 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 18417else
bec39cab
AC
18418 echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421bfd_cv_have_sys_procfs_type_psaddr_t=no
18422
c906108c 18423fi
bec39cab 18424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18425fi
18426
97bf5e38 18427 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
18428
18429cat >>confdefs.h <<\_ACEOF
97bf5e38 18430#define HAVE_PSADDR_T 1
bec39cab 18431_ACEOF
c906108c 18432
97bf5e38 18433 fi
bec39cab
AC
18434 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18435echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 18436
bec39cab
AC
18437 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18438echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18439 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18441else
bec39cab
AC
18442 cat >conftest.$ac_ext <<_ACEOF
18443/* confdefs.h. */
18444_ACEOF
18445cat confdefs.h >>conftest.$ac_ext
18446cat >>conftest.$ac_ext <<_ACEOF
18447/* end confdefs.h. */
c906108c 18448
97bf5e38
MK
18449#define _SYSCALL32
18450#include <sys/procfs.h>
bec39cab
AC
18451int
18452main ()
18453{
97bf5e38 18454prsysent_t avar
bec39cab
AC
18455 ;
18456 return 0;
18457}
18458_ACEOF
18459rm -f conftest.$ac_objext
18460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18461 (eval $ac_compile) 2>conftest.er1
18462 ac_status=$?
18463 grep -v '^ *+' conftest.er1 >conftest.err
18464 rm -f conftest.er1
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
121ce6e5 18468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest.$ac_objext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
97bf5e38 18480 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 18481else
bec39cab
AC
18482 echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485bfd_cv_have_sys_procfs_type_prsysent_t=no
18486
c906108c 18487fi
bec39cab 18488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18489fi
18490
97bf5e38 18491 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
18492
18493cat >>confdefs.h <<\_ACEOF
97bf5e38 18494#define HAVE_PRSYSENT_T 1
bec39cab 18495_ACEOF
c906108c 18496
97bf5e38 18497 fi
bec39cab
AC
18498 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18499echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 18500
bec39cab
AC
18501 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18502echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18503 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18505else
bec39cab
AC
18506 cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
c906108c 18512
97bf5e38
MK
18513#define _SYSCALL32
18514#include <sys/procfs.h>
bec39cab
AC
18515int
18516main ()
18517{
97bf5e38 18518pr_sigset_t avar
bec39cab
AC
18519 ;
18520 return 0;
18521}
18522_ACEOF
18523rm -f conftest.$ac_objext
18524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18525 (eval $ac_compile) 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
121ce6e5 18532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest.$ac_objext'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
97bf5e38 18544 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 18545else
bec39cab
AC
18546 echo "$as_me: failed program was:" >&5
18547sed 's/^/| /' conftest.$ac_ext >&5
18548
18549bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18550
c906108c 18551fi
bec39cab 18552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18553fi
18554
97bf5e38 18555 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
18556
18557cat >>confdefs.h <<\_ACEOF
97bf5e38 18558#define HAVE_PR_SIGSET_T 1
bec39cab 18559_ACEOF
c906108c 18560
97bf5e38 18561 fi
bec39cab
AC
18562 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18563echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 18564
bec39cab
AC
18565 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18566echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18567 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18569else
bec39cab
AC
18570 cat >conftest.$ac_ext <<_ACEOF
18571/* confdefs.h. */
18572_ACEOF
18573cat confdefs.h >>conftest.$ac_ext
18574cat >>conftest.$ac_ext <<_ACEOF
18575/* end confdefs.h. */
c906108c 18576
97bf5e38
MK
18577#define _SYSCALL32
18578#include <sys/procfs.h>
bec39cab
AC
18579int
18580main ()
18581{
97bf5e38 18582pr_sigaction64_t avar
bec39cab
AC
18583 ;
18584 return 0;
18585}
18586_ACEOF
18587rm -f conftest.$ac_objext
18588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589 (eval $ac_compile) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
121ce6e5 18596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest.$ac_objext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
97bf5e38 18608 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 18609else
bec39cab
AC
18610 echo "$as_me: failed program was:" >&5
18611sed 's/^/| /' conftest.$ac_ext >&5
18612
18613bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18614
c906108c 18615fi
bec39cab 18616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18617fi
18618
97bf5e38 18619 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
18620
18621cat >>confdefs.h <<\_ACEOF
97bf5e38 18622#define HAVE_PR_SIGACTION64_T 1
bec39cab 18623_ACEOF
c906108c 18624
97bf5e38 18625 fi
bec39cab
AC
18626 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18627echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 18628
bec39cab
AC
18629 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18630echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18631 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18633else
bec39cab
AC
18634 cat >conftest.$ac_ext <<_ACEOF
18635/* confdefs.h. */
18636_ACEOF
18637cat confdefs.h >>conftest.$ac_ext
18638cat >>conftest.$ac_ext <<_ACEOF
18639/* end confdefs.h. */
97bf5e38
MK
18640
18641#define _SYSCALL32
18642#include <sys/procfs.h>
bec39cab
AC
18643int
18644main ()
18645{
97bf5e38 18646pr_siginfo64_t avar
bec39cab
AC
18647 ;
18648 return 0;
18649}
18650_ACEOF
18651rm -f conftest.$ac_objext
18652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18653 (eval $ac_compile) 2>conftest.er1
18654 ac_status=$?
18655 grep -v '^ *+' conftest.er1 >conftest.err
18656 rm -f conftest.er1
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } &&
121ce6e5 18660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest.$ac_objext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
97bf5e38
MK
18672 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18673else
bec39cab
AC
18674 echo "$as_me: failed program was:" >&5
18675sed 's/^/| /' conftest.$ac_ext >&5
18676
18677bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18678
97bf5e38 18679fi
bec39cab 18680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18681fi
c906108c 18682
97bf5e38 18683 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
18684
18685cat >>confdefs.h <<\_ACEOF
97bf5e38 18686#define HAVE_PR_SIGINFO64_T 1
bec39cab 18687_ACEOF
c906108c 18688
97bf5e38 18689 fi
bec39cab
AC
18690 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18691echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18692
18693
97bf5e38
MK
18694
18695
18696
97bf5e38 18697 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
18698 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18699echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18700 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
18702else
18703 if test "$cross_compiling" = yes; then
97bf5e38 18704 gdb_cv_prfpregset_t_broken=yes
c906108c 18705else
bec39cab
AC
18706 cat >conftest.$ac_ext <<_ACEOF
18707/* confdefs.h. */
18708_ACEOF
18709cat confdefs.h >>conftest.$ac_ext
18710cat >>conftest.$ac_ext <<_ACEOF
18711/* end confdefs.h. */
97bf5e38
MK
18712#include <sys/procfs.h>
18713 int main ()
18714 {
18715 if (sizeof (prfpregset_t) == sizeof (void *))
18716 return 1;
18717 return 0;
18718 }
bec39cab
AC
18719_ACEOF
18720rm -f conftest$ac_exeext
18721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722 (eval $ac_link) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
97bf5e38 18731 gdb_cv_prfpregset_t_broken=no
c906108c 18732else
bec39cab
AC
18733 echo "$as_me: program exited with status $ac_status" >&5
18734echo "$as_me: failed program was:" >&5
18735sed 's/^/| /' conftest.$ac_ext >&5
18736
18737( exit $ac_status )
18738gdb_cv_prfpregset_t_broken=yes
c906108c 18739fi
bec39cab 18740rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 18741fi
c906108c
SS
18742fi
18743
bec39cab
AC
18744 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18745echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 18746 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
18747
18748cat >>confdefs.h <<\_ACEOF
97bf5e38 18749#define PRFPREGSET_T_BROKEN 1
bec39cab 18750_ACEOF
c906108c 18751
97bf5e38
MK
18752 fi
18753 fi
c906108c 18754
bec39cab
AC
18755
18756 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18757echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18758 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18760else
bec39cab
AC
18761 cat >conftest.$ac_ext <<_ACEOF
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
97bf5e38
MK
18767#include <unistd.h>
18768#include <sys/types.h>
18769#include <sys/procfs.h>
18770
bec39cab
AC
18771int
18772main ()
18773{
97bf5e38
MK
18774
18775 int dummy;;
18776 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
18777
18778 ;
18779 return 0;
18780}
18781_ACEOF
18782rm -f conftest.$ac_objext
18783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18784 (eval $ac_compile) 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
121ce6e5 18791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18794 ac_status=$?
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; } &&
18797 { ac_try='test -s conftest.$ac_objext'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
97bf5e38 18803 gdb_cv_have_procfs_piocset=yes
c906108c 18804else
bec39cab
AC
18805 echo "$as_me: failed program was:" >&5
18806sed 's/^/| /' conftest.$ac_ext >&5
18807
18808gdb_cv_have_procfs_piocset=no
c906108c 18809fi
bec39cab 18810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18811fi
97bf5e38 18812
bec39cab
AC
18813 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18814echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 18815 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
18816
18817cat >>confdefs.h <<\_ACEOF
97bf5e38 18818#define HAVE_PROCFS_PIOCSET 1
bec39cab 18819_ACEOF
97bf5e38
MK
18820
18821 fi
c906108c 18822fi
c906108c 18823
97bf5e38 18824if test ${host} = ${target} ; then
bec39cab
AC
18825
18826 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18827echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18828 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830else
18831 cat >conftest.$ac_ext <<_ACEOF
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
97bf5e38 18837#include <link.h>
bec39cab
AC
18838int
18839main ()
18840{
97bf5e38 18841struct link_map lm; (void) lm.l_addr;
bec39cab
AC
18842 ;
18843 return 0;
18844}
18845_ACEOF
18846rm -f conftest.$ac_objext
18847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18848 (eval $ac_compile) 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
121ce6e5 18855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest.$ac_objext'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
97bf5e38 18867 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 18868else
bec39cab
AC
18869 echo "$as_me: failed program was:" >&5
18870sed 's/^/| /' conftest.$ac_ext >&5
18871
18872gdb_cv_have_struct_link_map_with_l_members=no
c906108c 18873fi
bec39cab 18874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
18875fi
18876
bec39cab
AC
18877 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18878echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 18879 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
18880
18881cat >>confdefs.h <<\_ACEOF
97bf5e38 18882#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 18883_ACEOF
97bf5e38
MK
18884
18885 fi
18886
bec39cab
AC
18887
18888 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18889echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18890 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18892else
bec39cab
AC
18893 cat >conftest.$ac_ext <<_ACEOF
18894/* confdefs.h. */
18895_ACEOF
18896cat confdefs.h >>conftest.$ac_ext
18897cat >>conftest.$ac_ext <<_ACEOF
18898/* end confdefs.h. */
97bf5e38
MK
18899#include <sys/types.h>
18900#include <link.h>
bec39cab
AC
18901int
18902main ()
18903{
97bf5e38 18904struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
18905 ;
18906 return 0;
18907}
18908_ACEOF
18909rm -f conftest.$ac_objext
18910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911 (eval $ac_compile) 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } &&
121ce6e5 18918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest.$ac_objext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
97bf5e38
MK
18930 gdb_cv_have_struct_link_map_with_lm_members=yes
18931else
bec39cab
AC
18932 echo "$as_me: failed program was:" >&5
18933sed 's/^/| /' conftest.$ac_ext >&5
18934
18935gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 18936fi
bec39cab 18937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18938fi
c906108c 18939
bec39cab
AC
18940 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18941echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 18942 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
18943
18944cat >>confdefs.h <<\_ACEOF
97bf5e38 18945#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 18946_ACEOF
97bf5e38
MK
18947
18948 fi
18949
bec39cab
AC
18950
18951 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18952echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18953 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 18955else
bec39cab
AC
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
97bf5e38
MK
18962#include <sys/types.h>
18963#ifdef HAVE_NLIST_H
18964#include <nlist.h>
18965#endif
18966#include <link.h>
bec39cab
AC
18967int
18968main ()
18969{
97bf5e38 18970struct so_map lm; (void) lm.som_addr;
bec39cab
AC
18971 ;
18972 return 0;
18973}
18974_ACEOF
18975rm -f conftest.$ac_objext
18976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977 (eval $ac_compile) 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
121ce6e5 18984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; } &&
18990 { ac_try='test -s conftest.$ac_objext'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
97bf5e38
MK
18996 gdb_cv_have_struct_so_map_with_som_members=yes
18997else
bec39cab
AC
18998 echo "$as_me: failed program was:" >&5
18999sed 's/^/| /' conftest.$ac_ext >&5
19000
19001gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 19002fi
bec39cab 19003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19004fi
c906108c 19005
bec39cab
AC
19006 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19007echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 19008 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
19009
19010cat >>confdefs.h <<\_ACEOF
97bf5e38 19011#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 19012_ACEOF
c906108c 19013
97bf5e38 19014 fi
c906108c 19015
bec39cab
AC
19016
19017 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19018echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19019 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19021else
bec39cab
AC
19022 cat >conftest.$ac_ext <<_ACEOF
19023/* confdefs.h. */
19024_ACEOF
19025cat confdefs.h >>conftest.$ac_ext
19026cat >>conftest.$ac_ext <<_ACEOF
19027/* end confdefs.h. */
97bf5e38
MK
19028#define _SYSCALL32
19029#include <sys/link.h>
bec39cab
AC
19030int
19031main ()
19032{
97bf5e38 19033struct link_map32 l;
bec39cab
AC
19034 ;
19035 return 0;
19036}
19037_ACEOF
19038rm -f conftest.$ac_objext
19039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19040 (eval $ac_compile) 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
121ce6e5 19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19050 ac_status=$?
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; } &&
19053 { ac_try='test -s conftest.$ac_objext'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
97bf5e38
MK
19059 gdb_cv_have_struct_link_map32=yes
19060else
bec39cab
AC
19061 echo "$as_me: failed program was:" >&5
19062sed 's/^/| /' conftest.$ac_ext >&5
19063
19064gdb_cv_have_struct_link_map32=no
97bf5e38 19065fi
bec39cab 19066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19067fi
c906108c 19068
bec39cab
AC
19069 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19070echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 19071 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
19072
19073cat >>confdefs.h <<\_ACEOF
97bf5e38 19074#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 19075_ACEOF
c906108c 19076
60ca704f
SE
19077
19078cat >>confdefs.h <<\_ACEOF
97bf5e38 19079#define _SYSCALL32 1
bec39cab 19080_ACEOF
c906108c 19081
97bf5e38
MK
19082 fi
19083fi
c906108c 19084
bc8bcb4b 19085# Check if the compiler supports the `long long' type.
c906108c 19086
bec39cab
AC
19087echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19088echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19089if test "${gdb_cv_c_long_long+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19091else
bec39cab
AC
19092 cat >conftest.$ac_ext <<_ACEOF
19093/* confdefs.h. */
19094_ACEOF
19095cat confdefs.h >>conftest.$ac_ext
19096cat >>conftest.$ac_ext <<_ACEOF
19097/* end confdefs.h. */
bc8bcb4b 19098extern long long foo;
bec39cab
AC
19099int
19100main ()
19101{
bc8bcb4b 19102switch (foo & 2) { case 0: return 1; }
bec39cab
AC
19103 ;
19104 return 0;
19105}
19106_ACEOF
19107rm -f conftest.$ac_objext
19108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109 (eval $ac_compile) 2>conftest.er1
19110 ac_status=$?
19111 grep -v '^ *+' conftest.er1 >conftest.err
19112 rm -f conftest.er1
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
121ce6e5 19116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try='test -s conftest.$ac_objext'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
97bf5e38
MK
19128 gdb_cv_c_long_long=yes
19129else
bec39cab
AC
19130 echo "$as_me: failed program was:" >&5
19131sed 's/^/| /' conftest.$ac_ext >&5
19132
19133gdb_cv_c_long_long=no
97bf5e38 19134fi
bec39cab 19135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19136fi
bec39cab
AC
19137echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19138echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 19139if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
19140
19141cat >>confdefs.h <<\_ACEOF
97bf5e38 19142#define CC_HAS_LONG_LONG 1
bec39cab 19143_ACEOF
97bf5e38
MK
19144
19145fi
19146
bc8bcb4b 19147# Check if the compiler and runtime support printing long longs.
97bf5e38 19148
bec39cab
AC
19149echo "$as_me:$LINENO: checking for long long support in printf" >&5
19150echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19151if test "${gdb_cv_printf_has_long_long+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19153else
19154 if test "$cross_compiling" = yes; then
19155 gdb_cv_printf_has_long_long=no
19156else
bec39cab
AC
19157 cat >conftest.$ac_ext <<_ACEOF
19158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
bc8bcb4b
MK
19163$ac_includes_default
19164int
19165main ()
19166{
19167char buf[32];
97bf5e38
MK
19168 long long l = 0;
19169 l = (l << 16) + 0x0123;
19170 l = (l << 16) + 0x4567;
19171 l = (l << 16) + 0x89ab;
19172 l = (l << 16) + 0xcdef;
19173 sprintf (buf, "0x%016llx", l);
19174 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
19175 ;
19176 return 0;
c906108c 19177}
bec39cab
AC
19178_ACEOF
19179rm -f conftest$ac_exeext
19180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
97bf5e38
MK
19190 gdb_cv_printf_has_long_long=yes
19191else
bec39cab
AC
19192 echo "$as_me: program exited with status $ac_status" >&5
19193echo "$as_me: failed program was:" >&5
19194sed 's/^/| /' conftest.$ac_ext >&5
19195
19196( exit $ac_status )
19197gdb_cv_printf_has_long_long=no
97bf5e38 19198fi
bec39cab 19199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19200fi
97bf5e38 19201fi
bc8bcb4b
MK
19202echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19203echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 19204if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
19205
19206cat >>confdefs.h <<\_ACEOF
97bf5e38 19207#define PRINTF_HAS_LONG_LONG 1
bec39cab 19208_ACEOF
97bf5e38
MK
19209
19210fi
97bf5e38 19211
bc8bcb4b
MK
19212# Check if the compiler supports the `long double' type. We can't use
19213# AC_C_LONG_DOUBLE because that one does additional checks on the
19214# constants defined in <float.h> that fail on some systems,
19215# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 19216
bec39cab
AC
19217echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19218echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 19219if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 19220 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 19221else
bec39cab
AC
19222 cat >conftest.$ac_ext <<_ACEOF
19223/* confdefs.h. */
19224_ACEOF
19225cat confdefs.h >>conftest.$ac_ext
19226cat >>conftest.$ac_ext <<_ACEOF
19227/* end confdefs.h. */
97bf5e38 19228long double foo;
bec39cab
AC
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
121ce6e5 19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
bc8bcb4b 19251 gdb_cv_c_long_double=yes
97bf5e38 19252else
bec39cab
AC
19253 echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
bc8bcb4b 19256gdb_cv_c_long_double=no
97bf5e38 19257fi
bec39cab 19258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 19259fi
bc8bcb4b
MK
19260echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19261echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19262if test $gdb_cv_c_long_double = yes; then
c906108c 19263
bc8bcb4b 19264cat >>confdefs.h <<\_ACEOF
97bf5e38 19265#define HAVE_LONG_DOUBLE 1
bec39cab 19266_ACEOF
97bf5e38
MK
19267
19268fi
19269
bc8bcb4b 19270# Check if the compiler and runtime support printing long doubles.
97bf5e38 19271
bec39cab
AC
19272echo "$as_me:$LINENO: checking for long double support in printf" >&5
19273echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19274if test "${gdb_cv_printf_has_long_double+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19276else
19277 if test "$cross_compiling" = yes; then
19278 gdb_cv_printf_has_long_double=no
19279else
bec39cab
AC
19280 cat >conftest.$ac_ext <<_ACEOF
19281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
bc8bcb4b
MK
19286$ac_includes_default
19287int
19288main ()
19289{
19290char buf[16];
97bf5e38
MK
19291 long double f = 3.141592653;
19292 sprintf (buf, "%Lg", f);
19293 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
19294 ;
19295 return 0;
97bf5e38 19296}
bec39cab
AC
19297_ACEOF
19298rm -f conftest$ac_exeext
19299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300 (eval $ac_link) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
97bf5e38 19309 gdb_cv_printf_has_long_double=yes
c906108c 19310else
bec39cab
AC
19311 echo "$as_me: program exited with status $ac_status" >&5
19312echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315( exit $ac_status )
19316gdb_cv_printf_has_long_double=no
c906108c 19317fi
bec39cab 19318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 19319fi
c906108c 19320fi
bc8bcb4b
MK
19321echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19322echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 19323if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
19324
19325cat >>confdefs.h <<\_ACEOF
97bf5e38 19326#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 19327_ACEOF
97bf5e38
MK
19328
19329fi
97bf5e38 19330
bc8bcb4b 19331# Check if the compiler and runtime support scanning long doubles.
97bf5e38 19332
bec39cab
AC
19333echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19334echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19335if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
19337else
19338 if test "$cross_compiling" = yes; then
19339 gdb_cv_scanf_has_long_double=no
19340else
bec39cab
AC
19341 cat >conftest.$ac_ext <<_ACEOF
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h. */
bc8bcb4b
MK
19347#include <stdio.h>
19348int
19349main ()
19350{
19351char *buf = "3.141592653";
97bf5e38
MK
19352 long double f = 0;
19353 sscanf (buf, "%Lg", &f);
19354 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
19355 ;
19356 return 0;
97bf5e38 19357}
bec39cab
AC
19358_ACEOF
19359rm -f conftest$ac_exeext
19360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19361 (eval $ac_link) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
97bf5e38
MK
19370 gdb_cv_scanf_has_long_double=yes
19371else
bec39cab
AC
19372 echo "$as_me: program exited with status $ac_status" >&5
19373echo "$as_me: failed program was:" >&5
19374sed 's/^/| /' conftest.$ac_ext >&5
19375
19376( exit $ac_status )
19377gdb_cv_scanf_has_long_double=no
97bf5e38 19378fi
bec39cab 19379rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 19380fi
c906108c 19381fi
bc8bcb4b
MK
19382echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19383echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 19384if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
19385
19386cat >>confdefs.h <<\_ACEOF
97bf5e38 19387#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 19388_ACEOF
97bf5e38
MK
19389
19390fi
c906108c 19391
438013df
AO
19392case ${host_os} in
19393aix*)
bec39cab
AC
19394 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19395echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19396if test "${gdb_cv_bigtoc+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 19398else
bec39cab 19399
438013df
AO
19400 SAVE_LDFLAGS=$LDFLAGS
19401
19402 case $GCC in
19403 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19404 *) gdb_cv_bigtoc=-bbigtoc ;;
19405 esac
19406
19407 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
19408 cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
438013df 19414
bec39cab
AC
19415int
19416main ()
19417{
438013df 19418int i;
bec39cab
AC
19419 ;
19420 return 0;
19421}
19422_ACEOF
19423rm -f conftest.$ac_objext conftest$ac_exeext
19424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425 (eval $ac_link) 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
121ce6e5 19432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
438013df
AO
19444 :
19445else
bec39cab
AC
19446 echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449gdb_cv_bigtoc=
438013df 19450fi
bec39cab
AC
19451rm -f conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
ec76baa5 19453 LDFLAGS="${SAVE_LDFLAGS}"
438013df 19454
bec39cab
AC
19455fi
19456echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19457echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
19458 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19459 ;;
19460esac
19461
c906108c
SS
19462
19463
19464if test ${build} = ${host} -a ${host} = ${target} ; then
19465 case ${host_os} in
19466 hpux*)
bec39cab
AC
19467 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19468echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
19469 if test -f /usr/include/dce/cma_config.h ; then
19470 if test "$GCC" = "yes" ; then
bec39cab
AC
19471 echo "$as_me:$LINENO: result: yes" >&5
19472echo "${ECHO_T}yes" >&6
60ca704f
SE
19473
19474cat >>confdefs.h <<\_ACEOF
c906108c 19475#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 19476_ACEOF
c906108c 19477
3483b318 19478 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
19479 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19480 else
bec39cab
AC
19481 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19482echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
19483 fi
19484 else
bec39cab
AC
19485 echo "$as_me:$LINENO: result: no" >&5
19486echo "${ECHO_T}no" >&6
c906108c
SS
19487 fi
19488 ;;
19489 solaris*)
d92419e5
JB
19490 # See if thread_db library is around for Solaris thread debugging.
19491 # Note that we must explicitly test for version 1 of the library
19492 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19493 # the same API.
bec39cab
AC
19494 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19495echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 19496 if test -f /usr/lib/libthread_db.so.1 ; then
bec39cab
AC
19497 echo "$as_me:$LINENO: result: yes" >&5
19498echo "${ECHO_T}yes" >&6
60ca704f
SE
19499
19500cat >>confdefs.h <<\_ACEOF
c906108c 19501#define HAVE_THREAD_DB_LIB 1
bec39cab 19502_ACEOF
c906108c 19503
3483b318 19504 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 19505 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab
AC
19506
19507echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19508echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19509if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19511else
bec39cab 19512 ac_check_lib_save_LIBS=$LIBS
c906108c 19513LIBS="-ldl $LIBS"
bec39cab
AC
19514cat >conftest.$ac_ext <<_ACEOF
19515/* confdefs.h. */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
19519/* end confdefs.h. */
19520
c906108c 19521/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
19522#ifdef __cplusplus
19523extern "C"
19524#endif
c906108c 19525/* We use char because int might match the return type of a gcc2
bec39cab
AC
19526 builtin and then its argument prototype would still apply. */
19527char dlopen ();
19528int
19529main ()
19530{
19531dlopen ();
19532 ;
19533 return 0;
19534}
19535_ACEOF
19536rm -f conftest.$ac_objext conftest$ac_exeext
19537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19538 (eval $ac_link) 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
121ce6e5 19545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; } &&
19551 { ac_try='test -s conftest$ac_exeext'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 ac_cv_lib_dl_dlopen=yes
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562ac_cv_lib_dl_dlopen=no
19563fi
19564rm -f conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
19566LIBS=$ac_check_lib_save_LIBS
19567fi
19568echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19569echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19570if test $ac_cv_lib_dl_dlopen = yes; then
19571 cat >>confdefs.h <<_ACEOF
19572#define HAVE_LIBDL 1
19573_ACEOF
c906108c
SS
19574
19575 LIBS="-ldl $LIBS"
19576
c906108c
SS
19577fi
19578
19579 if test "$GCC" = "yes" ; then
19580 # The GNU linker requires the -export-dynamic option to make
19581 # all symbols visible in the dynamic symbol table.
19582 hold_ldflags=$LDFLAGS
bec39cab
AC
19583 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19584echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 19585 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
c906108c 19592
bec39cab
AC
19593int
19594main ()
19595{
c906108c 19596int i;
bec39cab
AC
19597 ;
19598 return 0;
19599}
19600_ACEOF
19601rm -f conftest.$ac_objext conftest$ac_exeext
19602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19603 (eval $ac_link) 2>conftest.er1
19604 ac_status=$?
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
121ce6e5 19610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try='test -s conftest$ac_exeext'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
c906108c
SS
19622 found=yes
19623else
bec39cab
AC
19624 echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
19626
19627found=no
c906108c 19628fi
bec39cab
AC
19629rm -f conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
c906108c 19631 LDFLAGS=$hold_ldflags
bec39cab
AC
19632 echo "$as_me:$LINENO: result: $found" >&5
19633echo "${ECHO_T}$found" >&6
c906108c
SS
19634 if test $found = yes; then
19635 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19636 fi
19637 fi
19638 # Sun randomly tweaked the prototypes in <proc_service.h>
19639 # at one point.
bec39cab
AC
19640 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19641echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19642 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19644else
bec39cab
AC
19645
19646 cat >conftest.$ac_ext <<_ACEOF
19647/* confdefs.h. */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h. */
c906108c
SS
19652
19653 #include <proc_service.h>
19654 ps_err_e ps_pdwrite
19655 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 19656
bec39cab
AC
19657int
19658main ()
19659{
19660
19661 ;
19662 return 0;
19663}
19664_ACEOF
19665rm -f conftest.$ac_objext
19666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
121ce6e5 19674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; } &&
19680 { ac_try='test -s conftest.$ac_objext'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; }; then
c906108c
SS
19686 gdb_cv_proc_service_is_old=no
19687else
bec39cab
AC
19688 echo "$as_me: failed program was:" >&5
19689sed 's/^/| /' conftest.$ac_ext >&5
19690
19691gdb_cv_proc_service_is_old=yes
c906108c 19692fi
bec39cab
AC
19693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19694
c906108c
SS
19695fi
19696
bec39cab
AC
19697 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19698echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 19699 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
19700
19701cat >>confdefs.h <<\_ACEOF
c906108c 19702#define PROC_SERVICE_IS_OLD 1
bec39cab 19703_ACEOF
c906108c
SS
19704
19705 fi
19706 else
bec39cab
AC
19707 echo "$as_me:$LINENO: result: no" >&5
19708echo "${ECHO_T}no" >&6
c906108c
SS
19709 fi
19710 ;;
d92419e5 19711 aix*)
bec39cab
AC
19712 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19713echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19714 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19716else
19717 cat >conftest.$ac_ext <<_ACEOF
19718/* confdefs.h. */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h. */
d92419e5 19723#include <sys/pthdebug.h>
bec39cab
AC
19724int
19725main ()
19726{
d92419e5
JB
19727#ifndef PTHDB_VERSION_3
19728 #error
19729 #endif
bec39cab
AC
19730 ;
19731 return 0;
19732}
19733_ACEOF
19734rm -f conftest.$ac_objext
19735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19736 (eval $ac_compile) 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
121ce6e5 19743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
d92419e5
JB
19755 gdb_cv_have_aix_thread_debug=yes
19756else
bec39cab
AC
19757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760gdb_cv_have_aix_thread_debug=no
d92419e5 19761fi
bec39cab 19762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
19763fi
19764
bec39cab
AC
19765 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19766echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
19767 if test $gdb_cv_have_aix_thread_debug = yes; then
19768 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 19769 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
19770 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19771 fi
19772 ;;
c906108c 19773 esac
bec39cab 19774
c906108c
SS
19775fi
19776
3f47be5c 19777if test "x$ac_cv_header_thread_db_h" = "xyes"; then
bec39cab
AC
19778 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19779echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19780if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782else
19783 cat >conftest.$ac_ext <<_ACEOF
19784/* confdefs.h. */
19785_ACEOF
19786cat confdefs.h >>conftest.$ac_ext
19787cat >>conftest.$ac_ext <<_ACEOF
19788/* end confdefs.h. */
3f47be5c 19789#include <thread_db.h>
bec39cab
AC
19790int
19791main ()
19792{
3f47be5c 19793int i = TD_NOTALLOC;
bec39cab
AC
19794 ;
19795 return 0;
19796}
19797_ACEOF
19798rm -f conftest.$ac_objext
19799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19800 (eval $ac_compile) 2>conftest.er1
19801 ac_status=$?
19802 grep -v '^ *+' conftest.er1 >conftest.err
19803 rm -f conftest.er1
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
121ce6e5 19807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
3f47be5c
EZ
19819 gdb_cv_thread_db_h_has_td_notalloc=yes
19820else
bec39cab
AC
19821 echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
19824gdb_cv_thread_db_h_has_td_notalloc=no
19825
3f47be5c 19826fi
bec39cab 19827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 19828
bec39cab
AC
19829fi
19830echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19831echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
3f47be5c
EZ
19832fi
19833if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
19834
19835cat >>confdefs.h <<\_ACEOF
3f47be5c 19836#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 19837_ACEOF
3f47be5c
EZ
19838
19839fi
19840
b757528f 19841if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
bec39cab
AC
19842 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19843echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19844if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846else
19847 cat >conftest.$ac_ext <<_ACEOF
19848/* confdefs.h. */
19849_ACEOF
19850cat confdefs.h >>conftest.$ac_ext
19851cat >>conftest.$ac_ext <<_ACEOF
19852/* end confdefs.h. */
b757528f 19853#include <sys/syscall.h>
bec39cab
AC
19854int
19855main ()
19856{
b757528f 19857int i = __NR_tkill;
bec39cab
AC
19858 ;
19859 return 0;
19860}
19861_ACEOF
19862rm -f conftest.$ac_objext
19863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19865 ac_status=$?
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
121ce6e5 19871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
b757528f
JJ
19883 gdb_cv_sys_syscall_h_has_tkill=yes
19884else
bec39cab
AC
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888gdb_cv_sys_syscall_h_has_tkill=no
19889
b757528f 19890fi
bec39cab 19891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 19892
bec39cab
AC
19893fi
19894echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19895echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
19896fi
19897if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
19898
19899cat >>confdefs.h <<\_ACEOF
b757528f 19900#define HAVE_TKILL_SYSCALL 1
bec39cab 19901_ACEOF
b757528f
JJ
19902
19903fi
19904
fb40c209 19905
bec39cab 19906
030292b7
DJ
19907# Check whether --with-sysroot or --without-sysroot was given.
19908if test "${with_sysroot+set}" = set; then
19909 withval="$with_sysroot"
bec39cab 19910
030292b7 19911 case ${with_sysroot} in
715d1656 19912 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
19913 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19914 esac
19915
19916 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19917
19918 if test "x$exec_prefix" = xNONE; then
19919 if test "x$prefix" = xNONE; then
19920 test_prefix=/usr/local
19921 else
19922 test_prefix=$prefix
19923 fi
19924 else
19925 test_prefix=$exec_prefix
19926 fi
19927 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
19928 "${test_prefix}"|"${test_prefix}/"*|\
19929 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
19930 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19931 TARGET_SYSTEM_ROOT_DEFINE="$t"
19932 ;;
19933 esac
19934
19935else
bec39cab 19936
030292b7
DJ
19937 TARGET_SYSTEM_ROOT=
19938 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19939
bec39cab 19940fi;
030292b7
DJ
19941
19942
19943
3b851bce
AC
19944# NOTE: Don't add -Wall or -Wunused, they both include
19945# -Wunused-parameter which reports bogus warnings.
19946# NOTE: If you add to this list, remember to update
19947# gdb/doc/gdbint.texinfo.
1decb323 19948build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
a3b362c4 19949-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
7be93b9e 19950-Wunused-label -Wunused-function -Wno-pointer-sign"
a3b362c4
JB
19951
19952# GCC supports -Wuninitialized only with -O or -On, n != 0.
ca231fcc 19953if test x${CFLAGS+set} = xset; then
a3b362c4
JB
19954 case "${CFLAGS}" in
19955 *"-O0"* ) ;;
19956 *"-O"* )
19957 build_warnings="${build_warnings} -Wuninitialized"
19958 ;;
19959 esac
19960else
19961 build_warnings="${build_warnings} -Wuninitialized"
19962fi
19963
d8038014 19964# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
0f0cffd2 19965# -Wunused-function -Wunused-variable -Wunused-value
93d56215 19966# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
d8038014
AC
19967# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19968# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19969# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
19970# Check whether --enable-build-warnings or --disable-build-warnings was given.
19971if test "${enable_build_warnings+set}" = set; then
19972 enableval="$enable_build_warnings"
1decb323 19973 case "${enableval}" in
c906108c
SS
19974 yes) ;;
19975 no) build_warnings="-w";;
19976 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19977 build_warnings="${build_warnings} ${t}";;
19978 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19979 build_warnings="${t} ${build_warnings}";;
19980 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19981esac
d4f3574e 19982if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 19983 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 19984fi
bec39cab 19985fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce
AC
19986if test "${enable_gdb_build_warnings+set}" = set; then
19987 enableval="$enable_gdb_build_warnings"
19988 case "${enableval}" in
19989 yes) ;;
19990 no) build_warnings="-w";;
19991 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19992 build_warnings="${build_warnings} ${t}";;
19993 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19994 build_warnings="${t} ${build_warnings}";;
19995 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19996esac
19997if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19998 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19999fi
bec39cab 20000fi; WARN_CFLAGS=""
104c1213 20001WERROR_CFLAGS=""
c906108c
SS
20002if test "x${build_warnings}" != x -a "x$GCC" = xyes
20003then
bec39cab
AC
20004 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20005echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
20006 # Separate out the -Werror flag as some files just cannot be
20007 # compiled with it enabled.
20008 for w in ${build_warnings}; do
20009 case $w in
20010 -Werr*) WERROR_CFLAGS=-Werror ;;
20011 *) # Check that GCC accepts it
4536bbc6
AC
20012 saved_CFLAGS="$CFLAGS"
20013 CFLAGS="$CFLAGS $w"
bec39cab
AC
20014 cat >conftest.$ac_ext <<_ACEOF
20015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
4536bbc6 20020
bec39cab
AC
20021int
20022main ()
20023{
4536bbc6 20024
bec39cab
AC
20025 ;
20026 return 0;
20027}
20028_ACEOF
20029rm -f conftest.$ac_objext
20030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031 (eval $ac_compile) 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
121ce6e5 20038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; } &&
20044 { ac_try='test -s conftest.$ac_objext'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
4536bbc6
AC
20050 WARN_CFLAGS="${WARN_CFLAGS} $w"
20051else
bec39cab
AC
20052 echo "$as_me: failed program was:" >&5
20053sed 's/^/| /' conftest.$ac_ext >&5
20054
4536bbc6 20055fi
bec39cab 20056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 20057 CFLAGS="$saved_CFLAGS"
746a987d
AC
20058 esac
20059 done
bec39cab
AC
20060 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20061echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
20062fi
20063
20064
104c1213 20065
7a292a7a 20066# In the Cygwin environment, we need some additional flags.
bec39cab
AC
20067echo "$as_me:$LINENO: checking for cygwin" >&5
20068echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20069if test "${gdb_cv_os_cygwin+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20071else
20072 cat >conftest.$ac_ext <<_ACEOF
20073/* confdefs.h. */
20074_ACEOF
20075cat confdefs.h >>conftest.$ac_ext
20076cat >>conftest.$ac_ext <<_ACEOF
20077/* end confdefs.h. */
7a292a7a
SS
20078
20079#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20080lose
20081#endif
bec39cab 20082_ACEOF
7a292a7a 20083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 20084 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
20085 gdb_cv_os_cygwin=yes
20086else
7a292a7a
SS
20087 gdb_cv_os_cygwin=no
20088fi
20089rm -f conftest*
20090
20091fi
bec39cab
AC
20092echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20093echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 20094
aff38e61 20095
3eb25fda 20096SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 20097case ${host} in
95cbc983
AC
20098 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20099 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 20100 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
20101esac
20102
20103
cd0fc7c3
SS
20104# libreadline needs libuser32.a in a cygwin environment
20105WIN32LIBS=
20106if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
20107 WIN32LIBS="-luser32"
20108 case "${target}" in
20109 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20110 ;;
20111 esac
cd0fc7c3 20112fi
c906108c 20113
b4505029
MM
20114# The ser-tcp.c module requires sockets.
20115case ${host} in
20116 *mingw32*)
20117
20118cat >>confdefs.h <<\_ACEOF
20119#define USE_WIN32API 1
20120_ACEOF
20121
20122 WIN32LIBS="$WIN32LIBS -lws2_32"
20123 ;;
20124esac
20125
7a292a7a 20126
121ce6e5
DJ
20127# Add any host-specific objects to GDB.
20128CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20129
3fc11d3e
JM
20130LIBGUI="../libgui/src/libgui.a"
20131GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20132
20133
7a292a7a 20134
3fc11d3e
JM
20135WIN32LDAPP=
20136
20137
20138
d91670b9
CV
20139case "${host}" in
20140*-*-cygwin*)
20141 configdir="win"
20142 ;;
20143*)
20144 configdir="unix"
20145 ;;
20146esac
3fc11d3e
JM
20147
20148GDBTKLIBS=
20149if test "${enable_gdbtk}" = "yes"; then
20150
d1c3b63a
KS
20151 # Gdbtk must have an absolute path to srcdir in order to run
20152 # properly when not installed.
20153 here=`pwd`
20154 cd ${srcdir}
20155 GDBTK_SRC_DIR=`pwd`
20156 cd $here
20157
bec39cab 20158
3fc11d3e
JM
20159#
20160# Ok, lets find the tcl configuration
bec39cab 20161# First, look for one uninstalled.
3fc11d3e
JM
20162# the alternative search directory is invoked by --with-tclconfig
20163#
20164
20165if test x"${no_tcl}" = x ; then
20166 # we reset no_tcl in case something fails here
20167 no_tcl=true
bec39cab
AC
20168
20169# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e
JM
20170if test "${with_tclconfig+set}" = set; then
20171 withval="$with_tclconfig"
20172 with_tclconfig=${withval}
bec39cab
AC
20173fi;
20174 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20175echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20176 if test "${ac_cv_c_tclconfig+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20178else
bec39cab 20179
3fc11d3e
JM
20180
20181 # First check to see if --with-tclconfig was specified.
20182 if test x"${with_tclconfig}" != x ; then
20183 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20184 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20185 else
bec39cab
AC
20186 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20187echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20188 { (exit 1); exit 1; }; }
3fc11d3e
JM
20189 fi
20190 fi
20191
20192 # then check for a private Tcl installation
20193 if test x"${ac_cv_c_tclconfig}" = x ; then
20194 for i in \
20195 ../tcl \
20196 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20197 ../../tcl \
20198 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20199 ../../../tcl \
20200 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20201 if test -f "$i/${configdir}/tclConfig.sh" ; then
20202 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20203 break
20204 fi
20205 done
20206 fi
20207 # check in a few common install locations
20208 if test x"${ac_cv_c_tclconfig}" = x ; then
20209 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20210 if test -f "$i/tclConfig.sh" ; then
20211 ac_cv_c_tclconfig=`(cd $i; pwd)`
20212 break
20213 fi
20214 done
20215 fi
20216 # check in a few other private locations
20217 if test x"${ac_cv_c_tclconfig}" = x ; then
20218 for i in \
20219 ${srcdir}/../tcl \
20220 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20221 if test -f "$i/${configdir}/tclConfig.sh" ; then
20222 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20223 break
20224 fi
20225 done
20226 fi
bec39cab 20227
3fc11d3e
JM
20228fi
20229
20230 if test x"${ac_cv_c_tclconfig}" = x ; then
20231 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
20232 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20233echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
20234 else
20235 no_tcl=
20236 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
bec39cab
AC
20237 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20238echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
20239 fi
20240fi
20241
20242 if test -z "${no_tcl}"; then
bec39cab 20243
3fc11d3e
JM
20244 . $TCLCONFIG
20245
3fc11d3e
JM
20246
20247
20248
20249
3fc11d3e
JM
20250
20251
20252
bec39cab
AC
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
3fc11d3e
JM
20272#
20273# Ok, lets find the tk configuration
bec39cab 20274# First, look for one uninstalled.
3fc11d3e
JM
20275# the alternative search directory is invoked by --with-tkconfig
20276#
20277
20278if test x"${no_tk}" = x ; then
20279 # we reset no_tk in case something fails here
20280 no_tk=true
bec39cab
AC
20281
20282# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e
JM
20283if test "${with_tkconfig+set}" = set; then
20284 withval="$with_tkconfig"
20285 with_tkconfig=${withval}
bec39cab
AC
20286fi;
20287 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20288echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20289 if test "${ac_cv_c_tkconfig+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20291else
bec39cab 20292
3fc11d3e
JM
20293
20294 # First check to see if --with-tkconfig was specified.
20295 if test x"${with_tkconfig}" != x ; then
20296 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20297 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20298 else
bec39cab
AC
20299 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20300echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20301 { (exit 1); exit 1; }; }
3fc11d3e
JM
20302 fi
20303 fi
20304
20305 # then check for a private Tk library
20306 if test x"${ac_cv_c_tkconfig}" = x ; then
20307 for i in \
20308 ../tk \
20309 `ls -dr ../tk[4-9]* 2>/dev/null` \
20310 ../../tk \
20311 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20312 ../../../tk \
20313 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20314 if test -f "$i/${configdir}/tkConfig.sh" ; then
20315 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20316 break
20317 fi
20318 done
20319 fi
20320 # check in a few common install locations
20321 if test x"${ac_cv_c_tkconfig}" = x ; then
20322 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20323 if test -f "$i/tkConfig.sh" ; then
20324 ac_cv_c_tkconfig=`(cd $i; pwd)`
20325 break
20326 fi
20327 done
20328 fi
20329 # check in a few other private locations
20330 if test x"${ac_cv_c_tkconfig}" = x ; then
20331 for i in \
20332 ${srcdir}/../tk \
20333 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20334 if test -f "$i/${configdir}/tkConfig.sh" ; then
20335 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20336 break
20337 fi
20338 done
20339 fi
bec39cab 20340
3fc11d3e
JM
20341fi
20342
20343 if test x"${ac_cv_c_tkconfig}" = x ; then
20344 TKCONFIG="# no Tk configs found"
bec39cab
AC
20345 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20346echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
20347 else
20348 no_tk=
20349 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
bec39cab
AC
20350 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20351echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
20352 fi
20353fi
20354
20355
20356
dd2504ab
JM
20357 # now look for Tcl library stuff
20358
d91670b9 20359 tcldir="../tcl/${configdir}/"
dd2504ab
JM
20360
20361 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20362
3fc11d3e
JM
20363 # If $no_tk is nonempty, then we can't do Tk, and there is no
20364 # point to doing Tcl.
20365 if test -z "${no_tk}"; then
bec39cab 20366
3fc11d3e
JM
20367 if test -f "$TKCONFIG" ; then
20368 . $TKCONFIG
20369 fi
20370
3fc11d3e 20371
3fc11d3e
JM
20372
20373
3fc11d3e 20374
bec39cab
AC
20375
20376
20377
20378
20379
20380
20381
20382
20383
3fc11d3e
JM
20384#
20385# Ok, lets find the tcl source trees so we can use the headers
20386# Warning: transition of version 9 to 10 will break this algorithm
20387# because 10 sorts before 9. We also look for just tcl. We have to
20388# be careful that we don't match stuff like tclX by accident.
20389# the alternative search directory is involked by --with-tclinclude
20390#
20391
20392no_tcl=true
bec39cab
AC
20393echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20394echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20395
3fc11d3e
JM
20396# Check whether --with-tclinclude or --without-tclinclude was given.
20397if test "${with_tclinclude+set}" = set; then
20398 withval="$with_tclinclude"
20399 with_tclinclude=${withval}
bec39cab
AC
20400fi;
20401if test "${ac_cv_c_tclh+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20403else
bec39cab 20404
3fc11d3e
JM
20405# first check to see if --with-tclinclude was specified
20406if test x"${with_tclinclude}" != x ; then
20407 if test -f ${with_tclinclude}/tclInt.h ; then
20408 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20409 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20410 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20411 else
bec39cab
AC
20412 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20413echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20414 { (exit 1); exit 1; }; }
3fc11d3e
JM
20415 fi
20416fi
20417
20418# next check if it came with Tcl configuration file
20419if test x"${ac_cv_c_tclconfig}" = x ; then
20420 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20421 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20422 fi
20423fi
20424
20425# next check in private source directory
20426#
20427# since ls returns lowest version numbers first, reverse its output
20428if test x"${ac_cv_c_tclh}" = x ; then
20429 for i in \
20430 ${srcdir}/../tcl \
20431 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20432 ${srcdir}/../../tcl \
20433 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20434 ${srcdir}/../../../tcl \
20435 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20436 if test -f $i/generic/tclInt.h ; then
20437 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20438 break
20439 fi
20440 done
20441fi
20442# finally check in a few common install locations
20443#
20444# since ls returns lowest version numbers first, reverse its output
20445if test x"${ac_cv_c_tclh}" = x ; then
20446 for i in \
20447 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20448 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20449 /usr/local/src/tcl \
20450 /usr/local/lib/tcl \
20451 ${prefix}/include ; do
20452 if test -f $i/generic/tclInt.h ; then
20453 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20454 break
20455 fi
20456 done
20457fi
20458# see if one is installed
20459if test x"${ac_cv_c_tclh}" = x ; then
bec39cab
AC
20460 if test "${ac_cv_header_tclInt_h+set}" = set; then
20461 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20462echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20463if test "${ac_cv_header_tclInt_h+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20465fi
20466echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20467echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20468else
20469 # Is the header compilable?
20470echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20471echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20472cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
20478$ac_includes_default
20479#include <tclInt.h>
20480_ACEOF
20481rm -f conftest.$ac_objext
20482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20483 (eval $ac_compile) 2>conftest.er1
20484 ac_status=$?
20485 grep -v '^ *+' conftest.er1 >conftest.err
20486 rm -f conftest.er1
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } &&
121ce6e5 20490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; } &&
20496 { ac_try='test -s conftest.$ac_objext'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 ac_header_compiler=yes
20503else
20504 echo "$as_me: failed program was:" >&5
20505sed 's/^/| /' conftest.$ac_ext >&5
20506
20507ac_header_compiler=no
20508fi
20509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20511echo "${ECHO_T}$ac_header_compiler" >&6
20512
20513# Is the header present?
20514echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20515echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20516cat >conftest.$ac_ext <<_ACEOF
20517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
3fc11d3e 20522#include <tclInt.h>
bec39cab
AC
20523_ACEOF
20524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20526 ac_status=$?
20527 grep -v '^ *+' conftest.er1 >conftest.err
20528 rm -f conftest.er1
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } >/dev/null; then
20532 if test -s conftest.err; then
20533 ac_cpp_err=$ac_c_preproc_warn_flag
20534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20535 else
20536 ac_cpp_err=
20537 fi
20538else
20539 ac_cpp_err=yes
3fc11d3e 20540fi
bec39cab
AC
20541if test -z "$ac_cpp_err"; then
20542 ac_header_preproc=yes
20543else
20544 echo "$as_me: failed program was:" >&5
20545sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 ac_header_preproc=no
3fc11d3e 20548fi
bec39cab
AC
20549rm -f conftest.err conftest.$ac_ext
20550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20551echo "${ECHO_T}$ac_header_preproc" >&6
20552
20553# So? What about this header?
20554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20555 yes:no: )
20556 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20557echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20558 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20559echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20560 ac_header_preproc=yes
20561 ;;
20562 no:yes:* )
20563 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20564echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20565 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20566echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20567 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20568echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20569 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20570echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20571 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20572echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20573 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20574echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20575 (
20576 cat <<\_ASBOX
20577## ------------------------------------------ ##
20578## Report this to the AC_PACKAGE_NAME lists. ##
20579## ------------------------------------------ ##
20580_ASBOX
20581 ) |
20582 sed "s/^/$as_me: WARNING: /" >&2
20583 ;;
20584esac
20585echo "$as_me:$LINENO: checking for tclInt.h" >&5
20586echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20587if test "${ac_cv_header_tclInt_h+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20589else
20590 ac_cv_header_tclInt_h=$ac_header_preproc
20591fi
20592echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20593echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20594
20595fi
20596if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
20597 ac_cv_c_tclh=installed
20598else
bec39cab 20599 ac_cv_c_tclh=""
3fc11d3e
JM
20600fi
20601
bec39cab 20602
3fc11d3e
JM
20603fi
20604
20605fi
20606
20607if test x"${ac_cv_c_tclh}" = x ; then
20608 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
20609 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20610echo "$as_me: error: Can't find Tcl private headers" >&2;}
20611 { (exit 1); exit 1; }; }
3fc11d3e
JM
20612fi
20613if test x"${ac_cv_c_tclh}" != x ; then
20614 no_tcl=""
20615 if test x"${ac_cv_c_tclh}" = x"installed" ; then
bec39cab
AC
20616 echo "$as_me:$LINENO: result: is installed" >&5
20617echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20618 TCLHDIR=""
20619 else
bec39cab
AC
20620 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20621echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
20622 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20623 TCLHDIR="-I${ac_cv_c_tclh}"
20624 fi
20625fi
20626
20627
20628
bec39cab 20629
3fc11d3e
JM
20630#
20631# Ok, lets find the tk source trees so we can use the headers
20632# If the directory (presumably symlink) named "tk" exists, use that one
20633# in preference to any others. Same logic is used when choosing library
20634# and again with Tcl. The search order is the best place to look first, then in
20635# decreasing significance. The loop breaks if the trigger file is found.
20636# Note the gross little conversion here of srcdir by cd'ing to the found
20637# directory. This converts the path from a relative to an absolute, so
20638# recursive cache variables for the path will work right. We check all
20639# the possible paths in one loop rather than many seperate loops to speed
20640# things up.
20641# the alternative search directory is involked by --with-tkinclude
20642#
20643no_tk=true
bec39cab
AC
20644echo "$as_me:$LINENO: checking for Tk private headers" >&5
20645echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20646
3fc11d3e
JM
20647# Check whether --with-tkinclude or --without-tkinclude was given.
20648if test "${with_tkinclude+set}" = set; then
20649 withval="$with_tkinclude"
20650 with_tkinclude=${withval}
bec39cab
AC
20651fi;
20652if test "${ac_cv_c_tkh+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20654else
bec39cab 20655
3fc11d3e
JM
20656# first check to see if --with-tkinclude was specified
20657if test x"${with_tkinclude}" != x ; then
20658 if test -f ${with_tkinclude}/tk.h ; then
20659 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20660 elif test -f ${with_tkinclude}/generic/tk.h ; then
20661 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20662 else
bec39cab
AC
20663 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20664echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20665 { (exit 1); exit 1; }; }
3fc11d3e
JM
20666 fi
20667fi
20668
20669# next check if it came with Tk configuration file
20670if test x"${ac_cv_c_tkconfig}" = x ; then
20671 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20672 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20673 fi
20674fi
20675
20676# next check in private source directory
20677#
20678# since ls returns lowest version numbers first, reverse its output
20679if test x"${ac_cv_c_tkh}" = x ; then
20680 for i in \
20681 ${srcdir}/../tk \
20682 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20683 ${srcdir}/../../tk \
20684 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20685 ${srcdir}/../../../tk \
20686 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20687 if test -f $i/generic/tk.h ; then
20688 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20689 break
20690 fi
20691 done
20692fi
20693# finally check in a few common install locations
20694#
20695# since ls returns lowest version numbers first, reverse its output
20696if test x"${ac_cv_c_tkh}" = x ; then
20697 for i in \
20698 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20699 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20700 /usr/local/src/tk \
20701 /usr/local/lib/tk \
20702 ${prefix}/include ; do
20703 if test -f $i/generic/tk.h ; then
20704 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20705 break
20706 fi
20707 done
20708fi
20709# see if one is installed
20710if test x"${ac_cv_c_tkh}" = x ; then
bec39cab
AC
20711 if test "${ac_cv_header_tk_h+set}" = set; then
20712 echo "$as_me:$LINENO: checking for tk.h" >&5
20713echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20714if test "${ac_cv_header_tk_h+set}" = set; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20716fi
20717echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20718echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20719else
20720 # Is the header compilable?
20721echo "$as_me:$LINENO: checking tk.h usability" >&5
20722echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20723cat >conftest.$ac_ext <<_ACEOF
20724/* confdefs.h. */
20725_ACEOF
20726cat confdefs.h >>conftest.$ac_ext
20727cat >>conftest.$ac_ext <<_ACEOF
20728/* end confdefs.h. */
20729$ac_includes_default
3fc11d3e 20730#include <tk.h>
bec39cab
AC
20731_ACEOF
20732rm -f conftest.$ac_objext
20733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>conftest.er1
20735 ac_status=$?
20736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
121ce6e5 20741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; } &&
20747 { ac_try='test -s conftest.$ac_objext'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 ac_header_compiler=yes
20754else
20755 echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758ac_header_compiler=no
20759fi
20760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20762echo "${ECHO_T}$ac_header_compiler" >&6
20763
20764# Is the header present?
20765echo "$as_me:$LINENO: checking tk.h presence" >&5
20766echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20767cat >conftest.$ac_ext <<_ACEOF
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
20773#include <tk.h>
20774_ACEOF
20775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20777 ac_status=$?
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } >/dev/null; then
20783 if test -s conftest.err; then
20784 ac_cpp_err=$ac_c_preproc_warn_flag
20785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20786 else
20787 ac_cpp_err=
20788 fi
20789else
20790 ac_cpp_err=yes
3fc11d3e 20791fi
bec39cab
AC
20792if test -z "$ac_cpp_err"; then
20793 ac_header_preproc=yes
20794else
20795 echo "$as_me: failed program was:" >&5
20796sed 's/^/| /' conftest.$ac_ext >&5
20797
20798 ac_header_preproc=no
20799fi
20800rm -f conftest.err conftest.$ac_ext
20801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20802echo "${ECHO_T}$ac_header_preproc" >&6
20803
20804# So? What about this header?
20805case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20806 yes:no: )
20807 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20808echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20809 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20810echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20811 ac_header_preproc=yes
20812 ;;
20813 no:yes:* )
20814 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20815echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20817echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20819echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20821echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20823echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20825echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20826 (
20827 cat <<\_ASBOX
20828## ------------------------------------------ ##
20829## Report this to the AC_PACKAGE_NAME lists. ##
20830## ------------------------------------------ ##
20831_ASBOX
20832 ) |
20833 sed "s/^/$as_me: WARNING: /" >&2
20834 ;;
20835esac
20836echo "$as_me:$LINENO: checking for tk.h" >&5
20837echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20838if test "${ac_cv_header_tk_h+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20840else
20841 ac_cv_header_tk_h=$ac_header_preproc
20842fi
20843echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20844echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20845
3fc11d3e 20846fi
bec39cab 20847if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
20848 ac_cv_c_tkh=installed
20849else
bec39cab 20850 ac_cv_c_tkh=""
3fc11d3e
JM
20851fi
20852
bec39cab 20853
3fc11d3e
JM
20854fi
20855
20856fi
20857
20858if test x"${ac_cv_c_tkh}" != x ; then
20859 no_tk=""
20860 if test x"${ac_cv_c_tkh}" = x"installed" ; then
bec39cab
AC
20861 echo "$as_me:$LINENO: result: is installed" >&5
20862echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
20863 TKHDIR=""
20864 else
bec39cab
AC
20865 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20866echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
20867 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20868 TKHDIR="-I${ac_cv_c_tkh}"
20869 fi
20870else
20871 TKHDIR="# no Tk directory found"
bec39cab
AC
20872 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20873echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
20874 no_tk=true
20875fi
20876
20877
20878
bec39cab
AC
20879
20880echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20881echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20882if test x"${ac_cv_c_itclh}" = x ; then
20883 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20884 if test -f $i/generic/itcl.h ; then
20885 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20886 break
20887 fi
20888 done
20889fi
20890if test x"${ac_cv_c_itclh}" = x ; then
20891 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
20892 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20893echo "$as_me: error: Can't find Itcl private headers" >&2;}
20894 { (exit 1); exit 1; }; }
3fc11d3e
JM
20895fi
20896if test x"${ac_cv_c_itclh}" != x ; then
20897 ITCLHDIR="-I${ac_cv_c_itclh}"
20898fi
20899# should always be here
20900# ITCLLIB="../itcl/itcl/unix/libitcl.a"
20901
20902#AC_SUBST(ITCLLIB)
20903
bec39cab
AC
20904
20905echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20906echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
20907if test x"${ac_cv_c_itkh}" = x ; then
20908 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20909 if test -f $i/generic/itk.h ; then
20910 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20911 break
20912 fi
20913 done
20914fi
20915if test x"${ac_cv_c_itkh}" = x ; then
20916 ITKHDIR="# no Itk private headers found"
bec39cab
AC
20917 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20918echo "$as_me: error: Can't find Itk private headers" >&2;}
20919 { (exit 1); exit 1; }; }
3fc11d3e
JM
20920fi
20921if test x"${ac_cv_c_itkh}" != x ; then
20922 ITKHDIR="-I${ac_cv_c_itkh}"
20923fi
20924# should always be here
20925# ITKLIB="../itcl/itk/unix/libitk.a"
20926
20927#AC_SUBST(ITKLIB)
20928
3fc11d3e 20929
dd2504ab
JM
20930
20931 # now look for Tk library stuff
20932
d91670b9 20933 tkdir="../tk/${configdir}/"
dd2504ab
JM
20934
20935 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20936
3fc11d3e
JM
20937 # now look for Itcl library stuff
20938
bec39cab 20939
3fc11d3e
JM
20940#
20941# Ok, lets find the itcl configuration
bec39cab 20942# First, look for one uninstalled.
3fc11d3e
JM
20943# the alternative search directory is invoked by --with-itclconfig
20944#
20945
20946if test x"${no_itcl}" = x ; then
20947 # we reset no_itcl in case something fails here
20948 no_itcl=true
bec39cab
AC
20949
20950# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e
JM
20951if test "${with_itclconfig+set}" = set; then
20952 withval="$with_itclconfig"
20953 with_itclconfig=${withval}
bec39cab
AC
20954fi;
20955 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20956echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20957 if test "${ac_cv_c_itclconfig+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 20959else
bec39cab 20960
3fc11d3e
JM
20961
20962 # First check to see if --with-itclconfig was specified.
20963 if test x"${with_itclconfig}" != x ; then
20964 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20965 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20966 else
bec39cab
AC
20967 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20968echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20969 { (exit 1); exit 1; }; }
3fc11d3e
JM
20970 fi
20971 fi
20972
20973 # then check for a private Itcl library
20974 if test x"${ac_cv_c_itclconfig}" = x ; then
20975 for i in \
20976 ../itcl/itcl \
20977 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20978 ../../itcl \
20979 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20980 ../../../itcl \
20981 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20982 if test -f "$i/itclConfig.sh" ; then
20983 ac_cv_c_itclconfig=`(cd $i; pwd)`
20984 break
20985 fi
20986 done
20987 fi
20988 # check in a few common install locations
20989 if test x"${ac_cv_c_itclconfig}" = x ; then
20990 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20991 if test -f "$i/itclConfig.sh" ; then
20992 ac_cv_c_itclconfig=`(cd $i; pwd)`
20993 break
20994 fi
20995 done
20996 fi
20997 # check in a few other private locations
20998 if test x"${ac_cv_c_itclconfig}" = x ; then
20999 for i in \
21000 ${srcdir}/../itcl/itcl \
21001 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21002 if test -f "$i/itclConfig.sh" ; then
21003 ac_cv_c_itclconfig=`(cd $i; pwd)`
21004 break
21005 fi
21006 done
21007 fi
bec39cab 21008
3fc11d3e
JM
21009fi
21010
21011 if test x"${ac_cv_c_itclconfig}" = x ; then
21012 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
21013 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21014echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
21015 else
21016 no_itcl=
21017 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
bec39cab
AC
21018 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21019echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
21020 fi
21021fi
21022
21023 if test -z "${no_itcl}"; then
bec39cab 21024
3fc11d3e
JM
21025 if test -f "$ITCLCONFIG" ; then
21026 . $ITCLCONFIG
21027 fi
21028
3fc11d3e 21029
3fc11d3e
JM
21030
21031
bec39cab
AC
21032
21033
21034
21035
21036
21037
21038
3fc11d3e
JM
21039
21040 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 21041 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
21042 fi
21043
bec39cab 21044
3fc11d3e 21045 # now look for Itk library stuff
bec39cab 21046
3fc11d3e
JM
21047#
21048# Ok, lets find the itk configuration
bec39cab 21049# First, look for one uninstalled.
3fc11d3e
JM
21050# the alternative search directory is invoked by --with-itkconfig
21051#
21052
21053if test x"${no_itk}" = x ; then
21054 # we reset no_itk in case something fails here
21055 no_itk=true
bec39cab
AC
21056
21057# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e
JM
21058if test "${with_itkconfig+set}" = set; then
21059 withval="$with_itkconfig"
21060 with_itkconfig=${withval}
bec39cab
AC
21061fi;
21062 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21063echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21064 if test "${ac_cv_c_itkconfig+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21066else
bec39cab 21067
3fc11d3e
JM
21068
21069 # First check to see if --with-itkconfig was specified.
21070 if test x"${with_itkconfig}" != x ; then
21071 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21072 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21073 else
bec39cab
AC
21074 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21075echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21076 { (exit 1); exit 1; }; }
3fc11d3e
JM
21077 fi
21078 fi
21079
21080 # then check for a private Itk library
21081 if test x"${ac_cv_c_itkconfig}" = x ; then
21082 for i in \
21083 ../itcl/itk \
21084 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21085 ../../itk \
21086 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21087 ../../../itk \
21088 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21089 if test -f "$i/itkConfig.sh" ; then
21090 ac_cv_c_itkconfig=`(cd $i; pwd)`
21091 break
21092 fi
21093 done
21094 fi
21095 # check in a few common install locations
21096 if test x"${ac_cv_c_itkconfig}" = x ; then
21097 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21098 if test -f "$i/itkConfig.sh" ; then
21099 ac_cv_c_itkconfig=`(cd $i; pwd)`
21100 break
21101 fi
21102 done
21103 fi
21104 # check in a few other private locations
21105 if test x"${ac_cv_c_itkconfig}" = x ; then
21106 for i in \
21107 ${srcdir}/../itcl/itk \
21108 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21109 if test -f "$i/itkConfig.sh" ; then
21110 ac_cv_c_itkconfig=`(cd $i; pwd)`
21111 break
21112 fi
21113 done
21114 fi
bec39cab 21115
3fc11d3e
JM
21116fi
21117
21118 if test x"${ac_cv_c_itkconfig}" = x ; then
21119 ITKCONFIG="# no Itk configs found"
bec39cab
AC
21120 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21121echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
21122 else
21123 no_itk=
21124 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
bec39cab
AC
21125 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21126echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
21127 fi
21128fi
21129
21130
bec39cab
AC
21131 if test -z "${no_itcl}"; then
21132
21133 if test -f "$ITKCONFIG" ; then
21134 . $ITKCONFIG
21135 fi
21136
21137
21138
21139
21140
21141
3fc11d3e 21142
3fc11d3e 21143
3fc11d3e
JM
21144
21145
3fc11d3e
JM
21146
21147
3fc11d3e 21148 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 21149 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
21150 fi
21151
4226a5a5 21152 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
21153
21154 # Include some libraries that Tcl and Tk want.
b2a1bd4f 21155 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
21156 # Yes, the ordering seems wrong here. But it isn't.
21157 # TK_LIBS is the list of libraries that need to be linked
21158 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21159 # were in LIBS then any link tests after this point would
21160 # try to include things like `$(LIBGUI)', which wouldn't work.
21161 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
21162
21163 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21164 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21165 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
21166 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21167 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21168 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21169 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
21170
21171 if test x$gdb_cv_os_cygwin = xyes; then
21172 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21173 WIN32LDAPP="-Wl,--subsystem,console"
21174 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21175 fi
21176 fi
21177 fi
ffc6a242 21178
bec39cab
AC
21179
21180
21181subdirs="$subdirs gdbtk"
3ace7edb 21182
3fc11d3e
JM
21183fi
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
dd2504ab 21197
bec39cab
AC
21198echo "$as_me:$LINENO: checking for X" >&5
21199echo $ECHO_N "checking for X... $ECHO_C" >&6
21200
121ce6e5 21201ac_path_x_has_been_run=yes
c906108c
SS
21202
21203# Check whether --with-x or --without-x was given.
21204if test "${with_x+set}" = set; then
21205 withval="$with_x"
c906108c 21206
bec39cab 21207fi;
c906108c
SS
21208# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21209if test "x$with_x" = xno; then
21210 # The user explicitly disabled X.
21211 have_x=disabled
21212else
21213 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21214 # Both variables are already set.
21215 have_x=yes
21216 else
bec39cab
AC
21217 if test "${ac_cv_have_x+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
21219else
21220 # One or both of the vars are not set, and there is no cached value.
bec39cab
AC
21221ac_x_includes=no ac_x_libraries=no
21222rm -fr conftest.dir
21223if mkdir conftest.dir; then
21224 cd conftest.dir
c906108c 21225 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 21226 cat >Imakefile <<'_ACEOF'
c906108c
SS
21227acfindx:
21228 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 21229_ACEOF
c906108c
SS
21230 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21232 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21233 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21234 for ac_extension in a so sl; do
21235 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
21236 test -f $ac_im_libdir/libX11.$ac_extension; then
21237 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
21238 fi
21239 done
21240 # Screen out bogus values from the imake configuration. They are
21241 # bogus both because they are the default anyway, and because
21242 # using them would break gcc on systems where it needs fixed includes.
bec39cab 21243 case $ac_im_incroot in
c906108c 21244 /usr/include) ;;
bec39cab 21245 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 21246 esac
bec39cab 21247 case $ac_im_usrlibdir in
c906108c 21248 /usr/lib | /lib) ;;
bec39cab 21249 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
21250 esac
21251 fi
21252 cd ..
bec39cab 21253 rm -fr conftest.dir
c906108c
SS
21254fi
21255
bec39cab
AC
21256# Standard set of common directories for X headers.
21257# Check X11 before X11Rn because it is often a symlink to the current release.
21258ac_x_header_dirs='
21259/usr/X11/include
21260/usr/X11R6/include
21261/usr/X11R5/include
21262/usr/X11R4/include
21263
21264/usr/include/X11
21265/usr/include/X11R6
21266/usr/include/X11R5
21267/usr/include/X11R4
21268
21269/usr/local/X11/include
21270/usr/local/X11R6/include
21271/usr/local/X11R5/include
21272/usr/local/X11R4/include
21273
21274/usr/local/include/X11
21275/usr/local/include/X11R6
21276/usr/local/include/X11R5
21277/usr/local/include/X11R4
21278
21279/usr/X386/include
21280/usr/x386/include
21281/usr/XFree86/include/X11
21282
21283/usr/include
21284/usr/local/include
21285/usr/unsupported/include
21286/usr/athena/include
21287/usr/local/x11r5/include
21288/usr/lpp/Xamples/include
21289
21290/usr/openwin/include
21291/usr/openwin/share/include'
21292
21293if test "$ac_x_includes" = no; then
121ce6e5 21294 # Guess where to find include files, by looking for a specified header file.
c906108c 21295 # First, try using that file with no special directory specified.
bec39cab
AC
21296 cat >conftest.$ac_ext <<_ACEOF
21297/* confdefs.h. */
21298_ACEOF
21299cat confdefs.h >>conftest.$ac_ext
21300cat >>conftest.$ac_ext <<_ACEOF
21301/* end confdefs.h. */
121ce6e5 21302#include <X11/Xlib.h>
bec39cab
AC
21303_ACEOF
21304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } >/dev/null; then
21312 if test -s conftest.err; then
21313 ac_cpp_err=$ac_c_preproc_warn_flag
21314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21315 else
21316 ac_cpp_err=
21317 fi
21318else
21319 ac_cpp_err=yes
21320fi
21321if test -z "$ac_cpp_err"; then
c906108c
SS
21322 # We can compile using X headers with no special include directory.
21323ac_x_includes=
21324else
bec39cab
AC
21325 echo "$as_me: failed program was:" >&5
21326sed 's/^/| /' conftest.$ac_ext >&5
21327
21328 for ac_dir in $ac_x_header_dirs; do
121ce6e5 21329 if test -r "$ac_dir/X11/Xlib.h"; then
bec39cab
AC
21330 ac_x_includes=$ac_dir
21331 break
21332 fi
21333done
c906108c 21334fi
bec39cab
AC
21335rm -f conftest.err conftest.$ac_ext
21336fi # $ac_x_includes = no
c906108c 21337
bec39cab 21338if test "$ac_x_libraries" = no; then
c906108c 21339 # Check for the libraries.
c906108c
SS
21340 # See if we find them without any special options.
21341 # Don't add to $LIBS permanently.
bec39cab 21342 ac_save_LIBS=$LIBS
121ce6e5 21343 LIBS="-lX11 $LIBS"
bec39cab
AC
21344 cat >conftest.$ac_ext <<_ACEOF
21345/* confdefs.h. */
21346_ACEOF
21347cat confdefs.h >>conftest.$ac_ext
21348cat >>conftest.$ac_ext <<_ACEOF
21349/* end confdefs.h. */
121ce6e5 21350#include <X11/Xlib.h>
bec39cab
AC
21351int
21352main ()
21353{
121ce6e5 21354XrmInitialize ()
bec39cab
AC
21355 ;
21356 return 0;
21357}
21358_ACEOF
21359rm -f conftest.$ac_objext conftest$ac_exeext
21360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21361 (eval $ac_link) 2>conftest.er1
21362 ac_status=$?
21363 grep -v '^ *+' conftest.er1 >conftest.err
21364 rm -f conftest.er1
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } &&
121ce6e5 21368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest$ac_exeext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 LIBS=$ac_save_LIBS
c906108c
SS
21381# We can link X programs with no special library path.
21382ac_x_libraries=
21383else
bec39cab
AC
21384 echo "$as_me: failed program was:" >&5
21385sed 's/^/| /' conftest.$ac_ext >&5
21386
21387LIBS=$ac_save_LIBS
21388for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 21389do
bec39cab 21390 # Don't even attempt the hair of trying to link an X program!
c906108c 21391 for ac_extension in a so sl; do
121ce6e5 21392 if test -r $ac_dir/libX11.$ac_extension; then
c906108c
SS
21393 ac_x_libraries=$ac_dir
21394 break 2
21395 fi
21396 done
21397done
21398fi
bec39cab
AC
21399rm -f conftest.err conftest.$ac_objext \
21400 conftest$ac_exeext conftest.$ac_ext
21401fi # $ac_x_libraries = no
c906108c 21402
bec39cab 21403if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
21404 # Didn't find X anywhere. Cache the known absence of X.
21405 ac_cv_have_x="have_x=no"
21406else
21407 # Record where we found X for the cache.
21408 ac_cv_have_x="have_x=yes \
bec39cab 21409 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
21410fi
21411fi
bec39cab 21412
c906108c
SS
21413 fi
21414 eval "$ac_cv_have_x"
21415fi # $with_x != no
21416
21417if test "$have_x" != yes; then
bec39cab
AC
21418 echo "$as_me:$LINENO: result: $have_x" >&5
21419echo "${ECHO_T}$have_x" >&6
c906108c
SS
21420 no_x=yes
21421else
21422 # If each of the values was on the command line, it overrides each guess.
21423 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21424 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21425 # Update the cache value to reflect the command line values.
21426 ac_cv_have_x="have_x=yes \
21427 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
121ce6e5
DJ
21428 # It might be that x_includes is empty (headers are found in the
21429 # standard search path. Then output the corresponding message
21430 ac_out_x_includes=$x_includes
21431 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21432 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21433echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
c906108c
SS
21434fi
21435
21436
9cc52bde
MK
21437# Check whether we should enable the TUI, but only do so if we really
21438# can.
21439if test x"$enable_tui" = xyes; then
21440 if test -d $srcdir/tui; then
21441 if test "$ac_cv_search_waddstr" != no; then
21442 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21443 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21444 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21445 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21446 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21447 CONFIG_ALL="${CONFIG_ALL} all-tui"
21448 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21449 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21450 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21451 else
bec39cab
AC
21452 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21453echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
21454 fi
21455 fi
21456fi
21457
bec39cab
AC
21458# Unlike the sim directory, whether a simulator is linked is controlled by
21459# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
21460# This code just checks for a few cases where we'd like to ignore those
21461# definitions, even when they're present in the '.mt' file. These cases
21462# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 21463# not part of the source tree.
7a292a7a
SS
21464#
21465# Check whether --enable-sim or --disable-sim was given.
21466if test "${enable_sim+set}" = set; then
21467 enableval="$enable_sim"
21468 echo "enable_sim = $enable_sim";
21469 echo "enableval = ${enableval}";
21470 case "${enableval}" in
21471 yes) ignore_sim=false ;;
21472 no) ignore_sim=true ;;
21473 *) ignore_sim=false ;;
21474 esac
21475else
21476 ignore_sim=false
bec39cab 21477fi;
7a292a7a
SS
21478
21479if test ! -d "${srcdir}/../sim"; then
21480 ignore_sim=true
21481fi
21482
21483if test "${ignore_sim}" = "true"; then
21484 IGNORE_SIM="SIM="
21485 IGNORE_SIM_OBS="SIM_OBS="
21486else
21487 IGNORE_SIM=""
21488 IGNORE_SIM_OBS=""
60ca704f
SE
21489
21490cat >>confdefs.h <<\_ACEOF
7a292a7a 21491#define WITH_SIM 1
bec39cab 21492_ACEOF
7a292a7a
SS
21493
21494fi
21495
21496
21497
c906108c
SS
21498
21499
21500
21501
21502
21503
dfcd3bfb 21504
e56ac5c3
AC
21505
21506
b3a90332
AC
21507
21508
c35f4ffc 21509# List of host floatformats.
bec39cab
AC
21510
21511cat >>confdefs.h <<_ACEOF
c35f4ffc 21512#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 21513_ACEOF
c35f4ffc 21514
bec39cab
AC
21515
21516cat >>confdefs.h <<_ACEOF
c35f4ffc 21517#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
21518_ACEOF
21519
c35f4ffc 21520
bec39cab 21521cat >>confdefs.h <<_ACEOF
c35f4ffc 21522#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 21523_ACEOF
c35f4ffc
AC
21524
21525
c906108c
SS
21526# target_subdir is used by the testsuite to find the target libraries.
21527target_subdir=
21528if test "${host}" != "${target}"; then
21529 target_subdir="${target_alias}/"
21530fi
21531
21532
21533frags=
0dad8a66
MK
21534if test "${target}" = "${host}"; then
21535 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21536 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
21537 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21538echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21539 { (exit 1); exit 1; }; }
0dad8a66
MK
21540 fi
21541 frags="$frags $host_makefile_frag"
21542else
21543 host_makefile_frag=/dev/null
c906108c 21544fi
c906108c
SS
21545
21546target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21547if test ! -f ${target_makefile_frag}; then
bec39cab
AC
21548 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21549echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21550 { (exit 1); exit 1; }; }
c906108c
SS
21551fi
21552frags="$frags $target_makefile_frag"
21553
21554
21555
21556
21557
21558hostfile=`sed -n '
21559s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21560' ${host_makefile_frag}`
21561
21562targetfile=`sed -n '
2c0fc042 21563s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
21564' ${target_makefile_frag}`
21565
c906108c 21566if test "${target}" = "${host}"; then
a85f51e7
DJ
21567# We pick this up from the host configuration file (.mh) because we
21568# do not have a native configuration Makefile fragment.
c906108c
SS
21569nativefile=`sed -n '
21570s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21571' ${host_makefile_frag}`
c906108c
SS
21572fi
21573
21574
b00a8037 21575if test x"${gdb_osabi}" != x ; then
bec39cab
AC
21576
21577cat >>confdefs.h <<_ACEOF
b00a8037 21578#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 21579_ACEOF
b00a8037
DJ
21580
21581fi
21582
8dcde887
MK
21583# Enable multi-ice-gdb-server.
21584# Check whether --enable-multi-ice or --disable-multi-ice was given.
21585if test "${enable_multi_ice+set}" = set; then
21586 enableval="$enable_multi_ice"
21587 case $enableval in
21588 yes | no)
21589 ;;
bec39cab
AC
21590 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21591echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21592 { (exit 1); exit 1; }; } ;;
8dcde887 21593 esac
bec39cab 21594fi;
8dcde887 21595if test "x$enable_multi_ice" = xyes; then
bec39cab
AC
21596
21597
21598subdirs="$subdirs multi-ice"
3ace7edb 21599
a85f51e7
DJ
21600fi
21601
8dcde887
MK
21602# We only build gdbserver automatically if host and target are the same.
21603if test "x$target" = "x$host"; then
bec39cab
AC
21604 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21605echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 21606 if test "x$build_gdbserver" = xyes; then
bec39cab
AC
21607 echo "$as_me:$LINENO: result: yes" >&5
21608echo "${ECHO_T}yes" >&6
21609
21610
21611subdirs="$subdirs gdbserver"
3ace7edb 21612
8dcde887 21613 else
bec39cab
AC
21614 echo "$as_me:$LINENO: result: no" >&5
21615echo "${ECHO_T}no" >&6
8dcde887
MK
21616 fi
21617fi
21618
065a1afc
JB
21619# We configure the nlm subdirectory on netware targets, as instructed
21620# by configure.tgt.
21621if test "x$build_nlm" = xyes; then
21622
21623
21624subdirs="$subdirs nlm"
21625
21626fi
21627
2c0fc042
AC
21628# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21629# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21630# to an empty version.
c906108c
SS
21631
21632files=
21633links=
5a2402b8 21634
c906108c 21635rm -f xm.h
5a2402b8 21636xm_h=""
c906108c 21637if test "${hostfile}" != ""; then
5a2402b8 21638 xm_h=xm.h
0f475e27
AC
21639 case "${hostfile}" in
21640 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21641 * ) GDB_XM_FILE="${hostfile}"
21642 esac
5a2402b8
AC
21643 files="${files} ${GDB_XM_FILE}"
21644 links="${links} xm.h"
60ca704f
SE
21645
21646cat >>confdefs.h <<_ACEOF
b78960be 21647#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 21648_ACEOF
5a2402b8 21649
c906108c 21650fi
5a2402b8
AC
21651
21652
c906108c 21653rm -f tm.h
5a2402b8 21654tm_h=""
c906108c 21655if test "${targetfile}" != ""; then
5a2402b8 21656 tm_h=tm.h
0f475e27 21657 case "${targetfile}" in
b8c4aece 21658 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
21659 * ) GDB_TM_FILE="${targetfile}"
21660 esac
5a2402b8
AC
21661 files="${files} ${GDB_TM_FILE}"
21662 links="${links} tm.h"
60ca704f
SE
21663
21664cat >>confdefs.h <<_ACEOF
b78960be 21665#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 21666_ACEOF
5a2402b8 21667
c906108c 21668fi
5a2402b8
AC
21669
21670
c906108c 21671rm -f nm.h
5a2402b8 21672nm_h=""
c906108c 21673if test "${nativefile}" != ""; then
5a2402b8 21674 nm_h=nm.h
0f475e27
AC
21675 case "${nativefile}" in
21676 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21677 * ) GDB_NM_FILE="${nativefile}"
21678 esac
5a2402b8
AC
21679 files="${files} ${GDB_NM_FILE}"
21680 links="${links} nm.h"
60ca704f
SE
21681
21682cat >>confdefs.h <<_ACEOF
b78960be 21683#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 21684_ACEOF
5a2402b8 21685
c906108c 21686fi
5a2402b8
AC
21687
21688
bec39cab
AC
21689ac_sources="$files"
21690ac_dests="$links"
21691while test -n "$ac_sources"; do
21692 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21693 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21694 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21695done
21696 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
21697
21698
c906108c
SS
21699
21700
c906108c 21701
c906108c 21702
bec39cab
AC
21703cat >>confdefs.h <<\_ACEOF
21704#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21705_ACEOF
c906108c 21706
234b45d4 21707
234b45d4
KB
21708
21709
21710
bec39cab 21711# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4
KB
21712if test "${with_libiconv_prefix+set}" = set; then
21713 withval="$with_libiconv_prefix"
bec39cab 21714
234b45d4
KB
21715 for dir in `echo "$withval" | tr : ' '`; do
21716 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21717 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21718 done
234b45d4 21719
bec39cab 21720fi;
234b45d4 21721
bec39cab
AC
21722 echo "$as_me:$LINENO: checking for iconv" >&5
21723echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21724if test "${am_cv_func_iconv+set}" = set; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 21726else
bec39cab 21727
234b45d4
KB
21728 am_cv_func_iconv="no, consider installing GNU libiconv"
21729 am_cv_lib_iconv=no
bec39cab
AC
21730 cat >conftest.$ac_ext <<_ACEOF
21731/* confdefs.h. */
21732_ACEOF
21733cat confdefs.h >>conftest.$ac_ext
21734cat >>conftest.$ac_ext <<_ACEOF
21735/* end confdefs.h. */
234b45d4
KB
21736#include <stdlib.h>
21737#include <iconv.h>
bec39cab
AC
21738int
21739main ()
21740{
234b45d4
KB
21741iconv_t cd = iconv_open("","");
21742 iconv(cd,NULL,NULL,NULL,NULL);
21743 iconv_close(cd);
bec39cab
AC
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext conftest$ac_exeext
21749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21750 (eval $ac_link) 2>conftest.er1
21751 ac_status=$?
21752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
121ce6e5 21757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; } &&
21763 { ac_try='test -s conftest$ac_exeext'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
234b45d4
KB
21769 am_cv_func_iconv=yes
21770else
bec39cab
AC
21771 echo "$as_me: failed program was:" >&5
21772sed 's/^/| /' conftest.$ac_ext >&5
21773
234b45d4 21774fi
bec39cab
AC
21775rm -f conftest.err conftest.$ac_objext \
21776 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21777 if test "$am_cv_func_iconv" != yes; then
21778 am_save_LIBS="$LIBS"
21779 LIBS="$LIBS -liconv"
bec39cab
AC
21780 cat >conftest.$ac_ext <<_ACEOF
21781/* confdefs.h. */
21782_ACEOF
21783cat confdefs.h >>conftest.$ac_ext
21784cat >>conftest.$ac_ext <<_ACEOF
21785/* end confdefs.h. */
234b45d4
KB
21786#include <stdlib.h>
21787#include <iconv.h>
bec39cab
AC
21788int
21789main ()
21790{
234b45d4
KB
21791iconv_t cd = iconv_open("","");
21792 iconv(cd,NULL,NULL,NULL,NULL);
21793 iconv_close(cd);
bec39cab
AC
21794 ;
21795 return 0;
21796}
21797_ACEOF
21798rm -f conftest.$ac_objext conftest$ac_exeext
21799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800 (eval $ac_link) 2>conftest.er1
21801 ac_status=$?
21802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
121ce6e5 21807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } &&
21813 { ac_try='test -s conftest$ac_exeext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
234b45d4
KB
21819 am_cv_lib_iconv=yes
21820 am_cv_func_iconv=yes
21821else
bec39cab
AC
21822 echo "$as_me: failed program was:" >&5
21823sed 's/^/| /' conftest.$ac_ext >&5
21824
234b45d4 21825fi
bec39cab
AC
21826rm -f conftest.err conftest.$ac_objext \
21827 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
21828 LIBS="$am_save_LIBS"
21829 fi
bec39cab
AC
21830
21831fi
21832echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21833echo "${ECHO_T}$am_cv_func_iconv" >&6
21834 if test "$am_cv_func_iconv" = yes; then
21835
21836cat >>confdefs.h <<\_ACEOF
21837#define HAVE_ICONV 1
21838_ACEOF
21839
21840 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21841echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21842 if test "${am_cv_proto_iconv+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844else
21845
21846 cat >conftest.$ac_ext <<_ACEOF
21847/* confdefs.h. */
21848_ACEOF
21849cat confdefs.h >>conftest.$ac_ext
21850cat >>conftest.$ac_ext <<_ACEOF
21851/* end confdefs.h. */
21852
21853#include <stdlib.h>
21854#include <iconv.h>
21855extern
21856#ifdef __cplusplus
21857"C"
21858#endif
21859#if defined(__STDC__) || defined(__cplusplus)
21860size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21861#else
21862size_t iconv();
21863#endif
21864
21865int
21866main ()
21867{
21868
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext
21874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875 (eval $ac_compile) 2>conftest.er1
21876 ac_status=$?
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } &&
121ce6e5 21882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bec39cab
AC
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; } &&
21888 { ac_try='test -s conftest.$ac_objext'
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; }; then
21894 am_cv_proto_iconv_arg1=""
21895else
21896 echo "$as_me: failed program was:" >&5
21897sed 's/^/| /' conftest.$ac_ext >&5
21898
21899am_cv_proto_iconv_arg1="const"
21900fi
21901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21902 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);"
21903fi
21904
21905 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21906 echo "$as_me:$LINENO: result: ${ac_t:-
21907 }$am_cv_proto_iconv" >&5
21908echo "${ECHO_T}${ac_t:-
21909 }$am_cv_proto_iconv" >&6
21910
21911cat >>confdefs.h <<_ACEOF
21912#define ICONV_CONST $am_cv_proto_iconv_arg1
21913_ACEOF
21914
21915 fi
21916 LIBICONV=
21917 if test "$am_cv_lib_iconv" = yes; then
21918 LIBICONV="-liconv"
21919 fi
21920
21921
21922
21923 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21924 ac_config_commands="$ac_config_commands default"
21925cat >confcache <<\_ACEOF
21926# This file is a shell script that caches the results of configure
21927# tests run on this system so they can be shared between configure
21928# scripts and configure runs, see configure's option --config-cache.
21929# It is not useful on other systems. If it contains results you don't
21930# want to keep, you may remove or edit it.
21931#
21932# config.status only pays attention to the cache file if you give it
21933# the --recheck option to rerun configure.
21934#
21935# `ac_cv_env_foo' variables (set or unset) will be overridden when
21936# loading this file, other *unset* `ac_cv_foo' will be assigned the
21937# following values.
21938
21939_ACEOF
21940
21941# The following way of writing the cache mishandles newlines in values,
21942# but we know of no workaround that is simple, portable, and efficient.
21943# So, don't put newlines in cache variables' values.
21944# Ultrix sh set writes to stderr and can't be redirected directly,
21945# and sets the high bit in the cache file unless we assign to the vars.
21946{
21947 (set) 2>&1 |
21948 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21949 *ac_space=\ *)
21950 # `set' does not quote correctly, so add quotes (double-quote
21951 # substitution turns \\\\ into \\, and sed turns \\ into \).
21952 sed -n \
21953 "s/'/'\\\\''/g;
21954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21955 ;;
21956 *)
21957 # `set' quotes correctly as required by POSIX, so do not add quotes.
21958 sed -n \
21959 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21960 ;;
21961 esac;
21962} |
21963 sed '
21964 t clear
21965 : clear
21966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21967 t end
21968 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21969 : end' >>confcache
21970if diff $cache_file confcache >/dev/null 2>&1; then :; else
21971 if test -w $cache_file; then
21972 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21973 cat confcache >$cache_file
21974 else
21975 echo "not updating unwritable cache $cache_file"
21976 fi
21977fi
21978rm -f confcache
21979
21980test "x$prefix" = xNONE && prefix=$ac_default_prefix
21981# Let make expand exec_prefix.
21982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21983
21984# VPATH may cause trouble with some makes, so we remove $(srcdir),
21985# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21986# trailing colons and then remove the whole line if VPATH becomes empty
21987# (actually we leave an empty line to preserve line numbers).
21988if test "x$srcdir" = x.; then
21989 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21990s/:*\$(srcdir):*/:/;
21991s/:*\${srcdir}:*/:/;
21992s/:*@srcdir@:*/:/;
21993s/^\([^=]*=[ ]*\):*/\1/;
21994s/:*$//;
21995s/^[^=]*=[ ]*$//;
21996}'
21997fi
21998
21999DEFS=-DHAVE_CONFIG_H
22000
22001ac_libobjs=
22002ac_ltlibobjs=
22003for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22004 # 1. Remove the extension, and $U if already installed.
22005 ac_i=`echo "$ac_i" |
22006 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22007 # 2. Add them.
22008 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22009 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22010done
22011LIBOBJS=$ac_libobjs
22012
22013LTLIBOBJS=$ac_ltlibobjs
22014
22015
85981d60
AC
22016if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22017 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22018Usually this means the macro was only invoked conditionally." >&5
22019echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22020Usually this means the macro was only invoked conditionally." >&2;}
22021 { (exit 1); exit 1; }; }
22022fi
bec39cab
AC
22023
22024: ${CONFIG_STATUS=./config.status}
22025ac_clean_files_save=$ac_clean_files
22026ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22027{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22028echo "$as_me: creating $CONFIG_STATUS" >&6;}
22029cat >$CONFIG_STATUS <<_ACEOF
22030#! $SHELL
22031# Generated by $as_me.
22032# Run this file to recreate the current configuration.
22033# Compiler output produced by configure, useful for debugging
22034# configure, is in config.log if it exists.
22035
22036debug=false
22037ac_cs_recheck=false
22038ac_cs_silent=false
22039SHELL=\${CONFIG_SHELL-$SHELL}
22040_ACEOF
22041
22042cat >>$CONFIG_STATUS <<\_ACEOF
22043## --------------------- ##
22044## M4sh Initialization. ##
22045## --------------------- ##
22046
22047# Be Bourne compatible
22048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22049 emulate sh
22050 NULLCMD=:
22051 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22052 # is contrary to our usage. Disable this feature.
22053 alias -g '${1+"$@"}'='"$@"'
22054elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22055 set -o posix
22056fi
22057DUALCASE=1; export DUALCASE # for MKS sh
22058
22059# Support unset when possible.
22060if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22061 as_unset=unset
22062else
22063 as_unset=false
22064fi
22065
22066
22067# Work around bugs in pre-3.0 UWIN ksh.
22068$as_unset ENV MAIL MAILPATH
22069PS1='$ '
22070PS2='> '
22071PS4='+ '
22072
22073# NLS nuisances.
22074for as_var in \
22075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22077 LC_TELEPHONE LC_TIME
22078do
22079 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22080 eval $as_var=C; export $as_var
22081 else
22082 $as_unset $as_var
22083 fi
22084done
22085
22086# Required to use basename.
22087if expr a : '\(a\)' >/dev/null 2>&1; then
22088 as_expr=expr
22089else
22090 as_expr=false
22091fi
22092
22093if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22094 as_basename=basename
22095else
22096 as_basename=false
22097fi
22098
22099
22100# Name of the executable.
22101as_me=`$as_basename "$0" ||
22102$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22103 X"$0" : 'X\(//\)$' \| \
22104 X"$0" : 'X\(/\)$' \| \
22105 . : '\(.\)' 2>/dev/null ||
22106echo X/"$0" |
22107 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22108 /^X\/\(\/\/\)$/{ s//\1/; q; }
22109 /^X\/\(\/\).*/{ s//\1/; q; }
22110 s/.*/./; q'`
22111
22112
22113# PATH needs CR, and LINENO needs CR and PATH.
22114# Avoid depending upon Character Ranges.
22115as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22117as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22118as_cr_digits='0123456789'
22119as_cr_alnum=$as_cr_Letters$as_cr_digits
22120
22121# The user is always right.
22122if test "${PATH_SEPARATOR+set}" != set; then
22123 echo "#! /bin/sh" >conf$$.sh
22124 echo "exit 0" >>conf$$.sh
22125 chmod +x conf$$.sh
22126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22127 PATH_SEPARATOR=';'
22128 else
22129 PATH_SEPARATOR=:
22130 fi
22131 rm -f conf$$.sh
22132fi
22133
22134
22135 as_lineno_1=$LINENO
22136 as_lineno_2=$LINENO
22137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22138 test "x$as_lineno_1" != "x$as_lineno_2" &&
22139 test "x$as_lineno_3" = "x$as_lineno_2" || {
22140 # Find who we are. Look in the path if we contain no path at all
22141 # relative or not.
22142 case $0 in
22143 *[\\/]* ) as_myself=$0 ;;
22144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22145for as_dir in $PATH
22146do
22147 IFS=$as_save_IFS
22148 test -z "$as_dir" && as_dir=.
22149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22150done
22151
22152 ;;
22153 esac
22154 # We did not find ourselves, most probably we were run as `sh COMMAND'
22155 # in which case we are not to be found in the path.
22156 if test "x$as_myself" = x; then
22157 as_myself=$0
22158 fi
22159 if test ! -f "$as_myself"; then
22160 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22161echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22162 { (exit 1); exit 1; }; }
22163 fi
22164 case $CONFIG_SHELL in
22165 '')
22166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22167for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22168do
22169 IFS=$as_save_IFS
22170 test -z "$as_dir" && as_dir=.
22171 for as_base in sh bash ksh sh5; do
22172 case $as_dir in
22173 /*)
22174 if ("$as_dir/$as_base" -c '
22175 as_lineno_1=$LINENO
22176 as_lineno_2=$LINENO
22177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22178 test "x$as_lineno_1" != "x$as_lineno_2" &&
22179 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22180 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22181 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22182 CONFIG_SHELL=$as_dir/$as_base
22183 export CONFIG_SHELL
22184 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22185 fi;;
22186 esac
22187 done
22188done
22189;;
22190 esac
22191
22192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22193 # uniformly replaced by the line number. The first 'sed' inserts a
22194 # line-number line before each line; the second 'sed' does the real
22195 # work. The second script uses 'N' to pair each line-number line
22196 # with the numbered line, and appends trailing '-' during
22197 # substitution so that $LINENO is not a special case at line end.
22198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22199 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22200 sed '=' <$as_myself |
22201 sed '
22202 N
22203 s,$,-,
22204 : loop
22205 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22206 t loop
22207 s,-$,,
22208 s,^['$as_cr_digits']*\n,,
22209 ' >$as_me.lineno &&
22210 chmod +x $as_me.lineno ||
22211 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22212echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22213 { (exit 1); exit 1; }; }
22214
22215 # Don't try to exec as it changes $[0], causing all sort of problems
22216 # (the dirname of $[0] is not the place where we might find the
22217 # original and so on. Autoconf is especially sensible to this).
22218 . ./$as_me.lineno
22219 # Exit status is that of the last command.
22220 exit
22221}
22222
22223
22224case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22225 *c*,-n*) ECHO_N= ECHO_C='
22226' ECHO_T=' ' ;;
22227 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22228 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22229esac
22230
22231if expr a : '\(a\)' >/dev/null 2>&1; then
22232 as_expr=expr
22233else
22234 as_expr=false
22235fi
22236
22237rm -f conf$$ conf$$.exe conf$$.file
22238echo >conf$$.file
22239if ln -s conf$$.file conf$$ 2>/dev/null; then
22240 # We could just check for DJGPP; but this test a) works b) is more generic
22241 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22242 if test -f conf$$.exe; then
22243 # Don't use ln at all; we don't have any links
22244 as_ln_s='cp -p'
22245 else
22246 as_ln_s='ln -s'
22247 fi
22248elif ln conf$$.file conf$$ 2>/dev/null; then
22249 as_ln_s=ln
22250else
22251 as_ln_s='cp -p'
22252fi
22253rm -f conf$$ conf$$.exe conf$$.file
22254
22255if mkdir -p . 2>/dev/null; then
22256 as_mkdir_p=:
22257else
22258 test -d ./-p && rmdir ./-p
22259 as_mkdir_p=false
22260fi
22261
22262as_executable_p="test -f"
22263
22264# Sed expression to map a string onto a valid CPP name.
22265as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22266
22267# Sed expression to map a string onto a valid variable name.
22268as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22269
22270
22271# IFS
22272# We need space, tab and new line, in precisely that order.
22273as_nl='
22274'
22275IFS=" $as_nl"
22276
22277# CDPATH.
22278$as_unset CDPATH
22279
22280exec 6>&1
22281
22282# Open the log real soon, to keep \$[0] and so on meaningful, and to
22283# report actual input values of CONFIG_FILES etc. instead of their
22284# values after options handling. Logging --version etc. is OK.
22285exec 5>>config.log
22286{
22287 echo
22288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22289## Running $as_me. ##
22290_ASBOX
22291} >&5
22292cat >&5 <<_CSEOF
22293
22294This file was extended by $as_me, which was
22295generated by GNU Autoconf 2.59. Invocation command line was
22296
22297 CONFIG_FILES = $CONFIG_FILES
22298 CONFIG_HEADERS = $CONFIG_HEADERS
22299 CONFIG_LINKS = $CONFIG_LINKS
22300 CONFIG_COMMANDS = $CONFIG_COMMANDS
22301 $ $0 $@
22302
22303_CSEOF
22304echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22305echo >&5
22306_ACEOF
22307
22308# Files that config.status was made for.
22309if test -n "$ac_config_files"; then
22310 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22311fi
22312
22313if test -n "$ac_config_headers"; then
22314 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22315fi
22316
22317if test -n "$ac_config_links"; then
22318 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
234b45d4
KB
22319fi
22320
bec39cab
AC
22321if test -n "$ac_config_commands"; then
22322 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22323fi
234b45d4 22324
bec39cab 22325cat >>$CONFIG_STATUS <<\_ACEOF
234b45d4 22326
bec39cab
AC
22327ac_cs_usage="\
22328\`$as_me' instantiates files from templates according to the
22329current configuration.
234b45d4 22330
bec39cab 22331Usage: $0 [OPTIONS] [FILE]...
234b45d4 22332
bec39cab
AC
22333 -h, --help print this help, then exit
22334 -V, --version print version number, then exit
22335 -q, --quiet do not print progress messages
22336 -d, --debug don't remove temporary files
22337 --recheck update $as_me by reconfiguring in the same conditions
22338 --file=FILE[:TEMPLATE]
22339 instantiate the configuration file FILE
22340 --header=FILE[:TEMPLATE]
22341 instantiate the configuration header FILE
234b45d4 22342
bec39cab
AC
22343Configuration files:
22344$config_files
234b45d4 22345
bec39cab
AC
22346Configuration headers:
22347$config_headers
234b45d4 22348
bec39cab
AC
22349Configuration links:
22350$config_links
234b45d4 22351
bec39cab
AC
22352Configuration commands:
22353$config_commands
22354
22355Report bugs to <bug-autoconf@gnu.org>."
22356_ACEOF
22357
22358cat >>$CONFIG_STATUS <<_ACEOF
22359ac_cs_version="\\
22360config.status
22361configured by $0, generated by GNU Autoconf 2.59,
22362 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22363
22364Copyright (C) 2003 Free Software Foundation, Inc.
22365This config.status script is free software; the Free Software Foundation
22366gives unlimited permission to copy, distribute and modify it."
22367srcdir=$srcdir
22368INSTALL="$INSTALL"
22369_ACEOF
22370
22371cat >>$CONFIG_STATUS <<\_ACEOF
22372# If no file are specified by the user, then we need to provide default
22373# value. By we need to know if files were specified by the user.
22374ac_need_defaults=:
22375while test $# != 0
22376do
22377 case $1 in
22378 --*=*)
22379 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22380 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22381 ac_shift=:
c906108c 22382 ;;
bec39cab
AC
22383 -*)
22384 ac_option=$1
22385 ac_optarg=$2
22386 ac_shift=shift
c906108c 22387 ;;
bec39cab
AC
22388 *) # This is not an option, so the user has probably given explicit
22389 # arguments.
22390 ac_option=$1
22391 ac_need_defaults=false;;
22392 esac
c906108c 22393
bec39cab
AC
22394 case $ac_option in
22395 # Handling of the options.
22396_ACEOF
22397cat >>$CONFIG_STATUS <<\_ACEOF
22398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22399 ac_cs_recheck=: ;;
22400 --version | --vers* | -V )
22401 echo "$ac_cs_version"; exit 0 ;;
22402 --he | --h)
22403 # Conflict between --help and --header
22404 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22405Try \`$0 --help' for more information." >&5
22406echo "$as_me: error: ambiguous option: $1
22407Try \`$0 --help' for more information." >&2;}
22408 { (exit 1); exit 1; }; };;
22409 --help | --hel | -h )
22410 echo "$ac_cs_usage"; exit 0 ;;
22411 --debug | --d* | -d )
22412 debug=: ;;
22413 --file | --fil | --fi | --f )
22414 $ac_shift
22415 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22416 ac_need_defaults=false;;
22417 --header | --heade | --head | --hea )
22418 $ac_shift
22419 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22420 ac_need_defaults=false;;
22421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22423 ac_cs_silent=: ;;
c906108c 22424
bec39cab
AC
22425 # This is an error.
22426 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22427Try \`$0 --help' for more information." >&5
22428echo "$as_me: error: unrecognized option: $1
22429Try \`$0 --help' for more information." >&2;}
22430 { (exit 1); exit 1; }; } ;;
c906108c 22431
bec39cab 22432 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 22433
bec39cab
AC
22434 esac
22435 shift
22436done
c906108c 22437
bec39cab 22438ac_configure_extra_args=
c906108c 22439
bec39cab
AC
22440if $ac_cs_silent; then
22441 exec 6>/dev/null
22442 ac_configure_extra_args="$ac_configure_extra_args --silent"
22443fi
c906108c 22444
bec39cab
AC
22445_ACEOF
22446cat >>$CONFIG_STATUS <<_ACEOF
22447if \$ac_cs_recheck; then
22448 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22449 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22450fi
22451
22452_ACEOF
22453
22454cat >>$CONFIG_STATUS <<_ACEOF
c906108c 22455#
bec39cab 22456# INIT-COMMANDS section.
c906108c 22457#
c906108c 22458
bec39cab
AC
22459
22460gdb_host_cpu=$gdb_host_cpu
22461gdb_target_cpu=$gdb_target_cpu
22462nativefile=$nativefile
22463
22464
22465_ACEOF
22466
22467
22468
22469cat >>$CONFIG_STATUS <<\_ACEOF
22470for ac_config_target in $ac_config_targets
c906108c 22471do
bec39cab
AC
22472 case "$ac_config_target" in
22473 # Handling of arguments.
22474 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22475 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22476 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22477 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22478 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22479 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22480echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22481 { (exit 1); exit 1; }; };;
c906108c
SS
22482 esac
22483done
22484
bec39cab
AC
22485# If the user did not use the arguments to specify the items to instantiate,
22486# then the envvar interface is used. Set only those that are not.
22487# We use the long form for the default assignment because of an extremely
22488# bizarre bug on SunOS 4.1.3.
22489if $ac_need_defaults; then
22490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22492 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22493 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22494fi
22495
22496# Have a temporary directory for convenience. Make it in the build tree
22497# simply because there is no reason to put it here, and in addition,
22498# creating and moving files from /tmp can sometimes cause problems.
22499# Create a temporary directory, and hook for its removal unless debugging.
22500$debug ||
22501{
22502 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22503 trap '{ (exit 1); exit 1; }' 1 2 13 15
22504}
c906108c 22505
bec39cab 22506# Create a (secure) tmp directory for tmp files.
c906108c 22507
bec39cab
AC
22508{
22509 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22510 test -n "$tmp" && test -d "$tmp"
22511} ||
22512{
22513 tmp=./confstat$$-$RANDOM
22514 (umask 077 && mkdir $tmp)
22515} ||
22516{
22517 echo "$me: cannot create a temporary directory in ." >&2
22518 { (exit 1); exit 1; }
22519}
22520
22521_ACEOF
22522
22523cat >>$CONFIG_STATUS <<_ACEOF
22524
22525#
22526# CONFIG_FILES section.
22527#
22528
22529# No need to generate the scripts if there are no CONFIG_FILES.
22530# This happens for instance when ./config.status config.h
22531if test -n "\$CONFIG_FILES"; then
22532 # Protect against being on the right side of a sed subst in config.status.
22533 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22534 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22535s,@SHELL@,$SHELL,;t t
22536s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22537s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22538s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22539s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22540s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22541s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22542s,@exec_prefix@,$exec_prefix,;t t
22543s,@prefix@,$prefix,;t t
22544s,@program_transform_name@,$program_transform_name,;t t
22545s,@bindir@,$bindir,;t t
22546s,@sbindir@,$sbindir,;t t
22547s,@libexecdir@,$libexecdir,;t t
22548s,@datadir@,$datadir,;t t
22549s,@sysconfdir@,$sysconfdir,;t t
22550s,@sharedstatedir@,$sharedstatedir,;t t
22551s,@localstatedir@,$localstatedir,;t t
22552s,@libdir@,$libdir,;t t
22553s,@includedir@,$includedir,;t t
22554s,@oldincludedir@,$oldincludedir,;t t
22555s,@infodir@,$infodir,;t t
22556s,@mandir@,$mandir,;t t
22557s,@build_alias@,$build_alias,;t t
22558s,@host_alias@,$host_alias,;t t
22559s,@target_alias@,$target_alias,;t t
22560s,@DEFS@,$DEFS,;t t
22561s,@ECHO_C@,$ECHO_C,;t t
22562s,@ECHO_N@,$ECHO_N,;t t
22563s,@ECHO_T@,$ECHO_T,;t t
22564s,@LIBS@,$LIBS,;t t
22565s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22566s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22567s,@MAINT@,$MAINT,;t t
22568s,@CC@,$CC,;t t
22569s,@CFLAGS@,$CFLAGS,;t t
22570s,@LDFLAGS@,$LDFLAGS,;t t
22571s,@CPPFLAGS@,$CPPFLAGS,;t t
22572s,@ac_ct_CC@,$ac_ct_CC,;t t
22573s,@EXEEXT@,$EXEEXT,;t t
22574s,@OBJEXT@,$OBJEXT,;t t
22575s,@CPP@,$CPP,;t t
22576s,@EGREP@,$EGREP,;t t
22577s,@build@,$build,;t t
22578s,@build_cpu@,$build_cpu,;t t
22579s,@build_vendor@,$build_vendor,;t t
22580s,@build_os@,$build_os,;t t
22581s,@host@,$host,;t t
22582s,@host_cpu@,$host_cpu,;t t
22583s,@host_vendor@,$host_vendor,;t t
22584s,@host_os@,$host_os,;t t
22585s,@target@,$target,;t t
22586s,@target_cpu@,$target_cpu,;t t
22587s,@target_vendor@,$target_vendor,;t t
22588s,@target_os@,$target_os,;t t
c21a4eee 22589s,@SET_MAKE@,$SET_MAKE,;t t
bec39cab
AC
22590s,@RANLIB@,$RANLIB,;t t
22591s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
bec39cab
AC
22592s,@ALLOCA@,$ALLOCA,;t t
22593s,@USE_NLS@,$USE_NLS,;t t
22594s,@MSGFMT@,$MSGFMT,;t t
22595s,@GMSGFMT@,$GMSGFMT,;t t
22596s,@XGETTEXT@,$XGETTEXT,;t t
22597s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22598s,@CATALOGS@,$CATALOGS,;t t
22599s,@CATOBJEXT@,$CATOBJEXT,;t t
22600s,@DATADIRNAME@,$DATADIRNAME,;t t
22601s,@GMOFILES@,$GMOFILES,;t t
22602s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22603s,@INTLDEPS@,$INTLDEPS,;t t
22604s,@INTLLIBS@,$INTLLIBS,;t t
22605s,@INTLOBJS@,$INTLOBJS,;t t
22606s,@POFILES@,$POFILES,;t t
22607s,@POSUB@,$POSUB,;t t
22608s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22609s,@GT_NO@,$GT_NO,;t t
22610s,@GT_YES@,$GT_YES,;t t
22611s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22612s,@l@,$l,;t t
22613s,@localedir@,$localedir,;t t
22614s,@PACKAGE@,$PACKAGE,;t t
22615s,@subdirs@,$subdirs,;t t
22616s,@AWK@,$AWK,;t t
22617s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22618s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22619s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22620s,@LN_S@,$LN_S,;t t
22621s,@YACC@,$YACC,;t t
22622s,@AR@,$AR,;t t
22623s,@ac_ct_AR@,$ac_ct_AR,;t t
22624s,@DLLTOOL@,$DLLTOOL,;t t
22625s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22626s,@WINDRES@,$WINDRES,;t t
22627s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22628s,@MIG@,$MIG,;t t
22629s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22630s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22631s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22632s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22633s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22634s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22635s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22636s,@WIN32LIBS@,$WIN32LIBS,;t t
22637s,@LIBGUI@,$LIBGUI,;t t
22638s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22639s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22640s,@TCL_VERSION@,$TCL_VERSION,;t t
22641s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22642s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22643s,@TCL_CC@,$TCL_CC,;t t
22644s,@TCL_DEFS@,$TCL_DEFS,;t t
22645s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22646s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22647s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22648s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22649s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22650s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22651s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22652s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22653s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22654s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22655s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22656s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22657s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22658s,@TK_VERSION@,$TK_VERSION,;t t
22659s,@TK_DEFS@,$TK_DEFS,;t t
22660s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22661s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22662s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22663s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22664s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22665s,@TCLHDIR@,$TCLHDIR,;t t
22666s,@TKHDIR@,$TKHDIR,;t t
22667s,@ITCLHDIR@,$ITCLHDIR,;t t
22668s,@ITKHDIR@,$ITKHDIR,;t t
22669s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22670s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22671s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22672s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22673s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22674s,@ITK_VERSION@,$ITK_VERSION,;t t
22675s,@ITK_DEFS@,$ITK_DEFS,;t t
22676s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22677s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22678s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22679s,@X_CFLAGS@,$X_CFLAGS,;t t
22680s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22681s,@X_LIBS@,$X_LIBS,;t t
22682s,@TCL_DEPS@,$TCL_DEPS,;t t
22683s,@TK_DEPS@,$TK_DEPS,;t t
22684s,@ITCLLIB@,$ITCLLIB,;t t
22685s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22686s,@ITKLIB@,$ITKLIB,;t t
22687s,@ITK_DEPS@,$ITK_DEPS,;t t
22688s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22689s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22690s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22691s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22692s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22693s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22694s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22695s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22696s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22697s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22698s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22699s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22700s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22701s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22702s,@target_subdir@,$target_subdir,;t t
22703s,@frags@,$frags,;t t
22704s,@xm_h@,$xm_h,;t t
22705s,@tm_h@,$tm_h,;t t
22706s,@nm_h@,$nm_h,;t t
22707s,@LIBICONV@,$LIBICONV,;t t
22708s,@LIBOBJS@,$LIBOBJS,;t t
22709s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 22710/@host_makefile_frag@/r $host_makefile_frag
bec39cab 22711s,@host_makefile_frag@,,;t t
c906108c 22712/@target_makefile_frag@/r $target_makefile_frag
bec39cab 22713s,@target_makefile_frag@,,;t t
c906108c 22714CEOF
bec39cab
AC
22715
22716_ACEOF
22717
22718 cat >>$CONFIG_STATUS <<\_ACEOF
22719 # Split the substitutions into bite-sized pieces for seds with
22720 # small command number limits, like on Digital OSF/1 and HP-UX.
22721 ac_max_sed_lines=48
22722 ac_sed_frag=1 # Number of current file.
22723 ac_beg=1 # First line for current file.
22724 ac_end=$ac_max_sed_lines # Line after last line for current file.
22725 ac_more_lines=:
22726 ac_sed_cmds=
22727 while $ac_more_lines; do
22728 if test $ac_beg -gt 1; then
22729 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22730 else
22731 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22732 fi
22733 if test ! -s $tmp/subs.frag; then
22734 ac_more_lines=false
c906108c 22735 else
bec39cab
AC
22736 # The purpose of the label and of the branching condition is to
22737 # speed up the sed processing (if there are no `@' at all, there
22738 # is no need to browse any of the substitutions).
22739 # These are the two extra sed commands mentioned above.
22740 (echo ':t
22741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22742 if test -z "$ac_sed_cmds"; then
22743 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22744 else
22745 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22746 fi
22747 ac_sed_frag=`expr $ac_sed_frag + 1`
22748 ac_beg=$ac_end
22749 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 22750 fi
bec39cab
AC
22751 done
22752 if test -z "$ac_sed_cmds"; then
22753 ac_sed_cmds=cat
c906108c 22754 fi
bec39cab 22755fi # test -n "$CONFIG_FILES"
c906108c 22756
bec39cab
AC
22757_ACEOF
22758cat >>$CONFIG_STATUS <<\_ACEOF
22759for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 22760 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22761 case $ac_file in
22762 - | *:- | *:-:* ) # input from stdin
22763 cat >$tmp/stdin
22764 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22765 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22766 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22767 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22768 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22769 esac
22770
bec39cab
AC
22771 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22772 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22773$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22774 X"$ac_file" : 'X\(//\)[^/]' \| \
22775 X"$ac_file" : 'X\(//\)$' \| \
22776 X"$ac_file" : 'X\(/\)' \| \
22777 . : '\(.\)' 2>/dev/null ||
22778echo X"$ac_file" |
22779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22781 /^X\(\/\/\)$/{ s//\1/; q; }
22782 /^X\(\/\).*/{ s//\1/; q; }
22783 s/.*/./; q'`
22784 { if $as_mkdir_p; then
22785 mkdir -p "$ac_dir"
c906108c 22786 else
bec39cab
AC
22787 as_dir="$ac_dir"
22788 as_dirs=
22789 while test ! -d "$as_dir"; do
22790 as_dirs="$as_dir $as_dirs"
22791 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22792$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22793 X"$as_dir" : 'X\(//\)[^/]' \| \
22794 X"$as_dir" : 'X\(//\)$' \| \
22795 X"$as_dir" : 'X\(/\)' \| \
22796 . : '\(.\)' 2>/dev/null ||
22797echo X"$as_dir" |
22798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22800 /^X\(\/\/\)$/{ s//\1/; q; }
22801 /^X\(\/\).*/{ s//\1/; q; }
22802 s/.*/./; q'`
22803 done
22804 test ! -n "$as_dirs" || mkdir $as_dirs
22805 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22806echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22807 { (exit 1); exit 1; }; }; }
c906108c 22808
bec39cab
AC
22809 ac_builddir=.
22810
22811if test "$ac_dir" != .; then
22812 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22813 # A "../" for each directory in $ac_dir_suffix.
22814 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22815else
22816 ac_dir_suffix= ac_top_builddir=
22817fi
22818
22819case $srcdir in
22820 .) # No --srcdir option. We are building in place.
22821 ac_srcdir=.
22822 if test -z "$ac_top_builddir"; then
22823 ac_top_srcdir=.
22824 else
22825 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22826 fi ;;
22827 [\\/]* | ?:[\\/]* ) # Absolute path.
22828 ac_srcdir=$srcdir$ac_dir_suffix;
22829 ac_top_srcdir=$srcdir ;;
c906108c 22830 *) # Relative path.
bec39cab
AC
22831 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22832 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22833esac
22834
22835# Do not use `cd foo && pwd` to compute absolute paths, because
22836# the directories may not exist.
22837case `pwd` in
22838.) ac_abs_builddir="$ac_dir";;
22839*)
22840 case "$ac_dir" in
22841 .) ac_abs_builddir=`pwd`;;
22842 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22843 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22844 esac;;
22845esac
22846case $ac_abs_builddir in
22847.) ac_abs_top_builddir=${ac_top_builddir}.;;
22848*)
22849 case ${ac_top_builddir}. in
22850 .) ac_abs_top_builddir=$ac_abs_builddir;;
22851 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22852 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22853 esac;;
22854esac
22855case $ac_abs_builddir in
22856.) ac_abs_srcdir=$ac_srcdir;;
22857*)
22858 case $ac_srcdir in
22859 .) ac_abs_srcdir=$ac_abs_builddir;;
22860 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22861 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22862 esac;;
22863esac
22864case $ac_abs_builddir in
22865.) ac_abs_top_srcdir=$ac_top_srcdir;;
22866*)
22867 case $ac_top_srcdir in
22868 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22869 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22870 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22871 esac;;
22872esac
c906108c 22873
c906108c 22874
bec39cab
AC
22875 case $INSTALL in
22876 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22877 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
22878 esac
22879
bec39cab
AC
22880 # Let's still pretend it is `configure' which instantiates (i.e., don't
22881 # use $as_me), people would be surprised to read:
22882 # /* config.h. Generated by config.status. */
22883 if test x"$ac_file" = x-; then
22884 configure_input=
22885 else
22886 configure_input="$ac_file. "
22887 fi
22888 configure_input=$configure_input"Generated from `echo $ac_file_in |
22889 sed 's,.*/,,'` by configure."
22890
22891 # First look for the input files in the build tree, otherwise in the
22892 # src tree.
22893 ac_file_inputs=`IFS=:
22894 for f in $ac_file_in; do
22895 case $f in
22896 -) echo $tmp/stdin ;;
22897 [\\/$]*)
22898 # Absolute (can't be DOS-style, as IFS=:)
22899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22900echo "$as_me: error: cannot find input file: $f" >&2;}
22901 { (exit 1); exit 1; }; }
22902 echo "$f";;
22903 *) # Relative
22904 if test -f "$f"; then
22905 # Build tree
22906 echo "$f"
22907 elif test -f "$srcdir/$f"; then
22908 # Source tree
22909 echo "$srcdir/$f"
22910 else
22911 # /dev/null tree
22912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22913echo "$as_me: error: cannot find input file: $f" >&2;}
22914 { (exit 1); exit 1; }; }
22915 fi;;
22916 esac
22917 done` || { (exit 1); exit 1; }
121ce6e5
DJ
22918
22919 if test x"$ac_file" != x-; then
22920 { echo "$as_me:$LINENO: creating $ac_file" >&5
22921echo "$as_me: creating $ac_file" >&6;}
22922 rm -f "$ac_file"
22923 fi
bec39cab
AC
22924_ACEOF
22925cat >>$CONFIG_STATUS <<_ACEOF
22926 sed "$ac_vpsub
22927$extrasub
22928_ACEOF
22929cat >>$CONFIG_STATUS <<\_ACEOF
22930:t
22931/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22932s,@configure_input@,$configure_input,;t t
22933s,@srcdir@,$ac_srcdir,;t t
22934s,@abs_srcdir@,$ac_abs_srcdir,;t t
22935s,@top_srcdir@,$ac_top_srcdir,;t t
22936s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22937s,@builddir@,$ac_builddir,;t t
22938s,@abs_builddir@,$ac_abs_builddir,;t t
22939s,@top_builddir@,$ac_top_builddir,;t t
22940s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22941s,@INSTALL@,$ac_INSTALL,;t t
22942" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22943 rm -f $tmp/stdin
22944 if test x"$ac_file" != x-; then
22945 mv $tmp/out $ac_file
22946 else
22947 cat $tmp/out
22948 rm -f $tmp/out
22949 fi
22950
22951done
22952_ACEOF
22953cat >>$CONFIG_STATUS <<\_ACEOF
22954
22955#
22956# CONFIG_HEADER section.
22957#
c906108c
SS
22958
22959# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22960# NAME is the cpp macro being defined and VALUE is the value it is being given.
22961#
22962# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
22963ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22964ac_dB='[ ].*$,\1#\2'
22965ac_dC=' '
22966ac_dD=',;t'
22967# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22968ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22969ac_uB='$,\1#\2define\3'
c906108c 22970ac_uC=' '
bec39cab
AC
22971ac_uD=',;t'
22972
22973for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 22974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
22975 case $ac_file in
22976 - | *:- | *:-:* ) # input from stdin
22977 cat >$tmp/stdin
22978 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22980 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22981 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22982 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
22983 esac
22984
bec39cab
AC
22985 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22986echo "$as_me: creating $ac_file" >&6;}
22987
22988 # First look for the input files in the build tree, otherwise in the
22989 # src tree.
22990 ac_file_inputs=`IFS=:
22991 for f in $ac_file_in; do
22992 case $f in
22993 -) echo $tmp/stdin ;;
22994 [\\/$]*)
22995 # Absolute (can't be DOS-style, as IFS=:)
22996 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22997echo "$as_me: error: cannot find input file: $f" >&2;}
22998 { (exit 1); exit 1; }; }
22999 # Do quote $f, to prevent DOS paths from being IFS'd.
23000 echo "$f";;
23001 *) # Relative
23002 if test -f "$f"; then
23003 # Build tree
23004 echo "$f"
23005 elif test -f "$srcdir/$f"; then
23006 # Source tree
23007 echo "$srcdir/$f"
23008 else
23009 # /dev/null tree
23010 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23011echo "$as_me: error: cannot find input file: $f" >&2;}
23012 { (exit 1); exit 1; }; }
23013 fi;;
23014 esac
23015 done` || { (exit 1); exit 1; }
23016 # Remove the trailing spaces.
23017 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23018
23019_ACEOF
23020
23021# Transform confdefs.h into two sed scripts, `conftest.defines' and
23022# `conftest.undefs', that substitutes the proper values into
23023# config.h.in to produce config.h. The first handles `#define'
23024# templates, and the second `#undef' templates.
23025# And first: Protect against being on the right side of a sed subst in
23026# config.status. Protect against being in an unquoted here document
23027# in config.status.
23028rm -f conftest.defines conftest.undefs
23029# Using a here document instead of a string reduces the quoting nightmare.
23030# Putting comments in sed scripts is not portable.
23031#
23032# `end' is used to avoid that the second main sed command (meant for
23033# 0-ary CPP macros) applies to n-ary macro definitions.
23034# See the Autoconf documentation for `clear'.
23035cat >confdef2sed.sed <<\_ACEOF
23036s/[\\&,]/\\&/g
23037s,[\\$`],\\&,g
23038t clear
23039: clear
23040s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23041t end
23042s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23043: end
23044_ACEOF
23045# If some macros were called several times there might be several times
23046# the same #defines, which is useless. Nevertheless, we may not want to
23047# sort them, since we want the *last* AC-DEFINE to be honored.
23048uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23049sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23050rm -f confdef2sed.sed
c906108c
SS
23051
23052# This sed command replaces #undef with comments. This is necessary, for
23053# example, in the case of _POSIX_SOURCE, which is predefined and required
23054# on some systems where configure will not decide to define it.
bec39cab
AC
23055cat >>conftest.undefs <<\_ACEOF
23056s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23057_ACEOF
23058
23059# Break up conftest.defines because some shells have a limit on the size
23060# of here documents, and old seds have small limits too (100 cmds).
23061echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23062echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23063echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23064echo ' :' >>$CONFIG_STATUS
23065rm -f conftest.tail
23066while grep . conftest.defines >/dev/null
23067do
23068 # Write a limited-size here document to $tmp/defines.sed.
23069 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23070 # Speed up: don't consider the non `#define' lines.
23071 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23072 # Work around the forget-to-reset-the-flag bug.
23073 echo 't clr' >>$CONFIG_STATUS
23074 echo ': clr' >>$CONFIG_STATUS
23075 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23076 echo 'CEOF
23077 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23078 rm -f $tmp/in
23079 mv $tmp/out $tmp/in
23080' >>$CONFIG_STATUS
23081 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23082 rm -f conftest.defines
23083 mv conftest.tail conftest.defines
23084done
23085rm -f conftest.defines
23086echo ' fi # grep' >>$CONFIG_STATUS
23087echo >>$CONFIG_STATUS
c906108c 23088
bec39cab
AC
23089# Break up conftest.undefs because some shells have a limit on the size
23090# of here documents, and old seds have small limits too (100 cmds).
23091echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 23092rm -f conftest.tail
bec39cab 23093while grep . conftest.undefs >/dev/null
c906108c 23094do
bec39cab
AC
23095 # Write a limited-size here document to $tmp/undefs.sed.
23096 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23097 # Speed up: don't consider the non `#undef'
23098 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23099 # Work around the forget-to-reset-the-flag bug.
23100 echo 't clr' >>$CONFIG_STATUS
23101 echo ': clr' >>$CONFIG_STATUS
23102 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 23103 echo 'CEOF
bec39cab
AC
23104 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23105 rm -f $tmp/in
23106 mv $tmp/out $tmp/in
23107' >>$CONFIG_STATUS
23108 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23109 rm -f conftest.undefs
23110 mv conftest.tail conftest.undefs
23111done
23112rm -f conftest.undefs
23113
23114cat >>$CONFIG_STATUS <<\_ACEOF
23115 # Let's still pretend it is `configure' which instantiates (i.e., don't
23116 # use $as_me), people would be surprised to read:
23117 # /* config.h. Generated by config.status. */
23118 if test x"$ac_file" = x-; then
23119 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 23120 else
bec39cab 23121 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 23122 fi
bec39cab
AC
23123 cat $tmp/in >>$tmp/config.h
23124 rm -f $tmp/in
23125 if test x"$ac_file" != x-; then
23126 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23127 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23128echo "$as_me: $ac_file is unchanged" >&6;}
23129 else
23130 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23131$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23132 X"$ac_file" : 'X\(//\)[^/]' \| \
23133 X"$ac_file" : 'X\(//\)$' \| \
23134 X"$ac_file" : 'X\(/\)' \| \
23135 . : '\(.\)' 2>/dev/null ||
23136echo X"$ac_file" |
23137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23139 /^X\(\/\/\)$/{ s//\1/; q; }
23140 /^X\(\/\).*/{ s//\1/; q; }
23141 s/.*/./; q'`
23142 { if $as_mkdir_p; then
23143 mkdir -p "$ac_dir"
23144 else
23145 as_dir="$ac_dir"
23146 as_dirs=
23147 while test ! -d "$as_dir"; do
23148 as_dirs="$as_dir $as_dirs"
23149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23150$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23151 X"$as_dir" : 'X\(//\)[^/]' \| \
23152 X"$as_dir" : 'X\(//\)$' \| \
23153 X"$as_dir" : 'X\(/\)' \| \
23154 . : '\(.\)' 2>/dev/null ||
23155echo X"$as_dir" |
23156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23158 /^X\(\/\/\)$/{ s//\1/; q; }
23159 /^X\(\/\).*/{ s//\1/; q; }
23160 s/.*/./; q'`
23161 done
23162 test ! -n "$as_dirs" || mkdir $as_dirs
23163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23164echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23165 { (exit 1); exit 1; }; }; }
c906108c 23166
bec39cab
AC
23167 rm -f $ac_file
23168 mv $tmp/config.h $ac_file
23169 fi
23170 else
23171 cat $tmp/config.h
23172 rm -f $tmp/config.h
23173 fi
23174done
23175_ACEOF
23176cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23177
bec39cab
AC
23178#
23179# CONFIG_LINKS section.
23180#
c906108c 23181
bec39cab
AC
23182for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23183 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23184 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 23185
bec39cab
AC
23186 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23187echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
23188
23189 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
23190 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23191echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23192 { (exit 1); exit 1; }; }
c906108c
SS
23193 fi
23194 rm -f $ac_dest
23195
23196 # Make relative symlinks.
bec39cab
AC
23197 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23198$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23199 X"$ac_dest" : 'X\(//\)[^/]' \| \
23200 X"$ac_dest" : 'X\(//\)$' \| \
23201 X"$ac_dest" : 'X\(/\)' \| \
23202 . : '\(.\)' 2>/dev/null ||
23203echo X"$ac_dest" |
23204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23206 /^X\(\/\/\)$/{ s//\1/; q; }
23207 /^X\(\/\).*/{ s//\1/; q; }
23208 s/.*/./; q'`
23209 { if $as_mkdir_p; then
23210 mkdir -p "$ac_dest_dir"
c906108c 23211 else
bec39cab
AC
23212 as_dir="$ac_dest_dir"
23213 as_dirs=
23214 while test ! -d "$as_dir"; do
23215 as_dirs="$as_dir $as_dirs"
23216 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23218 X"$as_dir" : 'X\(//\)[^/]' \| \
23219 X"$as_dir" : 'X\(//\)$' \| \
23220 X"$as_dir" : 'X\(/\)' \| \
23221 . : '\(.\)' 2>/dev/null ||
23222echo X"$as_dir" |
23223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23225 /^X\(\/\/\)$/{ s//\1/; q; }
23226 /^X\(\/\).*/{ s//\1/; q; }
23227 s/.*/./; q'`
23228 done
23229 test ! -n "$as_dirs" || mkdir $as_dirs
23230 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23231echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23232 { (exit 1); exit 1; }; }; }
23233
23234 ac_builddir=.
23235
23236if test "$ac_dest_dir" != .; then
23237 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23238 # A "../" for each directory in $ac_dir_suffix.
23239 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23240else
23241 ac_dir_suffix= ac_top_builddir=
23242fi
23243
23244case $srcdir in
23245 .) # No --srcdir option. We are building in place.
23246 ac_srcdir=.
23247 if test -z "$ac_top_builddir"; then
23248 ac_top_srcdir=.
23249 else
23250 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23251 fi ;;
23252 [\\/]* | ?:[\\/]* ) # Absolute path.
23253 ac_srcdir=$srcdir$ac_dir_suffix;
23254 ac_top_srcdir=$srcdir ;;
23255 *) # Relative path.
23256 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23257 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23258esac
23259
23260# Do not use `cd foo && pwd` to compute absolute paths, because
23261# the directories may not exist.
23262case `pwd` in
23263.) ac_abs_builddir="$ac_dest_dir";;
23264*)
23265 case "$ac_dest_dir" in
23266 .) ac_abs_builddir=`pwd`;;
23267 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23268 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23269 esac;;
23270esac
23271case $ac_abs_builddir in
23272.) ac_abs_top_builddir=${ac_top_builddir}.;;
23273*)
23274 case ${ac_top_builddir}. in
23275 .) ac_abs_top_builddir=$ac_abs_builddir;;
23276 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23277 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23278 esac;;
23279esac
23280case $ac_abs_builddir in
23281.) ac_abs_srcdir=$ac_srcdir;;
23282*)
23283 case $ac_srcdir in
23284 .) ac_abs_srcdir=$ac_abs_builddir;;
23285 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23286 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23287 esac;;
23288esac
23289case $ac_abs_builddir in
23290.) ac_abs_top_srcdir=$ac_top_srcdir;;
23291*)
23292 case $ac_top_srcdir in
23293 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23294 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23295 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23296 esac;;
23297esac
c906108c 23298
bec39cab
AC
23299
23300 case $srcdir in
23301 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23302 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
23303 esac
23304
bec39cab
AC
23305 # Try a symlink, then a hard link, then a copy.
23306 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23307 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23308 cp -p $srcdir/$ac_source $ac_dest ||
23309 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23310echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23311 { (exit 1); exit 1; }; }
c906108c 23312done
bec39cab
AC
23313_ACEOF
23314cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 23315
bec39cab
AC
23316#
23317# CONFIG_COMMANDS section.
23318#
23319for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23320 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23321 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23322 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23323$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23324 X"$ac_dest" : 'X\(//\)[^/]' \| \
23325 X"$ac_dest" : 'X\(//\)$' \| \
23326 X"$ac_dest" : 'X\(/\)' \| \
23327 . : '\(.\)' 2>/dev/null ||
23328echo X"$ac_dest" |
23329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23331 /^X\(\/\/\)$/{ s//\1/; q; }
23332 /^X\(\/\).*/{ s//\1/; q; }
23333 s/.*/./; q'`
23334 { if $as_mkdir_p; then
23335 mkdir -p "$ac_dir"
23336 else
23337 as_dir="$ac_dir"
23338 as_dirs=
23339 while test ! -d "$as_dir"; do
23340 as_dirs="$as_dir $as_dirs"
23341 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23343 X"$as_dir" : 'X\(//\)[^/]' \| \
23344 X"$as_dir" : 'X\(//\)$' \| \
23345 X"$as_dir" : 'X\(/\)' \| \
23346 . : '\(.\)' 2>/dev/null ||
23347echo X"$as_dir" |
23348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23350 /^X\(\/\/\)$/{ s//\1/; q; }
23351 /^X\(\/\).*/{ s//\1/; q; }
23352 s/.*/./; q'`
23353 done
23354 test ! -n "$as_dirs" || mkdir $as_dirs
23355 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23356echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23357 { (exit 1); exit 1; }; }; }
23358
23359 ac_builddir=.
23360
23361if test "$ac_dir" != .; then
23362 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23363 # A "../" for each directory in $ac_dir_suffix.
23364 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23365else
23366 ac_dir_suffix= ac_top_builddir=
23367fi
23368
23369case $srcdir in
23370 .) # No --srcdir option. We are building in place.
23371 ac_srcdir=.
23372 if test -z "$ac_top_builddir"; then
23373 ac_top_srcdir=.
23374 else
23375 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23376 fi ;;
23377 [\\/]* | ?:[\\/]* ) # Absolute path.
23378 ac_srcdir=$srcdir$ac_dir_suffix;
23379 ac_top_srcdir=$srcdir ;;
23380 *) # Relative path.
23381 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23382 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23383esac
23384
23385# Do not use `cd foo && pwd` to compute absolute paths, because
23386# the directories may not exist.
23387case `pwd` in
23388.) ac_abs_builddir="$ac_dir";;
23389*)
23390 case "$ac_dir" in
23391 .) ac_abs_builddir=`pwd`;;
23392 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23393 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23394 esac;;
23395esac
23396case $ac_abs_builddir in
23397.) ac_abs_top_builddir=${ac_top_builddir}.;;
23398*)
23399 case ${ac_top_builddir}. in
23400 .) ac_abs_top_builddir=$ac_abs_builddir;;
23401 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23402 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23403 esac;;
23404esac
23405case $ac_abs_builddir in
23406.) ac_abs_srcdir=$ac_srcdir;;
23407*)
23408 case $ac_srcdir in
23409 .) ac_abs_srcdir=$ac_abs_builddir;;
23410 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23411 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23412 esac;;
23413esac
23414case $ac_abs_builddir in
23415.) ac_abs_top_srcdir=$ac_top_srcdir;;
23416*)
23417 case $ac_top_srcdir in
23418 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23419 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23420 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23421 esac;;
23422esac
c906108c 23423
c906108c 23424
bec39cab
AC
23425 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23426echo "$as_me: executing $ac_dest commands" >&6;}
23427 case $ac_dest in
23428 default )
c906108c 23429
2c0fc042 23430sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
23431/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23432/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23433mv -f Makefile.tmp Makefile
23434
2acceee2 23435
c906108c
SS
23436case x$CONFIG_HEADERS in
23437xconfig.h:config.in)
23438echo > stamp-h ;;
23439esac
bec39cab
AC
23440 ;;
23441 esac
23442done
23443_ACEOF
c906108c 23444
bec39cab
AC
23445cat >>$CONFIG_STATUS <<\_ACEOF
23446
23447{ (exit 0); exit 0; }
23448_ACEOF
c906108c 23449chmod +x $CONFIG_STATUS
bec39cab
AC
23450ac_clean_files=$ac_clean_files_save
23451
23452
23453# configure is writing to config.log, and then calls config.status.
23454# config.status does its own redirection, appending to config.log.
23455# Unfortunately, on DOS this fails, as config.log is still kept open
23456# by configure, so config.status won't be able to write to it; its
23457# output is simply discarded. So we exec the FD to /dev/null,
23458# effectively closing config.log, so it can be properly (re)opened and
23459# appended to by config.status. When coming back to configure, we
23460# need to make the FD available again.
23461if test "$no_create" != yes; then
23462 ac_cs_success=:
23463 ac_config_status_args=
23464 test "$silent" = yes &&
23465 ac_config_status_args="$ac_config_status_args --quiet"
23466 exec 5>/dev/null
23467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23468 exec 5>>config.log
23469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23470 # would make configure fail if this is the last instruction.
23471 $ac_cs_success || { (exit 1); exit 1; }
23472fi
c906108c 23473
bec39cab
AC
23474#
23475# CONFIG_SUBDIRS section.
23476#
c906108c
SS
23477if test "$no_recursion" != yes; then
23478
23479 # Remove --cache-file and --srcdir arguments so they do not pile up.
23480 ac_sub_configure_args=
23481 ac_prev=
23482 for ac_arg in $ac_configure_args; do
23483 if test -n "$ac_prev"; then
23484 ac_prev=
23485 continue
23486 fi
bec39cab 23487 case $ac_arg in
c906108c
SS
23488 -cache-file | --cache-file | --cache-fil | --cache-fi \
23489 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23490 ac_prev=cache_file ;;
23491 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
23492 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23493 | --c=*)
23494 ;;
23495 --config-cache | -C)
c906108c
SS
23496 ;;
23497 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23498 ac_prev=srcdir ;;
23499 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23500 ;;
bec39cab
AC
23501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23502 ac_prev=prefix ;;
23503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23504 ;;
c906108c
SS
23505 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23506 esac
23507 done
23508
bec39cab
AC
23509 # Always prepend --prefix to ensure using the same prefix
23510 # in subdir configurations.
23511 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23512
23513 ac_popdir=`pwd`
23514 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
23515
23516 # Do not complain, so a configure script can configure whichever
23517 # parts of a large source tree are present.
bec39cab 23518 test -d $srcdir/$ac_dir || continue
c906108c 23519
bec39cab
AC
23520 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23521echo "$as_me: configuring in $ac_dir" >&6;}
23522 { if $as_mkdir_p; then
23523 mkdir -p "$ac_dir"
23524 else
23525 as_dir="$ac_dir"
23526 as_dirs=
23527 while test ! -d "$as_dir"; do
23528 as_dirs="$as_dir $as_dirs"
23529 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23530$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23531 X"$as_dir" : 'X\(//\)[^/]' \| \
23532 X"$as_dir" : 'X\(//\)$' \| \
23533 X"$as_dir" : 'X\(/\)' \| \
23534 . : '\(.\)' 2>/dev/null ||
23535echo X"$as_dir" |
23536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23538 /^X\(\/\/\)$/{ s//\1/; q; }
23539 /^X\(\/\).*/{ s//\1/; q; }
23540 s/.*/./; q'`
23541 done
23542 test ! -n "$as_dirs" || mkdir $as_dirs
23543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23544echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23545 { (exit 1); exit 1; }; }; }
c906108c 23546
bec39cab
AC
23547 ac_builddir=.
23548
23549if test "$ac_dir" != .; then
23550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23551 # A "../" for each directory in $ac_dir_suffix.
23552 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23553else
23554 ac_dir_suffix= ac_top_builddir=
23555fi
23556
23557case $srcdir in
23558 .) # No --srcdir option. We are building in place.
23559 ac_srcdir=.
23560 if test -z "$ac_top_builddir"; then
23561 ac_top_srcdir=.
23562 else
23563 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23564 fi ;;
23565 [\\/]* | ?:[\\/]* ) # Absolute path.
23566 ac_srcdir=$srcdir$ac_dir_suffix;
23567 ac_top_srcdir=$srcdir ;;
23568 *) # Relative path.
23569 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23570 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23571esac
c906108c 23572
bec39cab
AC
23573# Do not use `cd foo && pwd` to compute absolute paths, because
23574# the directories may not exist.
23575case `pwd` in
23576.) ac_abs_builddir="$ac_dir";;
23577*)
23578 case "$ac_dir" in
23579 .) ac_abs_builddir=`pwd`;;
23580 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23581 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23582 esac;;
23583esac
23584case $ac_abs_builddir in
23585.) ac_abs_top_builddir=${ac_top_builddir}.;;
23586*)
23587 case ${ac_top_builddir}. in
23588 .) ac_abs_top_builddir=$ac_abs_builddir;;
23589 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23590 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23591 esac;;
23592esac
23593case $ac_abs_builddir in
23594.) ac_abs_srcdir=$ac_srcdir;;
23595*)
23596 case $ac_srcdir in
23597 .) ac_abs_srcdir=$ac_abs_builddir;;
23598 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23599 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23600 esac;;
23601esac
23602case $ac_abs_builddir in
23603.) ac_abs_top_srcdir=$ac_top_srcdir;;
23604*)
23605 case $ac_top_srcdir in
23606 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23607 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23608 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23609 esac;;
23610esac
c906108c 23611
c906108c 23612
bec39cab 23613 cd $ac_dir
c906108c
SS
23614
23615 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
23616 if test -f $ac_srcdir/configure.gnu; then
23617 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23618 elif test -f $ac_srcdir/configure; then
23619 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23620 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
23621 ac_sub_configure=$ac_configure
23622 else
bec39cab
AC
23623 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23624echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
23625 ac_sub_configure=
23626 fi
23627
23628 # The recursion is here.
23629 if test -n "$ac_sub_configure"; then
c906108c 23630 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
23631 case $cache_file in
23632 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 23633 *) # Relative path.
bec39cab 23634 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 23635 esac
c906108c 23636
bec39cab
AC
23637 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23638echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 23639 # The eval makes quoting arguments work.
bec39cab
AC
23640 eval $ac_sub_configure $ac_sub_configure_args \
23641 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23642 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23643echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23644 { (exit 1); exit 1; }; }
c906108c
SS
23645 fi
23646
121ce6e5 23647 cd "$ac_popdir"
c906108c
SS
23648 done
23649fi
23650
23651
23652exit 0
This page took 1.79305 seconds and 4 git commands to generate.