* elflink.c (set_symbol_value): Add isymbuf and locsymcount
[deliverable/binutils-gdb.git] / gdb / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
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
243
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#
254ac_default_prefix=/usr/local
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"
275ac_subdirs_all="$ac_subdirs_all doc testsuite"
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
316ac_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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA 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'
317ac_subst_files='host_makefile_frag target_makefile_frag'
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
805_ACEOF
806
807 cat <<_ACEOF
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --disable-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
868 --disable-rpath do not hardcode runtime library paths
869 --enable-werror treat compile warnings as errors
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-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
880 --with-system-readline use installed readline library
881 --with-expat include expat support (auto/yes/no)
882 --with-gnu-ld assume the C compiler uses GNU ld default=no
883 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
884 --without-libexpat-prefix don't search for libexpat in includedir and libdir
885 --without-included-regex don't use included regex; this is the default
886 on systems with version 2 of the GNU C library
887 (use with caution on other system)
888 --with-sysroot=DIR Search for usr/lib et al within DIR.
889 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
890 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
891 --with-tclinclude=DIR Directory where tcl private headers are
892 --with-tkinclude=DIR Directory where tk private headers are
893 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
894 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
895 --with-x use the X Window System
896 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
897
898Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
905 CPP C preprocessor
906
907Use these variables to override the choices made by `configure' or to help
908it to find libraries and programs with nonstandard names/locations.
909
910_ACEOF
911fi
912
913if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
915 ac_popdir=`pwd`
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
918 ac_builddir=.
919
920if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924else
925 ac_dir_suffix= ac_top_builddir=
926fi
927
928case $srcdir in
929 .) # No --srcdir option. We are building in place.
930 ac_srcdir=.
931 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=.
933 else
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 fi ;;
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
939 *) # Relative path.
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942esac
943
944# Do not use `cd foo && pwd` to compute absolute paths, because
945# the directories may not exist.
946case `pwd` in
947.) ac_abs_builddir="$ac_dir";;
948*)
949 case "$ac_dir" in
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_builddir=${ac_top_builddir}.;;
957*)
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 esac;;
963esac
964case $ac_abs_builddir in
965.) ac_abs_srcdir=$ac_srcdir;;
966*)
967 case $ac_srcdir in
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 esac;;
972esac
973case $ac_abs_builddir in
974.) ac_abs_top_srcdir=$ac_top_srcdir;;
975*)
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 esac;;
981esac
982
983 cd $ac_dir
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
986 echo
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
989 echo
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
993 echo
994 $ac_configure --help
995 else
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997 fi
998 cd $ac_popdir
999 done
1000fi
1001
1002test -n "$ac_init_help" && exit 0
1003if $ac_init_version; then
1004 cat <<\_ACEOF
1005
1006Copyright (C) 2003 Free Software Foundation, Inc.
1007This configure script is free software; the Free Software Foundation
1008gives unlimited permission to copy, distribute and modify it.
1009_ACEOF
1010 exit 0
1011fi
1012exec 5>config.log
1013cat >&5 <<_ACEOF
1014This file contains any messages produced by compilers while
1015running configure, to aid debugging if configure makes a mistake.
1016
1017It was created by $as_me, which was
1018generated by GNU Autoconf 2.59. Invocation command line was
1019
1020 $ $0 $@
1021
1022_ACEOF
1023{
1024cat <<_ASUNAME
1025## --------- ##
1026## Platform. ##
1027## --------- ##
1028
1029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034
1035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037
1038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045
1046_ASUNAME
1047
1048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049for as_dir in $PATH
1050do
1051 IFS=$as_save_IFS
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1054done
1055
1056} >&5
1057
1058cat >&5 <<_ACEOF
1059
1060
1061## ----------- ##
1062## Core tests. ##
1063## ----------- ##
1064
1065_ACEOF
1066
1067
1068# Keep a trace of the command line.
1069# Strip out --no-create and --no-recursion so they do not pile up.
1070# Strip out --silent because we don't want to record it for future runs.
1071# Also quote any args containing shell meta-characters.
1072# Make two passes to allow for proper duplicate-argument suppression.
1073ac_configure_args=
1074ac_configure_args0=
1075ac_configure_args1=
1076ac_sep=
1077ac_must_keep_next=false
1078for ac_pass in 1 2
1079do
1080 for ac_arg
1081 do
1082 case $ac_arg in
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 continue ;;
1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 esac
1090 case $ac_pass in
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 2)
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1096 else
1097 case $ac_arg in
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 esac
1105 ;;
1106 -* ) ac_must_keep_next=true ;;
1107 esac
1108 fi
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1111 ac_sep=" "
1112 ;;
1113 esac
1114 done
1115done
1116$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118
1119# When interrupted or exit'd, cleanup temporary files, and complete
1120# config.log. We remove comments because anyway the quotes in there
1121# would cause problems or look ugly.
1122# WARNING: Be sure not to use single quotes in there, as some shells,
1123# such as our DU 5.0 friend, will then `close' the trap.
1124trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1126 {
1127 echo
1128
1129 cat <<\_ASBOX
1130## ---------------- ##
1131## Cache variables. ##
1132## ---------------- ##
1133_ASBOX
1134 echo
1135 # The following way of writing the cache mishandles newlines in values,
1136{
1137 (set) 2>&1 |
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 *ac_space=\ *)
1140 sed -n \
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 ;;
1144 *)
1145 sed -n \
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1147 ;;
1148 esac;
1149}
1150 echo
1151
1152 cat <<\_ASBOX
1153## ----------------- ##
1154## Output variables. ##
1155## ----------------- ##
1156_ASBOX
1157 echo
1158 for ac_var in $ac_subst_vars
1159 do
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1164
1165 if test -n "$ac_subst_files"; then
1166 cat <<\_ASBOX
1167## ------------- ##
1168## Output files. ##
1169## ------------- ##
1170_ASBOX
1171 echo
1172 for ac_var in $ac_subst_files
1173 do
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1176 done | sort
1177 echo
1178 fi
1179
1180 if test -s confdefs.h; then
1181 cat <<\_ASBOX
1182## ----------- ##
1183## confdefs.h. ##
1184## ----------- ##
1185_ASBOX
1186 echo
1187 sed "/^$/d" confdefs.h | sort
1188 echo
1189 fi
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1193 } >&5
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 exit $exit_status
1197 ' 0
1198for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200done
1201ac_signal=0
1202
1203# confdefs.h avoids OS command line length limits that DEFS can exceed.
1204rm -rf conftest* confdefs.h
1205# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206echo >confdefs.h
1207
1208# Predefined preprocessor variables.
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_NAME "$PACKAGE_NAME"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_VERSION "$PACKAGE_VERSION"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_STRING "$PACKAGE_STRING"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232_ACEOF
1233
1234
1235# Let the site file select an alternate cache file if it wants to.
1236# Prefer explicitly selected file to automatically selected ones.
1237if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 else
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 fi
1243fi
1244for ac_site_file in $CONFIG_SITE; do
1245 if test -r "$ac_site_file"; then
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
1249 . "$ac_site_file"
1250 fi
1251done
1252
1253if test -r "$cache_file"; then
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258echo "$as_me: loading cache $cache_file" >&6;}
1259 case $cache_file in
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1262 esac
1263 fi
1264else
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266echo "$as_me: creating cache $cache_file" >&6;}
1267 >$cache_file
1268fi
1269
1270# Check that the precious variables saved in the cache have kept the same
1271# value.
1272ac_cache_corrupted=false
1273for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
1279 case $ac_old_set,$ac_new_set in
1280 set,)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,set)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,);;
1289 *)
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1298 fi;;
1299 esac
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1302 case $ac_new_val in
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1306 esac
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 esac
1311 fi
1312done
1313if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
1319fi
1320
1321ac_ext=c
1322ac_cpp='$CPP $CPPFLAGS'
1323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345 ac_config_headers="$ac_config_headers config.h:config.in"
1346
1347echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1348echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1349 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1350if test "${enable_maintainer_mode+set}" = set; then
1351 enableval="$enable_maintainer_mode"
1352 USE_MAINTAINER_MODE=$enableval
1353else
1354 USE_MAINTAINER_MODE=no
1355fi;
1356 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1357echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1358
1359
1360if test $USE_MAINTAINER_MODE = yes; then
1361 MAINTAINER_MODE_TRUE=
1362 MAINTAINER_MODE_FALSE='#'
1363else
1364 MAINTAINER_MODE_TRUE='#'
1365 MAINTAINER_MODE_FALSE=
1366fi
1367
1368 MAINT=$MAINTAINER_MODE_TRUE
1369
1370
1371
1372ac_ext=c
1373ac_cpp='$CPP $CPPFLAGS'
1374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377if test -n "$ac_tool_prefix"; then
1378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1379set dummy ${ac_tool_prefix}gcc; ac_word=$2
1380echo "$as_me:$LINENO: checking for $ac_word" >&5
1381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382if test "${ac_cv_prog_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385 if test -n "$CC"; then
1386 ac_cv_prog_CC="$CC" # Let the user override the test.
1387else
1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389for as_dir in $PATH
1390do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399done
1400done
1401
1402fi
1403fi
1404CC=$ac_cv_prog_CC
1405if test -n "$CC"; then
1406 echo "$as_me:$LINENO: result: $CC" >&5
1407echo "${ECHO_T}$CC" >&6
1408else
1409 echo "$as_me:$LINENO: result: no" >&5
1410echo "${ECHO_T}no" >&6
1411fi
1412
1413fi
1414if test -z "$ac_cv_prog_CC"; then
1415 ac_ct_CC=$CC
1416 # Extract the first word of "gcc", so it can be a program name with args.
1417set dummy gcc; ac_word=$2
1418echo "$as_me:$LINENO: checking for $ac_word" >&5
1419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425else
1426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427for as_dir in $PATH
1428do
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_prog_ac_ct_CC="gcc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 break 2
1436 fi
1437done
1438done
1439
1440fi
1441fi
1442ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443if test -n "$ac_ct_CC"; then
1444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1445echo "${ECHO_T}$ac_ct_CC" >&6
1446else
1447 echo "$as_me:$LINENO: result: no" >&5
1448echo "${ECHO_T}no" >&6
1449fi
1450
1451 CC=$ac_ct_CC
1452else
1453 CC="$ac_cv_prog_CC"
1454fi
1455
1456if test -z "$CC"; then
1457 if test -n "$ac_tool_prefix"; then
1458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1459set dummy ${ac_tool_prefix}cc; ac_word=$2
1460echo "$as_me:$LINENO: checking for $ac_word" >&5
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462if test "${ac_cv_prog_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1467else
1468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469for as_dir in $PATH
1470do
1471 IFS=$as_save_IFS
1472 test -z "$as_dir" && as_dir=.
1473 for ac_exec_ext in '' $ac_executable_extensions; do
1474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475 ac_cv_prog_CC="${ac_tool_prefix}cc"
1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 break 2
1478 fi
1479done
1480done
1481
1482fi
1483fi
1484CC=$ac_cv_prog_CC
1485if test -n "$CC"; then
1486 echo "$as_me:$LINENO: result: $CC" >&5
1487echo "${ECHO_T}$CC" >&6
1488else
1489 echo "$as_me:$LINENO: result: no" >&5
1490echo "${ECHO_T}no" >&6
1491fi
1492
1493fi
1494if test -z "$ac_cv_prog_CC"; then
1495 ac_ct_CC=$CC
1496 # Extract the first word of "cc", so it can be a program name with args.
1497set dummy cc; ac_word=$2
1498echo "$as_me:$LINENO: checking for $ac_word" >&5
1499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502else
1503 if test -n "$ac_ct_CC"; then
1504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505else
1506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507for as_dir in $PATH
1508do
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_ac_ct_CC="cc"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 break 2
1516 fi
1517done
1518done
1519
1520fi
1521fi
1522ac_ct_CC=$ac_cv_prog_ac_ct_CC
1523if test -n "$ac_ct_CC"; then
1524 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1525echo "${ECHO_T}$ac_ct_CC" >&6
1526else
1527 echo "$as_me:$LINENO: result: no" >&5
1528echo "${ECHO_T}no" >&6
1529fi
1530
1531 CC=$ac_ct_CC
1532else
1533 CC="$ac_cv_prog_CC"
1534fi
1535
1536fi
1537if test -z "$CC"; then
1538 # Extract the first word of "cc", so it can be a program name with args.
1539set dummy cc; ac_word=$2
1540echo "$as_me:$LINENO: checking for $ac_word" >&5
1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547else
1548 ac_prog_rejected=no
1549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1557 ac_prog_rejected=yes
1558 continue
1559 fi
1560 ac_cv_prog_CC="cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 break 2
1563 fi
1564done
1565done
1566
1567if test $ac_prog_rejected = yes; then
1568 # We found a bogon in the path, so make sure we never use it.
1569 set dummy $ac_cv_prog_CC
1570 shift
1571 if test $# != 0; then
1572 # We chose a different compiler from the bogus one.
1573 # However, it has the same basename, so the bogon will be chosen
1574 # first if we set CC to just the basename; use the full file name.
1575 shift
1576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1577 fi
1578fi
1579fi
1580fi
1581CC=$ac_cv_prog_CC
1582if test -n "$CC"; then
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584echo "${ECHO_T}$CC" >&6
1585else
1586 echo "$as_me:$LINENO: result: no" >&5
1587echo "${ECHO_T}no" >&6
1588fi
1589
1590fi
1591if test -z "$CC"; then
1592 if test -n "$ac_tool_prefix"; then
1593 for ac_prog in cl
1594 do
1595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616done
1617done
1618
1619fi
1620fi
1621CC=$ac_cv_prog_CC
1622if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624echo "${ECHO_T}$CC" >&6
1625else
1626 echo "$as_me:$LINENO: result: no" >&5
1627echo "${ECHO_T}no" >&6
1628fi
1629
1630 test -n "$CC" && break
1631 done
1632fi
1633if test -z "$CC"; then
1634 ac_ct_CC=$CC
1635 for ac_prog in cl
1636do
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638set dummy $ac_prog; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1657 fi
1658done
1659done
1660
1661fi
1662fi
1663ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666echo "${ECHO_T}$ac_ct_CC" >&6
1667else
1668 echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672 test -n "$ac_ct_CC" && break
1673done
1674
1675 CC=$ac_ct_CC
1676fi
1677
1678fi
1679
1680
1681test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1682See \`config.log' for more details." >&5
1683echo "$as_me: error: no acceptable C compiler found in \$PATH
1684See \`config.log' for more details." >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687# Provide some information about the compiler.
1688echo "$as_me:$LINENO:" \
1689 "checking for C compiler version" >&5
1690ac_compiler=`set X $ac_compile; echo $2`
1691{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1692 (eval $ac_compiler --version </dev/null >&5) 2>&5
1693 ac_status=$?
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1696{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1697 (eval $ac_compiler -v </dev/null >&5) 2>&5
1698 ac_status=$?
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1702 (eval $ac_compiler -V </dev/null >&5) 2>&5
1703 ac_status=$?
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706
1707cat >conftest.$ac_ext <<_ACEOF
1708/* confdefs.h. */
1709_ACEOF
1710cat confdefs.h >>conftest.$ac_ext
1711cat >>conftest.$ac_ext <<_ACEOF
1712/* end confdefs.h. */
1713
1714int
1715main ()
1716{
1717
1718 ;
1719 return 0;
1720}
1721_ACEOF
1722ac_clean_files_save=$ac_clean_files
1723ac_clean_files="$ac_clean_files a.out a.exe b.out"
1724# Try to create an executable without -o first, disregard a.out.
1725# It will help us diagnose broken compilers, and finding out an intuition
1726# of exeext.
1727echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1728echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1729ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1730if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1731 (eval $ac_link_default) 2>&5
1732 ac_status=$?
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }; then
1735 # Find the output, starting from the most likely. This scheme is
1736# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1737# resort.
1738
1739# Be careful to initialize this variable, since it used to be cached.
1740# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1741ac_cv_exeext=
1742# b.out is created by i960 compilers.
1743for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1744do
1745 test -f "$ac_file" || continue
1746 case $ac_file in
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1748 ;;
1749 conftest.$ac_ext )
1750 # This is the source file.
1751 ;;
1752 [ab].out )
1753 # We found the default executable, but exeext='' is most
1754 # certainly right.
1755 break;;
1756 *.* )
1757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool,
1759 # but it would be cool to find out if it's true. Does anybody
1760 # maintain Libtool? --akim.
1761 export ac_cv_exeext
1762 break;;
1763 * )
1764 break;;
1765 esac
1766done
1767else
1768 echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1772See \`config.log' for more details." >&5
1773echo "$as_me: error: C compiler cannot create executables
1774See \`config.log' for more details." >&2;}
1775 { (exit 77); exit 77; }; }
1776fi
1777
1778ac_exeext=$ac_cv_exeext
1779echo "$as_me:$LINENO: result: $ac_file" >&5
1780echo "${ECHO_T}$ac_file" >&6
1781
1782# Check the compiler produces executables we can run. If not, either
1783# the compiler is broken, or we cross compile.
1784echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1785echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1786# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1787# If not cross compiling, check that we can run a simple program.
1788if test "$cross_compiling" != yes; then
1789 if { ac_try='./$ac_file'
1790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791 (eval $ac_try) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1795 cross_compiling=no
1796 else
1797 if test "$cross_compiling" = maybe; then
1798 cross_compiling=yes
1799 else
1800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1801If you meant to cross compile, use \`--host'.
1802See \`config.log' for more details." >&5
1803echo "$as_me: error: cannot run C compiled programs.
1804If you meant to cross compile, use \`--host'.
1805See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
1808 fi
1809fi
1810echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
1812
1813rm -f a.out a.exe conftest$ac_cv_exeext b.out
1814ac_clean_files=$ac_clean_files_save
1815# Check the compiler produces executables we can run. If not, either
1816# the compiler is broken, or we cross compile.
1817echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1818echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1819echo "$as_me:$LINENO: result: $cross_compiling" >&5
1820echo "${ECHO_T}$cross_compiling" >&6
1821
1822echo "$as_me:$LINENO: checking for suffix of executables" >&5
1823echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1825 (eval $ac_link) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1830# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1831# work properly (i.e., refer to `conftest.exe'), while it won't with
1832# `rm'.
1833for ac_file in conftest.exe conftest conftest.*; do
1834 test -f "$ac_file" || continue
1835 case $ac_file in
1836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 export ac_cv_exeext
1839 break;;
1840 * ) break;;
1841 esac
1842done
1843else
1844 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1845See \`config.log' for more details." >&5
1846echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1847See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1849fi
1850
1851rm -f conftest$ac_cv_exeext
1852echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1853echo "${ECHO_T}$ac_cv_exeext" >&6
1854
1855rm -f conftest.$ac_ext
1856EXEEXT=$ac_cv_exeext
1857ac_exeext=$EXEEXT
1858echo "$as_me:$LINENO: checking for suffix of object files" >&5
1859echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1860if test "${ac_cv_objext+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
1863 cat >conftest.$ac_ext <<_ACEOF
1864/* confdefs.h. */
1865_ACEOF
1866cat confdefs.h >>conftest.$ac_ext
1867cat >>conftest.$ac_ext <<_ACEOF
1868/* end confdefs.h. */
1869
1870int
1871main ()
1872{
1873
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878rm -f conftest.o conftest.obj
1879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1885 case $ac_file in
1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1887 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1888 break;;
1889 esac
1890done
1891else
1892 echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896See \`config.log' for more details." >&5
1897echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1900fi
1901
1902rm -f conftest.$ac_cv_objext conftest.$ac_ext
1903fi
1904echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905echo "${ECHO_T}$ac_cv_objext" >&6
1906OBJEXT=$ac_cv_objext
1907ac_objext=$OBJEXT
1908echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1910if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912else
1913 cat >conftest.$ac_ext <<_ACEOF
1914/* confdefs.h. */
1915_ACEOF
1916cat confdefs.h >>conftest.$ac_ext
1917cat >>conftest.$ac_ext <<_ACEOF
1918/* end confdefs.h. */
1919
1920int
1921main ()
1922{
1923#ifndef __GNUC__
1924 choke me
1925#endif
1926
1927 ;
1928 return 0;
1929}
1930_ACEOF
1931rm -f conftest.$ac_objext
1932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>conftest.er1
1934 ac_status=$?
1935 grep -v '^ *+' conftest.er1 >conftest.err
1936 rm -f conftest.er1
1937 cat conftest.err >&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
1940 { ac_try='test -z "$ac_c_werror_flag"
1941 || test ! -s conftest.err'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 ac_compiler_gnu=yes
1954else
1955 echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958ac_compiler_gnu=no
1959fi
1960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1961ac_cv_c_compiler_gnu=$ac_compiler_gnu
1962
1963fi
1964echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1965echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1966GCC=`test $ac_compiler_gnu = yes && echo yes`
1967ac_test_CFLAGS=${CFLAGS+set}
1968ac_save_CFLAGS=$CFLAGS
1969CFLAGS="-g"
1970echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1971echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1972if test "${ac_cv_prog_cc_g+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975 cat >conftest.$ac_ext <<_ACEOF
1976/* confdefs.h. */
1977_ACEOF
1978cat confdefs.h >>conftest.$ac_ext
1979cat >>conftest.$ac_ext <<_ACEOF
1980/* end confdefs.h. */
1981
1982int
1983main ()
1984{
1985
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990rm -f conftest.$ac_objext
1991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1993 ac_status=$?
1994 grep -v '^ *+' conftest.er1 >conftest.err
1995 rm -f conftest.er1
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
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); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_cv_prog_cc_g=yes
2013else
2014 echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017ac_cv_prog_cc_g=no
2018fi
2019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020fi
2021echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2022echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2023if test "$ac_test_CFLAGS" = set; then
2024 CFLAGS=$ac_save_CFLAGS
2025elif test $ac_cv_prog_cc_g = yes; then
2026 if test "$GCC" = yes; then
2027 CFLAGS="-g -O2"
2028 else
2029 CFLAGS="-g"
2030 fi
2031else
2032 if test "$GCC" = yes; then
2033 CFLAGS="-O2"
2034 else
2035 CFLAGS=
2036 fi
2037fi
2038echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2039echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2040if test "${ac_cv_prog_cc_stdc+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 ac_cv_prog_cc_stdc=no
2044ac_save_CC=$CC
2045cat >conftest.$ac_ext <<_ACEOF
2046/* confdefs.h. */
2047_ACEOF
2048cat confdefs.h >>conftest.$ac_ext
2049cat >>conftest.$ac_ext <<_ACEOF
2050/* end confdefs.h. */
2051#include <stdarg.h>
2052#include <stdio.h>
2053#include <sys/types.h>
2054#include <sys/stat.h>
2055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2056struct buf { int x; };
2057FILE * (*rcsopen) (struct buf *, struct stat *, int);
2058static char *e (p, i)
2059 char **p;
2060 int i;
2061{
2062 return p[i];
2063}
2064static char *f (char * (*g) (char **, int), char **p, ...)
2065{
2066 char *s;
2067 va_list v;
2068 va_start (v,p);
2069 s = g (p, va_arg (v,int));
2070 va_end (v);
2071 return s;
2072}
2073
2074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2075 function prototypes and stuff, but not '\xHH' hex character constants.
2076 These don't provoke an error unfortunately, instead are silently treated
2077 as 'x'. The following induces an error, until -std1 is added to get
2078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2079 array size at least. It's necessary to write '\x00'==0 to get something
2080 that's true only with -std1. */
2081int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2082
2083int test (int i, double x);
2084struct s1 {int (*f) (int a);};
2085struct s2 {int (*f) (double a);};
2086int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2087int argc;
2088char **argv;
2089int
2090main ()
2091{
2092return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097# Don't try gcc -ansi; that turns off useful extensions and
2098# breaks some systems' header files.
2099# AIX -qlanglvl=ansi
2100# Ultrix and OSF/1 -std1
2101# HP-UX 10.20 and later -Ae
2102# HP-UX older versions -Aa -D_HPUX_SOURCE
2103# SVR4 -Xc -D__EXTENSIONS__
2104for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2105do
2106 CC="$ac_save_CC $ac_arg"
2107 rm -f conftest.$ac_objext
2108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 ac_cv_prog_cc_stdc=$ac_arg
2130break
2131else
2132 echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
2135fi
2136rm -f conftest.err conftest.$ac_objext
2137done
2138rm -f conftest.$ac_ext conftest.$ac_objext
2139CC=$ac_save_CC
2140
2141fi
2142
2143case "x$ac_cv_prog_cc_stdc" in
2144 x|xno)
2145 echo "$as_me:$LINENO: result: none needed" >&5
2146echo "${ECHO_T}none needed" >&6 ;;
2147 *)
2148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2149echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2150 CC="$CC $ac_cv_prog_cc_stdc" ;;
2151esac
2152
2153# Some people use a C++ compiler to compile C. Since we use `exit',
2154# in C++ we need to declare it. In case someone uses the same compiler
2155# for both compiling C and C++ we need to have the C++ compiler decide
2156# the declaration of exit, since it's the most demanding environment.
2157cat >conftest.$ac_ext <<_ACEOF
2158#ifndef __cplusplus
2159 choke me
2160#endif
2161_ACEOF
2162rm -f conftest.$ac_objext
2163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag"
2172 || test ! -s conftest.err'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 for ac_declaration in \
2185 '' \
2186 'extern "C" void std::exit (int) throw (); using std::exit;' \
2187 'extern "C" void std::exit (int); using std::exit;' \
2188 'extern "C" void exit (int) throw ();' \
2189 'extern "C" void exit (int);' \
2190 'void exit (int);'
2191do
2192 cat >conftest.$ac_ext <<_ACEOF
2193/* confdefs.h. */
2194_ACEOF
2195cat confdefs.h >>conftest.$ac_ext
2196cat >>conftest.$ac_ext <<_ACEOF
2197/* end confdefs.h. */
2198$ac_declaration
2199#include <stdlib.h>
2200int
2201main ()
2202{
2203exit (42);
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2211 ac_status=$?
2212 grep -v '^ *+' conftest.er1 >conftest.err
2213 rm -f conftest.er1
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag"
2218 || test ! -s conftest.err'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231else
2232 echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235continue
2236fi
2237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239/* confdefs.h. */
2240_ACEOF
2241cat confdefs.h >>conftest.$ac_ext
2242cat >>conftest.$ac_ext <<_ACEOF
2243/* end confdefs.h. */
2244$ac_declaration
2245int
2246main ()
2247{
2248exit (42);
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253rm -f conftest.$ac_objext
2254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 break
2276else
2277 echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280fi
2281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282done
2283rm -f conftest*
2284if test -n "$ac_declaration"; then
2285 echo '#ifdef __cplusplus' >>confdefs.h
2286 echo $ac_declaration >>confdefs.h
2287 echo '#endif' >>confdefs.h
2288fi
2289
2290else
2291 echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294fi
2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296ac_ext=c
2297ac_cpp='$CPP $CPPFLAGS'
2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303cat >>confdefs.h <<\_ACEOF
2304#define _GNU_SOURCE 1
2305_ACEOF
2306
2307
2308
2309ac_ext=c
2310ac_cpp='$CPP $CPPFLAGS'
2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2315echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2316# On Suns, sometimes $CPP names a directory.
2317if test -n "$CPP" && test -d "$CPP"; then
2318 CPP=
2319fi
2320if test -z "$CPP"; then
2321 if test "${ac_cv_prog_CPP+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324 # Double quotes because CPP needs to be expanded
2325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2326 do
2327 ac_preproc_ok=false
2328for ac_c_preproc_warn_flag in '' yes
2329do
2330 # Use a header file that comes with gcc, so configuring glibc
2331 # with a fresh cross-compiler works.
2332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333 # <limits.h> exists even on freestanding compilers.
2334 # On the NeXT, cc -E runs the code through the compiler's parser,
2335 # not just through cpp. "Syntax error" is here to catch this case.
2336 cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h. */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h. */
2342#ifdef __STDC__
2343# include <limits.h>
2344#else
2345# include <assert.h>
2346#endif
2347 Syntax error
2348_ACEOF
2349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } >/dev/null; then
2357 if test -s conftest.err; then
2358 ac_cpp_err=$ac_c_preproc_warn_flag
2359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2360 else
2361 ac_cpp_err=
2362 fi
2363else
2364 ac_cpp_err=yes
2365fi
2366if test -z "$ac_cpp_err"; then
2367 :
2368else
2369 echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 # Broken: fails on valid input.
2373continue
2374fi
2375rm -f conftest.err conftest.$ac_ext
2376
2377 # OK, works on sane cases. Now check whether non-existent headers
2378 # can be detected and how.
2379 cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h. */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h. */
2385#include <ac_nonexistent.h>
2386_ACEOF
2387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2398 else
2399 ac_cpp_err=
2400 fi
2401else
2402 ac_cpp_err=yes
2403fi
2404if test -z "$ac_cpp_err"; then
2405 # Broken: success on invalid input.
2406continue
2407else
2408 echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 # Passes both tests.
2412ac_preproc_ok=:
2413break
2414fi
2415rm -f conftest.err conftest.$ac_ext
2416
2417done
2418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2419rm -f conftest.err conftest.$ac_ext
2420if $ac_preproc_ok; then
2421 break
2422fi
2423
2424 done
2425 ac_cv_prog_CPP=$CPP
2426
2427fi
2428 CPP=$ac_cv_prog_CPP
2429else
2430 ac_cv_prog_CPP=$CPP
2431fi
2432echo "$as_me:$LINENO: result: $CPP" >&5
2433echo "${ECHO_T}$CPP" >&6
2434ac_preproc_ok=false
2435for ac_c_preproc_warn_flag in '' yes
2436do
2437 # Use a header file that comes with gcc, so configuring glibc
2438 # with a fresh cross-compiler works.
2439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 # <limits.h> exists even on freestanding compilers.
2441 # On the NeXT, cc -E runs the code through the compiler's parser,
2442 # not just through cpp. "Syntax error" is here to catch this case.
2443 cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h. */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h. */
2449#ifdef __STDC__
2450# include <limits.h>
2451#else
2452# include <assert.h>
2453#endif
2454 Syntax error
2455_ACEOF
2456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } >/dev/null; then
2464 if test -s conftest.err; then
2465 ac_cpp_err=$ac_c_preproc_warn_flag
2466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2467 else
2468 ac_cpp_err=
2469 fi
2470else
2471 ac_cpp_err=yes
2472fi
2473if test -z "$ac_cpp_err"; then
2474 :
2475else
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 # Broken: fails on valid input.
2480continue
2481fi
2482rm -f conftest.err conftest.$ac_ext
2483
2484 # OK, works on sane cases. Now check whether non-existent headers
2485 # can be detected and how.
2486 cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h. */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h. */
2492#include <ac_nonexistent.h>
2493_ACEOF
2494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } >/dev/null; then
2502 if test -s conftest.err; then
2503 ac_cpp_err=$ac_c_preproc_warn_flag
2504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2505 else
2506 ac_cpp_err=
2507 fi
2508else
2509 ac_cpp_err=yes
2510fi
2511if test -z "$ac_cpp_err"; then
2512 # Broken: success on invalid input.
2513continue
2514else
2515 echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 # Passes both tests.
2519ac_preproc_ok=:
2520break
2521fi
2522rm -f conftest.err conftest.$ac_ext
2523
2524done
2525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2526rm -f conftest.err conftest.$ac_ext
2527if $ac_preproc_ok; then
2528 :
2529else
2530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2533See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2535fi
2536
2537ac_ext=c
2538ac_cpp='$CPP $CPPFLAGS'
2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543
2544echo "$as_me:$LINENO: checking for egrep" >&5
2545echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2546if test "${ac_cv_prog_egrep+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2550 then ac_cv_prog_egrep='grep -E'
2551 else ac_cv_prog_egrep='egrep'
2552 fi
2553fi
2554echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2555echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2556 EGREP=$ac_cv_prog_egrep
2557
2558
2559
2560echo "$as_me:$LINENO: checking for AIX" >&5
2561echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568#ifdef _AIX
2569 yes
2570#endif
2571
2572_ACEOF
2573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2574 $EGREP "yes" >/dev/null 2>&1; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
2577cat >>confdefs.h <<\_ACEOF
2578#define _ALL_SOURCE 1
2579_ACEOF
2580
2581else
2582 echo "$as_me:$LINENO: result: no" >&5
2583echo "${ECHO_T}no" >&6
2584fi
2585rm -f conftest*
2586
2587
2588echo "$as_me:$LINENO: checking for library containing strerror" >&5
2589echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2590if test "${ac_cv_search_strerror+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
2593 ac_func_search_save_LIBS=$LIBS
2594ac_cv_search_strerror=no
2595cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601
2602/* Override any gcc2 internal prototype to avoid an error. */
2603#ifdef __cplusplus
2604extern "C"
2605#endif
2606/* We use char because int might match the return type of a gcc2
2607 builtin and then its argument prototype would still apply. */
2608char strerror ();
2609int
2610main ()
2611{
2612strerror ();
2613 ;
2614 return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext conftest$ac_exeext
2618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="none required"
2640else
2641 echo "$as_me: failed program was:" >&5
2642sed 's/^/| /' conftest.$ac_ext >&5
2643
2644fi
2645rm -f conftest.err conftest.$ac_objext \
2646 conftest$ac_exeext conftest.$ac_ext
2647if test "$ac_cv_search_strerror" = no; then
2648 for ac_lib in cposix; do
2649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2650 cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h. */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h. */
2656
2657/* Override any gcc2 internal prototype to avoid an error. */
2658#ifdef __cplusplus
2659extern "C"
2660#endif
2661/* We use char because int might match the return type of a gcc2
2662 builtin and then its argument prototype would still apply. */
2663char strerror ();
2664int
2665main ()
2666{
2667strerror ();
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext conftest$ac_exeext
2673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2674 (eval $ac_link) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_search_strerror="-l$ac_lib"
2695break
2696else
2697 echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700fi
2701rm -f conftest.err conftest.$ac_objext \
2702 conftest$ac_exeext conftest.$ac_ext
2703 done
2704fi
2705LIBS=$ac_func_search_save_LIBS
2706fi
2707echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2708echo "${ECHO_T}$ac_cv_search_strerror" >&6
2709if test "$ac_cv_search_strerror" != no; then
2710 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2711
2712fi
2713
2714
2715
2716
2717echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2718echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2719if test "${am_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722 am_cv_prog_cc_stdc=no
2723ac_save_CC="$CC"
2724# Don't try gcc -ansi; that turns off useful extensions and
2725# breaks some systems' header files.
2726# AIX -qlanglvl=ansi
2727# Ultrix and OSF/1 -std1
2728# HP-UX 10.20 and later -Ae
2729# HP-UX older versions -Aa -D_HPUX_SOURCE
2730# SVR4 -Xc -D__EXTENSIONS__
2731for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732do
2733 CC="$ac_save_CC $ac_arg"
2734 cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h. */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h. */
2740#include <stdarg.h>
2741#include <stdio.h>
2742#include <sys/types.h>
2743#include <sys/stat.h>
2744/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745struct buf { int x; };
2746FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747static char *e (p, i)
2748 char **p;
2749 int i;
2750{
2751 return p[i];
2752}
2753static char *f (char * (*g) (char **, int), char **p, ...)
2754{
2755 char *s;
2756 va_list v;
2757 va_start (v,p);
2758 s = g (p, va_arg (v,int));
2759 va_end (v);
2760 return s;
2761}
2762int test (int i, double x);
2763struct s1 {int (*f) (int a);};
2764struct s2 {int (*f) (double a);};
2765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766int argc;
2767char **argv;
2768
2769int
2770main ()
2771{
2772
2773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2774
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 am_cv_prog_cc_stdc="$ac_arg"; break
2802else
2803 echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806fi
2807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808done
2809CC="$ac_save_CC"
2810
2811fi
2812
2813if test -z "$am_cv_prog_cc_stdc"; then
2814 echo "$as_me:$LINENO: result: none needed" >&5
2815echo "${ECHO_T}none needed" >&6
2816else
2817 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2818echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2819fi
2820case "x$am_cv_prog_cc_stdc" in
2821 x|xno) ;;
2822 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2823esac
2824
2825
2826ac_aux_dir=
2827for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2828 if test -f $ac_dir/install-sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install-sh -c"
2831 break
2832 elif test -f $ac_dir/install.sh; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/install.sh -c"
2835 break
2836 elif test -f $ac_dir/shtool; then
2837 ac_aux_dir=$ac_dir
2838 ac_install_sh="$ac_aux_dir/shtool install -c"
2839 break
2840 fi
2841done
2842if test -z "$ac_aux_dir"; then
2843 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2844echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2845 { (exit 1); exit 1; }; }
2846fi
2847ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2848ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2849ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2850
2851# Make sure we can run config.sub.
2852$ac_config_sub sun4 >/dev/null 2>&1 ||
2853 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2854echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2855 { (exit 1); exit 1; }; }
2856
2857echo "$as_me:$LINENO: checking build system type" >&5
2858echo $ECHO_N "checking build system type... $ECHO_C" >&6
2859if test "${ac_cv_build+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
2862 ac_cv_build_alias=$build_alias
2863test -z "$ac_cv_build_alias" &&
2864 ac_cv_build_alias=`$ac_config_guess`
2865test -z "$ac_cv_build_alias" &&
2866 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2867echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2868 { (exit 1); exit 1; }; }
2869ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2871echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2872 { (exit 1); exit 1; }; }
2873
2874fi
2875echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2876echo "${ECHO_T}$ac_cv_build" >&6
2877build=$ac_cv_build
2878build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2879build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2880build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2881
2882
2883echo "$as_me:$LINENO: checking host system type" >&5
2884echo $ECHO_N "checking host system type... $ECHO_C" >&6
2885if test "${ac_cv_host+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
2888 ac_cv_host_alias=$host_alias
2889test -z "$ac_cv_host_alias" &&
2890 ac_cv_host_alias=$ac_cv_build_alias
2891ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2892 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2893echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2894 { (exit 1); exit 1; }; }
2895
2896fi
2897echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2898echo "${ECHO_T}$ac_cv_host" >&6
2899host=$ac_cv_host
2900host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2901host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2902host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2903
2904
2905echo "$as_me:$LINENO: checking target system type" >&5
2906echo $ECHO_N "checking target system type... $ECHO_C" >&6
2907if test "${ac_cv_target+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910 ac_cv_target_alias=$target_alias
2911test "x$ac_cv_target_alias" = "x" &&
2912 ac_cv_target_alias=$ac_cv_host_alias
2913ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2915echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2916 { (exit 1); exit 1; }; }
2917
2918fi
2919echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2920echo "${ECHO_T}$ac_cv_target" >&6
2921target=$ac_cv_target
2922target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2923target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2924target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2925
2926
2927# The aliases save the names the user supplied, while $host etc.
2928# will get canonicalized.
2929test -n "$target_alias" &&
2930 test "$program_prefix$program_suffix$program_transform_name" = \
2931 NONENONEs,x,x, &&
2932 program_prefix=${target_alias}-
2933
2934
2935CONFIG_OBS=
2936CONFIG_DEPS=
2937CONFIG_SRCS=
2938ENABLE_CFLAGS=
2939
2940CONFIG_ALL=
2941CONFIG_CLEAN=
2942CONFIG_INSTALL=
2943CONFIG_UNINSTALL=
2944
2945# If we haven't got the data from the intl directory,
2946# assume NLS is disabled.
2947USE_NLS=no
2948LIBINTL=
2949LIBINTL_DEP=
2950INCINTL=
2951XGETTEXT=
2952GMSGFMT=
2953POSUB=
2954
2955if test -f ../intl/config.intl; then
2956 . ../intl/config.intl
2957fi
2958echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2959echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2960if test x"$USE_NLS" != xyes; then
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963else
2964 echo "$as_me:$LINENO: result: yes" >&5
2965echo "${ECHO_T}yes" >&6
2966
2967cat >>confdefs.h <<\_ACEOF
2968#define ENABLE_NLS 1
2969_ACEOF
2970
2971
2972 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2973echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2974 # Look for .po and .gmo files in the source directory.
2975 CATALOGS=
2976 XLINGUAS=
2977 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2978 # If there aren't any .gmo files the shell will give us the
2979 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2980 # weeded out.
2981 case "$cat" in *\**)
2982 continue;;
2983 esac
2984 # The quadruple backslash is collapsed to a double backslash
2985 # by the backticks, then collapsed again by the double quotes,
2986 # leaving us with one backslash in the sed expression (right
2987 # before the dot that mustn't act as a wildcard).
2988 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2989 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2990 # The user is allowed to set LINGUAS to a list of languages to
2991 # install catalogs for. If it's empty that means "all of them."
2992 if test "x$LINGUAS" = x; then
2993 CATALOGS="$CATALOGS $cat"
2994 XLINGUAS="$XLINGUAS $lang"
2995 else
2996 case "$LINGUAS" in *$lang*)
2997 CATALOGS="$CATALOGS $cat"
2998 XLINGUAS="$XLINGUAS $lang"
2999 ;;
3000 esac
3001 fi
3002 done
3003 LINGUAS="$XLINGUAS"
3004 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3005echo "${ECHO_T}$LINGUAS" >&6
3006
3007
3008 DATADIRNAME=share
3009
3010 INSTOBJEXT=.mo
3011
3012 GENCAT=gencat
3013
3014 CATOBJEXT=.gmo
3015
3016fi
3017
3018localedir='${datadir}/locale'
3019
3020
3021if test x"$USE_NLS" = xyes; then
3022 CONFIG_ALL="$CONFIG_ALL all-po"
3023 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3024 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3025 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3026fi
3027
3028PACKAGE=gdb
3029
3030cat >>confdefs.h <<_ACEOF
3031#define PACKAGE "$PACKAGE"
3032_ACEOF
3033
3034
3035
3036debugdir=${libdir}/debug
3037
3038
3039# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3040if test "${with_separate_debug_dir+set}" = set; then
3041 withval="$with_separate_debug_dir"
3042 debugdir="${withval}"
3043fi;
3044
3045
3046 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3048 ac_define_dir=`eval echo $debugdir`
3049 ac_define_dir=`eval echo $ac_define_dir`
3050
3051cat >>confdefs.h <<_ACEOF
3052#define DEBUGDIR "$ac_define_dir"
3053_ACEOF
3054
3055
3056#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3057
3058if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3059 if test "x$prefix" = xNONE; then
3060 test_prefix=/usr/local
3061 else
3062 test_prefix=$prefix
3063 fi
3064else
3065 test_prefix=$exec_prefix
3066fi
3067case ${debugdir} in
3068"${test_prefix}"|"${test_prefix}/"*|\
3069'${exec_prefix}'|'${exec_prefix}/'*)
3070
3071cat >>confdefs.h <<\_ACEOF
3072#define DEBUGDIR_RELOCATABLE 1
3073_ACEOF
3074
3075 ;;
3076esac
3077
3078
3079
3080subdirs="$subdirs doc testsuite"
3081
3082
3083# Provide defaults for some variables set by the per-host and per-target
3084# configuration.
3085gdb_host_obs=posix-hdep.o
3086
3087if test "${target}" = "${host}"; then
3088 gdb_native=yes
3089else
3090 gdb_native=no
3091fi
3092
3093. $srcdir/configure.host
3094
3095. $srcdir/configure.tgt
3096
3097# Fetch the default architecture and default target vector from BFD.
3098targ=$target; . $srcdir/../bfd/config.bfd
3099
3100# We only want the first architecture, so strip off the others if
3101# there is more than one.
3102targ_archs=`echo $targ_archs | sed 's/ .*//'`
3103
3104if test "x$targ_archs" != x; then
3105
3106cat >>confdefs.h <<_ACEOF
3107#define DEFAULT_BFD_ARCH $targ_archs
3108_ACEOF
3109
3110fi
3111if test "x$targ_defvec" != x; then
3112
3113cat >>confdefs.h <<_ACEOF
3114#define DEFAULT_BFD_VEC $targ_defvec
3115_ACEOF
3116
3117fi
3118
3119test "$program_prefix" != NONE &&
3120 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3121# Use a double $ so make ignores it.
3122test "$program_suffix" != NONE &&
3123 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3124# Double any \ or $. echo might interpret backslashes.
3125# By default was `s,x,x', remove it if useless.
3126cat <<\_ACEOF >conftest.sed
3127s/[\\$]/&&/g;s/;s,x,x,$//
3128_ACEOF
3129program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3130rm conftest.sed
3131
3132
3133# The CLI cannot be disabled yet, but may be in the future.
3134
3135# Enable CLI.
3136# Check whether --enable-gdbcli or --disable-gdbcli was given.
3137if test "${enable_gdbcli+set}" = set; then
3138 enableval="$enable_gdbcli"
3139 case $enableval in
3140 yes)
3141 ;;
3142 no)
3143 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3144echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3145 { (exit 1); exit 1; }; } ;;
3146 *)
3147 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3148echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3149 { (exit 1); exit 1; }; } ;;
3150 esac
3151else
3152 enable_gdbcli=yes
3153fi;
3154if test x"$enable_gdbcli" = xyes; then
3155 if test -d $srcdir/cli; then
3156 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3157 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3158 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3159 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3160 fi
3161fi
3162
3163# Enable MI.
3164# Check whether --enable-gdbmi or --disable-gdbmi was given.
3165if test "${enable_gdbmi+set}" = set; then
3166 enableval="$enable_gdbmi"
3167 case $enableval in
3168 yes | no)
3169 ;;
3170 *)
3171 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3172echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3173 { (exit 1); exit 1; }; } ;;
3174 esac
3175else
3176 enable_gdbmi=yes
3177fi;
3178if test x"$enable_gdbmi" = xyes; then
3179 if test -d $srcdir/mi; then
3180 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3181 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3182 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3183 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3184 fi
3185fi
3186
3187# Enable TUI.
3188# Check whether --enable-tui or --disable-tui was given.
3189if test "${enable_tui+set}" = set; then
3190 enableval="$enable_tui"
3191 case $enableval in
3192 yes | no)
3193 ;;
3194 *)
3195 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3196echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3197 { (exit 1); exit 1; }; } ;;
3198 esac
3199else
3200 enable_tui=yes
3201fi;
3202
3203# Enable gdbtk.
3204# Check whether --enable-gdbtk or --disable-gdbtk was given.
3205if test "${enable_gdbtk+set}" = set; then
3206 enableval="$enable_gdbtk"
3207 case $enableval in
3208 yes | no)
3209 ;;
3210 *)
3211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3212echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3213 { (exit 1); exit 1; }; } ;;
3214 esac
3215else
3216 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3217 enable_gdbtk=yes
3218 else
3219 enable_gdbtk=no
3220 fi
3221fi;
3222# We unconditionally disable gdbtk tests on selected platforms.
3223case $host_os in
3224 go32* | windows*)
3225 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3226echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3227 enable_gdbtk=no ;;
3228esac
3229
3230# Libunwind support.
3231echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3233if test "${ac_cv_header_stdc+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242#include <stdlib.h>
3243#include <stdarg.h>
3244#include <string.h>
3245#include <float.h>
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag"
3265 || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_cv_header_stdc=yes
3278else
3279 echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282ac_cv_header_stdc=no
3283fi
3284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285
3286if test $ac_cv_header_stdc = yes; then
3287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294#include <string.h>
3295
3296_ACEOF
3297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 $EGREP "memchr" >/dev/null 2>&1; then
3299 :
3300else
3301 ac_cv_header_stdc=no
3302fi
3303rm -f conftest*
3304
3305fi
3306
3307if test $ac_cv_header_stdc = yes; then
3308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3309 cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
3315#include <stdlib.h>
3316
3317_ACEOF
3318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 $EGREP "free" >/dev/null 2>&1; then
3320 :
3321else
3322 ac_cv_header_stdc=no
3323fi
3324rm -f conftest*
3325
3326fi
3327
3328if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then
3331 :
3332else
3333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339#include <ctype.h>
3340#if ((' ' & 0x0FF) == 0x020)
3341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3343#else
3344# define ISLOWER(c) \
3345 (('a' <= (c) && (c) <= 'i') \
3346 || ('j' <= (c) && (c) <= 'r') \
3347 || ('s' <= (c) && (c) <= 'z'))
3348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3349#endif
3350
3351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352int
3353main ()
3354{
3355 int i;
3356 for (i = 0; i < 256; i++)
3357 if (XOR (islower (i), ISLOWER (i))
3358 || toupper (i) != TOUPPER (i))
3359 exit(2);
3360 exit (0);
3361}
3362_ACEOF
3363rm -f conftest$ac_exeext
3364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 :
3375else
3376 echo "$as_me: program exited with status $ac_status" >&5
3377echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380( exit $ac_status )
3381ac_cv_header_stdc=no
3382fi
3383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3384fi
3385fi
3386fi
3387echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3388echo "${ECHO_T}$ac_cv_header_stdc" >&6
3389if test $ac_cv_header_stdc = yes; then
3390
3391cat >>confdefs.h <<\_ACEOF
3392#define STDC_HEADERS 1
3393_ACEOF
3394
3395fi
3396
3397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3408 inttypes.h stdint.h unistd.h
3409do
3410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3411echo "$as_me:$LINENO: checking for $ac_header" >&5
3412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3413if eval "test \"\${$as_ac_Header+set}\" = set"; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 cat >conftest.$ac_ext <<_ACEOF
3417/* confdefs.h. */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h. */
3422$ac_includes_default
3423
3424#include <$ac_header>
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 eval "$as_ac_Header=yes"
3449else
3450 echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453eval "$as_ac_Header=no"
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456fi
3457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459if test `eval echo '${'$as_ac_Header'}'` = yes; then
3460 cat >>confdefs.h <<_ACEOF
3461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3462_ACEOF
3463
3464fi
3465
3466done
3467
3468
3469
3470# Check whether --with-libunwind or --without-libunwind was given.
3471if test "${with_libunwind+set}" = set; then
3472 withval="$with_libunwind"
3473 case "${withval}" in
3474 yes) enable_libunwind=yes ;;
3475 no) enable_libunwind=no ;;
3476 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3477echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3478 { (exit 1); exit 1; }; } ;;
3479esac
3480else
3481
3482
3483for ac_header in libunwind.h
3484do
3485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3486if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491fi
3492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3494else
3495 # Is the header compilable?
3496echo "$as_me:$LINENO: checking $ac_header usability" >&5
3497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3498cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504$ac_includes_default
3505#include <$ac_header>
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3530else
3531 echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534ac_header_compiler=no
3535fi
3536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538echo "${ECHO_T}$ac_header_compiler" >&6
3539
3540# Is the header present?
3541echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
3549#include <$ac_header>
3550_ACEOF
3551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565else
3566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ac_header_preproc=no
3575fi
3576rm -f conftest.err conftest.$ac_ext
3577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578echo "${ECHO_T}$ac_header_preproc" >&6
3579
3580# So? What about this header?
3581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3582 yes:no: )
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587 ac_header_preproc=yes
3588 ;;
3589 no:yes:* )
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3602 (
3603 cat <<\_ASBOX
3604## ------------------------------------------ ##
3605## Report this to the AC_PACKAGE_NAME lists. ##
3606## ------------------------------------------ ##
3607_ASBOX
3608 ) |
3609 sed "s/^/$as_me: WARNING: /" >&2
3610 ;;
3611esac
3612echo "$as_me:$LINENO: checking for $ac_header" >&5
3613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617 eval "$as_ac_Header=\$ac_header_preproc"
3618fi
3619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3621
3622fi
3623if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626_ACEOF
3627
3628fi
3629
3630done
3631
3632
3633for ac_header in libunwind-ia64.h
3634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo "$as_me:$LINENO: checking for $ac_header" >&5
3638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641fi
3642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3644else
3645 # Is the header compilable?
3646echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3648cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h. */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h. */
3654$ac_includes_default
3655#include <$ac_header>
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_header_compiler=yes
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684ac_header_compiler=no
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688echo "${ECHO_T}$ac_header_compiler" >&6
3689
3690# Is the header present?
3691echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3693cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h. */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h. */
3699#include <$ac_header>
3700_ACEOF
3701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715else
3716 ac_cpp_err=yes
3717fi
3718if test -z "$ac_cpp_err"; then
3719 ac_header_preproc=yes
3720else
3721 echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 ac_header_preproc=no
3725fi
3726rm -f conftest.err conftest.$ac_ext
3727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728echo "${ECHO_T}$ac_header_preproc" >&6
3729
3730# So? What about this header?
3731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732 yes:no: )
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737 ac_header_preproc=yes
3738 ;;
3739 no:yes:* )
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3752 (
3753 cat <<\_ASBOX
3754## ------------------------------------------ ##
3755## Report this to the AC_PACKAGE_NAME lists. ##
3756## ------------------------------------------ ##
3757_ASBOX
3758 ) |
3759 sed "s/^/$as_me: WARNING: /" >&2
3760 ;;
3761esac
3762echo "$as_me:$LINENO: checking for $ac_header" >&5
3763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767 eval "$as_ac_Header=\$ac_header_preproc"
3768fi
3769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771
3772fi
3773if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774 cat >>confdefs.h <<_ACEOF
3775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776_ACEOF
3777
3778fi
3779
3780done
3781
3782 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3783 enable_libunwind=yes;
3784 fi
3785
3786fi;
3787
3788if test x"$enable_libunwind" = xyes; then
3789
3790for ac_header in libunwind.h
3791do
3792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798fi
3799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801else
3802 # Is the header compilable?
3803echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3805cat >conftest.$ac_ext <<_ACEOF
3806/* confdefs.h. */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h. */
3811$ac_includes_default
3812#include <$ac_header>
3813_ACEOF
3814rm -f conftest.$ac_objext
3815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_header_compiler=yes
3837else
3838 echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841ac_header_compiler=no
3842fi
3843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845echo "${ECHO_T}$ac_header_compiler" >&6
3846
3847# Is the header present?
3848echo "$as_me:$LINENO: checking $ac_header presence" >&5
3849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3850cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
3856#include <$ac_header>
3857_ACEOF
3858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } >/dev/null; then
3866 if test -s conftest.err; then
3867 ac_cpp_err=$ac_c_preproc_warn_flag
3868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869 else
3870 ac_cpp_err=
3871 fi
3872else
3873 ac_cpp_err=yes
3874fi
3875if test -z "$ac_cpp_err"; then
3876 ac_header_preproc=yes
3877else
3878 echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ac_header_preproc=no
3882fi
3883rm -f conftest.err conftest.$ac_ext
3884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885echo "${ECHO_T}$ac_header_preproc" >&6
3886
3887# So? What about this header?
3888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3889 yes:no: )
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3894 ac_header_preproc=yes
3895 ;;
3896 no:yes:* )
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3909 (
3910 cat <<\_ASBOX
3911## ------------------------------------------ ##
3912## Report this to the AC_PACKAGE_NAME lists. ##
3913## ------------------------------------------ ##
3914_ASBOX
3915 ) |
3916 sed "s/^/$as_me: WARNING: /" >&2
3917 ;;
3918esac
3919echo "$as_me:$LINENO: checking for $ac_header" >&5
3920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3921if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 eval "$as_ac_Header=\$ac_header_preproc"
3925fi
3926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928
3929fi
3930if test `eval echo '${'$as_ac_Header'}'` = yes; then
3931 cat >>confdefs.h <<_ACEOF
3932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933_ACEOF
3934
3935fi
3936
3937done
3938
3939
3940for ac_header in libunwind-ia64.h
3941do
3942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3943if eval "test \"\${$as_ac_Header+set}\" = set"; then
3944 echo "$as_me:$LINENO: checking for $ac_header" >&5
3945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3946if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948fi
3949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951else
3952 # Is the header compilable?
3953echo "$as_me:$LINENO: checking $ac_header usability" >&5
3954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3955cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h. */
3961$ac_includes_default
3962#include <$ac_header>
3963_ACEOF
3964rm -f conftest.$ac_objext
3965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_c_werror_flag"
3974 || test ! -s conftest.err'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_header_compiler=yes
3987else
3988 echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
3991ac_header_compiler=no
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3995echo "${ECHO_T}$ac_header_compiler" >&6
3996
3997# Is the header present?
3998echo "$as_me:$LINENO: checking $ac_header presence" >&5
3999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4000cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
4006#include <$ac_header>
4007_ACEOF
4008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev/null; then
4016 if test -s conftest.err; then
4017 ac_cpp_err=$ac_c_preproc_warn_flag
4018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019 else
4020 ac_cpp_err=
4021 fi
4022else
4023 ac_cpp_err=yes
4024fi
4025if test -z "$ac_cpp_err"; then
4026 ac_header_preproc=yes
4027else
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 ac_header_preproc=no
4032fi
4033rm -f conftest.err conftest.$ac_ext
4034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035echo "${ECHO_T}$ac_header_preproc" >&6
4036
4037# So? What about this header?
4038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4039 yes:no: )
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4044 ac_header_preproc=yes
4045 ;;
4046 no:yes:* )
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4059 (
4060 cat <<\_ASBOX
4061## ------------------------------------------ ##
4062## Report this to the AC_PACKAGE_NAME lists. ##
4063## ------------------------------------------ ##
4064_ASBOX
4065 ) |
4066 sed "s/^/$as_me: WARNING: /" >&2
4067 ;;
4068esac
4069echo "$as_me:$LINENO: checking for $ac_header" >&5
4070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4071if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 eval "$as_ac_Header=\$ac_header_preproc"
4075fi
4076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4078
4079fi
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083_ACEOF
4084
4085fi
4086
4087done
4088
4089
4090cat >>confdefs.h <<\_ACEOF
4091#define HAVE_LIBUNWIND 1
4092_ACEOF
4093
4094 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4095 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4096 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4097fi
4098
4099# Profiling support.
4100# Check whether --enable-profiling or --disable-profiling was given.
4101if test "${enable_profiling+set}" = set; then
4102 enableval="$enable_profiling"
4103 case $enableval in
4104 yes | no)
4105 ;;
4106 *)
4107 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4108echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4109 { (exit 1); exit 1; }; } ;;
4110 esac
4111else
4112 enable_profiling=no
4113fi;
4114
4115
4116
4117for ac_func in monstartup _mcleanup
4118do
4119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4120echo "$as_me:$LINENO: checking for $ac_func" >&5
4121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4122if eval "test \"\${$as_ac_var+set}\" = set"; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4133#define $ac_func innocuous_$ac_func
4134
4135/* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func (); below.
4137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 <limits.h> exists even on freestanding compilers. */
4139
4140#ifdef __STDC__
4141# include <limits.h>
4142#else
4143# include <assert.h>
4144#endif
4145
4146#undef $ac_func
4147
4148/* Override any gcc2 internal prototype to avoid an error. */
4149#ifdef __cplusplus
4150extern "C"
4151{
4152#endif
4153/* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4155char $ac_func ();
4156/* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
4159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4160choke me
4161#else
4162char (*f) () = $ac_func;
4163#endif
4164#ifdef __cplusplus
4165}
4166#endif
4167
4168int
4169main ()
4170{
4171return f != $ac_func;
4172 ;
4173 return 0;
4174}
4175_ACEOF
4176rm -f conftest.$ac_objext conftest$ac_exeext
4177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag"
4186 || test ! -s conftest.err'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest$ac_exeext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 eval "$as_ac_var=yes"
4199else
4200 echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203eval "$as_ac_var=no"
4204fi
4205rm -f conftest.err conftest.$ac_objext \
4206 conftest$ac_exeext conftest.$ac_ext
4207fi
4208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4209echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4210if test `eval echo '${'$as_ac_var'}'` = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4213_ACEOF
4214
4215fi
4216done
4217
4218echo "$as_me:$LINENO: checking for _etext" >&5
4219echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4220if test "${ac_cv_var__etext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
4229#include <stdlib.h>
4230extern char _etext;
4231
4232int
4233main ()
4234{
4235free (&_etext);
4236 ;
4237 return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext conftest$ac_exeext
4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_var__etext=yes
4263else
4264 echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
4267ac_cv_var__etext=no
4268fi
4269rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4271fi
4272echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4273echo "${ECHO_T}$ac_cv_var__etext" >&6
4274if test $ac_cv_var__etext = yes; then
4275
4276cat >>confdefs.h <<\_ACEOF
4277#define HAVE__ETEXT 1
4278_ACEOF
4279
4280fi
4281echo "$as_me:$LINENO: checking for etext" >&5
4282echo $ECHO_N "checking for etext... $ECHO_C" >&6
4283if test "${ac_cv_var_etext+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
4292#include <stdlib.h>
4293extern char etext;
4294
4295int
4296main ()
4297{
4298free (&etext);
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext conftest$ac_exeext
4304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_cv_var_etext=yes
4326else
4327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330ac_cv_var_etext=no
4331fi
4332rm -f conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
4334fi
4335echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4336echo "${ECHO_T}$ac_cv_var_etext" >&6
4337if test $ac_cv_var_etext = yes; then
4338
4339cat >>confdefs.h <<\_ACEOF
4340#define HAVE_ETEXT 1
4341_ACEOF
4342
4343fi
4344if test "$enable_profiling" = yes ; then
4345 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4346 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4347echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4348 { (exit 1); exit 1; }; }
4349 fi
4350 PROFILE_CFLAGS=-pg
4351 OLD_CFLAGS="$CFLAGS"
4352 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4353
4354 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4355echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4356if test "${ac_cv_cc_supports_pg+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359 cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h. */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h. */
4365
4366int
4367main ()
4368{
4369int x;
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_cc_supports_pg=yes
4397else
4398 echo "$as_me: failed program was:" >&5
4399sed 's/^/| /' conftest.$ac_ext >&5
4400
4401ac_cv_cc_supports_pg=no
4402fi
4403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404fi
4405echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4406echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4407
4408 if test $ac_cv_cc_supports_pg = no; then
4409 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4410echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4411 { (exit 1); exit 1; }; }
4412 fi
4413
4414 CFLAGS="$OLD_CFLAGS"
4415fi
4416
4417# --------------------- #
4418# Checks for programs. #
4419# --------------------- #
4420
4421for ac_prog in gawk mawk nawk awk
4422do
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424set dummy $ac_prog; ac_word=$2
4425echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427if test "${ac_cv_prog_AWK+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430 if test -n "$AWK"; then
4431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_AWK="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445done
4446
4447fi
4448fi
4449AWK=$ac_cv_prog_AWK
4450if test -n "$AWK"; then
4451 echo "$as_me:$LINENO: result: $AWK" >&5
4452echo "${ECHO_T}$AWK" >&6
4453else
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
4456fi
4457
4458 test -n "$AWK" && break
4459done
4460
4461# Find a good install program. We prefer a C program (faster),
4462# so one script is as good as another. But avoid the broken or
4463# incompatible versions:
4464# SysV /etc/install, /usr/sbin/install
4465# SunOS /usr/etc/install
4466# IRIX /sbin/install
4467# AIX /bin/install
4468# AmigaOS /C/install, which installs bootblocks on floppy discs
4469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4470# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4472# OS/2's system install, which has a completely different semantic
4473# ./install, which can be erroneously created by make from ./install.sh.
4474echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4475echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4476if test -z "$INSTALL"; then
4477if test "${ac_cv_path_install+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 # Account for people who put trailing slashes in PATH elements.
4486case $as_dir/ in
4487 ./ | .// | /cC/* | \
4488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4490 /usr/ucb/* ) ;;
4491 *)
4492 # OSF1 and SCO ODT 3.0 have their own names for install.
4493 # Don't use installbsd from OSF since it installs stuff as root
4494 # by default.
4495 for ac_prog in ginstall scoinst install; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4498 if test $ac_prog = install &&
4499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4500 # AIX install. It has an incompatible calling convention.
4501 :
4502 elif test $ac_prog = install &&
4503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4504 # program-specific install script used by HP pwplus--don't use.
4505 :
4506 else
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4508 break 3
4509 fi
4510 fi
4511 done
4512 done
4513 ;;
4514esac
4515done
4516
4517
4518fi
4519 if test "${ac_cv_path_install+set}" = set; then
4520 INSTALL=$ac_cv_path_install
4521 else
4522 # As a last resort, use the slow shell script. We don't cache a
4523 # path for INSTALL within a source directory, because that will
4524 # break other packages using the cache if that directory is
4525 # removed, or if the path is relative.
4526 INSTALL=$ac_install_sh
4527 fi
4528fi
4529echo "$as_me:$LINENO: result: $INSTALL" >&5
4530echo "${ECHO_T}$INSTALL" >&6
4531
4532# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4533# It thinks the first close brace ends the variable substitution.
4534test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4535
4536test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4537
4538test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4539
4540echo "$as_me:$LINENO: checking whether ln -s works" >&5
4541echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4542LN_S=$as_ln_s
4543if test "$LN_S" = "ln -s"; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
4546else
4547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4548echo "${ECHO_T}no, using $LN_S" >&6
4549fi
4550
4551if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4553set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4554echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556if test "${ac_cv_prog_RANLIB+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559 if test -n "$RANLIB"; then
4560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573done
4574done
4575
4576fi
4577fi
4578RANLIB=$ac_cv_prog_RANLIB
4579if test -n "$RANLIB"; then
4580 echo "$as_me:$LINENO: result: $RANLIB" >&5
4581echo "${ECHO_T}$RANLIB" >&6
4582else
4583 echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6
4585fi
4586
4587fi
4588if test -z "$ac_cv_prog_RANLIB"; then
4589 ac_ct_RANLIB=$RANLIB
4590 # Extract the first word of "ranlib", so it can be a program name with args.
4591set dummy ranlib; ac_word=$2
4592echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597 if test -n "$ac_ct_RANLIB"; then
4598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_RANLIB="ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612done
4613
4614 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4615fi
4616fi
4617ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4618if test -n "$ac_ct_RANLIB"; then
4619 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4620echo "${ECHO_T}$ac_ct_RANLIB" >&6
4621else
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
4624fi
4625
4626 RANLIB=$ac_ct_RANLIB
4627else
4628 RANLIB="$ac_cv_prog_RANLIB"
4629fi
4630
4631for ac_prog in 'bison -y' byacc
4632do
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634set dummy $ac_prog; ac_word=$2
4635echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637if test "${ac_cv_prog_YACC+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640 if test -n "$YACC"; then
4641 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4642else
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_YACC="$ac_prog"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654done
4655done
4656
4657fi
4658fi
4659YACC=$ac_cv_prog_YACC
4660if test -n "$YACC"; then
4661 echo "$as_me:$LINENO: result: $YACC" >&5
4662echo "${ECHO_T}$YACC" >&6
4663else
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
4666fi
4667
4668 test -n "$YACC" && break
4669done
4670test -n "$YACC" || YACC="yacc"
4671
4672
4673if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4675set dummy ${ac_tool_prefix}ar; ac_word=$2
4676echo "$as_me:$LINENO: checking for $ac_word" >&5
4677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678if test "${ac_cv_prog_AR+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681 if test -n "$AR"; then
4682 ac_cv_prog_AR="$AR" # Let the user override the test.
4683else
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_AR="${ac_tool_prefix}ar"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695done
4696done
4697
4698fi
4699fi
4700AR=$ac_cv_prog_AR
4701if test -n "$AR"; then
4702 echo "$as_me:$LINENO: result: $AR" >&5
4703echo "${ECHO_T}$AR" >&6
4704else
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
4707fi
4708
4709fi
4710if test -z "$ac_cv_prog_AR"; then
4711 ac_ct_AR=$AR
4712 # Extract the first word of "ar", so it can be a program name with args.
4713set dummy ar; ac_word=$2
4714echo "$as_me:$LINENO: checking for $ac_word" >&5
4715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 if test -n "$ac_ct_AR"; then
4720 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_ac_ct_AR="ar"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
4734done
4735
4736fi
4737fi
4738ac_ct_AR=$ac_cv_prog_ac_ct_AR
4739if test -n "$ac_ct_AR"; then
4740 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4741echo "${ECHO_T}$ac_ct_AR" >&6
4742else
4743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
4745fi
4746
4747 AR=$ac_ct_AR
4748else
4749 AR="$ac_cv_prog_AR"
4750fi
4751
4752if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4754set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4755echo "$as_me:$LINENO: checking for $ac_word" >&5
4756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4757if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 if test -n "$DLLTOOL"; then
4761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775done
4776
4777fi
4778fi
4779DLLTOOL=$ac_cv_prog_DLLTOOL
4780if test -n "$DLLTOOL"; then
4781 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4782echo "${ECHO_T}$DLLTOOL" >&6
4783else
4784 echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
4786fi
4787
4788fi
4789if test -z "$ac_cv_prog_DLLTOOL"; then
4790 ac_ct_DLLTOOL=$DLLTOOL
4791 # Extract the first word of "dlltool", so it can be a program name with args.
4792set dummy dlltool; ac_word=$2
4793echo "$as_me:$LINENO: checking for $ac_word" >&5
4794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798 if test -n "$ac_ct_DLLTOOL"; then
4799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812done
4813done
4814
4815fi
4816fi
4817ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4818if test -n "$ac_ct_DLLTOOL"; then
4819 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4820echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4821else
4822 echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6
4824fi
4825
4826 DLLTOOL=$ac_ct_DLLTOOL
4827else
4828 DLLTOOL="$ac_cv_prog_DLLTOOL"
4829fi
4830
4831if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4833set dummy ${ac_tool_prefix}windres; ac_word=$2
4834echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836if test "${ac_cv_prog_WINDRES+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839 if test -n "$WINDRES"; then
4840 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855
4856fi
4857fi
4858WINDRES=$ac_cv_prog_WINDRES
4859if test -n "$WINDRES"; then
4860 echo "$as_me:$LINENO: result: $WINDRES" >&5
4861echo "${ECHO_T}$WINDRES" >&6
4862else
4863 echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
4865fi
4866
4867fi
4868if test -z "$ac_cv_prog_WINDRES"; then
4869 ac_ct_WINDRES=$WINDRES
4870 # Extract the first word of "windres", so it can be a program name with args.
4871set dummy windres; ac_word=$2
4872echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877 if test -n "$ac_ct_WINDRES"; then
4878 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4879else
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_ac_ct_WINDRES="windres"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891done
4892done
4893
4894fi
4895fi
4896ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4897if test -n "$ac_ct_WINDRES"; then
4898 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4899echo "${ECHO_T}$ac_ct_WINDRES" >&6
4900else
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
4903fi
4904
4905 WINDRES=$ac_ct_WINDRES
4906else
4907 WINDRES="$ac_cv_prog_WINDRES"
4908fi
4909
4910
4911# Needed for GNU/Hurd.
4912if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4914set dummy ${ac_tool_prefix}mig; ac_word=$2
4915echo "$as_me:$LINENO: checking for $ac_word" >&5
4916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917if test "${ac_cv_prog_MIG+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919else
4920 if test -n "$MIG"; then
4921 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4933 fi
4934done
4935done
4936
4937fi
4938fi
4939MIG=$ac_cv_prog_MIG
4940if test -n "$MIG"; then
4941 echo "$as_me:$LINENO: result: $MIG" >&5
4942echo "${ECHO_T}$MIG" >&6
4943else
4944 echo "$as_me:$LINENO: result: no" >&5
4945echo "${ECHO_T}no" >&6
4946fi
4947
4948fi
4949if test -z "$ac_cv_prog_MIG"; then
4950 ac_ct_MIG=$MIG
4951 # Extract the first word of "mig", so it can be a program name with args.
4952set dummy mig; ac_word=$2
4953echo "$as_me:$LINENO: checking for $ac_word" >&5
4954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 if test -n "$ac_ct_MIG"; then
4959 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4960else
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_ac_ct_MIG="mig"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973done
4974
4975fi
4976fi
4977ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4978if test -n "$ac_ct_MIG"; then
4979 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4980echo "${ECHO_T}$ac_ct_MIG" >&6
4981else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984fi
4985
4986 MIG=$ac_ct_MIG
4987else
4988 MIG="$ac_cv_prog_MIG"
4989fi
4990
4991
4992# ---------------------- #
4993# Checks for libraries. #
4994# ---------------------- #
4995
4996# We might need to link with -lm; most simulators need it.
4997
4998echo "$as_me:$LINENO: checking for main in -lm" >&5
4999echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5000if test "${ac_cv_lib_m_main+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002else
5003 ac_check_lib_save_LIBS=$LIBS
5004LIBS="-lm $LIBS"
5005cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
5011
5012
5013int
5014main ()
5015{
5016main ();
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext conftest$ac_exeext
5022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_lib_m_main=yes
5044else
5045 echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048ac_cv_lib_m_main=no
5049fi
5050rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052LIBS=$ac_check_lib_save_LIBS
5053fi
5054echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5055echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5056if test $ac_cv_lib_m_main = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058#define HAVE_LIBM 1
5059_ACEOF
5060
5061 LIBS="-lm $LIBS"
5062
5063fi
5064
5065
5066# We need to link with -lw to get `wctype' on Solaris before Solaris
5067# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5068# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5069# is known to have this problem). Therefore we avoid libw if we can.
5070echo "$as_me:$LINENO: checking for wctype" >&5
5071echo $ECHO_N "checking for wctype... $ECHO_C" >&6
5072if test "${ac_cv_func_wctype+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5083#define wctype innocuous_wctype
5084
5085/* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char wctype (); below.
5087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 <limits.h> exists even on freestanding compilers. */
5089
5090#ifdef __STDC__
5091# include <limits.h>
5092#else
5093# include <assert.h>
5094#endif
5095
5096#undef wctype
5097
5098/* Override any gcc2 internal prototype to avoid an error. */
5099#ifdef __cplusplus
5100extern "C"
5101{
5102#endif
5103/* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105char wctype ();
5106/* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
5109#if defined (__stub_wctype) || defined (__stub___wctype)
5110choke me
5111#else
5112char (*f) () = wctype;
5113#endif
5114#ifdef __cplusplus
5115}
5116#endif
5117
5118int
5119main ()
5120{
5121return f != wctype;
5122 ;
5123 return 0;
5124}
5125_ACEOF
5126rm -f conftest.$ac_objext conftest$ac_exeext
5127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
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); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_func_wctype=yes
5149else
5150 echo "$as_me: failed program was:" >&5
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
5153ac_cv_func_wctype=no
5154fi
5155rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157fi
5158echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5159echo "${ECHO_T}$ac_cv_func_wctype" >&6
5160if test $ac_cv_func_wctype = yes; then
5161 :
5162else
5163
5164echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5165echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5166if test "${ac_cv_lib_w_wctype+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168else
5169 ac_check_lib_save_LIBS=$LIBS
5170LIBS="-lw $LIBS"
5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
5177
5178/* Override any gcc2 internal prototype to avoid an error. */
5179#ifdef __cplusplus
5180extern "C"
5181#endif
5182/* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5184char wctype ();
5185int
5186main ()
5187{
5188wctype ();
5189 ;
5190 return 0;
5191}
5192_ACEOF
5193rm -f conftest.$ac_objext conftest$ac_exeext
5194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_lib_w_wctype=yes
5216else
5217 echo "$as_me: failed program was:" >&5
5218sed 's/^/| /' conftest.$ac_ext >&5
5219
5220ac_cv_lib_w_wctype=no
5221fi
5222rm -f conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224LIBS=$ac_check_lib_save_LIBS
5225fi
5226echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5227echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5228if test $ac_cv_lib_w_wctype = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230#define HAVE_LIBW 1
5231_ACEOF
5232
5233 LIBS="-lw $LIBS"
5234
5235fi
5236
5237fi
5238
5239
5240# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5241echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5242echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5243if test "${ac_cv_search_gethostbyname+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246 ac_func_search_save_LIBS=$LIBS
5247ac_cv_search_gethostbyname=no
5248cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
5254
5255/* Override any gcc2 internal prototype to avoid an error. */
5256#ifdef __cplusplus
5257extern "C"
5258#endif
5259/* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5261char gethostbyname ();
5262int
5263main ()
5264{
5265gethostbyname ();
5266 ;
5267 return 0;
5268}
5269_ACEOF
5270rm -f conftest.$ac_objext conftest$ac_exeext
5271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -z "$ac_c_werror_flag"
5280 || test ! -s conftest.err'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_search_gethostbyname="none required"
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297fi
5298rm -f conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
5300if test "$ac_cv_search_gethostbyname" = no; then
5301 for ac_lib in nsl; do
5302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5303 cat >conftest.$ac_ext <<_ACEOF
5304/* confdefs.h. */
5305_ACEOF
5306cat confdefs.h >>conftest.$ac_ext
5307cat >>conftest.$ac_ext <<_ACEOF
5308/* end confdefs.h. */
5309
5310/* Override any gcc2 internal prototype to avoid an error. */
5311#ifdef __cplusplus
5312extern "C"
5313#endif
5314/* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5316char gethostbyname ();
5317int
5318main ()
5319{
5320gethostbyname ();
5321 ;
5322 return 0;
5323}
5324_ACEOF
5325rm -f conftest.$ac_objext conftest$ac_exeext
5326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_search_gethostbyname="-l$ac_lib"
5348break
5349else
5350 echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353fi
5354rm -f conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5356 done
5357fi
5358LIBS=$ac_func_search_save_LIBS
5359fi
5360echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5361echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5362if test "$ac_cv_search_gethostbyname" != no; then
5363 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5364
5365fi
5366
5367
5368# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5369echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5370echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5371if test "${ac_cv_search_socketpair+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 ac_func_search_save_LIBS=$LIBS
5375ac_cv_search_socketpair=no
5376cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382
5383/* Override any gcc2 internal prototype to avoid an error. */
5384#ifdef __cplusplus
5385extern "C"
5386#endif
5387/* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5389char socketpair ();
5390int
5391main ()
5392{
5393socketpair ();
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398rm -f conftest.$ac_objext conftest$ac_exeext
5399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5400 (eval $ac_link) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_search_socketpair="none required"
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425fi
5426rm -f conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428if test "$ac_cv_search_socketpair" = no; then
5429 for ac_lib in socket; do
5430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432/* confdefs.h. */
5433_ACEOF
5434cat confdefs.h >>conftest.$ac_ext
5435cat >>conftest.$ac_ext <<_ACEOF
5436/* end confdefs.h. */
5437
5438/* Override any gcc2 internal prototype to avoid an error. */
5439#ifdef __cplusplus
5440extern "C"
5441#endif
5442/* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5444char socketpair ();
5445int
5446main ()
5447{
5448socketpair ();
5449 ;
5450 return 0;
5451}
5452_ACEOF
5453rm -f conftest.$ac_objext conftest$ac_exeext
5454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_search_socketpair="-l$ac_lib"
5476break
5477else
5478 echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481fi
5482rm -f conftest.err conftest.$ac_objext \
5483 conftest$ac_exeext conftest.$ac_ext
5484 done
5485fi
5486LIBS=$ac_func_search_save_LIBS
5487fi
5488echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5489echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5490if test "$ac_cv_search_socketpair" != no; then
5491 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5492
5493fi
5494
5495
5496# For the TUI, we need enhanced curses functionality.
5497#
5498# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5499# curses library because the latter might not provide all the
5500# functionality we need. However, this leads to problems on systems
5501# where the linker searches /usr/local/lib, but the compiler doesn't
5502# search /usr/local/include, if ncurses is installed in /usr/local. A
5503# default installation of ncurses on alpha*-dec-osf* will lead to such
5504# a situation.
5505echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5506echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5507if test "${ac_cv_search_waddstr+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 ac_func_search_save_LIBS=$LIBS
5511ac_cv_search_waddstr=no
5512cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
5518
5519/* Override any gcc2 internal prototype to avoid an error. */
5520#ifdef __cplusplus
5521extern "C"
5522#endif
5523/* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5525char waddstr ();
5526int
5527main ()
5528{
5529waddstr ();
5530 ;
5531 return 0;
5532}
5533_ACEOF
5534rm -f conftest.$ac_objext conftest$ac_exeext
5535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_search_waddstr="none required"
5557else
5558 echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
5560
5561fi
5562rm -f conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564if test "$ac_cv_search_waddstr" = no; then
5565 for ac_lib in ncurses cursesX curses; do
5566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5567 cat >conftest.$ac_ext <<_ACEOF
5568/* confdefs.h. */
5569_ACEOF
5570cat confdefs.h >>conftest.$ac_ext
5571cat >>conftest.$ac_ext <<_ACEOF
5572/* end confdefs.h. */
5573
5574/* Override any gcc2 internal prototype to avoid an error. */
5575#ifdef __cplusplus
5576extern "C"
5577#endif
5578/* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5580char waddstr ();
5581int
5582main ()
5583{
5584waddstr ();
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext conftest$ac_exeext
5590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_search_waddstr="-l$ac_lib"
5612break
5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617fi
5618rm -f conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5620 done
5621fi
5622LIBS=$ac_func_search_save_LIBS
5623fi
5624echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5625echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5626if test "$ac_cv_search_waddstr" != no; then
5627 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5628
5629fi
5630
5631
5632# Since GDB uses Readline, we need termcap functionality. In many
5633# cases this will be provided by the curses library, but some systems
5634# have a seperate termcap library, or no curses library at all.
5635
5636case $host_os in
5637 cygwin*)
5638 if test -d $srcdir/libtermcap; then
5639 LIBS="../libtermcap/libtermcap.a $LIBS"
5640 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5641 fi ;;
5642 go32* | *djgpp*)
5643 ac_cv_search_tgetent="none required"
5644 ;;
5645 *mingw32*)
5646 ac_cv_search_tgetent="none required"
5647 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5648 ;;
5649esac
5650
5651# These are the libraries checked by Readline.
5652echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5653echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5654if test "${ac_cv_search_tgetent+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657 ac_func_search_save_LIBS=$LIBS
5658ac_cv_search_tgetent=no
5659cat >conftest.$ac_ext <<_ACEOF
5660/* confdefs.h. */
5661_ACEOF
5662cat confdefs.h >>conftest.$ac_ext
5663cat >>conftest.$ac_ext <<_ACEOF
5664/* end confdefs.h. */
5665
5666/* Override any gcc2 internal prototype to avoid an error. */
5667#ifdef __cplusplus
5668extern "C"
5669#endif
5670/* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5672char tgetent ();
5673int
5674main ()
5675{
5676tgetent ();
5677 ;
5678 return 0;
5679}
5680_ACEOF
5681rm -f conftest.$ac_objext conftest$ac_exeext
5682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_search_tgetent="none required"
5704else
5705 echo "$as_me: failed program was:" >&5
5706sed 's/^/| /' conftest.$ac_ext >&5
5707
5708fi
5709rm -f conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5711if test "$ac_cv_search_tgetent" = no; then
5712 for ac_lib in termcap tinfo curses ncurses; do
5713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5714 cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720
5721/* Override any gcc2 internal prototype to avoid an error. */
5722#ifdef __cplusplus
5723extern "C"
5724#endif
5725/* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5727char tgetent ();
5728int
5729main ()
5730{
5731tgetent ();
5732 ;
5733 return 0;
5734}
5735_ACEOF
5736rm -f conftest.$ac_objext conftest$ac_exeext
5737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest$ac_exeext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_search_tgetent="-l$ac_lib"
5759break
5760else
5761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764fi
5765rm -f conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5767 done
5768fi
5769LIBS=$ac_func_search_save_LIBS
5770fi
5771echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5772echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5773if test "$ac_cv_search_tgetent" != no; then
5774 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5775
5776fi
5777
5778
5779if test "$ac_cv_search_tgetent" = no; then
5780 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5781echo "$as_me: error: no termcap library found" >&2;}
5782 { (exit 1); exit 1; }; }
5783fi
5784
5785
5786# Check whether --with-system-readline or --without-system-readline was given.
5787if test "${with_system_readline+set}" = set; then
5788 withval="$with_system_readline"
5789
5790fi;
5791
5792if test "$with_system_readline" = yes; then
5793 READLINE=-lreadline
5794 READLINE_DEPS=
5795 READLINE_CFLAGS=
5796else
5797 READLINE='$(READLINE_DIR)/libreadline.a'
5798 READLINE_DEPS='$(READLINE)'
5799 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5800fi
5801
5802
5803
5804
5805
5806# Check whether --with-expat or --without-expat was given.
5807if test "${with_expat+set}" = set; then
5808 withval="$with_expat"
5809
5810else
5811 with_expat=auto
5812fi;
5813echo "$as_me:$LINENO: checking whether to use expat" >&5
5814echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5815echo "$as_me:$LINENO: result: $with_expat" >&5
5816echo "${ECHO_T}$with_expat" >&6
5817
5818if test "${with_expat}" = no; then
5819 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5820echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5821 HAVE_LIBEXPAT=no
5822else
5823
5824 if test "X$prefix" = "XNONE"; then
5825 acl_final_prefix="$ac_default_prefix"
5826 else
5827 acl_final_prefix="$prefix"
5828 fi
5829 if test "X$exec_prefix" = "XNONE"; then
5830 acl_final_exec_prefix='${prefix}'
5831 else
5832 acl_final_exec_prefix="$exec_prefix"
5833 fi
5834 acl_save_prefix="$prefix"
5835 prefix="$acl_final_prefix"
5836 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5837 prefix="$acl_save_prefix"
5838
5839
5840# Check whether --with-gnu-ld or --without-gnu-ld was given.
5841if test "${with_gnu_ld+set}" = set; then
5842 withval="$with_gnu_ld"
5843 test "$withval" = no || with_gnu_ld=yes
5844else
5845 with_gnu_ld=no
5846fi;
5847# Prepare PATH_SEPARATOR.
5848# The user is always right.
5849if test "${PATH_SEPARATOR+set}" != set; then
5850 echo "#! /bin/sh" >conf$$.sh
5851 echo "exit 0" >>conf$$.sh
5852 chmod +x conf$$.sh
5853 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5854 PATH_SEPARATOR=';'
5855 else
5856 PATH_SEPARATOR=:
5857 fi
5858 rm -f conf$$.sh
5859fi
5860ac_prog=ld
5861if test "$GCC" = yes; then
5862 # Check if gcc -print-prog-name=ld gives a path.
5863 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5864echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5865 case $host in
5866 *-*-mingw*)
5867 # gcc leaves a trailing carriage return which upsets mingw
5868 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5869 *)
5870 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5871 esac
5872 case $ac_prog in
5873 # Accept absolute paths.
5874 [\\/]* | [A-Za-z]:[\\/]*)
5875 re_direlt='/[^/][^/]*/\.\./'
5876 # Canonicalize the path of ld
5877 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5878 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5879 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5880 done
5881 test -z "$LD" && LD="$ac_prog"
5882 ;;
5883 "")
5884 # If it fails, then pretend we aren't using GCC.
5885 ac_prog=ld
5886 ;;
5887 *)
5888 # If it is relative, then search for the first ld in PATH.
5889 with_gnu_ld=unknown
5890 ;;
5891 esac
5892elif test "$with_gnu_ld" = yes; then
5893 echo "$as_me:$LINENO: checking for GNU ld" >&5
5894echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5895else
5896 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5897echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5898fi
5899if test "${acl_cv_path_LD+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902 if test -z "$LD"; then
5903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5904 for ac_dir in $PATH; do
5905 test -z "$ac_dir" && ac_dir=.
5906 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5907 acl_cv_path_LD="$ac_dir/$ac_prog"
5908 # Check to see if the program is GNU ld. I'd rather use --version,
5909 # but apparently some GNU ld's only accept -v.
5910 # Break only if it was the GNU/non-GNU ld that we prefer.
5911 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5912 test "$with_gnu_ld" != no && break
5913 else
5914 test "$with_gnu_ld" != yes && break
5915 fi
5916 fi
5917 done
5918 IFS="$ac_save_ifs"
5919else
5920 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5921fi
5922fi
5923
5924LD="$acl_cv_path_LD"
5925if test -n "$LD"; then
5926 echo "$as_me:$LINENO: result: $LD" >&5
5927echo "${ECHO_T}$LD" >&6
5928else
5929 echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931fi
5932test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5933echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5934 { (exit 1); exit 1; }; }
5935echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5936echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5937if test "${acl_cv_prog_gnu_ld+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939else
5940 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5941if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5942 acl_cv_prog_gnu_ld=yes
5943else
5944 acl_cv_prog_gnu_ld=no
5945fi
5946fi
5947echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5948echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5949with_gnu_ld=$acl_cv_prog_gnu_ld
5950
5951
5952
5953 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5954echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5955if test "${acl_cv_rpath+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958
5959 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5960 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5961 . ./conftest.sh
5962 rm -f ./conftest.sh
5963 acl_cv_rpath=done
5964
5965fi
5966echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5967echo "${ECHO_T}$acl_cv_rpath" >&6
5968 wl="$acl_cv_wl"
5969 libext="$acl_cv_libext"
5970 shlibext="$acl_cv_shlibext"
5971 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5972 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5973 hardcode_direct="$acl_cv_hardcode_direct"
5974 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5975 # Check whether --enable-rpath or --disable-rpath was given.
5976if test "${enable_rpath+set}" = set; then
5977 enableval="$enable_rpath"
5978 :
5979else
5980 enable_rpath=yes
5981fi;
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 use_additional=yes
5992
5993 acl_save_prefix="$prefix"
5994 prefix="$acl_final_prefix"
5995 acl_save_exec_prefix="$exec_prefix"
5996 exec_prefix="$acl_final_exec_prefix"
5997
5998 eval additional_includedir=\"$includedir\"
5999 eval additional_libdir=\"$libdir\"
6000
6001 exec_prefix="$acl_save_exec_prefix"
6002 prefix="$acl_save_prefix"
6003
6004
6005# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6006if test "${with_libexpat_prefix+set}" = set; then
6007 withval="$with_libexpat_prefix"
6008
6009 if test "X$withval" = "Xno"; then
6010 use_additional=no
6011 else
6012 if test "X$withval" = "X"; then
6013
6014 acl_save_prefix="$prefix"
6015 prefix="$acl_final_prefix"
6016 acl_save_exec_prefix="$exec_prefix"
6017 exec_prefix="$acl_final_exec_prefix"
6018
6019 eval additional_includedir=\"$includedir\"
6020 eval additional_libdir=\"$libdir\"
6021
6022 exec_prefix="$acl_save_exec_prefix"
6023 prefix="$acl_save_prefix"
6024
6025 else
6026 additional_includedir="$withval/include"
6027 additional_libdir="$withval/lib"
6028 fi
6029 fi
6030
6031fi;
6032 LIBEXPAT=
6033 LTLIBEXPAT=
6034 INCEXPAT=
6035 rpathdirs=
6036 ltrpathdirs=
6037 names_already_handled=
6038 names_next_round='expat '
6039 while test -n "$names_next_round"; do
6040 names_this_round="$names_next_round"
6041 names_next_round=
6042 for name in $names_this_round; do
6043 already_handled=
6044 for n in $names_already_handled; do
6045 if test "$n" = "$name"; then
6046 already_handled=yes
6047 break
6048 fi
6049 done
6050 if test -z "$already_handled"; then
6051 names_already_handled="$names_already_handled $name"
6052 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6053 eval value=\"\$HAVE_LIB$uppername\"
6054 if test -n "$value"; then
6055 if test "$value" = yes; then
6056 eval value=\"\$LIB$uppername\"
6057 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6058 eval value=\"\$LTLIB$uppername\"
6059 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6060 else
6061 :
6062 fi
6063 else
6064 found_dir=
6065 found_la=
6066 found_so=
6067 found_a=
6068 if test $use_additional = yes; then
6069 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6070 found_dir="$additional_libdir"
6071 found_so="$additional_libdir/lib$name.$shlibext"
6072 if test -f "$additional_libdir/lib$name.la"; then
6073 found_la="$additional_libdir/lib$name.la"
6074 fi
6075 else
6076 if test -f "$additional_libdir/lib$name.$libext"; then
6077 found_dir="$additional_libdir"
6078 found_a="$additional_libdir/lib$name.$libext"
6079 if test -f "$additional_libdir/lib$name.la"; then
6080 found_la="$additional_libdir/lib$name.la"
6081 fi
6082 fi
6083 fi
6084 fi
6085 if test "X$found_dir" = "X"; then
6086 for x in $LDFLAGS $LTLIBEXPAT; do
6087
6088 acl_save_prefix="$prefix"
6089 prefix="$acl_final_prefix"
6090 acl_save_exec_prefix="$exec_prefix"
6091 exec_prefix="$acl_final_exec_prefix"
6092 eval x=\"$x\"
6093 exec_prefix="$acl_save_exec_prefix"
6094 prefix="$acl_save_prefix"
6095
6096 case "$x" in
6097 -L*)
6098 dir=`echo "X$x" | sed -e 's/^X-L//'`
6099 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6100 found_dir="$dir"
6101 found_so="$dir/lib$name.$shlibext"
6102 if test -f "$dir/lib$name.la"; then
6103 found_la="$dir/lib$name.la"
6104 fi
6105 else
6106 if test -f "$dir/lib$name.$libext"; then
6107 found_dir="$dir"
6108 found_a="$dir/lib$name.$libext"
6109 if test -f "$dir/lib$name.la"; then
6110 found_la="$dir/lib$name.la"
6111 fi
6112 fi
6113 fi
6114 ;;
6115 esac
6116 if test "X$found_dir" != "X"; then
6117 break
6118 fi
6119 done
6120 fi
6121 if test "X$found_dir" != "X"; then
6122 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6123 if test "X$found_so" != "X"; then
6124 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6125 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6126 else
6127 haveit=
6128 for x in $ltrpathdirs; do
6129 if test "X$x" = "X$found_dir"; then
6130 haveit=yes
6131 break
6132 fi
6133 done
6134 if test -z "$haveit"; then
6135 ltrpathdirs="$ltrpathdirs $found_dir"
6136 fi
6137 if test "$hardcode_direct" = yes; then
6138 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6139 else
6140 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6141 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6142 haveit=
6143 for x in $rpathdirs; do
6144 if test "X$x" = "X$found_dir"; then
6145 haveit=yes
6146 break
6147 fi
6148 done
6149 if test -z "$haveit"; then
6150 rpathdirs="$rpathdirs $found_dir"
6151 fi
6152 else
6153 haveit=
6154 for x in $LDFLAGS $LIBEXPAT; do
6155
6156 acl_save_prefix="$prefix"
6157 prefix="$acl_final_prefix"
6158 acl_save_exec_prefix="$exec_prefix"
6159 exec_prefix="$acl_final_exec_prefix"
6160 eval x=\"$x\"
6161 exec_prefix="$acl_save_exec_prefix"
6162 prefix="$acl_save_prefix"
6163
6164 if test "X$x" = "X-L$found_dir"; then
6165 haveit=yes
6166 break
6167 fi
6168 done
6169 if test -z "$haveit"; then
6170 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6171 fi
6172 if test "$hardcode_minus_L" != no; then
6173 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6174 else
6175 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6176 fi
6177 fi
6178 fi
6179 fi
6180 else
6181 if test "X$found_a" != "X"; then
6182 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6183 else
6184 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6185 fi
6186 fi
6187 additional_includedir=
6188 case "$found_dir" in
6189 */lib | */lib/)
6190 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6191 additional_includedir="$basedir/include"
6192 ;;
6193 esac
6194 if test "X$additional_includedir" != "X"; then
6195 if test "X$additional_includedir" != "X/usr/include"; then
6196 haveit=
6197 if test "X$additional_includedir" = "X/usr/local/include"; then
6198 if test -n "$GCC"; then
6199 case $host_os in
6200 linux*) haveit=yes;;
6201 esac
6202 fi
6203 fi
6204 if test -z "$haveit"; then
6205 for x in $CPPFLAGS $INCEXPAT; do
6206
6207 acl_save_prefix="$prefix"
6208 prefix="$acl_final_prefix"
6209 acl_save_exec_prefix="$exec_prefix"
6210 exec_prefix="$acl_final_exec_prefix"
6211 eval x=\"$x\"
6212 exec_prefix="$acl_save_exec_prefix"
6213 prefix="$acl_save_prefix"
6214
6215 if test "X$x" = "X-I$additional_includedir"; then
6216 haveit=yes
6217 break
6218 fi
6219 done
6220 if test -z "$haveit"; then
6221 if test -d "$additional_includedir"; then
6222 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6223 fi
6224 fi
6225 fi
6226 fi
6227 fi
6228 if test -n "$found_la"; then
6229 save_libdir="$libdir"
6230 case "$found_la" in
6231 */* | *\\*) . "$found_la" ;;
6232 *) . "./$found_la" ;;
6233 esac
6234 libdir="$save_libdir"
6235 for dep in $dependency_libs; do
6236 case "$dep" in
6237 -L*)
6238 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6239 if test "X$additional_libdir" != "X/usr/lib"; then
6240 haveit=
6241 if test "X$additional_libdir" = "X/usr/local/lib"; then
6242 if test -n "$GCC"; then
6243 case $host_os in
6244 linux*) haveit=yes;;
6245 esac
6246 fi
6247 fi
6248 if test -z "$haveit"; then
6249 haveit=
6250 for x in $LDFLAGS $LIBEXPAT; do
6251
6252 acl_save_prefix="$prefix"
6253 prefix="$acl_final_prefix"
6254 acl_save_exec_prefix="$exec_prefix"
6255 exec_prefix="$acl_final_exec_prefix"
6256 eval x=\"$x\"
6257 exec_prefix="$acl_save_exec_prefix"
6258 prefix="$acl_save_prefix"
6259
6260 if test "X$x" = "X-L$additional_libdir"; then
6261 haveit=yes
6262 break
6263 fi
6264 done
6265 if test -z "$haveit"; then
6266 if test -d "$additional_libdir"; then
6267 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6268 fi
6269 fi
6270 haveit=
6271 for x in $LDFLAGS $LTLIBEXPAT; do
6272
6273 acl_save_prefix="$prefix"
6274 prefix="$acl_final_prefix"
6275 acl_save_exec_prefix="$exec_prefix"
6276 exec_prefix="$acl_final_exec_prefix"
6277 eval x=\"$x\"
6278 exec_prefix="$acl_save_exec_prefix"
6279 prefix="$acl_save_prefix"
6280
6281 if test "X$x" = "X-L$additional_libdir"; then
6282 haveit=yes
6283 break
6284 fi
6285 done
6286 if test -z "$haveit"; then
6287 if test -d "$additional_libdir"; then
6288 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6289 fi
6290 fi
6291 fi
6292 fi
6293 ;;
6294 -R*)
6295 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6296 if test "$enable_rpath" != no; then
6297 haveit=
6298 for x in $rpathdirs; do
6299 if test "X$x" = "X$dir"; then
6300 haveit=yes
6301 break
6302 fi
6303 done
6304 if test -z "$haveit"; then
6305 rpathdirs="$rpathdirs $dir"
6306 fi
6307 haveit=
6308 for x in $ltrpathdirs; do
6309 if test "X$x" = "X$dir"; then
6310 haveit=yes
6311 break
6312 fi
6313 done
6314 if test -z "$haveit"; then
6315 ltrpathdirs="$ltrpathdirs $dir"
6316 fi
6317 fi
6318 ;;
6319 -l*)
6320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6321 ;;
6322 *.la)
6323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6324 ;;
6325 *)
6326 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6327 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6328 ;;
6329 esac
6330 done
6331 fi
6332 else
6333 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6334 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6335 fi
6336 fi
6337 fi
6338 done
6339 done
6340 if test "X$rpathdirs" != "X"; then
6341 if test -n "$hardcode_libdir_separator"; then
6342 alldirs=
6343 for found_dir in $rpathdirs; do
6344 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6345 done
6346 acl_save_libdir="$libdir"
6347 libdir="$alldirs"
6348 eval flag=\"$hardcode_libdir_flag_spec\"
6349 libdir="$acl_save_libdir"
6350 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6351 else
6352 for found_dir in $rpathdirs; do
6353 acl_save_libdir="$libdir"
6354 libdir="$found_dir"
6355 eval flag=\"$hardcode_libdir_flag_spec\"
6356 libdir="$acl_save_libdir"
6357 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6358 done
6359 fi
6360 fi
6361 if test "X$ltrpathdirs" != "X"; then
6362 for found_dir in $ltrpathdirs; do
6363 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6364 done
6365 fi
6366
6367
6368 ac_save_CPPFLAGS="$CPPFLAGS"
6369
6370 for element in $INCEXPAT; do
6371 haveit=
6372 for x in $CPPFLAGS; do
6373
6374 acl_save_prefix="$prefix"
6375 prefix="$acl_final_prefix"
6376 acl_save_exec_prefix="$exec_prefix"
6377 exec_prefix="$acl_final_exec_prefix"
6378 eval x=\"$x\"
6379 exec_prefix="$acl_save_exec_prefix"
6380 prefix="$acl_save_prefix"
6381
6382 if test "X$x" = "X$element"; then
6383 haveit=yes
6384 break
6385 fi
6386 done
6387 if test -z "$haveit"; then
6388 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6389 fi
6390 done
6391
6392
6393 echo "$as_me:$LINENO: checking for libexpat" >&5
6394echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6395if test "${ac_cv_libexpat+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398
6399 ac_save_LIBS="$LIBS"
6400 LIBS="$LIBS $LIBEXPAT"
6401 cat >conftest.$ac_ext <<_ACEOF
6402/* confdefs.h. */
6403_ACEOF
6404cat confdefs.h >>conftest.$ac_ext
6405cat >>conftest.$ac_ext <<_ACEOF
6406/* end confdefs.h. */
6407#include "expat.h"
6408int
6409main ()
6410{
6411XML_Parser p = XML_ParserCreate (0);
6412 ;
6413 return 0;
6414}
6415_ACEOF
6416rm -f conftest.$ac_objext conftest$ac_exeext
6417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_libexpat=yes
6439else
6440 echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443ac_cv_libexpat=no
6444fi
6445rm -f conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
6447 LIBS="$ac_save_LIBS"
6448
6449fi
6450echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6451echo "${ECHO_T}$ac_cv_libexpat" >&6
6452 if test "$ac_cv_libexpat" = yes; then
6453 HAVE_LIBEXPAT=yes
6454
6455cat >>confdefs.h <<\_ACEOF
6456#define HAVE_LIBEXPAT 1
6457_ACEOF
6458
6459 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6460echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6461 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6462echo "${ECHO_T}$LIBEXPAT" >&6
6463 else
6464 HAVE_LIBEXPAT=no
6465 CPPFLAGS="$ac_save_CPPFLAGS"
6466 LIBEXPAT=
6467 LTLIBEXPAT=
6468 fi
6469
6470
6471
6472
6473
6474
6475 if test "$HAVE_LIBEXPAT" != yes; then
6476 if test "$with_expat" = yes; then
6477 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6478echo "$as_me: error: expat is missing or unusable" >&2;}
6479 { (exit 1); exit 1; }; }
6480 else
6481 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6482echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6483 fi
6484 else
6485 save_LIBS=$LIBS
6486 LIBS="$LIBS $LIBEXPAT"
6487
6488for ac_func in XML_StopParser
6489do
6490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6491echo "$as_me:$LINENO: checking for $ac_func" >&5
6492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_var+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h. */
6502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6504#define $ac_func innocuous_$ac_func
6505
6506/* System header to define __stub macros and hopefully few prototypes,
6507 which can conflict with char $ac_func (); below.
6508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6509 <limits.h> exists even on freestanding compilers. */
6510
6511#ifdef __STDC__
6512# include <limits.h>
6513#else
6514# include <assert.h>
6515#endif
6516
6517#undef $ac_func
6518
6519/* Override any gcc2 internal prototype to avoid an error. */
6520#ifdef __cplusplus
6521extern "C"
6522{
6523#endif
6524/* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6526char $ac_func ();
6527/* The GNU C library defines this for functions which it implements
6528 to always fail with ENOSYS. Some functions are actually named
6529 something starting with __ and the normal name is an alias. */
6530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6531choke me
6532#else
6533char (*f) () = $ac_func;
6534#endif
6535#ifdef __cplusplus
6536}
6537#endif
6538
6539int
6540main ()
6541{
6542return f != $ac_func;
6543 ;
6544 return 0;
6545}
6546_ACEOF
6547rm -f conftest.$ac_objext conftest$ac_exeext
6548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
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_exeext'
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 eval "$as_ac_var=yes"
6570else
6571 echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574eval "$as_ac_var=no"
6575fi
6576rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578fi
6579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6581if test `eval echo '${'$as_ac_var'}'` = yes; then
6582 cat >>confdefs.h <<_ACEOF
6583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6584_ACEOF
6585
6586fi
6587done
6588
6589 LIBS=$save_LIBS
6590 fi
6591fi
6592
6593# ------------------------- #
6594# Checks for header files. #
6595# ------------------------- #
6596
6597
6598
6599
6600
6601
6602ac_header_dirent=no
6603for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6604 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6605echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6606echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6607if eval "test \"\${$as_ac_Header+set}\" = set"; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h. */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h. */
6616#include <sys/types.h>
6617#include <$ac_hdr>
6618
6619int
6620main ()
6621{
6622if ((DIR *) 0)
6623return 0;
6624 ;
6625 return 0;
6626}
6627_ACEOF
6628rm -f conftest.$ac_objext
6629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag"
6638 || test ! -s conftest.err'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; } &&
6644 { ac_try='test -s conftest.$ac_objext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 eval "$as_ac_Header=yes"
6651else
6652 echo "$as_me: failed program was:" >&5
6653sed 's/^/| /' conftest.$ac_ext >&5
6654
6655eval "$as_ac_Header=no"
6656fi
6657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658fi
6659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6661if test `eval echo '${'$as_ac_Header'}'` = yes; then
6662 cat >>confdefs.h <<_ACEOF
6663#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6664_ACEOF
6665
6666ac_header_dirent=$ac_hdr; break
6667fi
6668
6669done
6670# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6671if test $ac_header_dirent = dirent.h; then
6672 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6673echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6674if test "${ac_cv_search_opendir+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677 ac_func_search_save_LIBS=$LIBS
6678ac_cv_search_opendir=no
6679cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h. */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h. */
6685
6686/* Override any gcc2 internal prototype to avoid an error. */
6687#ifdef __cplusplus
6688extern "C"
6689#endif
6690/* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6692char opendir ();
6693int
6694main ()
6695{
6696opendir ();
6697 ;
6698 return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
6702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_search_opendir="none required"
6724else
6725 echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728fi
6729rm -f conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731if test "$ac_cv_search_opendir" = no; then
6732 for ac_lib in dir; do
6733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6734 cat >conftest.$ac_ext <<_ACEOF
6735/* confdefs.h. */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h. */
6740
6741/* Override any gcc2 internal prototype to avoid an error. */
6742#ifdef __cplusplus
6743extern "C"
6744#endif
6745/* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6747char opendir ();
6748int
6749main ()
6750{
6751opendir ();
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756rm -f conftest.$ac_objext conftest$ac_exeext
6757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_search_opendir="-l$ac_lib"
6779break
6780else
6781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784fi
6785rm -f conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 done
6788fi
6789LIBS=$ac_func_search_save_LIBS
6790fi
6791echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6792echo "${ECHO_T}$ac_cv_search_opendir" >&6
6793if test "$ac_cv_search_opendir" != no; then
6794 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6795
6796fi
6797
6798else
6799 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6800echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6801if test "${ac_cv_search_opendir+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804 ac_func_search_save_LIBS=$LIBS
6805ac_cv_search_opendir=no
6806cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h. */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h. */
6812
6813/* Override any gcc2 internal prototype to avoid an error. */
6814#ifdef __cplusplus
6815extern "C"
6816#endif
6817/* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819char opendir ();
6820int
6821main ()
6822{
6823opendir ();
6824 ;
6825 return 0;
6826}
6827_ACEOF
6828rm -f conftest.$ac_objext conftest$ac_exeext
6829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag"
6838 || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_search_opendir="none required"
6851else
6852 echo "$as_me: failed program was:" >&5
6853sed 's/^/| /' conftest.$ac_ext >&5
6854
6855fi
6856rm -f conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858if test "$ac_cv_search_opendir" = no; then
6859 for ac_lib in x; do
6860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6861 cat >conftest.$ac_ext <<_ACEOF
6862/* confdefs.h. */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h. */
6867
6868/* Override any gcc2 internal prototype to avoid an error. */
6869#ifdef __cplusplus
6870extern "C"
6871#endif
6872/* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874char opendir ();
6875int
6876main ()
6877{
6878opendir ();
6879 ;
6880 return 0;
6881}
6882_ACEOF
6883rm -f conftest.$ac_objext conftest$ac_exeext
6884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885 (eval $ac_link) 2>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_cv_search_opendir="-l$ac_lib"
6906break
6907else
6908 echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911fi
6912rm -f conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 done
6915fi
6916LIBS=$ac_func_search_save_LIBS
6917fi
6918echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6919echo "${ECHO_T}$ac_cv_search_opendir" >&6
6920if test "$ac_cv_search_opendir" != no; then
6921 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6922
6923fi
6924
6925fi
6926
6927echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6928echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6929if test "${ac_cv_header_stat_broken+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938#include <sys/types.h>
6939#include <sys/stat.h>
6940
6941#if defined(S_ISBLK) && defined(S_IFDIR)
6942# if S_ISBLK (S_IFDIR)
6943You lose.
6944# endif
6945#endif
6946
6947#if defined(S_ISBLK) && defined(S_IFCHR)
6948# if S_ISBLK (S_IFCHR)
6949You lose.
6950# endif
6951#endif
6952
6953#if defined(S_ISLNK) && defined(S_IFREG)
6954# if S_ISLNK (S_IFREG)
6955You lose.
6956# endif
6957#endif
6958
6959#if defined(S_ISSOCK) && defined(S_IFREG)
6960# if S_ISSOCK (S_IFREG)
6961You lose.
6962# endif
6963#endif
6964
6965_ACEOF
6966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967 $EGREP "You lose" >/dev/null 2>&1; then
6968 ac_cv_header_stat_broken=yes
6969else
6970 ac_cv_header_stat_broken=no
6971fi
6972rm -f conftest*
6973
6974fi
6975echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6976echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6977if test $ac_cv_header_stat_broken = yes; then
6978
6979cat >>confdefs.h <<\_ACEOF
6980#define STAT_MACROS_BROKEN 1
6981_ACEOF
6982
6983fi
6984
6985echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6986echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6987if test "${ac_cv_header_stdc+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996#include <stdlib.h>
6997#include <stdarg.h>
6998#include <string.h>
6999#include <float.h>
7000
7001int
7002main ()
7003{
7004
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext
7010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_header_stdc=yes
7032else
7033 echo "$as_me: failed program was:" >&5
7034sed 's/^/| /' conftest.$ac_ext >&5
7035
7036ac_cv_header_stdc=no
7037fi
7038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039
7040if test $ac_cv_header_stdc = yes; then
7041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7042 cat >conftest.$ac_ext <<_ACEOF
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
7048#include <string.h>
7049
7050_ACEOF
7051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "memchr" >/dev/null 2>&1; then
7053 :
7054else
7055 ac_cv_header_stdc=no
7056fi
7057rm -f conftest*
7058
7059fi
7060
7061if test $ac_cv_header_stdc = yes; then
7062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063 cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h. */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h. */
7069#include <stdlib.h>
7070
7071_ACEOF
7072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "free" >/dev/null 2>&1; then
7074 :
7075else
7076 ac_cv_header_stdc=no
7077fi
7078rm -f conftest*
7079
7080fi
7081
7082if test $ac_cv_header_stdc = yes; then
7083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084 if test "$cross_compiling" = yes; then
7085 :
7086else
7087 cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h. */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h. */
7093#include <ctype.h>
7094#if ((' ' & 0x0FF) == 0x020)
7095# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7096# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7097#else
7098# define ISLOWER(c) \
7099 (('a' <= (c) && (c) <= 'i') \
7100 || ('j' <= (c) && (c) <= 'r') \
7101 || ('s' <= (c) && (c) <= 'z'))
7102# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7103#endif
7104
7105#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106int
7107main ()
7108{
7109 int i;
7110 for (i = 0; i < 256; i++)
7111 if (XOR (islower (i), ISLOWER (i))
7112 || toupper (i) != TOUPPER (i))
7113 exit(2);
7114 exit (0);
7115}
7116_ACEOF
7117rm -f conftest$ac_exeext
7118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 :
7129else
7130 echo "$as_me: program exited with status $ac_status" >&5
7131echo "$as_me: failed program was:" >&5
7132sed 's/^/| /' conftest.$ac_ext >&5
7133
7134( exit $ac_status )
7135ac_cv_header_stdc=no
7136fi
7137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7138fi
7139fi
7140fi
7141echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7142echo "${ECHO_T}$ac_cv_header_stdc" >&6
7143if test $ac_cv_header_stdc = yes; then
7144
7145cat >>confdefs.h <<\_ACEOF
7146#define STDC_HEADERS 1
7147_ACEOF
7148
7149fi
7150
7151
7152for ac_header in nlist.h
7153do
7154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7155if eval "test \"\${$as_ac_Header+set}\" = set"; then
7156 echo "$as_me:$LINENO: checking for $ac_header" >&5
7157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158if eval "test \"\${$as_ac_Header+set}\" = set"; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160fi
7161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7163else
7164 # Is the header compilable?
7165echo "$as_me:$LINENO: checking $ac_header usability" >&5
7166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7167cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h. */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h. */
7173$ac_includes_default
7174#include <$ac_header>
7175_ACEOF
7176rm -f conftest.$ac_objext
7177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178 (eval $ac_compile) 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest.$ac_objext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_header_compiler=yes
7199else
7200 echo "$as_me: failed program was:" >&5
7201sed 's/^/| /' conftest.$ac_ext >&5
7202
7203ac_header_compiler=no
7204fi
7205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7207echo "${ECHO_T}$ac_header_compiler" >&6
7208
7209# Is the header present?
7210echo "$as_me:$LINENO: checking $ac_header presence" >&5
7211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7212cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h. */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h. */
7218#include <$ac_header>
7219_ACEOF
7220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } >/dev/null; then
7228 if test -s conftest.err; then
7229 ac_cpp_err=$ac_c_preproc_warn_flag
7230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7231 else
7232 ac_cpp_err=
7233 fi
7234else
7235 ac_cpp_err=yes
7236fi
7237if test -z "$ac_cpp_err"; then
7238 ac_header_preproc=yes
7239else
7240 echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_preproc=no
7244fi
7245rm -f conftest.err conftest.$ac_ext
7246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247echo "${ECHO_T}$ac_header_preproc" >&6
7248
7249# So? What about this header?
7250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7251 yes:no: )
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7256 ac_header_preproc=yes
7257 ;;
7258 no:yes:* )
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7271 (
7272 cat <<\_ASBOX
7273## ------------------------------------------ ##
7274## Report this to the AC_PACKAGE_NAME lists. ##
7275## ------------------------------------------ ##
7276_ASBOX
7277 ) |
7278 sed "s/^/$as_me: WARNING: /" >&2
7279 ;;
7280esac
7281echo "$as_me:$LINENO: checking for $ac_header" >&5
7282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7283if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286 eval "$as_ac_Header=\$ac_header_preproc"
7287fi
7288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7290
7291fi
7292if test `eval echo '${'$as_ac_Header'}'` = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295_ACEOF
7296
7297fi
7298
7299done
7300
7301
7302for ac_header in link.h
7303do
7304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7305echo "$as_me:$LINENO: checking for $ac_header" >&5
7306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7307if eval "test \"\${$as_ac_Header+set}\" = set"; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310 cat >conftest.$ac_ext <<_ACEOF
7311/* confdefs.h. */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h. */
7316#if HAVE_SYS_TYPES_H
7317# include <sys/types.h>
7318#endif
7319#if HAVE_NLIST_H
7320# include <nlist.h>
7321#endif
7322
7323
7324#include <$ac_header>
7325_ACEOF
7326rm -f conftest.$ac_objext
7327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 eval "$as_ac_Header=yes"
7349else
7350 echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
7353eval "$as_ac_Header=no"
7354fi
7355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7356fi
7357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7359if test `eval echo '${'$as_ac_Header'}'` = yes; then
7360 cat >>confdefs.h <<_ACEOF
7361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7362_ACEOF
7363
7364fi
7365
7366done
7367
7368
7369for ac_header in machine/reg.h
7370do
7371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377fi
7378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7380else
7381 # Is the header compilable?
7382echo "$as_me:$LINENO: checking $ac_header usability" >&5
7383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7384cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h. */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h. */
7390$ac_includes_default
7391#include <$ac_header>
7392_ACEOF
7393rm -f conftest.$ac_objext
7394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395 (eval $ac_compile) 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest.$ac_objext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_header_compiler=yes
7416else
7417 echo "$as_me: failed program was:" >&5
7418sed 's/^/| /' conftest.$ac_ext >&5
7419
7420ac_header_compiler=no
7421fi
7422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7424echo "${ECHO_T}$ac_header_compiler" >&6
7425
7426# Is the header present?
7427echo "$as_me:$LINENO: checking $ac_header presence" >&5
7428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7429cat >conftest.$ac_ext <<_ACEOF
7430/* confdefs.h. */
7431_ACEOF
7432cat confdefs.h >>conftest.$ac_ext
7433cat >>conftest.$ac_ext <<_ACEOF
7434/* end confdefs.h. */
7435#include <$ac_header>
7436_ACEOF
7437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev/null; then
7445 if test -s conftest.err; then
7446 ac_cpp_err=$ac_c_preproc_warn_flag
7447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7448 else
7449 ac_cpp_err=
7450 fi
7451else
7452 ac_cpp_err=yes
7453fi
7454if test -z "$ac_cpp_err"; then
7455 ac_header_preproc=yes
7456else
7457 echo "$as_me: failed program was:" >&5
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460 ac_header_preproc=no
7461fi
7462rm -f conftest.err conftest.$ac_ext
7463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7464echo "${ECHO_T}$ac_header_preproc" >&6
7465
7466# So? What about this header?
7467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7468 yes:no: )
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7473 ac_header_preproc=yes
7474 ;;
7475 no:yes:* )
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7488 (
7489 cat <<\_ASBOX
7490## ------------------------------------------ ##
7491## Report this to the AC_PACKAGE_NAME lists. ##
7492## ------------------------------------------ ##
7493_ASBOX
7494 ) |
7495 sed "s/^/$as_me: WARNING: /" >&2
7496 ;;
7497esac
7498echo "$as_me:$LINENO: checking for $ac_header" >&5
7499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7500if eval "test \"\${$as_ac_Header+set}\" = set"; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502else
7503 eval "$as_ac_Header=\$ac_header_preproc"
7504fi
7505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507
7508fi
7509if test `eval echo '${'$as_ac_Header'}'` = yes; then
7510 cat >>confdefs.h <<_ACEOF
7511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512_ACEOF
7513
7514fi
7515
7516done
7517
7518
7519
7520for ac_header in poll.h sys/poll.h
7521do
7522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7523if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524 echo "$as_me:$LINENO: checking for $ac_header" >&5
7525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7526if eval "test \"\${$as_ac_Header+set}\" = set"; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528fi
7529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7531else
7532 # Is the header compilable?
7533echo "$as_me:$LINENO: checking $ac_header usability" >&5
7534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7535cat >conftest.$ac_ext <<_ACEOF
7536/* confdefs.h. */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h. */
7541$ac_includes_default
7542#include <$ac_header>
7543_ACEOF
7544rm -f conftest.$ac_objext
7545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -z "$ac_c_werror_flag"
7554 || test ! -s conftest.err'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; } &&
7560 { ac_try='test -s conftest.$ac_objext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_header_compiler=yes
7567else
7568 echo "$as_me: failed program was:" >&5
7569sed 's/^/| /' conftest.$ac_ext >&5
7570
7571ac_header_compiler=no
7572fi
7573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7575echo "${ECHO_T}$ac_header_compiler" >&6
7576
7577# Is the header present?
7578echo "$as_me:$LINENO: checking $ac_header presence" >&5
7579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7580cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
7586#include <$ac_header>
7587_ACEOF
7588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } >/dev/null; then
7596 if test -s conftest.err; then
7597 ac_cpp_err=$ac_c_preproc_warn_flag
7598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7599 else
7600 ac_cpp_err=
7601 fi
7602else
7603 ac_cpp_err=yes
7604fi
7605if test -z "$ac_cpp_err"; then
7606 ac_header_preproc=yes
7607else
7608 echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_header_preproc=no
7612fi
7613rm -f conftest.err conftest.$ac_ext
7614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7615echo "${ECHO_T}$ac_header_preproc" >&6
7616
7617# So? What about this header?
7618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7619 yes:no: )
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7624 ac_header_preproc=yes
7625 ;;
7626 no:yes:* )
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7639 (
7640 cat <<\_ASBOX
7641## ------------------------------------------ ##
7642## Report this to the AC_PACKAGE_NAME lists. ##
7643## ------------------------------------------ ##
7644_ASBOX
7645 ) |
7646 sed "s/^/$as_me: WARNING: /" >&2
7647 ;;
7648esac
7649echo "$as_me:$LINENO: checking for $ac_header" >&5
7650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 eval "$as_ac_Header=\$ac_header_preproc"
7655fi
7656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658
7659fi
7660if test `eval echo '${'$as_ac_Header'}'` = yes; then
7661 cat >>confdefs.h <<_ACEOF
7662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7663_ACEOF
7664
7665fi
7666
7667done
7668
7669
7670
7671
7672for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7673do
7674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7675if eval "test \"\${$as_ac_Header+set}\" = set"; then
7676 echo "$as_me:$LINENO: checking for $ac_header" >&5
7677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7678if eval "test \"\${$as_ac_Header+set}\" = set"; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680fi
7681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7683else
7684 # Is the header compilable?
7685echo "$as_me:$LINENO: checking $ac_header usability" >&5
7686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7687cat >conftest.$ac_ext <<_ACEOF
7688/* confdefs.h. */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h. */
7693$ac_includes_default
7694#include <$ac_header>
7695_ACEOF
7696rm -f conftest.$ac_objext
7697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_header_compiler=yes
7719else
7720 echo "$as_me: failed program was:" >&5
7721sed 's/^/| /' conftest.$ac_ext >&5
7722
7723ac_header_compiler=no
7724fi
7725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7727echo "${ECHO_T}$ac_header_compiler" >&6
7728
7729# Is the header present?
7730echo "$as_me:$LINENO: checking $ac_header presence" >&5
7731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7732cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
7738#include <$ac_header>
7739_ACEOF
7740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } >/dev/null; then
7748 if test -s conftest.err; then
7749 ac_cpp_err=$ac_c_preproc_warn_flag
7750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7751 else
7752 ac_cpp_err=
7753 fi
7754else
7755 ac_cpp_err=yes
7756fi
7757if test -z "$ac_cpp_err"; then
7758 ac_header_preproc=yes
7759else
7760 echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_header_preproc=no
7764fi
7765rm -f conftest.err conftest.$ac_ext
7766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7767echo "${ECHO_T}$ac_header_preproc" >&6
7768
7769# So? What about this header?
7770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7771 yes:no: )
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7776 ac_header_preproc=yes
7777 ;;
7778 no:yes:* )
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7791 (
7792 cat <<\_ASBOX
7793## ------------------------------------------ ##
7794## Report this to the AC_PACKAGE_NAME lists. ##
7795## ------------------------------------------ ##
7796_ASBOX
7797 ) |
7798 sed "s/^/$as_me: WARNING: /" >&2
7799 ;;
7800esac
7801echo "$as_me:$LINENO: checking for $ac_header" >&5
7802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7803if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806 eval "$as_ac_Header=\$ac_header_preproc"
7807fi
7808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7810
7811fi
7812if test `eval echo '${'$as_ac_Header'}'` = yes; then
7813 cat >>confdefs.h <<_ACEOF
7814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7815_ACEOF
7816
7817fi
7818
7819done
7820
7821
7822for ac_header in signal.h
7823do
7824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7825if eval "test \"\${$as_ac_Header+set}\" = set"; then
7826 echo "$as_me:$LINENO: checking for $ac_header" >&5
7827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7828if eval "test \"\${$as_ac_Header+set}\" = set"; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830fi
7831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7833else
7834 # Is the header compilable?
7835echo "$as_me:$LINENO: checking $ac_header usability" >&5
7836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7837cat >conftest.$ac_ext <<_ACEOF
7838/* confdefs.h. */
7839_ACEOF
7840cat confdefs.h >>conftest.$ac_ext
7841cat >>conftest.$ac_ext <<_ACEOF
7842/* end confdefs.h. */
7843$ac_includes_default
7844#include <$ac_header>
7845_ACEOF
7846rm -f conftest.$ac_objext
7847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7848 (eval $ac_compile) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_header_compiler=yes
7869else
7870 echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873ac_header_compiler=no
7874fi
7875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7877echo "${ECHO_T}$ac_header_compiler" >&6
7878
7879# Is the header present?
7880echo "$as_me:$LINENO: checking $ac_header presence" >&5
7881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7882cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h. */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h. */
7888#include <$ac_header>
7889_ACEOF
7890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } >/dev/null; then
7898 if test -s conftest.err; then
7899 ac_cpp_err=$ac_c_preproc_warn_flag
7900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7901 else
7902 ac_cpp_err=
7903 fi
7904else
7905 ac_cpp_err=yes
7906fi
7907if test -z "$ac_cpp_err"; then
7908 ac_header_preproc=yes
7909else
7910 echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ac_header_preproc=no
7914fi
7915rm -f conftest.err conftest.$ac_ext
7916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7917echo "${ECHO_T}$ac_header_preproc" >&6
7918
7919# So? What about this header?
7920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7921 yes:no: )
7922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7926 ac_header_preproc=yes
7927 ;;
7928 no:yes:* )
7929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7941 (
7942 cat <<\_ASBOX
7943## ------------------------------------------ ##
7944## Report this to the AC_PACKAGE_NAME lists. ##
7945## ------------------------------------------ ##
7946_ASBOX
7947 ) |
7948 sed "s/^/$as_me: WARNING: /" >&2
7949 ;;
7950esac
7951echo "$as_me:$LINENO: checking for $ac_header" >&5
7952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7953if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 eval "$as_ac_Header=\$ac_header_preproc"
7957fi
7958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7960
7961fi
7962if test `eval echo '${'$as_ac_Header'}'` = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965_ACEOF
7966
7967fi
7968
7969done
7970
7971
7972for ac_header in stddef.h
7973do
7974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7975if eval "test \"\${$as_ac_Header+set}\" = set"; then
7976 echo "$as_me:$LINENO: checking for $ac_header" >&5
7977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7978if eval "test \"\${$as_ac_Header+set}\" = set"; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980fi
7981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7983else
7984 # Is the header compilable?
7985echo "$as_me:$LINENO: checking $ac_header usability" >&5
7986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7987cat >conftest.$ac_ext <<_ACEOF
7988/* confdefs.h. */
7989_ACEOF
7990cat confdefs.h >>conftest.$ac_ext
7991cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h. */
7993$ac_includes_default
7994#include <$ac_header>
7995_ACEOF
7996rm -f conftest.$ac_objext
7997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>conftest.er1
7999 ac_status=$?
8000 grep -v '^ *+' conftest.er1 >conftest.err
8001 rm -f conftest.er1
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag"
8006 || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_header_compiler=yes
8019else
8020 echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023ac_header_compiler=no
8024fi
8025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8027echo "${ECHO_T}$ac_header_compiler" >&6
8028
8029# Is the header present?
8030echo "$as_me:$LINENO: checking $ac_header presence" >&5
8031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8032cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h. */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h. */
8038#include <$ac_header>
8039_ACEOF
8040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } >/dev/null; then
8048 if test -s conftest.err; then
8049 ac_cpp_err=$ac_c_preproc_warn_flag
8050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8051 else
8052 ac_cpp_err=
8053 fi
8054else
8055 ac_cpp_err=yes
8056fi
8057if test -z "$ac_cpp_err"; then
8058 ac_header_preproc=yes
8059else
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_header_preproc=no
8064fi
8065rm -f conftest.err conftest.$ac_ext
8066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8067echo "${ECHO_T}$ac_header_preproc" >&6
8068
8069# So? What about this header?
8070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8071 yes:no: )
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8076 ac_header_preproc=yes
8077 ;;
8078 no:yes:* )
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8091 (
8092 cat <<\_ASBOX
8093## ------------------------------------------ ##
8094## Report this to the AC_PACKAGE_NAME lists. ##
8095## ------------------------------------------ ##
8096_ASBOX
8097 ) |
8098 sed "s/^/$as_me: WARNING: /" >&2
8099 ;;
8100esac
8101echo "$as_me:$LINENO: checking for $ac_header" >&5
8102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8103if eval "test \"\${$as_ac_Header+set}\" = set"; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 eval "$as_ac_Header=\$ac_header_preproc"
8107fi
8108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8110
8111fi
8112if test `eval echo '${'$as_ac_Header'}'` = yes; then
8113 cat >>confdefs.h <<_ACEOF
8114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8115_ACEOF
8116
8117fi
8118
8119done
8120
8121
8122for ac_header in stdlib.h
8123do
8124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8125if eval "test \"\${$as_ac_Header+set}\" = set"; then
8126 echo "$as_me:$LINENO: checking for $ac_header" >&5
8127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8128if eval "test \"\${$as_ac_Header+set}\" = set"; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130fi
8131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133else
8134 # Is the header compilable?
8135echo "$as_me:$LINENO: checking $ac_header usability" >&5
8136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8137cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h. */
8143$ac_includes_default
8144#include <$ac_header>
8145_ACEOF
8146rm -f conftest.$ac_objext
8147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -z "$ac_c_werror_flag"
8156 || test ! -s conftest.err'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest.$ac_objext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_header_compiler=yes
8169else
8170 echo "$as_me: failed program was:" >&5
8171sed 's/^/| /' conftest.$ac_ext >&5
8172
8173ac_header_compiler=no
8174fi
8175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177echo "${ECHO_T}$ac_header_compiler" >&6
8178
8179# Is the header present?
8180echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8182cat >conftest.$ac_ext <<_ACEOF
8183/* confdefs.h. */
8184_ACEOF
8185cat confdefs.h >>conftest.$ac_ext
8186cat >>conftest.$ac_ext <<_ACEOF
8187/* end confdefs.h. */
8188#include <$ac_header>
8189_ACEOF
8190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8198 if test -s conftest.err; then
8199 ac_cpp_err=$ac_c_preproc_warn_flag
8200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8201 else
8202 ac_cpp_err=
8203 fi
8204else
8205 ac_cpp_err=yes
8206fi
8207if test -z "$ac_cpp_err"; then
8208 ac_header_preproc=yes
8209else
8210 echo "$as_me: failed program was:" >&5
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_header_preproc=no
8214fi
8215rm -f conftest.err conftest.$ac_ext
8216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8217echo "${ECHO_T}$ac_header_preproc" >&6
8218
8219# So? What about this header?
8220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8221 yes:no: )
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8226 ac_header_preproc=yes
8227 ;;
8228 no:yes:* )
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8241 (
8242 cat <<\_ASBOX
8243## ------------------------------------------ ##
8244## Report this to the AC_PACKAGE_NAME lists. ##
8245## ------------------------------------------ ##
8246_ASBOX
8247 ) |
8248 sed "s/^/$as_me: WARNING: /" >&2
8249 ;;
8250esac
8251echo "$as_me:$LINENO: checking for $ac_header" >&5
8252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8255else
8256 eval "$as_ac_Header=\$ac_header_preproc"
8257fi
8258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8260
8261fi
8262if test `eval echo '${'$as_ac_Header'}'` = yes; then
8263 cat >>confdefs.h <<_ACEOF
8264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265_ACEOF
8266
8267fi
8268
8269done
8270
8271
8272for ac_header in stdint.h
8273do
8274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8275if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276 echo "$as_me:$LINENO: checking for $ac_header" >&5
8277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8278if eval "test \"\${$as_ac_Header+set}\" = set"; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280fi
8281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8283else
8284 # Is the header compilable?
8285echo "$as_me:$LINENO: checking $ac_header usability" >&5
8286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8287cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h. */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h. */
8293$ac_includes_default
8294#include <$ac_header>
8295_ACEOF
8296rm -f conftest.$ac_objext
8297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_header_compiler=yes
8319else
8320 echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
8323ac_header_compiler=no
8324fi
8325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8327echo "${ECHO_T}$ac_header_compiler" >&6
8328
8329# Is the header present?
8330echo "$as_me:$LINENO: checking $ac_header presence" >&5
8331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8332cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h. */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h. */
8338#include <$ac_header>
8339_ACEOF
8340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } >/dev/null; then
8348 if test -s conftest.err; then
8349 ac_cpp_err=$ac_c_preproc_warn_flag
8350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8351 else
8352 ac_cpp_err=
8353 fi
8354else
8355 ac_cpp_err=yes
8356fi
8357if test -z "$ac_cpp_err"; then
8358 ac_header_preproc=yes
8359else
8360 echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_header_preproc=no
8364fi
8365rm -f conftest.err conftest.$ac_ext
8366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8367echo "${ECHO_T}$ac_header_preproc" >&6
8368
8369# So? What about this header?
8370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8371 yes:no: )
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8376 ac_header_preproc=yes
8377 ;;
8378 no:yes:* )
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8382echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8386echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8391 (
8392 cat <<\_ASBOX
8393## ------------------------------------------ ##
8394## Report this to the AC_PACKAGE_NAME lists. ##
8395## ------------------------------------------ ##
8396_ASBOX
8397 ) |
8398 sed "s/^/$as_me: WARNING: /" >&2
8399 ;;
8400esac
8401echo "$as_me:$LINENO: checking for $ac_header" >&5
8402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8403if eval "test \"\${$as_ac_Header+set}\" = set"; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405else
8406 eval "$as_ac_Header=\$ac_header_preproc"
8407fi
8408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8410
8411fi
8412if test `eval echo '${'$as_ac_Header'}'` = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8415_ACEOF
8416
8417fi
8418
8419done
8420
8421
8422
8423
8424for ac_header in string.h memory.h strings.h
8425do
8426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8427if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428 echo "$as_me:$LINENO: checking for $ac_header" >&5
8429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8430if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432fi
8433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8435else
8436 # Is the header compilable?
8437echo "$as_me:$LINENO: checking $ac_header usability" >&5
8438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8439cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445$ac_includes_default
8446#include <$ac_header>
8447_ACEOF
8448rm -f conftest.$ac_objext
8449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450 (eval $ac_compile) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_header_compiler=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475ac_header_compiler=no
8476fi
8477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8479echo "${ECHO_T}$ac_header_compiler" >&6
8480
8481# Is the header present?
8482echo "$as_me:$LINENO: checking $ac_header presence" >&5
8483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8484cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
8490#include <$ac_header>
8491_ACEOF
8492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } >/dev/null; then
8500 if test -s conftest.err; then
8501 ac_cpp_err=$ac_c_preproc_warn_flag
8502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8503 else
8504 ac_cpp_err=
8505 fi
8506else
8507 ac_cpp_err=yes
8508fi
8509if test -z "$ac_cpp_err"; then
8510 ac_header_preproc=yes
8511else
8512 echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ac_header_preproc=no
8516fi
8517rm -f conftest.err conftest.$ac_ext
8518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8519echo "${ECHO_T}$ac_header_preproc" >&6
8520
8521# So? What about this header?
8522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8523 yes:no: )
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8528 ac_header_preproc=yes
8529 ;;
8530 no:yes:* )
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8543 (
8544 cat <<\_ASBOX
8545## ------------------------------------------ ##
8546## Report this to the AC_PACKAGE_NAME lists. ##
8547## ------------------------------------------ ##
8548_ASBOX
8549 ) |
8550 sed "s/^/$as_me: WARNING: /" >&2
8551 ;;
8552esac
8553echo "$as_me:$LINENO: checking for $ac_header" >&5
8554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8555if eval "test \"\${$as_ac_Header+set}\" = set"; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558 eval "$as_ac_Header=\$ac_header_preproc"
8559fi
8560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8562
8563fi
8564if test `eval echo '${'$as_ac_Header'}'` = yes; then
8565 cat >>confdefs.h <<_ACEOF
8566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8567_ACEOF
8568
8569fi
8570
8571done
8572
8573
8574for ac_header in sys/fault.h
8575do
8576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8577if eval "test \"\${$as_ac_Header+set}\" = set"; then
8578 echo "$as_me:$LINENO: checking for $ac_header" >&5
8579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8580if eval "test \"\${$as_ac_Header+set}\" = set"; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582fi
8583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8585else
8586 # Is the header compilable?
8587echo "$as_me:$LINENO: checking $ac_header usability" >&5
8588echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8589cat >conftest.$ac_ext <<_ACEOF
8590/* confdefs.h. */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
8594/* end confdefs.h. */
8595$ac_includes_default
8596#include <$ac_header>
8597_ACEOF
8598rm -f conftest.$ac_objext
8599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_header_compiler=yes
8621else
8622 echo "$as_me: failed program was:" >&5
8623sed 's/^/| /' conftest.$ac_ext >&5
8624
8625ac_header_compiler=no
8626fi
8627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8629echo "${ECHO_T}$ac_header_compiler" >&6
8630
8631# Is the header present?
8632echo "$as_me:$LINENO: checking $ac_header presence" >&5
8633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8634cat >conftest.$ac_ext <<_ACEOF
8635/* confdefs.h. */
8636_ACEOF
8637cat confdefs.h >>conftest.$ac_ext
8638cat >>conftest.$ac_ext <<_ACEOF
8639/* end confdefs.h. */
8640#include <$ac_header>
8641_ACEOF
8642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } >/dev/null; then
8650 if test -s conftest.err; then
8651 ac_cpp_err=$ac_c_preproc_warn_flag
8652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8653 else
8654 ac_cpp_err=
8655 fi
8656else
8657 ac_cpp_err=yes
8658fi
8659if test -z "$ac_cpp_err"; then
8660 ac_header_preproc=yes
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 ac_header_preproc=no
8666fi
8667rm -f conftest.err conftest.$ac_ext
8668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8669echo "${ECHO_T}$ac_header_preproc" >&6
8670
8671# So? What about this header?
8672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8673 yes:no: )
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8678 ac_header_preproc=yes
8679 ;;
8680 no:yes:* )
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8693 (
8694 cat <<\_ASBOX
8695## ------------------------------------------ ##
8696## Report this to the AC_PACKAGE_NAME lists. ##
8697## ------------------------------------------ ##
8698_ASBOX
8699 ) |
8700 sed "s/^/$as_me: WARNING: /" >&2
8701 ;;
8702esac
8703echo "$as_me:$LINENO: checking for $ac_header" >&5
8704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707else
8708 eval "$as_ac_Header=\$ac_header_preproc"
8709fi
8710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8712
8713fi
8714if test `eval echo '${'$as_ac_Header'}'` = yes; then
8715 cat >>confdefs.h <<_ACEOF
8716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717_ACEOF
8718
8719fi
8720
8721done
8722
8723
8724for ac_header in sys/file.h
8725do
8726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8727if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo "$as_me:$LINENO: checking for $ac_header" >&5
8729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8730if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732fi
8733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735else
8736 # Is the header compilable?
8737echo "$as_me:$LINENO: checking $ac_header usability" >&5
8738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8739cat >conftest.$ac_ext <<_ACEOF
8740/* confdefs.h. */
8741_ACEOF
8742cat confdefs.h >>conftest.$ac_ext
8743cat >>conftest.$ac_ext <<_ACEOF
8744/* end confdefs.h. */
8745$ac_includes_default
8746#include <$ac_header>
8747_ACEOF
8748rm -f conftest.$ac_objext
8749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_c_werror_flag"
8758 || test ! -s conftest.err'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest.$ac_objext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_header_compiler=yes
8771else
8772 echo "$as_me: failed program was:" >&5
8773sed 's/^/| /' conftest.$ac_ext >&5
8774
8775ac_header_compiler=no
8776fi
8777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8779echo "${ECHO_T}$ac_header_compiler" >&6
8780
8781# Is the header present?
8782echo "$as_me:$LINENO: checking $ac_header presence" >&5
8783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8784cat >conftest.$ac_ext <<_ACEOF
8785/* confdefs.h. */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h. */
8790#include <$ac_header>
8791_ACEOF
8792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } >/dev/null; then
8800 if test -s conftest.err; then
8801 ac_cpp_err=$ac_c_preproc_warn_flag
8802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8803 else
8804 ac_cpp_err=
8805 fi
8806else
8807 ac_cpp_err=yes
8808fi
8809if test -z "$ac_cpp_err"; then
8810 ac_header_preproc=yes
8811else
8812 echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_header_preproc=no
8816fi
8817rm -f conftest.err conftest.$ac_ext
8818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8819echo "${ECHO_T}$ac_header_preproc" >&6
8820
8821# So? What about this header?
8822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8823 yes:no: )
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8828 ac_header_preproc=yes
8829 ;;
8830 no:yes:* )
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8843 (
8844 cat <<\_ASBOX
8845## ------------------------------------------ ##
8846## Report this to the AC_PACKAGE_NAME lists. ##
8847## ------------------------------------------ ##
8848_ASBOX
8849 ) |
8850 sed "s/^/$as_me: WARNING: /" >&2
8851 ;;
8852esac
8853echo "$as_me:$LINENO: checking for $ac_header" >&5
8854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8855if eval "test \"\${$as_ac_Header+set}\" = set"; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857else
8858 eval "$as_ac_Header=\$ac_header_preproc"
8859fi
8860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8862
8863fi
8864if test `eval echo '${'$as_ac_Header'}'` = yes; then
8865 cat >>confdefs.h <<_ACEOF
8866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8867_ACEOF
8868
8869fi
8870
8871done
8872
8873
8874for ac_header in sys/filio.h
8875do
8876as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8877if eval "test \"\${$as_ac_Header+set}\" = set"; then
8878 echo "$as_me:$LINENO: checking for $ac_header" >&5
8879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8880if eval "test \"\${$as_ac_Header+set}\" = set"; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882fi
8883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8885else
8886 # Is the header compilable?
8887echo "$as_me:$LINENO: checking $ac_header usability" >&5
8888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8889cat >conftest.$ac_ext <<_ACEOF
8890/* confdefs.h. */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
8894/* end confdefs.h. */
8895$ac_includes_default
8896#include <$ac_header>
8897_ACEOF
8898rm -f conftest.$ac_objext
8899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -z "$ac_c_werror_flag"
8908 || test ! -s conftest.err'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest.$ac_objext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 ac_header_compiler=yes
8921else
8922 echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
8925ac_header_compiler=no
8926fi
8927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8929echo "${ECHO_T}$ac_header_compiler" >&6
8930
8931# Is the header present?
8932echo "$as_me:$LINENO: checking $ac_header presence" >&5
8933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8934cat >conftest.$ac_ext <<_ACEOF
8935/* confdefs.h. */
8936_ACEOF
8937cat confdefs.h >>conftest.$ac_ext
8938cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h. */
8940#include <$ac_header>
8941_ACEOF
8942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } >/dev/null; then
8950 if test -s conftest.err; then
8951 ac_cpp_err=$ac_c_preproc_warn_flag
8952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8953 else
8954 ac_cpp_err=
8955 fi
8956else
8957 ac_cpp_err=yes
8958fi
8959if test -z "$ac_cpp_err"; then
8960 ac_header_preproc=yes
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 ac_header_preproc=no
8966fi
8967rm -f conftest.err conftest.$ac_ext
8968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8969echo "${ECHO_T}$ac_header_preproc" >&6
8970
8971# So? What about this header?
8972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8973 yes:no: )
8974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8975echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8977echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8978 ac_header_preproc=yes
8979 ;;
8980 no:yes:* )
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8982echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8984echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8986echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8988echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8992echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8993 (
8994 cat <<\_ASBOX
8995## ------------------------------------------ ##
8996## Report this to the AC_PACKAGE_NAME lists. ##
8997## ------------------------------------------ ##
8998_ASBOX
8999 ) |
9000 sed "s/^/$as_me: WARNING: /" >&2
9001 ;;
9002esac
9003echo "$as_me:$LINENO: checking for $ac_header" >&5
9004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9005if eval "test \"\${$as_ac_Header+set}\" = set"; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008 eval "$as_ac_Header=\$ac_header_preproc"
9009fi
9010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9012
9013fi
9014if test `eval echo '${'$as_ac_Header'}'` = yes; then
9015 cat >>confdefs.h <<_ACEOF
9016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9017_ACEOF
9018
9019fi
9020
9021done
9022
9023
9024for ac_header in sys/ioctl.h
9025do
9026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9027if eval "test \"\${$as_ac_Header+set}\" = set"; then
9028 echo "$as_me:$LINENO: checking for $ac_header" >&5
9029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9030if eval "test \"\${$as_ac_Header+set}\" = set"; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9032fi
9033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9035else
9036 # Is the header compilable?
9037echo "$as_me:$LINENO: checking $ac_header usability" >&5
9038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9039cat >conftest.$ac_ext <<_ACEOF
9040/* confdefs.h. */
9041_ACEOF
9042cat confdefs.h >>conftest.$ac_ext
9043cat >>conftest.$ac_ext <<_ACEOF
9044/* end confdefs.h. */
9045$ac_includes_default
9046#include <$ac_header>
9047_ACEOF
9048rm -f conftest.$ac_objext
9049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050 (eval $ac_compile) 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
9057 { ac_try='test -z "$ac_c_werror_flag"
9058 || test ! -s conftest.err'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest.$ac_objext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_header_compiler=yes
9071else
9072 echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
9075ac_header_compiler=no
9076fi
9077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9078echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9079echo "${ECHO_T}$ac_header_compiler" >&6
9080
9081# Is the header present?
9082echo "$as_me:$LINENO: checking $ac_header presence" >&5
9083echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9084cat >conftest.$ac_ext <<_ACEOF
9085/* confdefs.h. */
9086_ACEOF
9087cat confdefs.h >>conftest.$ac_ext
9088cat >>conftest.$ac_ext <<_ACEOF
9089/* end confdefs.h. */
9090#include <$ac_header>
9091_ACEOF
9092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } >/dev/null; then
9100 if test -s conftest.err; then
9101 ac_cpp_err=$ac_c_preproc_warn_flag
9102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9103 else
9104 ac_cpp_err=
9105 fi
9106else
9107 ac_cpp_err=yes
9108fi
9109if test -z "$ac_cpp_err"; then
9110 ac_header_preproc=yes
9111else
9112 echo "$as_me: failed program was:" >&5
9113sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ac_header_preproc=no
9116fi
9117rm -f conftest.err conftest.$ac_ext
9118echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9119echo "${ECHO_T}$ac_header_preproc" >&6
9120
9121# So? What about this header?
9122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9123 yes:no: )
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9125echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9127echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9128 ac_header_preproc=yes
9129 ;;
9130 no:yes:* )
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9136echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9138echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9142echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9143 (
9144 cat <<\_ASBOX
9145## ------------------------------------------ ##
9146## Report this to the AC_PACKAGE_NAME lists. ##
9147## ------------------------------------------ ##
9148_ASBOX
9149 ) |
9150 sed "s/^/$as_me: WARNING: /" >&2
9151 ;;
9152esac
9153echo "$as_me:$LINENO: checking for $ac_header" >&5
9154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9155if eval "test \"\${$as_ac_Header+set}\" = set"; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157else
9158 eval "$as_ac_Header=\$ac_header_preproc"
9159fi
9160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9162
9163fi
9164if test `eval echo '${'$as_ac_Header'}'` = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9167_ACEOF
9168
9169fi
9170
9171done
9172
9173
9174for ac_header in sys/param.h
9175do
9176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9177if eval "test \"\${$as_ac_Header+set}\" = set"; then
9178 echo "$as_me:$LINENO: checking for $ac_header" >&5
9179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9180if eval "test \"\${$as_ac_Header+set}\" = set"; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182fi
9183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9185else
9186 # Is the header compilable?
9187echo "$as_me:$LINENO: checking $ac_header usability" >&5
9188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9189cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
9195$ac_includes_default
9196#include <$ac_header>
9197_ACEOF
9198rm -f conftest.$ac_objext
9199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag"
9208 || test ! -s conftest.err'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_header_compiler=yes
9221else
9222 echo "$as_me: failed program was:" >&5
9223sed 's/^/| /' conftest.$ac_ext >&5
9224
9225ac_header_compiler=no
9226fi
9227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9229echo "${ECHO_T}$ac_header_compiler" >&6
9230
9231# Is the header present?
9232echo "$as_me:$LINENO: checking $ac_header presence" >&5
9233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9234cat >conftest.$ac_ext <<_ACEOF
9235/* confdefs.h. */
9236_ACEOF
9237cat confdefs.h >>conftest.$ac_ext
9238cat >>conftest.$ac_ext <<_ACEOF
9239/* end confdefs.h. */
9240#include <$ac_header>
9241_ACEOF
9242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } >/dev/null; then
9250 if test -s conftest.err; then
9251 ac_cpp_err=$ac_c_preproc_warn_flag
9252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9253 else
9254 ac_cpp_err=
9255 fi
9256else
9257 ac_cpp_err=yes
9258fi
9259if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_header_preproc=no
9266fi
9267rm -f conftest.err conftest.$ac_ext
9268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9269echo "${ECHO_T}$ac_header_preproc" >&6
9270
9271# So? What about this header?
9272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9273 yes:no: )
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9278 ac_header_preproc=yes
9279 ;;
9280 no:yes:* )
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9293 (
9294 cat <<\_ASBOX
9295## ------------------------------------------ ##
9296## Report this to the AC_PACKAGE_NAME lists. ##
9297## ------------------------------------------ ##
9298_ASBOX
9299 ) |
9300 sed "s/^/$as_me: WARNING: /" >&2
9301 ;;
9302esac
9303echo "$as_me:$LINENO: checking for $ac_header" >&5
9304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9305if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307else
9308 eval "$as_ac_Header=\$ac_header_preproc"
9309fi
9310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9312
9313fi
9314if test `eval echo '${'$as_ac_Header'}'` = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317_ACEOF
9318
9319fi
9320
9321done
9322
9323
9324for ac_header in sys/resource.h
9325do
9326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327if eval "test \"\${$as_ac_Header+set}\" = set"; then
9328 echo "$as_me:$LINENO: checking for $ac_header" >&5
9329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9330if eval "test \"\${$as_ac_Header+set}\" = set"; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332fi
9333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9335else
9336 # Is the header compilable?
9337echo "$as_me:$LINENO: checking $ac_header usability" >&5
9338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9339cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h. */
9345$ac_includes_default
9346#include <$ac_header>
9347_ACEOF
9348rm -f conftest.$ac_objext
9349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9350 (eval $ac_compile) 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_c_werror_flag"
9358 || test ! -s conftest.err'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_header_compiler=yes
9371else
9372 echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
9375ac_header_compiler=no
9376fi
9377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9379echo "${ECHO_T}$ac_header_compiler" >&6
9380
9381# Is the header present?
9382echo "$as_me:$LINENO: checking $ac_header presence" >&5
9383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9384cat >conftest.$ac_ext <<_ACEOF
9385/* confdefs.h. */
9386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext
9388cat >>conftest.$ac_ext <<_ACEOF
9389/* end confdefs.h. */
9390#include <$ac_header>
9391_ACEOF
9392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } >/dev/null; then
9400 if test -s conftest.err; then
9401 ac_cpp_err=$ac_c_preproc_warn_flag
9402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9403 else
9404 ac_cpp_err=
9405 fi
9406else
9407 ac_cpp_err=yes
9408fi
9409if test -z "$ac_cpp_err"; then
9410 ac_header_preproc=yes
9411else
9412 echo "$as_me: failed program was:" >&5
9413sed 's/^/| /' conftest.$ac_ext >&5
9414
9415 ac_header_preproc=no
9416fi
9417rm -f conftest.err conftest.$ac_ext
9418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9419echo "${ECHO_T}$ac_header_preproc" >&6
9420
9421# So? What about this header?
9422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9423 yes:no: )
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9428 ac_header_preproc=yes
9429 ;;
9430 no:yes:* )
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9443 (
9444 cat <<\_ASBOX
9445## ------------------------------------------ ##
9446## Report this to the AC_PACKAGE_NAME lists. ##
9447## ------------------------------------------ ##
9448_ASBOX
9449 ) |
9450 sed "s/^/$as_me: WARNING: /" >&2
9451 ;;
9452esac
9453echo "$as_me:$LINENO: checking for $ac_header" >&5
9454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9455if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457else
9458 eval "$as_ac_Header=\$ac_header_preproc"
9459fi
9460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9462
9463fi
9464if test `eval echo '${'$as_ac_Header'}'` = yes; then
9465 cat >>confdefs.h <<_ACEOF
9466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9467_ACEOF
9468
9469fi
9470
9471done
9472
9473
9474for ac_header in sys/proc.h
9475do
9476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9477echo "$as_me:$LINENO: checking for $ac_header" >&5
9478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9479if eval "test \"\${$as_ac_Header+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 cat >conftest.$ac_ext <<_ACEOF
9483/* confdefs.h. */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h. */
9488#if HAVE_SYS_PARAM_H
9489# include <sys/param.h>
9490#endif
9491
9492
9493#include <$ac_header>
9494_ACEOF
9495rm -f conftest.$ac_objext
9496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest.$ac_objext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 eval "$as_ac_Header=yes"
9518else
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
9522eval "$as_ac_Header=no"
9523fi
9524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9525fi
9526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9528if test `eval echo '${'$as_ac_Header'}'` = yes; then
9529 cat >>confdefs.h <<_ACEOF
9530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9531_ACEOF
9532
9533fi
9534
9535done
9536
9537
9538for ac_header in sys/procfs.h
9539do
9540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9541if eval "test \"\${$as_ac_Header+set}\" = set"; then
9542 echo "$as_me:$LINENO: checking for $ac_header" >&5
9543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9544if eval "test \"\${$as_ac_Header+set}\" = set"; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546fi
9547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9549else
9550 # Is the header compilable?
9551echo "$as_me:$LINENO: checking $ac_header usability" >&5
9552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9553cat >conftest.$ac_ext <<_ACEOF
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
9559$ac_includes_default
9560#include <$ac_header>
9561_ACEOF
9562rm -f conftest.$ac_objext
9563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9585else
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
9589ac_header_compiler=no
9590fi
9591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593echo "${ECHO_T}$ac_header_compiler" >&6
9594
9595# Is the header present?
9596echo "$as_me:$LINENO: checking $ac_header presence" >&5
9597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9598cat >conftest.$ac_ext <<_ACEOF
9599/* confdefs.h. */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h. */
9604#include <$ac_header>
9605_ACEOF
9606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } >/dev/null; then
9614 if test -s conftest.err; then
9615 ac_cpp_err=$ac_c_preproc_warn_flag
9616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9617 else
9618 ac_cpp_err=
9619 fi
9620else
9621 ac_cpp_err=yes
9622fi
9623if test -z "$ac_cpp_err"; then
9624 ac_header_preproc=yes
9625else
9626 echo "$as_me: failed program was:" >&5
9627sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_header_preproc=no
9630fi
9631rm -f conftest.err conftest.$ac_ext
9632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633echo "${ECHO_T}$ac_header_preproc" >&6
9634
9635# So? What about this header?
9636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9637 yes:no: )
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9642 ac_header_preproc=yes
9643 ;;
9644 no:yes:* )
9645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9657 (
9658 cat <<\_ASBOX
9659## ------------------------------------------ ##
9660## Report this to the AC_PACKAGE_NAME lists. ##
9661## ------------------------------------------ ##
9662_ASBOX
9663 ) |
9664 sed "s/^/$as_me: WARNING: /" >&2
9665 ;;
9666esac
9667echo "$as_me:$LINENO: checking for $ac_header" >&5
9668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9669if eval "test \"\${$as_ac_Header+set}\" = set"; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671else
9672 eval "$as_ac_Header=\$ac_header_preproc"
9673fi
9674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9676
9677fi
9678if test `eval echo '${'$as_ac_Header'}'` = yes; then
9679 cat >>confdefs.h <<_ACEOF
9680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9681_ACEOF
9682
9683fi
9684
9685done
9686
9687
9688
9689for ac_header in sys/ptrace.h ptrace.h
9690do
9691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9692if eval "test \"\${$as_ac_Header+set}\" = set"; then
9693 echo "$as_me:$LINENO: checking for $ac_header" >&5
9694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9695if eval "test \"\${$as_ac_Header+set}\" = set"; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697fi
9698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9700else
9701 # Is the header compilable?
9702echo "$as_me:$LINENO: checking $ac_header usability" >&5
9703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9704cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h. */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h. */
9710$ac_includes_default
9711#include <$ac_header>
9712_ACEOF
9713rm -f conftest.$ac_objext
9714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715 (eval $ac_compile) 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_header_compiler=yes
9736else
9737 echo "$as_me: failed program was:" >&5
9738sed 's/^/| /' conftest.$ac_ext >&5
9739
9740ac_header_compiler=no
9741fi
9742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744echo "${ECHO_T}$ac_header_compiler" >&6
9745
9746# Is the header present?
9747echo "$as_me:$LINENO: checking $ac_header presence" >&5
9748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
9755#include <$ac_header>
9756_ACEOF
9757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } >/dev/null; then
9765 if test -s conftest.err; then
9766 ac_cpp_err=$ac_c_preproc_warn_flag
9767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9768 else
9769 ac_cpp_err=
9770 fi
9771else
9772 ac_cpp_err=yes
9773fi
9774if test -z "$ac_cpp_err"; then
9775 ac_header_preproc=yes
9776else
9777 echo "$as_me: failed program was:" >&5
9778sed 's/^/| /' conftest.$ac_ext >&5
9779
9780 ac_header_preproc=no
9781fi
9782rm -f conftest.err conftest.$ac_ext
9783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9784echo "${ECHO_T}$ac_header_preproc" >&6
9785
9786# So? What about this header?
9787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9788 yes:no: )
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9793 ac_header_preproc=yes
9794 ;;
9795 no:yes:* )
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9808 (
9809 cat <<\_ASBOX
9810## ------------------------------------------ ##
9811## Report this to the AC_PACKAGE_NAME lists. ##
9812## ------------------------------------------ ##
9813_ASBOX
9814 ) |
9815 sed "s/^/$as_me: WARNING: /" >&2
9816 ;;
9817esac
9818echo "$as_me:$LINENO: checking for $ac_header" >&5
9819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9820if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822else
9823 eval "$as_ac_Header=\$ac_header_preproc"
9824fi
9825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9827
9828fi
9829if test `eval echo '${'$as_ac_Header'}'` = yes; then
9830 cat >>confdefs.h <<_ACEOF
9831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9832_ACEOF
9833
9834fi
9835
9836done
9837
9838
9839
9840for ac_header in sys/reg.h sys/debugreg.h
9841do
9842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9843if eval "test \"\${$as_ac_Header+set}\" = set"; then
9844 echo "$as_me:$LINENO: checking for $ac_header" >&5
9845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9846if eval "test \"\${$as_ac_Header+set}\" = set"; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848fi
9849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9851else
9852 # Is the header compilable?
9853echo "$as_me:$LINENO: checking $ac_header usability" >&5
9854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9855cat >conftest.$ac_ext <<_ACEOF
9856/* confdefs.h. */
9857_ACEOF
9858cat confdefs.h >>conftest.$ac_ext
9859cat >>conftest.$ac_ext <<_ACEOF
9860/* end confdefs.h. */
9861$ac_includes_default
9862#include <$ac_header>
9863_ACEOF
9864rm -f conftest.$ac_objext
9865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_header_compiler=yes
9887else
9888 echo "$as_me: failed program was:" >&5
9889sed 's/^/| /' conftest.$ac_ext >&5
9890
9891ac_header_compiler=no
9892fi
9893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9895echo "${ECHO_T}$ac_header_compiler" >&6
9896
9897# Is the header present?
9898echo "$as_me:$LINENO: checking $ac_header presence" >&5
9899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9900cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
9906#include <$ac_header>
9907_ACEOF
9908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } >/dev/null; then
9916 if test -s conftest.err; then
9917 ac_cpp_err=$ac_c_preproc_warn_flag
9918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9919 else
9920 ac_cpp_err=
9921 fi
9922else
9923 ac_cpp_err=yes
9924fi
9925if test -z "$ac_cpp_err"; then
9926 ac_header_preproc=yes
9927else
9928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_header_preproc=no
9932fi
9933rm -f conftest.err conftest.$ac_ext
9934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9935echo "${ECHO_T}$ac_header_preproc" >&6
9936
9937# So? What about this header?
9938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9939 yes:no: )
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9944 ac_header_preproc=yes
9945 ;;
9946 no:yes:* )
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9954echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9959 (
9960 cat <<\_ASBOX
9961## ------------------------------------------ ##
9962## Report this to the AC_PACKAGE_NAME lists. ##
9963## ------------------------------------------ ##
9964_ASBOX
9965 ) |
9966 sed "s/^/$as_me: WARNING: /" >&2
9967 ;;
9968esac
9969echo "$as_me:$LINENO: checking for $ac_header" >&5
9970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9971if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974 eval "$as_ac_Header=\$ac_header_preproc"
9975fi
9976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9978
9979fi
9980if test `eval echo '${'$as_ac_Header'}'` = yes; then
9981 cat >>confdefs.h <<_ACEOF
9982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9983_ACEOF
9984
9985fi
9986
9987done
9988
9989
9990for ac_header in sys/select.h
9991do
9992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9993if eval "test \"\${$as_ac_Header+set}\" = set"; then
9994 echo "$as_me:$LINENO: checking for $ac_header" >&5
9995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9996if eval "test \"\${$as_ac_Header+set}\" = set"; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998fi
9999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10001else
10002 # Is the header compilable?
10003echo "$as_me:$LINENO: checking $ac_header usability" >&5
10004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10005cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011$ac_includes_default
10012#include <$ac_header>
10013_ACEOF
10014rm -f conftest.$ac_objext
10015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_header_compiler=yes
10037else
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041ac_header_compiler=no
10042fi
10043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10045echo "${ECHO_T}$ac_header_compiler" >&6
10046
10047# Is the header present?
10048echo "$as_me:$LINENO: checking $ac_header presence" >&5
10049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10050cat >conftest.$ac_ext <<_ACEOF
10051/* confdefs.h. */
10052_ACEOF
10053cat confdefs.h >>conftest.$ac_ext
10054cat >>conftest.$ac_ext <<_ACEOF
10055/* end confdefs.h. */
10056#include <$ac_header>
10057_ACEOF
10058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } >/dev/null; then
10066 if test -s conftest.err; then
10067 ac_cpp_err=$ac_c_preproc_warn_flag
10068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10069 else
10070 ac_cpp_err=
10071 fi
10072else
10073 ac_cpp_err=yes
10074fi
10075if test -z "$ac_cpp_err"; then
10076 ac_header_preproc=yes
10077else
10078 echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 ac_header_preproc=no
10082fi
10083rm -f conftest.err conftest.$ac_ext
10084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10085echo "${ECHO_T}$ac_header_preproc" >&6
10086
10087# So? What about this header?
10088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10089 yes:no: )
10090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10094 ac_header_preproc=yes
10095 ;;
10096 no:yes:* )
10097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10100echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10104echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10109 (
10110 cat <<\_ASBOX
10111## ------------------------------------------ ##
10112## Report this to the AC_PACKAGE_NAME lists. ##
10113## ------------------------------------------ ##
10114_ASBOX
10115 ) |
10116 sed "s/^/$as_me: WARNING: /" >&2
10117 ;;
10118esac
10119echo "$as_me:$LINENO: checking for $ac_header" >&5
10120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10121if eval "test \"\${$as_ac_Header+set}\" = set"; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123else
10124 eval "$as_ac_Header=\$ac_header_preproc"
10125fi
10126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10128
10129fi
10130if test `eval echo '${'$as_ac_Header'}'` = yes; then
10131 cat >>confdefs.h <<_ACEOF
10132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10133_ACEOF
10134
10135fi
10136
10137done
10138
10139
10140for ac_header in sys/syscall.h
10141do
10142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143if eval "test \"\${$as_ac_Header+set}\" = set"; then
10144 echo "$as_me:$LINENO: checking for $ac_header" >&5
10145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10146if eval "test \"\${$as_ac_Header+set}\" = set"; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148fi
10149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10151else
10152 # Is the header compilable?
10153echo "$as_me:$LINENO: checking $ac_header usability" >&5
10154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161$ac_includes_default
10162#include <$ac_header>
10163_ACEOF
10164rm -f conftest.$ac_objext
10165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest.$ac_objext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_header_compiler=yes
10187else
10188 echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
10191ac_header_compiler=no
10192fi
10193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195echo "${ECHO_T}$ac_header_compiler" >&6
10196
10197# Is the header present?
10198echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206#include <$ac_header>
10207_ACEOF
10208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } >/dev/null; then
10216 if test -s conftest.err; then
10217 ac_cpp_err=$ac_c_preproc_warn_flag
10218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10219 else
10220 ac_cpp_err=
10221 fi
10222else
10223 ac_cpp_err=yes
10224fi
10225if test -z "$ac_cpp_err"; then
10226 ac_header_preproc=yes
10227else
10228 echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_header_preproc=no
10232fi
10233rm -f conftest.err conftest.$ac_ext
10234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10235echo "${ECHO_T}$ac_header_preproc" >&6
10236
10237# So? What about this header?
10238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10239 yes:no: )
10240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10244 ac_header_preproc=yes
10245 ;;
10246 no:yes:* )
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10259 (
10260 cat <<\_ASBOX
10261## ------------------------------------------ ##
10262## Report this to the AC_PACKAGE_NAME lists. ##
10263## ------------------------------------------ ##
10264_ASBOX
10265 ) |
10266 sed "s/^/$as_me: WARNING: /" >&2
10267 ;;
10268esac
10269echo "$as_me:$LINENO: checking for $ac_header" >&5
10270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10271if eval "test \"\${$as_ac_Header+set}\" = set"; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 eval "$as_ac_Header=\$ac_header_preproc"
10275fi
10276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10278
10279fi
10280if test `eval echo '${'$as_ac_Header'}'` = yes; then
10281 cat >>confdefs.h <<_ACEOF
10282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10283_ACEOF
10284
10285fi
10286
10287done
10288
10289
10290for ac_header in sys/types.h
10291do
10292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10293if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo "$as_me:$LINENO: checking for $ac_header" >&5
10295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10296if eval "test \"\${$as_ac_Header+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298fi
10299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10301else
10302 # Is the header compilable?
10303echo "$as_me:$LINENO: checking $ac_header usability" >&5
10304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10305cat >conftest.$ac_ext <<_ACEOF
10306/* confdefs.h. */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
10310/* end confdefs.h. */
10311$ac_includes_default
10312#include <$ac_header>
10313_ACEOF
10314rm -f conftest.$ac_objext
10315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag"
10324 || test ! -s conftest.err'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest.$ac_objext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_header_compiler=yes
10337else
10338 echo "$as_me: failed program was:" >&5
10339sed 's/^/| /' conftest.$ac_ext >&5
10340
10341ac_header_compiler=no
10342fi
10343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10345echo "${ECHO_T}$ac_header_compiler" >&6
10346
10347# Is the header present?
10348echo "$as_me:$LINENO: checking $ac_header presence" >&5
10349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10350cat >conftest.$ac_ext <<_ACEOF
10351/* confdefs.h. */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h. */
10356#include <$ac_header>
10357_ACEOF
10358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } >/dev/null; then
10366 if test -s conftest.err; then
10367 ac_cpp_err=$ac_c_preproc_warn_flag
10368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10369 else
10370 ac_cpp_err=
10371 fi
10372else
10373 ac_cpp_err=yes
10374fi
10375if test -z "$ac_cpp_err"; then
10376 ac_header_preproc=yes
10377else
10378 echo "$as_me: failed program was:" >&5
10379sed 's/^/| /' conftest.$ac_ext >&5
10380
10381 ac_header_preproc=no
10382fi
10383rm -f conftest.err conftest.$ac_ext
10384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10385echo "${ECHO_T}$ac_header_preproc" >&6
10386
10387# So? What about this header?
10388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10389 yes:no: )
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10394 ac_header_preproc=yes
10395 ;;
10396 no:yes:* )
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10409 (
10410 cat <<\_ASBOX
10411## ------------------------------------------ ##
10412## Report this to the AC_PACKAGE_NAME lists. ##
10413## ------------------------------------------ ##
10414_ASBOX
10415 ) |
10416 sed "s/^/$as_me: WARNING: /" >&2
10417 ;;
10418esac
10419echo "$as_me:$LINENO: checking for $ac_header" >&5
10420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10421if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424 eval "$as_ac_Header=\$ac_header_preproc"
10425fi
10426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10428
10429fi
10430if test `eval echo '${'$as_ac_Header'}'` = yes; then
10431 cat >>confdefs.h <<_ACEOF
10432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10433_ACEOF
10434
10435fi
10436
10437done
10438
10439
10440for ac_header in sys/user.h
10441do
10442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10443echo "$as_me:$LINENO: checking for $ac_header" >&5
10444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10445if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447else
10448 cat >conftest.$ac_ext <<_ACEOF
10449/* confdefs.h. */
10450_ACEOF
10451cat confdefs.h >>conftest.$ac_ext
10452cat >>conftest.$ac_ext <<_ACEOF
10453/* end confdefs.h. */
10454#if HAVE_SYS_PARAM_H
10455# include <sys/param.h>
10456#endif
10457
10458
10459#include <$ac_header>
10460_ACEOF
10461rm -f conftest.$ac_objext
10462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 eval "$as_ac_Header=yes"
10484else
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
10488eval "$as_ac_Header=no"
10489fi
10490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10491fi
10492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10494if test `eval echo '${'$as_ac_Header'}'` = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10497_ACEOF
10498
10499fi
10500
10501done
10502
10503
10504
10505for ac_header in sys/wait.h wait.h
10506do
10507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10508if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509 echo "$as_me:$LINENO: checking for $ac_header" >&5
10510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10511if eval "test \"\${$as_ac_Header+set}\" = set"; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513fi
10514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10516else
10517 # Is the header compilable?
10518echo "$as_me:$LINENO: checking $ac_header usability" >&5
10519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10520cat >conftest.$ac_ext <<_ACEOF
10521/* confdefs.h. */
10522_ACEOF
10523cat confdefs.h >>conftest.$ac_ext
10524cat >>conftest.$ac_ext <<_ACEOF
10525/* end confdefs.h. */
10526$ac_includes_default
10527#include <$ac_header>
10528_ACEOF
10529rm -f conftest.$ac_objext
10530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -z "$ac_c_werror_flag"
10539 || test ! -s conftest.err'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_header_compiler=yes
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
10556ac_header_compiler=no
10557fi
10558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560echo "${ECHO_T}$ac_header_compiler" >&6
10561
10562# Is the header present?
10563echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10565cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571#include <$ac_header>
10572_ACEOF
10573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null; then
10581 if test -s conftest.err; then
10582 ac_cpp_err=$ac_c_preproc_warn_flag
10583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10584 else
10585 ac_cpp_err=
10586 fi
10587else
10588 ac_cpp_err=yes
10589fi
10590if test -z "$ac_cpp_err"; then
10591 ac_header_preproc=yes
10592else
10593 echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 ac_header_preproc=no
10597fi
10598rm -f conftest.err conftest.$ac_ext
10599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10600echo "${ECHO_T}$ac_header_preproc" >&6
10601
10602# So? What about this header?
10603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10604 yes:no: )
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10609 ac_header_preproc=yes
10610 ;;
10611 no:yes:* )
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10624 (
10625 cat <<\_ASBOX
10626## ------------------------------------------ ##
10627## Report this to the AC_PACKAGE_NAME lists. ##
10628## ------------------------------------------ ##
10629_ASBOX
10630 ) |
10631 sed "s/^/$as_me: WARNING: /" >&2
10632 ;;
10633esac
10634echo "$as_me:$LINENO: checking for $ac_header" >&5
10635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10636if eval "test \"\${$as_ac_Header+set}\" = set"; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638else
10639 eval "$as_ac_Header=\$ac_header_preproc"
10640fi
10641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10643
10644fi
10645if test `eval echo '${'$as_ac_Header'}'` = yes; then
10646 cat >>confdefs.h <<_ACEOF
10647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10648_ACEOF
10649
10650fi
10651
10652done
10653
10654
10655
10656
10657for ac_header in termios.h termio.h sgtty.h
10658do
10659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10660if eval "test \"\${$as_ac_Header+set}\" = set"; then
10661 echo "$as_me:$LINENO: checking for $ac_header" >&5
10662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10663if eval "test \"\${$as_ac_Header+set}\" = set"; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665fi
10666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10668else
10669 # Is the header compilable?
10670echo "$as_me:$LINENO: checking $ac_header usability" >&5
10671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h. */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h. */
10678$ac_includes_default
10679#include <$ac_header>
10680_ACEOF
10681rm -f conftest.$ac_objext
10682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_header_compiler=yes
10704else
10705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
10708ac_header_compiler=no
10709fi
10710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10712echo "${ECHO_T}$ac_header_compiler" >&6
10713
10714# Is the header present?
10715echo "$as_me:$LINENO: checking $ac_header presence" >&5
10716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10717cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h. */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
10722/* end confdefs.h. */
10723#include <$ac_header>
10724_ACEOF
10725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } >/dev/null; then
10733 if test -s conftest.err; then
10734 ac_cpp_err=$ac_c_preproc_warn_flag
10735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10736 else
10737 ac_cpp_err=
10738 fi
10739else
10740 ac_cpp_err=yes
10741fi
10742if test -z "$ac_cpp_err"; then
10743 ac_header_preproc=yes
10744else
10745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_header_preproc=no
10749fi
10750rm -f conftest.err conftest.$ac_ext
10751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10752echo "${ECHO_T}$ac_header_preproc" >&6
10753
10754# So? What about this header?
10755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10756 yes:no: )
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10761 ac_header_preproc=yes
10762 ;;
10763 no:yes:* )
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10776 (
10777 cat <<\_ASBOX
10778## ------------------------------------------ ##
10779## Report this to the AC_PACKAGE_NAME lists. ##
10780## ------------------------------------------ ##
10781_ASBOX
10782 ) |
10783 sed "s/^/$as_me: WARNING: /" >&2
10784 ;;
10785esac
10786echo "$as_me:$LINENO: checking for $ac_header" >&5
10787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10788if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 eval "$as_ac_Header=\$ac_header_preproc"
10792fi
10793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10795
10796fi
10797if test `eval echo '${'$as_ac_Header'}'` = yes; then
10798 cat >>confdefs.h <<_ACEOF
10799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10800_ACEOF
10801
10802fi
10803
10804done
10805
10806
10807for ac_header in unistd.h
10808do
10809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10810if eval "test \"\${$as_ac_Header+set}\" = set"; then
10811 echo "$as_me:$LINENO: checking for $ac_header" >&5
10812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10813if eval "test \"\${$as_ac_Header+set}\" = set"; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815fi
10816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10818else
10819 # Is the header compilable?
10820echo "$as_me:$LINENO: checking $ac_header usability" >&5
10821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10822cat >conftest.$ac_ext <<_ACEOF
10823/* confdefs.h. */
10824_ACEOF
10825cat confdefs.h >>conftest.$ac_ext
10826cat >>conftest.$ac_ext <<_ACEOF
10827/* end confdefs.h. */
10828$ac_includes_default
10829#include <$ac_header>
10830_ACEOF
10831rm -f conftest.$ac_objext
10832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10833 (eval $ac_compile) 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -z "$ac_c_werror_flag"
10841 || test ! -s conftest.err'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest.$ac_objext'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 ac_header_compiler=yes
10854else
10855 echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
10857
10858ac_header_compiler=no
10859fi
10860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10862echo "${ECHO_T}$ac_header_compiler" >&6
10863
10864# Is the header present?
10865echo "$as_me:$LINENO: checking $ac_header presence" >&5
10866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10867cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h. */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
10872/* end confdefs.h. */
10873#include <$ac_header>
10874_ACEOF
10875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } >/dev/null; then
10883 if test -s conftest.err; then
10884 ac_cpp_err=$ac_c_preproc_warn_flag
10885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10886 else
10887 ac_cpp_err=
10888 fi
10889else
10890 ac_cpp_err=yes
10891fi
10892if test -z "$ac_cpp_err"; then
10893 ac_header_preproc=yes
10894else
10895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 ac_header_preproc=no
10899fi
10900rm -f conftest.err conftest.$ac_ext
10901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10902echo "${ECHO_T}$ac_header_preproc" >&6
10903
10904# So? What about this header?
10905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10906 yes:no: )
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10911 ac_header_preproc=yes
10912 ;;
10913 no:yes:* )
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10926 (
10927 cat <<\_ASBOX
10928## ------------------------------------------ ##
10929## Report this to the AC_PACKAGE_NAME lists. ##
10930## ------------------------------------------ ##
10931_ASBOX
10932 ) |
10933 sed "s/^/$as_me: WARNING: /" >&2
10934 ;;
10935esac
10936echo "$as_me:$LINENO: checking for $ac_header" >&5
10937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10938if eval "test \"\${$as_ac_Header+set}\" = set"; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940else
10941 eval "$as_ac_Header=\$ac_header_preproc"
10942fi
10943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10945
10946fi
10947if test `eval echo '${'$as_ac_Header'}'` = yes; then
10948 cat >>confdefs.h <<_ACEOF
10949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10950_ACEOF
10951
10952fi
10953
10954done
10955
10956
10957# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10958# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10959# think that we don't have <curses.h> if we're using GCC.
10960case $host_os in
10961 solaris2.[789])
10962 if test "$GCC" = yes; then
10963
10964cat >>confdefs.h <<\_ACEOF
10965#define _MSE_INT_H 1
10966_ACEOF
10967
10968 fi ;;
10969esac
10970
10971
10972
10973
10974for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10975do
10976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10977if eval "test \"\${$as_ac_Header+set}\" = set"; then
10978 echo "$as_me:$LINENO: checking for $ac_header" >&5
10979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10980if eval "test \"\${$as_ac_Header+set}\" = set"; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982fi
10983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985else
10986 # Is the header compilable?
10987echo "$as_me:$LINENO: checking $ac_header usability" >&5
10988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10989cat >conftest.$ac_ext <<_ACEOF
10990/* confdefs.h. */
10991_ACEOF
10992cat confdefs.h >>conftest.$ac_ext
10993cat >>conftest.$ac_ext <<_ACEOF
10994/* end confdefs.h. */
10995$ac_includes_default
10996#include <$ac_header>
10997_ACEOF
10998rm -f conftest.$ac_objext
10999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11000 (eval $ac_compile) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest.$ac_objext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_header_compiler=yes
11021else
11022 echo "$as_me: failed program was:" >&5
11023sed 's/^/| /' conftest.$ac_ext >&5
11024
11025ac_header_compiler=no
11026fi
11027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029echo "${ECHO_T}$ac_header_compiler" >&6
11030
11031# Is the header present?
11032echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040#include <$ac_header>
11041_ACEOF
11042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } >/dev/null; then
11050 if test -s conftest.err; then
11051 ac_cpp_err=$ac_c_preproc_warn_flag
11052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11053 else
11054 ac_cpp_err=
11055 fi
11056else
11057 ac_cpp_err=yes
11058fi
11059if test -z "$ac_cpp_err"; then
11060 ac_header_preproc=yes
11061else
11062 echo "$as_me: failed program was:" >&5
11063sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 ac_header_preproc=no
11066fi
11067rm -f conftest.err conftest.$ac_ext
11068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11069echo "${ECHO_T}$ac_header_preproc" >&6
11070
11071# So? What about this header?
11072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11073 yes:no: )
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11078 ac_header_preproc=yes
11079 ;;
11080 no:yes:* )
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11093 (
11094 cat <<\_ASBOX
11095## ------------------------------------------ ##
11096## Report this to the AC_PACKAGE_NAME lists. ##
11097## ------------------------------------------ ##
11098_ASBOX
11099 ) |
11100 sed "s/^/$as_me: WARNING: /" >&2
11101 ;;
11102esac
11103echo "$as_me:$LINENO: checking for $ac_header" >&5
11104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11105if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107else
11108 eval "$as_ac_Header=\$ac_header_preproc"
11109fi
11110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11112
11113fi
11114if test `eval echo '${'$as_ac_Header'}'` = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11117_ACEOF
11118
11119fi
11120
11121done
11122
11123
11124for ac_header in ncurses/term.h
11125do
11126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127if eval "test \"\${$as_ac_Header+set}\" = set"; then
11128 echo "$as_me:$LINENO: checking for $ac_header" >&5
11129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11130if eval "test \"\${$as_ac_Header+set}\" = set"; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132fi
11133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11135else
11136 # Is the header compilable?
11137echo "$as_me:$LINENO: checking $ac_header usability" >&5
11138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145$ac_includes_default
11146#include <$ac_header>
11147_ACEOF
11148rm -f conftest.$ac_objext
11149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11150 (eval $ac_compile) 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 ac_header_compiler=yes
11171else
11172 echo "$as_me: failed program was:" >&5
11173sed 's/^/| /' conftest.$ac_ext >&5
11174
11175ac_header_compiler=no
11176fi
11177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11179echo "${ECHO_T}$ac_header_compiler" >&6
11180
11181# Is the header present?
11182echo "$as_me:$LINENO: checking $ac_header presence" >&5
11183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11184cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h. */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h. */
11190#include <$ac_header>
11191_ACEOF
11192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } >/dev/null; then
11200 if test -s conftest.err; then
11201 ac_cpp_err=$ac_c_preproc_warn_flag
11202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11203 else
11204 ac_cpp_err=
11205 fi
11206else
11207 ac_cpp_err=yes
11208fi
11209if test -z "$ac_cpp_err"; then
11210 ac_header_preproc=yes
11211else
11212 echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_header_preproc=no
11216fi
11217rm -f conftest.err conftest.$ac_ext
11218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11219echo "${ECHO_T}$ac_header_preproc" >&6
11220
11221# So? What about this header?
11222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11223 yes:no: )
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11228 ac_header_preproc=yes
11229 ;;
11230 no:yes:* )
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11243 (
11244 cat <<\_ASBOX
11245## ------------------------------------------ ##
11246## Report this to the AC_PACKAGE_NAME lists. ##
11247## ------------------------------------------ ##
11248_ASBOX
11249 ) |
11250 sed "s/^/$as_me: WARNING: /" >&2
11251 ;;
11252esac
11253echo "$as_me:$LINENO: checking for $ac_header" >&5
11254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11255if eval "test \"\${$as_ac_Header+set}\" = set"; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257else
11258 eval "$as_ac_Header=\$ac_header_preproc"
11259fi
11260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11262
11263fi
11264if test `eval echo '${'$as_ac_Header'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11267_ACEOF
11268
11269fi
11270
11271done
11272
11273
11274for ac_header in term.h
11275do
11276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11277echo "$as_me:$LINENO: checking for $ac_header" >&5
11278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11279if eval "test \"\${$as_ac_Header+set}\" = set"; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282 cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288#if HAVE_CURSES_H
11289# include <curses.h>
11290#endif
11291
11292
11293#include <$ac_header>
11294_ACEOF
11295rm -f conftest.$ac_objext
11296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 eval "$as_ac_Header=yes"
11318else
11319 echo "$as_me: failed program was:" >&5
11320sed 's/^/| /' conftest.$ac_ext >&5
11321
11322eval "$as_ac_Header=no"
11323fi
11324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11325fi
11326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11328if test `eval echo '${'$as_ac_Header'}'` = yes; then
11329 cat >>confdefs.h <<_ACEOF
11330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11331_ACEOF
11332
11333fi
11334
11335done
11336
11337
11338# FIXME: kettenis/20030102: In most cases we include these
11339# unconditionally, so what's the point in checking these?
11340
11341
11342for ac_header in ctype.h time.h
11343do
11344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11345if eval "test \"\${$as_ac_Header+set}\" = set"; then
11346 echo "$as_me:$LINENO: checking for $ac_header" >&5
11347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11348if eval "test \"\${$as_ac_Header+set}\" = set"; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350fi
11351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11353else
11354 # Is the header compilable?
11355echo "$as_me:$LINENO: checking $ac_header usability" >&5
11356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11357cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
11363$ac_includes_default
11364#include <$ac_header>
11365_ACEOF
11366rm -f conftest.$ac_objext
11367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368 (eval $ac_compile) 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_c_werror_flag"
11376 || test ! -s conftest.err'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; } &&
11382 { ac_try='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_header_compiler=yes
11389else
11390 echo "$as_me: failed program was:" >&5
11391sed 's/^/| /' conftest.$ac_ext >&5
11392
11393ac_header_compiler=no
11394fi
11395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397echo "${ECHO_T}$ac_header_compiler" >&6
11398
11399# Is the header present?
11400echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11402cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408#include <$ac_header>
11409_ACEOF
11410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } >/dev/null; then
11418 if test -s conftest.err; then
11419 ac_cpp_err=$ac_c_preproc_warn_flag
11420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11421 else
11422 ac_cpp_err=
11423 fi
11424else
11425 ac_cpp_err=yes
11426fi
11427if test -z "$ac_cpp_err"; then
11428 ac_header_preproc=yes
11429else
11430 echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_header_preproc=no
11434fi
11435rm -f conftest.err conftest.$ac_ext
11436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437echo "${ECHO_T}$ac_header_preproc" >&6
11438
11439# So? What about this header?
11440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441 yes:no: )
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11447 ;;
11448 no:yes:* )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461 (
11462 cat <<\_ASBOX
11463## ------------------------------------------ ##
11464## Report this to the AC_PACKAGE_NAME lists. ##
11465## ------------------------------------------ ##
11466_ASBOX
11467 ) |
11468 sed "s/^/$as_me: WARNING: /" >&2
11469 ;;
11470esac
11471echo "$as_me:$LINENO: checking for $ac_header" >&5
11472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11473if eval "test \"\${$as_ac_Header+set}\" = set"; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475else
11476 eval "$as_ac_Header=\$ac_header_preproc"
11477fi
11478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11480
11481fi
11482if test `eval echo '${'$as_ac_Header'}'` = yes; then
11483 cat >>confdefs.h <<_ACEOF
11484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11485_ACEOF
11486
11487fi
11488
11489done
11490
11491
11492# Create a header we can use portably to get the standard integer types.
11493
11494
11495inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11496
11497acx_cv_header_stdint=stddef.h
11498acx_cv_header_stdint_kind="(already complete)"
11499for i in stdint.h $inttype_headers; do
11500 unset ac_cv_type_uintptr_t
11501 unset ac_cv_type_uintmax_t
11502 unset ac_cv_type_int_least32_t
11503 unset ac_cv_type_int_fast32_t
11504 unset ac_cv_type_uint64_t
11505 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11506 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11507echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11508if test "${ac_cv_type_uintmax_t+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510else
11511 cat >conftest.$ac_ext <<_ACEOF
11512/* confdefs.h. */
11513_ACEOF
11514cat confdefs.h >>conftest.$ac_ext
11515cat >>conftest.$ac_ext <<_ACEOF
11516/* end confdefs.h. */
11517#include <sys/types.h>
11518#include <$i>
11519
11520int
11521main ()
11522{
11523if ((uintmax_t *) 0)
11524 return 0;
11525if (sizeof (uintmax_t))
11526 return 0;
11527 ;
11528 return 0;
11529}
11530_ACEOF
11531rm -f conftest.$ac_objext
11532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533 (eval $ac_compile) 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_cv_type_uintmax_t=yes
11554else
11555 echo "$as_me: failed program was:" >&5
11556sed 's/^/| /' conftest.$ac_ext >&5
11557
11558ac_cv_type_uintmax_t=no
11559fi
11560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11561fi
11562echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11563echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11564if test $ac_cv_type_uintmax_t = yes; then
11565 acx_cv_header_stdint=$i
11566else
11567 continue
11568fi
11569
11570 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11571echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11572if test "${ac_cv_type_uintptr_t+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581#include <sys/types.h>
11582#include <$i>
11583
11584int
11585main ()
11586{
11587if ((uintptr_t *) 0)
11588 return 0;
11589if (sizeof (uintptr_t))
11590 return 0;
11591 ;
11592 return 0;
11593}
11594_ACEOF
11595rm -f conftest.$ac_objext
11596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597 (eval $ac_compile) 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -z "$ac_c_werror_flag"
11605 || test ! -s conftest.err'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; } &&
11611 { ac_try='test -s conftest.$ac_objext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_type_uintptr_t=yes
11618else
11619 echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
11622ac_cv_type_uintptr_t=no
11623fi
11624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11625fi
11626echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11627echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11628if test $ac_cv_type_uintptr_t = yes; then
11629 :
11630else
11631 acx_cv_header_stdint_kind="(mostly complete)"
11632fi
11633
11634 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11635echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11636if test "${ac_cv_type_int_least32_t+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638else
11639 cat >conftest.$ac_ext <<_ACEOF
11640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
11645#include <sys/types.h>
11646#include <$i>
11647
11648int
11649main ()
11650{
11651if ((int_least32_t *) 0)
11652 return 0;
11653if (sizeof (int_least32_t))
11654 return 0;
11655 ;
11656 return 0;
11657}
11658_ACEOF
11659rm -f conftest.$ac_objext
11660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_type_int_least32_t=yes
11682else
11683 echo "$as_me: failed program was:" >&5
11684sed 's/^/| /' conftest.$ac_ext >&5
11685
11686ac_cv_type_int_least32_t=no
11687fi
11688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11689fi
11690echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11691echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11692if test $ac_cv_type_int_least32_t = yes; then
11693 :
11694else
11695 acx_cv_header_stdint_kind="(mostly complete)"
11696fi
11697
11698 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11699echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11700if test "${ac_cv_type_int_fast32_t+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703 cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
11709#include <sys/types.h>
11710#include <$i>
11711
11712int
11713main ()
11714{
11715if ((int_fast32_t *) 0)
11716 return 0;
11717if (sizeof (int_fast32_t))
11718 return 0;
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag"
11733 || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_cv_type_int_fast32_t=yes
11746else
11747 echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
11750ac_cv_type_int_fast32_t=no
11751fi
11752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753fi
11754echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11755echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
11756if test $ac_cv_type_int_fast32_t = yes; then
11757 :
11758else
11759 acx_cv_header_stdint_kind="(mostly complete)"
11760fi
11761
11762 echo "$as_me:$LINENO: checking for uint64_t" >&5
11763echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11764if test "${ac_cv_type_uint64_t+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766else
11767 cat >conftest.$ac_ext <<_ACEOF
11768/* confdefs.h. */
11769_ACEOF
11770cat confdefs.h >>conftest.$ac_ext
11771cat >>conftest.$ac_ext <<_ACEOF
11772/* end confdefs.h. */
11773#include <sys/types.h>
11774#include <$i>
11775
11776int
11777main ()
11778{
11779if ((uint64_t *) 0)
11780 return 0;
11781if (sizeof (uint64_t))
11782 return 0;
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_type_uint64_t=yes
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814ac_cv_type_uint64_t=no
11815fi
11816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817fi
11818echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11819echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11820if test $ac_cv_type_uint64_t = yes; then
11821 :
11822else
11823 acx_cv_header_stdint_kind="(lacks uint64_t)"
11824fi
11825
11826 break
11827done
11828if test "$acx_cv_header_stdint" = stddef.h; then
11829 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11830 for i in stdint.h $inttype_headers; do
11831 unset ac_cv_type_uintptr_t
11832 unset ac_cv_type_uint32_t
11833 unset ac_cv_type_uint64_t
11834 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
11835 echo "$as_me:$LINENO: checking for uint32_t" >&5
11836echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11837if test "${ac_cv_type_uint32_t+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 cat >conftest.$ac_ext <<_ACEOF
11841/* confdefs.h. */
11842_ACEOF
11843cat confdefs.h >>conftest.$ac_ext
11844cat >>conftest.$ac_ext <<_ACEOF
11845/* end confdefs.h. */
11846#include <sys/types.h>
11847#include <$i>
11848
11849int
11850main ()
11851{
11852if ((uint32_t *) 0)
11853 return 0;
11854if (sizeof (uint32_t))
11855 return 0;
11856 ;
11857 return 0;
11858}
11859_ACEOF
11860rm -f conftest.$ac_objext
11861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_type_uint32_t=yes
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887ac_cv_type_uint32_t=no
11888fi
11889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11890fi
11891echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11892echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11893if test $ac_cv_type_uint32_t = yes; then
11894 acx_cv_header_stdint=$i
11895else
11896 continue
11897fi
11898
11899 echo "$as_me:$LINENO: checking for uint64_t" >&5
11900echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11901if test "${ac_cv_type_uint64_t+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903else
11904 cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
11910#include <sys/types.h>
11911#include <$i>
11912
11913int
11914main ()
11915{
11916if ((uint64_t *) 0)
11917 return 0;
11918if (sizeof (uint64_t))
11919 return 0;
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924rm -f conftest.$ac_objext
11925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag"
11934 || test ! -s conftest.err'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; } &&
11940 { ac_try='test -s conftest.$ac_objext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_type_uint64_t=yes
11947else
11948 echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
11951ac_cv_type_uint64_t=no
11952fi
11953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11954fi
11955echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11956echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11957
11958 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11959echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11960if test "${ac_cv_type_uintptr_t+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
11963 cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
11969#include <sys/types.h>
11970#include <$i>
11971
11972int
11973main ()
11974{
11975if ((uintptr_t *) 0)
11976 return 0;
11977if (sizeof (uintptr_t))
11978 return 0;
11979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext
11984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_type_uintptr_t=yes
12006else
12007 echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
12010ac_cv_type_uintptr_t=no
12011fi
12012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12013fi
12014echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12015echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12016
12017 break
12018 done
12019fi
12020if test "$acx_cv_header_stdint" = stddef.h; then
12021 acx_cv_header_stdint_kind="(u_intXX_t style)"
12022 for i in sys/types.h $inttype_headers; do
12023 unset ac_cv_type_u_int32_t
12024 unset ac_cv_type_u_int64_t
12025 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12026 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12027echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12028if test "${ac_cv_type_u_int32_t+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030else
12031 cat >conftest.$ac_ext <<_ACEOF
12032/* confdefs.h. */
12033_ACEOF
12034cat confdefs.h >>conftest.$ac_ext
12035cat >>conftest.$ac_ext <<_ACEOF
12036/* end confdefs.h. */
12037#include <sys/types.h>
12038#include <$i>
12039
12040int
12041main ()
12042{
12043if ((u_int32_t *) 0)
12044 return 0;
12045if (sizeof (u_int32_t))
12046 return 0;
12047 ;
12048 return 0;
12049}
12050_ACEOF
12051rm -f conftest.$ac_objext
12052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_type_u_int32_t=yes
12074else
12075 echo "$as_me: failed program was:" >&5
12076sed 's/^/| /' conftest.$ac_ext >&5
12077
12078ac_cv_type_u_int32_t=no
12079fi
12080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081fi
12082echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12083echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12084if test $ac_cv_type_u_int32_t = yes; then
12085 acx_cv_header_stdint=$i
12086else
12087 continue
12088fi
12089
12090 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12091echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12092if test "${ac_cv_type_u_int64_t+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094else
12095 cat >conftest.$ac_ext <<_ACEOF
12096/* confdefs.h. */
12097_ACEOF
12098cat confdefs.h >>conftest.$ac_ext
12099cat >>conftest.$ac_ext <<_ACEOF
12100/* end confdefs.h. */
12101#include <sys/types.h>
12102#include <$i>
12103
12104int
12105main ()
12106{
12107if ((u_int64_t *) 0)
12108 return 0;
12109if (sizeof (u_int64_t))
12110 return 0;
12111 ;
12112 return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_cv_type_u_int64_t=yes
12138else
12139 echo "$as_me: failed program was:" >&5
12140sed 's/^/| /' conftest.$ac_ext >&5
12141
12142ac_cv_type_u_int64_t=no
12143fi
12144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145fi
12146echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12147echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12148
12149 break
12150 done
12151fi
12152if test "$acx_cv_header_stdint" = stddef.h; then
12153 acx_cv_header_stdint_kind="(using manual detection)"
12154fi
12155
12156test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12157test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12158test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12159test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12160test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12161
12162# ----------------- Summarize what we found so far
12163
12164echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12165echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
12166
12167case `$as_basename gdb_stdint.h ||
12168$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12169 Xgdb_stdint.h : 'X\(//\)$' \| \
12170 Xgdb_stdint.h : 'X\(/\)$' \| \
12171 . : '\(.\)' 2>/dev/null ||
12172echo X/gdb_stdint.h |
12173 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12174 /^X\/\(\/\/\)$/{ s//\1/; q; }
12175 /^X\/\(\/\).*/{ s//\1/; q; }
12176 s/.*/./; q'` in
12177 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12178echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12179 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12180echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12181 *) ;;
12182esac
12183
12184echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12185echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
12186
12187# ----------------- done included file, check C basic types --------
12188
12189# Lacking an uintptr_t? Test size of void *
12190case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12191 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12192echo $ECHO_N "checking for void *... $ECHO_C" >&6
12193if test "${ac_cv_type_void_p+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 cat >conftest.$ac_ext <<_ACEOF
12197/* confdefs.h. */
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
12202$ac_includes_default
12203int
12204main ()
12205{
12206if ((void * *) 0)
12207 return 0;
12208if (sizeof (void *))
12209 return 0;
12210 ;
12211 return 0;
12212}
12213_ACEOF
12214rm -f conftest.$ac_objext
12215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag"
12224 || test ! -s conftest.err'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest.$ac_objext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 ac_cv_type_void_p=yes
12237else
12238 echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
12241ac_cv_type_void_p=no
12242fi
12243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12244fi
12245echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12246echo "${ECHO_T}$ac_cv_type_void_p" >&6
12247
12248echo "$as_me:$LINENO: checking size of void *" >&5
12249echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12250if test "${ac_cv_sizeof_void_p+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252else
12253 if test "$ac_cv_type_void_p" = yes; then
12254 # The cast to unsigned long works around a bug in the HP C Compiler
12255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12257 # This bug is HP SR number 8606223364.
12258 if test "$cross_compiling" = yes; then
12259 # Depending upon the size, compute the lo and hi bounds.
12260cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266$ac_includes_default
12267int
12268main ()
12269{
12270static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12271test_array [0] = 0
12272
12273 ;
12274 return 0;
12275}
12276_ACEOF
12277rm -f conftest.$ac_objext
12278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_lo=0 ac_mid=0
12300 while :; do
12301 cat >conftest.$ac_ext <<_ACEOF
12302/* confdefs.h. */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h. */
12307$ac_includes_default
12308int
12309main ()
12310{
12311static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12312test_array [0] = 0
12313
12314 ;
12315 return 0;
12316}
12317_ACEOF
12318rm -f conftest.$ac_objext
12319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320 (eval $ac_compile) 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -z "$ac_c_werror_flag"
12328 || test ! -s conftest.err'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 ac_hi=$ac_mid; break
12341else
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
12345ac_lo=`expr $ac_mid + 1`
12346 if test $ac_lo -le $ac_mid; then
12347 ac_lo= ac_hi=
12348 break
12349 fi
12350 ac_mid=`expr 2 '*' $ac_mid + 1`
12351fi
12352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353 done
12354else
12355 echo "$as_me: failed program was:" >&5
12356sed 's/^/| /' conftest.$ac_ext >&5
12357
12358cat >conftest.$ac_ext <<_ACEOF
12359/* confdefs.h. */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h. */
12364$ac_includes_default
12365int
12366main ()
12367{
12368static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12369test_array [0] = 0
12370
12371 ;
12372 return 0;
12373}
12374_ACEOF
12375rm -f conftest.$ac_objext
12376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_c_werror_flag"
12385 || test ! -s conftest.err'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest.$ac_objext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_hi=-1 ac_mid=-1
12398 while :; do
12399 cat >conftest.$ac_ext <<_ACEOF
12400/* confdefs.h. */
12401_ACEOF
12402cat confdefs.h >>conftest.$ac_ext
12403cat >>conftest.$ac_ext <<_ACEOF
12404/* end confdefs.h. */
12405$ac_includes_default
12406int
12407main ()
12408{
12409static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12410test_array [0] = 0
12411
12412 ;
12413 return 0;
12414}
12415_ACEOF
12416rm -f conftest.$ac_objext
12417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_lo=$ac_mid; break
12439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443ac_hi=`expr '(' $ac_mid ')' - 1`
12444 if test $ac_mid -le $ac_hi; then
12445 ac_lo= ac_hi=
12446 break
12447 fi
12448 ac_mid=`expr 2 '*' $ac_mid`
12449fi
12450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 done
12452else
12453 echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
12455
12456ac_lo= ac_hi=
12457fi
12458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459fi
12460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12461# Binary search between lo and hi bounds.
12462while test "x$ac_lo" != "x$ac_hi"; do
12463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12464 cat >conftest.$ac_ext <<_ACEOF
12465/* confdefs.h. */
12466_ACEOF
12467cat confdefs.h >>conftest.$ac_ext
12468cat >>conftest.$ac_ext <<_ACEOF
12469/* end confdefs.h. */
12470$ac_includes_default
12471int
12472main ()
12473{
12474static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12475test_array [0] = 0
12476
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>conftest.er1
12484 ac_status=$?
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_hi=$ac_mid
12504else
12505 echo "$as_me: failed program was:" >&5
12506sed 's/^/| /' conftest.$ac_ext >&5
12507
12508ac_lo=`expr '(' $ac_mid ')' + 1`
12509fi
12510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12511done
12512case $ac_lo in
12513?*) ac_cv_sizeof_void_p=$ac_lo;;
12514'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12515See \`config.log' for more details." >&5
12516echo "$as_me: error: cannot compute sizeof (void *), 77
12517See \`config.log' for more details." >&2;}
12518 { (exit 1); exit 1; }; } ;;
12519esac
12520else
12521 if test "$cross_compiling" = yes; then
12522 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12523See \`config.log' for more details." >&5
12524echo "$as_me: error: cannot run test program while cross compiling
12525See \`config.log' for more details." >&2;}
12526 { (exit 1); exit 1; }; }
12527else
12528 cat >conftest.$ac_ext <<_ACEOF
12529/* confdefs.h. */
12530_ACEOF
12531cat confdefs.h >>conftest.$ac_ext
12532cat >>conftest.$ac_ext <<_ACEOF
12533/* end confdefs.h. */
12534$ac_includes_default
12535long longval () { return (long) (sizeof (void *)); }
12536unsigned long ulongval () { return (long) (sizeof (void *)); }
12537#include <stdio.h>
12538#include <stdlib.h>
12539int
12540main ()
12541{
12542
12543 FILE *f = fopen ("conftest.val", "w");
12544 if (! f)
12545 exit (1);
12546 if (((long) (sizeof (void *))) < 0)
12547 {
12548 long i = longval ();
12549 if (i != ((long) (sizeof (void *))))
12550 exit (1);
12551 fprintf (f, "%ld\n", i);
12552 }
12553 else
12554 {
12555 unsigned long i = ulongval ();
12556 if (i != ((long) (sizeof (void *))))
12557 exit (1);
12558 fprintf (f, "%lu\n", i);
12559 }
12560 exit (ferror (f) || fclose (f) != 0);
12561
12562 ;
12563 return 0;
12564}
12565_ACEOF
12566rm -f conftest$ac_exeext
12567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_sizeof_void_p=`cat conftest.val`
12578else
12579 echo "$as_me: program exited with status $ac_status" >&5
12580echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583( exit $ac_status )
12584{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12585See \`config.log' for more details." >&5
12586echo "$as_me: error: cannot compute sizeof (void *), 77
12587See \`config.log' for more details." >&2;}
12588 { (exit 1); exit 1; }; }
12589fi
12590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12591fi
12592fi
12593rm -f conftest.val
12594else
12595 ac_cv_sizeof_void_p=0
12596fi
12597fi
12598echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12599echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12600cat >>confdefs.h <<_ACEOF
12601#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12602_ACEOF
12603
12604 ;;
12605esac
12606
12607# Lacking an uint64_t? Test size of long
12608case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12609 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12610echo $ECHO_N "checking for long... $ECHO_C" >&6
12611if test "${ac_cv_type_long+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613else
12614 cat >conftest.$ac_ext <<_ACEOF
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
12620$ac_includes_default
12621int
12622main ()
12623{
12624if ((long *) 0)
12625 return 0;
12626if (sizeof (long))
12627 return 0;
12628 ;
12629 return 0;
12630}
12631_ACEOF
12632rm -f conftest.$ac_objext
12633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag"
12642 || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_cv_type_long=yes
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659ac_cv_type_long=no
12660fi
12661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662fi
12663echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12664echo "${ECHO_T}$ac_cv_type_long" >&6
12665
12666echo "$as_me:$LINENO: checking size of long" >&5
12667echo $ECHO_N "checking size of long... $ECHO_C" >&6
12668if test "${ac_cv_sizeof_long+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670else
12671 if test "$ac_cv_type_long" = yes; then
12672 # The cast to unsigned long works around a bug in the HP C Compiler
12673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12675 # This bug is HP SR number 8606223364.
12676 if test "$cross_compiling" = yes; then
12677 # Depending upon the size, compute the lo and hi bounds.
12678cat >conftest.$ac_ext <<_ACEOF
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
12684$ac_includes_default
12685int
12686main ()
12687{
12688static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12689test_array [0] = 0
12690
12691 ;
12692 return 0;
12693}
12694_ACEOF
12695rm -f conftest.$ac_objext
12696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12697 (eval $ac_compile) 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag"
12705 || test ! -s conftest.err'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest.$ac_objext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_lo=0 ac_mid=0
12718 while :; do
12719 cat >conftest.$ac_ext <<_ACEOF
12720/* confdefs.h. */
12721_ACEOF
12722cat confdefs.h >>conftest.$ac_ext
12723cat >>conftest.$ac_ext <<_ACEOF
12724/* end confdefs.h. */
12725$ac_includes_default
12726int
12727main ()
12728{
12729static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12730test_array [0] = 0
12731
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736rm -f conftest.$ac_objext
12737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag"
12746 || test ! -s conftest.err'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_hi=$ac_mid; break
12759else
12760 echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
12763ac_lo=`expr $ac_mid + 1`
12764 if test $ac_lo -le $ac_mid; then
12765 ac_lo= ac_hi=
12766 break
12767 fi
12768 ac_mid=`expr 2 '*' $ac_mid + 1`
12769fi
12770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12771 done
12772else
12773 echo "$as_me: failed program was:" >&5
12774sed 's/^/| /' conftest.$ac_ext >&5
12775
12776cat >conftest.$ac_ext <<_ACEOF
12777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
12782$ac_includes_default
12783int
12784main ()
12785{
12786static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12787test_array [0] = 0
12788
12789 ;
12790 return 0;
12791}
12792_ACEOF
12793rm -f conftest.$ac_objext
12794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_hi=-1 ac_mid=-1
12816 while :; do
12817 cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
12823$ac_includes_default
12824int
12825main ()
12826{
12827static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12828test_array [0] = 0
12829
12830 ;
12831 return 0;
12832}
12833_ACEOF
12834rm -f conftest.$ac_objext
12835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836 (eval $ac_compile) 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
12843 { ac_try='test -z "$ac_c_werror_flag"
12844 || test ! -s conftest.err'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest.$ac_objext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_lo=$ac_mid; break
12857else
12858 echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
12861ac_hi=`expr '(' $ac_mid ')' - 1`
12862 if test $ac_mid -le $ac_hi; then
12863 ac_lo= ac_hi=
12864 break
12865 fi
12866 ac_mid=`expr 2 '*' $ac_mid`
12867fi
12868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 done
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874ac_lo= ac_hi=
12875fi
12876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877fi
12878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879# Binary search between lo and hi bounds.
12880while test "x$ac_lo" != "x$ac_hi"; do
12881 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12882 cat >conftest.$ac_ext <<_ACEOF
12883/* confdefs.h. */
12884_ACEOF
12885cat confdefs.h >>conftest.$ac_ext
12886cat >>conftest.$ac_ext <<_ACEOF
12887/* end confdefs.h. */
12888$ac_includes_default
12889int
12890main ()
12891{
12892static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12893test_array [0] = 0
12894
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext
12900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_hi=$ac_mid
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926ac_lo=`expr '(' $ac_mid ')' + 1`
12927fi
12928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929done
12930case $ac_lo in
12931?*) ac_cv_sizeof_long=$ac_lo;;
12932'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12933See \`config.log' for more details." >&5
12934echo "$as_me: error: cannot compute sizeof (long), 77
12935See \`config.log' for more details." >&2;}
12936 { (exit 1); exit 1; }; } ;;
12937esac
12938else
12939 if test "$cross_compiling" = yes; then
12940 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12941See \`config.log' for more details." >&5
12942echo "$as_me: error: cannot run test program while cross compiling
12943See \`config.log' for more details." >&2;}
12944 { (exit 1); exit 1; }; }
12945else
12946 cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952$ac_includes_default
12953long longval () { return (long) (sizeof (long)); }
12954unsigned long ulongval () { return (long) (sizeof (long)); }
12955#include <stdio.h>
12956#include <stdlib.h>
12957int
12958main ()
12959{
12960
12961 FILE *f = fopen ("conftest.val", "w");
12962 if (! f)
12963 exit (1);
12964 if (((long) (sizeof (long))) < 0)
12965 {
12966 long i = longval ();
12967 if (i != ((long) (sizeof (long))))
12968 exit (1);
12969 fprintf (f, "%ld\n", i);
12970 }
12971 else
12972 {
12973 unsigned long i = ulongval ();
12974 if (i != ((long) (sizeof (long))))
12975 exit (1);
12976 fprintf (f, "%lu\n", i);
12977 }
12978 exit (ferror (f) || fclose (f) != 0);
12979
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest$ac_exeext
12985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_cv_sizeof_long=`cat conftest.val`
12996else
12997 echo "$as_me: program exited with status $ac_status" >&5
12998echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001( exit $ac_status )
13002{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13003See \`config.log' for more details." >&5
13004echo "$as_me: error: cannot compute sizeof (long), 77
13005See \`config.log' for more details." >&2;}
13006 { (exit 1); exit 1; }; }
13007fi
13008rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13009fi
13010fi
13011rm -f conftest.val
13012else
13013 ac_cv_sizeof_long=0
13014fi
13015fi
13016echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13017echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13018cat >>confdefs.h <<_ACEOF
13019#define SIZEOF_LONG $ac_cv_sizeof_long
13020_ACEOF
13021
13022 ;;
13023esac
13024
13025if test $acx_cv_header_stdint = stddef.h; then
13026 # Lacking a good header? Test size of everything and deduce all types.
13027 echo "$as_me:$LINENO: checking for int" >&5
13028echo $ECHO_N "checking for int... $ECHO_C" >&6
13029if test "${ac_cv_type_int+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031else
13032 cat >conftest.$ac_ext <<_ACEOF
13033/* confdefs.h. */
13034_ACEOF
13035cat confdefs.h >>conftest.$ac_ext
13036cat >>conftest.$ac_ext <<_ACEOF
13037/* end confdefs.h. */
13038$ac_includes_default
13039int
13040main ()
13041{
13042if ((int *) 0)
13043 return 0;
13044if (sizeof (int))
13045 return 0;
13046 ;
13047 return 0;
13048}
13049_ACEOF
13050rm -f conftest.$ac_objext
13051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag"
13060 || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_cv_type_int=yes
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077ac_cv_type_int=no
13078fi
13079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080fi
13081echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13082echo "${ECHO_T}$ac_cv_type_int" >&6
13083
13084echo "$as_me:$LINENO: checking size of int" >&5
13085echo $ECHO_N "checking size of int... $ECHO_C" >&6
13086if test "${ac_cv_sizeof_int+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088else
13089 if test "$ac_cv_type_int" = yes; then
13090 # The cast to unsigned long works around a bug in the HP C Compiler
13091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13093 # This bug is HP SR number 8606223364.
13094 if test "$cross_compiling" = yes; then
13095 # Depending upon the size, compute the lo and hi bounds.
13096cat >conftest.$ac_ext <<_ACEOF
13097/* confdefs.h. */
13098_ACEOF
13099cat confdefs.h >>conftest.$ac_ext
13100cat >>conftest.$ac_ext <<_ACEOF
13101/* end confdefs.h. */
13102$ac_includes_default
13103int
13104main ()
13105{
13106static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13107test_array [0] = 0
13108
13109 ;
13110 return 0;
13111}
13112_ACEOF
13113rm -f conftest.$ac_objext
13114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -z "$ac_c_werror_flag"
13123 || test ! -s conftest.err'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest.$ac_objext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_lo=0 ac_mid=0
13136 while :; do
13137 cat >conftest.$ac_ext <<_ACEOF
13138/* confdefs.h. */
13139_ACEOF
13140cat confdefs.h >>conftest.$ac_ext
13141cat >>conftest.$ac_ext <<_ACEOF
13142/* end confdefs.h. */
13143$ac_includes_default
13144int
13145main ()
13146{
13147static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13148test_array [0] = 0
13149
13150 ;
13151 return 0;
13152}
13153_ACEOF
13154rm -f conftest.$ac_objext
13155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -z "$ac_c_werror_flag"
13164 || test ! -s conftest.err'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; } &&
13170 { ac_try='test -s conftest.$ac_objext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_hi=$ac_mid; break
13177else
13178 echo "$as_me: failed program was:" >&5
13179sed 's/^/| /' conftest.$ac_ext >&5
13180
13181ac_lo=`expr $ac_mid + 1`
13182 if test $ac_lo -le $ac_mid; then
13183 ac_lo= ac_hi=
13184 break
13185 fi
13186 ac_mid=`expr 2 '*' $ac_mid + 1`
13187fi
13188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13189 done
13190else
13191 echo "$as_me: failed program was:" >&5
13192sed 's/^/| /' conftest.$ac_ext >&5
13193
13194cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200$ac_includes_default
13201int
13202main ()
13203{
13204static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13205test_array [0] = 0
13206
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211rm -f conftest.$ac_objext
13212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_c_werror_flag"
13221 || test ! -s conftest.err'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; } &&
13227 { ac_try='test -s conftest.$ac_objext'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 ac_hi=-1 ac_mid=-1
13234 while :; do
13235 cat >conftest.$ac_ext <<_ACEOF
13236/* confdefs.h. */
13237_ACEOF
13238cat confdefs.h >>conftest.$ac_ext
13239cat >>conftest.$ac_ext <<_ACEOF
13240/* end confdefs.h. */
13241$ac_includes_default
13242int
13243main ()
13244{
13245static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13246test_array [0] = 0
13247
13248 ;
13249 return 0;
13250}
13251_ACEOF
13252rm -f conftest.$ac_objext
13253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_lo=$ac_mid; break
13275else
13276 echo "$as_me: failed program was:" >&5
13277sed 's/^/| /' conftest.$ac_ext >&5
13278
13279ac_hi=`expr '(' $ac_mid ')' - 1`
13280 if test $ac_mid -le $ac_hi; then
13281 ac_lo= ac_hi=
13282 break
13283 fi
13284 ac_mid=`expr 2 '*' $ac_mid`
13285fi
13286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13287 done
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292ac_lo= ac_hi=
13293fi
13294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13295fi
13296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13297# Binary search between lo and hi bounds.
13298while test "x$ac_lo" != "x$ac_hi"; do
13299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13300 cat >conftest.$ac_ext <<_ACEOF
13301/* confdefs.h. */
13302_ACEOF
13303cat confdefs.h >>conftest.$ac_ext
13304cat >>conftest.$ac_ext <<_ACEOF
13305/* end confdefs.h. */
13306$ac_includes_default
13307int
13308main ()
13309{
13310static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13311test_array [0] = 0
13312
13313 ;
13314 return 0;
13315}
13316_ACEOF
13317rm -f conftest.$ac_objext
13318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13319 (eval $ac_compile) 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag"
13327 || test ! -s conftest.err'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_hi=$ac_mid
13340else
13341 echo "$as_me: failed program was:" >&5
13342sed 's/^/| /' conftest.$ac_ext >&5
13343
13344ac_lo=`expr '(' $ac_mid ')' + 1`
13345fi
13346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13347done
13348case $ac_lo in
13349?*) ac_cv_sizeof_int=$ac_lo;;
13350'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13351See \`config.log' for more details." >&5
13352echo "$as_me: error: cannot compute sizeof (int), 77
13353See \`config.log' for more details." >&2;}
13354 { (exit 1); exit 1; }; } ;;
13355esac
13356else
13357 if test "$cross_compiling" = yes; then
13358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13359See \`config.log' for more details." >&5
13360echo "$as_me: error: cannot run test program while cross compiling
13361See \`config.log' for more details." >&2;}
13362 { (exit 1); exit 1; }; }
13363else
13364 cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
13370$ac_includes_default
13371long longval () { return (long) (sizeof (int)); }
13372unsigned long ulongval () { return (long) (sizeof (int)); }
13373#include <stdio.h>
13374#include <stdlib.h>
13375int
13376main ()
13377{
13378
13379 FILE *f = fopen ("conftest.val", "w");
13380 if (! f)
13381 exit (1);
13382 if (((long) (sizeof (int))) < 0)
13383 {
13384 long i = longval ();
13385 if (i != ((long) (sizeof (int))))
13386 exit (1);
13387 fprintf (f, "%ld\n", i);
13388 }
13389 else
13390 {
13391 unsigned long i = ulongval ();
13392 if (i != ((long) (sizeof (int))))
13393 exit (1);
13394 fprintf (f, "%lu\n", i);
13395 }
13396 exit (ferror (f) || fclose (f) != 0);
13397
13398 ;
13399 return 0;
13400}
13401_ACEOF
13402rm -f conftest$ac_exeext
13403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13404 (eval $ac_link) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_cv_sizeof_int=`cat conftest.val`
13414else
13415 echo "$as_me: program exited with status $ac_status" >&5
13416echo "$as_me: failed program was:" >&5
13417sed 's/^/| /' conftest.$ac_ext >&5
13418
13419( exit $ac_status )
13420{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13421See \`config.log' for more details." >&5
13422echo "$as_me: error: cannot compute sizeof (int), 77
13423See \`config.log' for more details." >&2;}
13424 { (exit 1); exit 1; }; }
13425fi
13426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13427fi
13428fi
13429rm -f conftest.val
13430else
13431 ac_cv_sizeof_int=0
13432fi
13433fi
13434echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13435echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13436cat >>confdefs.h <<_ACEOF
13437#define SIZEOF_INT $ac_cv_sizeof_int
13438_ACEOF
13439
13440
13441 echo "$as_me:$LINENO: checking for short" >&5
13442echo $ECHO_N "checking for short... $ECHO_C" >&6
13443if test "${ac_cv_type_short+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446 cat >conftest.$ac_ext <<_ACEOF
13447/* confdefs.h. */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h. */
13452$ac_includes_default
13453int
13454main ()
13455{
13456if ((short *) 0)
13457 return 0;
13458if (sizeof (short))
13459 return 0;
13460 ;
13461 return 0;
13462}
13463_ACEOF
13464rm -f conftest.$ac_objext
13465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13466 (eval $ac_compile) 2>conftest.er1
13467 ac_status=$?
13468 grep -v '^ *+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } &&
13473 { ac_try='test -z "$ac_c_werror_flag"
13474 || test ! -s conftest.err'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } &&
13480 { ac_try='test -s conftest.$ac_objext'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_type_short=yes
13487else
13488 echo "$as_me: failed program was:" >&5
13489sed 's/^/| /' conftest.$ac_ext >&5
13490
13491ac_cv_type_short=no
13492fi
13493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13494fi
13495echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13496echo "${ECHO_T}$ac_cv_type_short" >&6
13497
13498echo "$as_me:$LINENO: checking size of short" >&5
13499echo $ECHO_N "checking size of short... $ECHO_C" >&6
13500if test "${ac_cv_sizeof_short+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502else
13503 if test "$ac_cv_type_short" = yes; then
13504 # The cast to unsigned long works around a bug in the HP C Compiler
13505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13507 # This bug is HP SR number 8606223364.
13508 if test "$cross_compiling" = yes; then
13509 # Depending upon the size, compute the lo and hi bounds.
13510cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
13516$ac_includes_default
13517int
13518main ()
13519{
13520static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13521test_array [0] = 0
13522
13523 ;
13524 return 0;
13525}
13526_ACEOF
13527rm -f conftest.$ac_objext
13528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_lo=0 ac_mid=0
13550 while :; do
13551 cat >conftest.$ac_ext <<_ACEOF
13552/* confdefs.h. */
13553_ACEOF
13554cat confdefs.h >>conftest.$ac_ext
13555cat >>conftest.$ac_ext <<_ACEOF
13556/* end confdefs.h. */
13557$ac_includes_default
13558int
13559main ()
13560{
13561static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13562test_array [0] = 0
13563
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext
13569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_hi=$ac_mid; break
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
13595ac_lo=`expr $ac_mid + 1`
13596 if test $ac_lo -le $ac_mid; then
13597 ac_lo= ac_hi=
13598 break
13599 fi
13600 ac_mid=`expr 2 '*' $ac_mid + 1`
13601fi
13602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603 done
13604else
13605 echo "$as_me: failed program was:" >&5
13606sed 's/^/| /' conftest.$ac_ext >&5
13607
13608cat >conftest.$ac_ext <<_ACEOF
13609/* confdefs.h. */
13610_ACEOF
13611cat confdefs.h >>conftest.$ac_ext
13612cat >>conftest.$ac_ext <<_ACEOF
13613/* end confdefs.h. */
13614$ac_includes_default
13615int
13616main ()
13617{
13618static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13619test_array [0] = 0
13620
13621 ;
13622 return 0;
13623}
13624_ACEOF
13625rm -f conftest.$ac_objext
13626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag"
13635 || test ! -s conftest.err'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest.$ac_objext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_hi=-1 ac_mid=-1
13648 while :; do
13649 cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
13655$ac_includes_default
13656int
13657main ()
13658{
13659static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13660test_array [0] = 0
13661
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext
13667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13688 ac_lo=$ac_mid; break
13689else
13690 echo "$as_me: failed program was:" >&5
13691sed 's/^/| /' conftest.$ac_ext >&5
13692
13693ac_hi=`expr '(' $ac_mid ')' - 1`
13694 if test $ac_mid -le $ac_hi; then
13695 ac_lo= ac_hi=
13696 break
13697 fi
13698 ac_mid=`expr 2 '*' $ac_mid`
13699fi
13700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13701 done
13702else
13703 echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
13706ac_lo= ac_hi=
13707fi
13708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13709fi
13710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711# Binary search between lo and hi bounds.
13712while test "x$ac_lo" != "x$ac_hi"; do
13713 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13714 cat >conftest.$ac_ext <<_ACEOF
13715/* confdefs.h. */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h. */
13720$ac_includes_default
13721int
13722main ()
13723{
13724static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13725test_array [0] = 0
13726
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_hi=$ac_mid
13754else
13755 echo "$as_me: failed program was:" >&5
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
13758ac_lo=`expr '(' $ac_mid ')' + 1`
13759fi
13760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761done
13762case $ac_lo in
13763?*) ac_cv_sizeof_short=$ac_lo;;
13764'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13765See \`config.log' for more details." >&5
13766echo "$as_me: error: cannot compute sizeof (short), 77
13767See \`config.log' for more details." >&2;}
13768 { (exit 1); exit 1; }; } ;;
13769esac
13770else
13771 if test "$cross_compiling" = yes; then
13772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13773See \`config.log' for more details." >&5
13774echo "$as_me: error: cannot run test program while cross compiling
13775See \`config.log' for more details." >&2;}
13776 { (exit 1); exit 1; }; }
13777else
13778 cat >conftest.$ac_ext <<_ACEOF
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
13783/* end confdefs.h. */
13784$ac_includes_default
13785long longval () { return (long) (sizeof (short)); }
13786unsigned long ulongval () { return (long) (sizeof (short)); }
13787#include <stdio.h>
13788#include <stdlib.h>
13789int
13790main ()
13791{
13792
13793 FILE *f = fopen ("conftest.val", "w");
13794 if (! f)
13795 exit (1);
13796 if (((long) (sizeof (short))) < 0)
13797 {
13798 long i = longval ();
13799 if (i != ((long) (sizeof (short))))
13800 exit (1);
13801 fprintf (f, "%ld\n", i);
13802 }
13803 else
13804 {
13805 unsigned long i = ulongval ();
13806 if (i != ((long) (sizeof (short))))
13807 exit (1);
13808 fprintf (f, "%lu\n", i);
13809 }
13810 exit (ferror (f) || fclose (f) != 0);
13811
13812 ;
13813 return 0;
13814}
13815_ACEOF
13816rm -f conftest$ac_exeext
13817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13818 (eval $ac_link) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_sizeof_short=`cat conftest.val`
13828else
13829 echo "$as_me: program exited with status $ac_status" >&5
13830echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
13833( exit $ac_status )
13834{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13835See \`config.log' for more details." >&5
13836echo "$as_me: error: cannot compute sizeof (short), 77
13837See \`config.log' for more details." >&2;}
13838 { (exit 1); exit 1; }; }
13839fi
13840rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13841fi
13842fi
13843rm -f conftest.val
13844else
13845 ac_cv_sizeof_short=0
13846fi
13847fi
13848echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13849echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13850cat >>confdefs.h <<_ACEOF
13851#define SIZEOF_SHORT $ac_cv_sizeof_short
13852_ACEOF
13853
13854
13855 echo "$as_me:$LINENO: checking for char" >&5
13856echo $ECHO_N "checking for char... $ECHO_C" >&6
13857if test "${ac_cv_type_char+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859else
13860 cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
13866$ac_includes_default
13867int
13868main ()
13869{
13870if ((char *) 0)
13871 return 0;
13872if (sizeof (char))
13873 return 0;
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_type_char=yes
13901else
13902 echo "$as_me: failed program was:" >&5
13903sed 's/^/| /' conftest.$ac_ext >&5
13904
13905ac_cv_type_char=no
13906fi
13907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908fi
13909echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13910echo "${ECHO_T}$ac_cv_type_char" >&6
13911
13912echo "$as_me:$LINENO: checking size of char" >&5
13913echo $ECHO_N "checking size of char... $ECHO_C" >&6
13914if test "${ac_cv_sizeof_char+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916else
13917 if test "$ac_cv_type_char" = yes; then
13918 # The cast to unsigned long works around a bug in the HP C Compiler
13919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13921 # This bug is HP SR number 8606223364.
13922 if test "$cross_compiling" = yes; then
13923 # Depending upon the size, compute the lo and hi bounds.
13924cat >conftest.$ac_ext <<_ACEOF
13925/* confdefs.h. */
13926_ACEOF
13927cat confdefs.h >>conftest.$ac_ext
13928cat >>conftest.$ac_ext <<_ACEOF
13929/* end confdefs.h. */
13930$ac_includes_default
13931int
13932main ()
13933{
13934static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13935test_array [0] = 0
13936
13937 ;
13938 return 0;
13939}
13940_ACEOF
13941rm -f conftest.$ac_objext
13942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest.$ac_objext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_lo=0 ac_mid=0
13964 while :; do
13965 cat >conftest.$ac_ext <<_ACEOF
13966/* confdefs.h. */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h. */
13971$ac_includes_default
13972int
13973main ()
13974{
13975static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13976test_array [0] = 0
13977
13978 ;
13979 return 0;
13980}
13981_ACEOF
13982rm -f conftest.$ac_objext
13983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_hi=$ac_mid; break
14005else
14006 echo "$as_me: failed program was:" >&5
14007sed 's/^/| /' conftest.$ac_ext >&5
14008
14009ac_lo=`expr $ac_mid + 1`
14010 if test $ac_lo -le $ac_mid; then
14011 ac_lo= ac_hi=
14012 break
14013 fi
14014 ac_mid=`expr 2 '*' $ac_mid + 1`
14015fi
14016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14017 done
14018else
14019 echo "$as_me: failed program was:" >&5
14020sed 's/^/| /' conftest.$ac_ext >&5
14021
14022cat >conftest.$ac_ext <<_ACEOF
14023/* confdefs.h. */
14024_ACEOF
14025cat confdefs.h >>conftest.$ac_ext
14026cat >>conftest.$ac_ext <<_ACEOF
14027/* end confdefs.h. */
14028$ac_includes_default
14029int
14030main ()
14031{
14032static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14033test_array [0] = 0
14034
14035 ;
14036 return 0;
14037}
14038_ACEOF
14039rm -f conftest.$ac_objext
14040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_hi=-1 ac_mid=-1
14062 while :; do
14063 cat >conftest.$ac_ext <<_ACEOF
14064/* confdefs.h. */
14065_ACEOF
14066cat confdefs.h >>conftest.$ac_ext
14067cat >>conftest.$ac_ext <<_ACEOF
14068/* end confdefs.h. */
14069$ac_includes_default
14070int
14071main ()
14072{
14073static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14074test_array [0] = 0
14075
14076 ;
14077 return 0;
14078}
14079_ACEOF
14080rm -f conftest.$ac_objext
14081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082 (eval $ac_compile) 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag"
14090 || test ! -s conftest.err'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; } &&
14096 { ac_try='test -s conftest.$ac_objext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 ac_lo=$ac_mid; break
14103else
14104 echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
14107ac_hi=`expr '(' $ac_mid ')' - 1`
14108 if test $ac_mid -le $ac_hi; then
14109 ac_lo= ac_hi=
14110 break
14111 fi
14112 ac_mid=`expr 2 '*' $ac_mid`
14113fi
14114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14115 done
14116else
14117 echo "$as_me: failed program was:" >&5
14118sed 's/^/| /' conftest.$ac_ext >&5
14119
14120ac_lo= ac_hi=
14121fi
14122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14123fi
14124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14125# Binary search between lo and hi bounds.
14126while test "x$ac_lo" != "x$ac_hi"; do
14127 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14128 cat >conftest.$ac_ext <<_ACEOF
14129/* confdefs.h. */
14130_ACEOF
14131cat confdefs.h >>conftest.$ac_ext
14132cat >>conftest.$ac_ext <<_ACEOF
14133/* end confdefs.h. */
14134$ac_includes_default
14135int
14136main ()
14137{
14138static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14139test_array [0] = 0
14140
14141 ;
14142 return 0;
14143}
14144_ACEOF
14145rm -f conftest.$ac_objext
14146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14147 (eval $ac_compile) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try='test -z "$ac_c_werror_flag"
14155 || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest.$ac_objext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 ac_hi=$ac_mid
14168else
14169 echo "$as_me: failed program was:" >&5
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
14172ac_lo=`expr '(' $ac_mid ')' + 1`
14173fi
14174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14175done
14176case $ac_lo in
14177?*) ac_cv_sizeof_char=$ac_lo;;
14178'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14179See \`config.log' for more details." >&5
14180echo "$as_me: error: cannot compute sizeof (char), 77
14181See \`config.log' for more details." >&2;}
14182 { (exit 1); exit 1; }; } ;;
14183esac
14184else
14185 if test "$cross_compiling" = yes; then
14186 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14187See \`config.log' for more details." >&5
14188echo "$as_me: error: cannot run test program while cross compiling
14189See \`config.log' for more details." >&2;}
14190 { (exit 1); exit 1; }; }
14191else
14192 cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
14198$ac_includes_default
14199long longval () { return (long) (sizeof (char)); }
14200unsigned long ulongval () { return (long) (sizeof (char)); }
14201#include <stdio.h>
14202#include <stdlib.h>
14203int
14204main ()
14205{
14206
14207 FILE *f = fopen ("conftest.val", "w");
14208 if (! f)
14209 exit (1);
14210 if (((long) (sizeof (char))) < 0)
14211 {
14212 long i = longval ();
14213 if (i != ((long) (sizeof (char))))
14214 exit (1);
14215 fprintf (f, "%ld\n", i);
14216 }
14217 else
14218 {
14219 unsigned long i = ulongval ();
14220 if (i != ((long) (sizeof (char))))
14221 exit (1);
14222 fprintf (f, "%lu\n", i);
14223 }
14224 exit (ferror (f) || fclose (f) != 0);
14225
14226 ;
14227 return 0;
14228}
14229_ACEOF
14230rm -f conftest$ac_exeext
14231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14232 (eval $ac_link) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_sizeof_char=`cat conftest.val`
14242else
14243 echo "$as_me: program exited with status $ac_status" >&5
14244echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247( exit $ac_status )
14248{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14249See \`config.log' for more details." >&5
14250echo "$as_me: error: cannot compute sizeof (char), 77
14251See \`config.log' for more details." >&2;}
14252 { (exit 1); exit 1; }; }
14253fi
14254rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14255fi
14256fi
14257rm -f conftest.val
14258else
14259 ac_cv_sizeof_char=0
14260fi
14261fi
14262echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14263echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14264cat >>confdefs.h <<_ACEOF
14265#define SIZEOF_CHAR $ac_cv_sizeof_char
14266_ACEOF
14267
14268
14269
14270 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14271echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
14272 case "$ac_cv_sizeof_char" in
14273 1) acx_cv_type_int8_t=char ;;
14274 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14275echo "$as_me: error: no 8-bit type" >&2;}
14276 { (exit please report a bug); exit please report a bug; }; }
14277 esac
14278 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14279echo "${ECHO_T}$acx_cv_type_int8_t" >&6
14280
14281 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14282echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
14283 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14284 2:*) acx_cv_type_int16_t=int ;;
14285 *:2) acx_cv_type_int16_t=short ;;
14286 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14287echo "$as_me: error: no 16-bit type" >&2;}
14288 { (exit please report a bug); exit please report a bug; }; }
14289 esac
14290 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14291echo "${ECHO_T}$acx_cv_type_int16_t" >&6
14292
14293 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14294echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
14295 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14296 4:*) acx_cv_type_int32_t=int ;;
14297 *:4) acx_cv_type_int32_t=long ;;
14298 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14299echo "$as_me: error: no 32-bit type" >&2;}
14300 { (exit please report a bug); exit please report a bug; }; }
14301 esac
14302 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14303echo "${ECHO_T}$acx_cv_type_int32_t" >&6
14304fi
14305
14306# These tests are here to make the output prettier
14307
14308if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14309 case "$ac_cv_sizeof_long" in
14310 8) acx_cv_type_int64_t=long ;;
14311 esac
14312 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14313echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14314 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14315echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
14316fi
14317
14318# Now we can use the above types
14319
14320if test "$ac_cv_type_uintptr_t" != yes; then
14321 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14322echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
14323 case $ac_cv_sizeof_void_p in
14324 2) acx_cv_type_intptr_t=int16_t ;;
14325 4) acx_cv_type_intptr_t=int32_t ;;
14326 8) acx_cv_type_intptr_t=int64_t ;;
14327 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14328echo "$as_me: error: no equivalent for intptr_t" >&2;}
14329 { (exit please report a bug); exit please report a bug; }; }
14330 esac
14331 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14332echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
14333fi
14334
14335# ----------------- done all checks, emit header -------------
14336 ac_config_commands="$ac_config_commands gdb_stdint.h"
14337
14338
14339
14340
14341# ------------------------- #
14342# Checks for declarations. #
14343# ------------------------- #
14344
14345echo "$as_me:$LINENO: checking whether free is declared" >&5
14346echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14347if test "${ac_cv_have_decl_free+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349else
14350 cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
14356$ac_includes_default
14357int
14358main ()
14359{
14360#ifndef free
14361 char *p = (char *) free;
14362#endif
14363
14364 ;
14365 return 0;
14366}
14367_ACEOF
14368rm -f conftest.$ac_objext
14369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370 (eval $ac_compile) 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -z "$ac_c_werror_flag"
14378 || test ! -s conftest.err'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; } &&
14384 { ac_try='test -s conftest.$ac_objext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_have_decl_free=yes
14391else
14392 echo "$as_me: failed program was:" >&5
14393sed 's/^/| /' conftest.$ac_ext >&5
14394
14395ac_cv_have_decl_free=no
14396fi
14397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14398fi
14399echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14400echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14401if test $ac_cv_have_decl_free = yes; then
14402
14403cat >>confdefs.h <<_ACEOF
14404#define HAVE_DECL_FREE 1
14405_ACEOF
14406
14407
14408else
14409 cat >>confdefs.h <<_ACEOF
14410#define HAVE_DECL_FREE 0
14411_ACEOF
14412
14413
14414fi
14415echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14416echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
14417if test "${ac_cv_have_decl_malloc+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419else
14420 cat >conftest.$ac_ext <<_ACEOF
14421/* confdefs.h. */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h. */
14426$ac_includes_default
14427int
14428main ()
14429{
14430#ifndef malloc
14431 char *p = (char *) malloc;
14432#endif
14433
14434 ;
14435 return 0;
14436}
14437_ACEOF
14438rm -f conftest.$ac_objext
14439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_have_decl_malloc=yes
14461else
14462 echo "$as_me: failed program was:" >&5
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
14465ac_cv_have_decl_malloc=no
14466fi
14467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468fi
14469echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14470echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14471if test $ac_cv_have_decl_malloc = yes; then
14472
14473cat >>confdefs.h <<_ACEOF
14474#define HAVE_DECL_MALLOC 1
14475_ACEOF
14476
14477
14478else
14479 cat >>confdefs.h <<_ACEOF
14480#define HAVE_DECL_MALLOC 0
14481_ACEOF
14482
14483
14484fi
14485echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14486echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14487if test "${ac_cv_have_decl_realloc+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489else
14490 cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496$ac_includes_default
14497int
14498main ()
14499{
14500#ifndef realloc
14501 char *p = (char *) realloc;
14502#endif
14503
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_have_decl_realloc=yes
14531else
14532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
14535ac_cv_have_decl_realloc=no
14536fi
14537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538fi
14539echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14540echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14541if test $ac_cv_have_decl_realloc = yes; then
14542
14543cat >>confdefs.h <<_ACEOF
14544#define HAVE_DECL_REALLOC 1
14545_ACEOF
14546
14547
14548else
14549 cat >>confdefs.h <<_ACEOF
14550#define HAVE_DECL_REALLOC 0
14551_ACEOF
14552
14553
14554fi
14555
14556
14557echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14558echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14559if test "${ac_cv_have_decl_strerror+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561else
14562 cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568$ac_includes_default
14569int
14570main ()
14571{
14572#ifndef strerror
14573 char *p = (char *) strerror;
14574#endif
14575
14576 ;
14577 return 0;
14578}
14579_ACEOF
14580rm -f conftest.$ac_objext
14581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try='test -z "$ac_c_werror_flag"
14590 || test ! -s conftest.err'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_cv_have_decl_strerror=yes
14603else
14604 echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607ac_cv_have_decl_strerror=no
14608fi
14609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610fi
14611echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14612echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14613if test $ac_cv_have_decl_strerror = yes; then
14614
14615cat >>confdefs.h <<_ACEOF
14616#define HAVE_DECL_STRERROR 1
14617_ACEOF
14618
14619
14620else
14621 cat >>confdefs.h <<_ACEOF
14622#define HAVE_DECL_STRERROR 0
14623_ACEOF
14624
14625
14626fi
14627echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14628echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14629if test "${ac_cv_have_decl_strstr+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14631else
14632 cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
14638$ac_includes_default
14639int
14640main ()
14641{
14642#ifndef strstr
14643 char *p = (char *) strstr;
14644#endif
14645
14646 ;
14647 return 0;
14648}
14649_ACEOF
14650rm -f conftest.$ac_objext
14651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag"
14660 || test ! -s conftest.err'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_have_decl_strstr=yes
14673else
14674 echo "$as_me: failed program was:" >&5
14675sed 's/^/| /' conftest.$ac_ext >&5
14676
14677ac_cv_have_decl_strstr=no
14678fi
14679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14680fi
14681echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14682echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14683if test $ac_cv_have_decl_strstr = yes; then
14684
14685cat >>confdefs.h <<_ACEOF
14686#define HAVE_DECL_STRSTR 1
14687_ACEOF
14688
14689
14690else
14691 cat >>confdefs.h <<_ACEOF
14692#define HAVE_DECL_STRSTR 0
14693_ACEOF
14694
14695
14696fi
14697
14698
14699echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14700echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14701if test "${ac_cv_have_decl_getopt+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703else
14704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710$ac_includes_default
14711int
14712main ()
14713{
14714#ifndef getopt
14715 char *p = (char *) getopt;
14716#endif
14717
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } &&
14731 { ac_try='test -z "$ac_c_werror_flag"
14732 || test ! -s conftest.err'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_have_decl_getopt=yes
14745else
14746 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
14749ac_cv_have_decl_getopt=no
14750fi
14751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752fi
14753echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14754echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
14755if test $ac_cv_have_decl_getopt = yes; then
14756
14757cat >>confdefs.h <<_ACEOF
14758#define HAVE_DECL_GETOPT 1
14759_ACEOF
14760
14761
14762else
14763 cat >>confdefs.h <<_ACEOF
14764#define HAVE_DECL_GETOPT 0
14765_ACEOF
14766
14767
14768fi
14769echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14770echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14771if test "${ac_cv_have_decl_snprintf+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773else
14774 cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h. */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h. */
14780$ac_includes_default
14781int
14782main ()
14783{
14784#ifndef snprintf
14785 char *p = (char *) snprintf;
14786#endif
14787
14788 ;
14789 return 0;
14790}
14791_ACEOF
14792rm -f conftest.$ac_objext
14793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag"
14802 || test ! -s conftest.err'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; } &&
14808 { ac_try='test -s conftest.$ac_objext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 ac_cv_have_decl_snprintf=yes
14815else
14816 echo "$as_me: failed program was:" >&5
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
14819ac_cv_have_decl_snprintf=no
14820fi
14821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822fi
14823echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14824echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14825if test $ac_cv_have_decl_snprintf = yes; then
14826
14827cat >>confdefs.h <<_ACEOF
14828#define HAVE_DECL_SNPRINTF 1
14829_ACEOF
14830
14831
14832else
14833 cat >>confdefs.h <<_ACEOF
14834#define HAVE_DECL_SNPRINTF 0
14835_ACEOF
14836
14837
14838fi
14839echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14840echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14841if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843else
14844 cat >conftest.$ac_ext <<_ACEOF
14845/* confdefs.h. */
14846_ACEOF
14847cat confdefs.h >>conftest.$ac_ext
14848cat >>conftest.$ac_ext <<_ACEOF
14849/* end confdefs.h. */
14850$ac_includes_default
14851int
14852main ()
14853{
14854#ifndef vsnprintf
14855 char *p = (char *) vsnprintf;
14856#endif
14857
14858 ;
14859 return 0;
14860}
14861_ACEOF
14862rm -f conftest.$ac_objext
14863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>conftest.er1
14865 ac_status=$?
14866 grep -v '^ *+' conftest.er1 >conftest.err
14867 rm -f conftest.er1
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -z "$ac_c_werror_flag"
14872 || test ! -s conftest.err'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_have_decl_vsnprintf=yes
14885else
14886 echo "$as_me: failed program was:" >&5
14887sed 's/^/| /' conftest.$ac_ext >&5
14888
14889ac_cv_have_decl_vsnprintf=no
14890fi
14891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14892fi
14893echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14894echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14895if test $ac_cv_have_decl_vsnprintf = yes; then
14896
14897cat >>confdefs.h <<_ACEOF
14898#define HAVE_DECL_VSNPRINTF 1
14899_ACEOF
14900
14901
14902else
14903 cat >>confdefs.h <<_ACEOF
14904#define HAVE_DECL_VSNPRINTF 0
14905_ACEOF
14906
14907
14908fi
14909
14910
14911
14912# ----------------------- #
14913# Checks for structures. #
14914# ----------------------- #
14915
14916echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14917echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14918if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920else
14921 cat >conftest.$ac_ext <<_ACEOF
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
14926/* end confdefs.h. */
14927$ac_includes_default
14928int
14929main ()
14930{
14931static struct stat ac_aggr;
14932if (ac_aggr.st_blocks)
14933return 0;
14934 ;
14935 return 0;
14936}
14937_ACEOF
14938rm -f conftest.$ac_objext
14939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_member_struct_stat_st_blocks=yes
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
14965cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h. */
14971$ac_includes_default
14972int
14973main ()
14974{
14975static struct stat ac_aggr;
14976if (sizeof ac_aggr.st_blocks)
14977return 0;
14978 ;
14979 return 0;
14980}
14981_ACEOF
14982rm -f conftest.$ac_objext
14983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14984 (eval $ac_compile) 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -z "$ac_c_werror_flag"
14992 || test ! -s conftest.err'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest.$ac_objext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_member_struct_stat_st_blocks=yes
15005else
15006 echo "$as_me: failed program was:" >&5
15007sed 's/^/| /' conftest.$ac_ext >&5
15008
15009ac_cv_member_struct_stat_st_blocks=no
15010fi
15011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15012fi
15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15014fi
15015echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15016echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
15017if test $ac_cv_member_struct_stat_st_blocks = yes; then
15018
15019cat >>confdefs.h <<_ACEOF
15020#define HAVE_STRUCT_STAT_ST_BLOCKS 1
15021_ACEOF
15022
15023
15024fi
15025
15026echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15027echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
15028if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037$ac_includes_default
15038int
15039main ()
15040{
15041static struct stat ac_aggr;
15042if (ac_aggr.st_blksize)
15043return 0;
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048rm -f conftest.$ac_objext
15049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_member_struct_stat_st_blksize=yes
15071else
15072 echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
15075cat >conftest.$ac_ext <<_ACEOF
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
15080/* end confdefs.h. */
15081$ac_includes_default
15082int
15083main ()
15084{
15085static struct stat ac_aggr;
15086if (sizeof ac_aggr.st_blksize)
15087return 0;
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext
15093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15094 (eval $ac_compile) 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
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); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_cv_member_struct_stat_st_blksize=yes
15115else
15116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
15119ac_cv_member_struct_stat_st_blksize=no
15120fi
15121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15122fi
15123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15124fi
15125echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15126echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
15127if test $ac_cv_member_struct_stat_st_blksize = yes; then
15128
15129cat >>confdefs.h <<_ACEOF
15130#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15131_ACEOF
15132
15133
15134fi
15135
15136
15137# ------------------ #
15138# Checks for types. #
15139# ------------------ #
15140
15141echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15142echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15143if test "${ac_cv_type_signal+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145else
15146 cat >conftest.$ac_ext <<_ACEOF
15147/* confdefs.h. */
15148_ACEOF
15149cat confdefs.h >>conftest.$ac_ext
15150cat >>conftest.$ac_ext <<_ACEOF
15151/* end confdefs.h. */
15152#include <sys/types.h>
15153#include <signal.h>
15154#ifdef signal
15155# undef signal
15156#endif
15157#ifdef __cplusplus
15158extern "C" void (*signal (int, void (*)(int)))(int);
15159#else
15160void (*signal ()) ();
15161#endif
15162
15163int
15164main ()
15165{
15166int i;
15167 ;
15168 return 0;
15169}
15170_ACEOF
15171rm -f conftest.$ac_objext
15172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_cv_type_signal=void
15194else
15195 echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
15198ac_cv_type_signal=int
15199fi
15200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15201fi
15202echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15203echo "${ECHO_T}$ac_cv_type_signal" >&6
15204
15205cat >>confdefs.h <<_ACEOF
15206#define RETSIGTYPE $ac_cv_type_signal
15207_ACEOF
15208
15209
15210echo "$as_me:$LINENO: checking for socklen_t" >&5
15211echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15212if test "${ac_cv_type_socklen_t+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214else
15215 cat >conftest.$ac_ext <<_ACEOF
15216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
15221#include <sys/types.h>
15222#include <sys/socket.h>
15223
15224
15225int
15226main ()
15227{
15228if ((socklen_t *) 0)
15229 return 0;
15230if (sizeof (socklen_t))
15231 return 0;
15232 ;
15233 return 0;
15234}
15235_ACEOF
15236rm -f conftest.$ac_objext
15237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest.$ac_objext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_type_socklen_t=yes
15259else
15260 echo "$as_me: failed program was:" >&5
15261sed 's/^/| /' conftest.$ac_ext >&5
15262
15263ac_cv_type_socklen_t=no
15264fi
15265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15266fi
15267echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15268echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
15269if test $ac_cv_type_socklen_t = yes; then
15270
15271cat >>confdefs.h <<_ACEOF
15272#define HAVE_SOCKLEN_T 1
15273_ACEOF
15274
15275
15276fi
15277
15278echo "$as_me:$LINENO: checking for uintptr_t" >&5
15279echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15280if test "${ac_cv_type_uintptr_t+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282else
15283 cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
15289#include <stdint.h>
15290
15291int
15292main ()
15293{
15294if ((uintptr_t *) 0)
15295 return 0;
15296if (sizeof (uintptr_t))
15297 return 0;
15298 ;
15299 return 0;
15300}
15301_ACEOF
15302rm -f conftest.$ac_objext
15303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15304 (eval $ac_compile) 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag"
15312 || test ! -s conftest.err'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest.$ac_objext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_type_uintptr_t=yes
15325else
15326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329ac_cv_type_uintptr_t=no
15330fi
15331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15332fi
15333echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15334echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15335if test $ac_cv_type_uintptr_t = yes; then
15336
15337cat >>confdefs.h <<_ACEOF
15338#define HAVE_UINTPTR_T 1
15339_ACEOF
15340
15341
15342fi
15343
15344
15345# ------------------------------------- #
15346# Checks for compiler characteristics. #
15347# ------------------------------------- #
15348
15349echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15350echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15351if test "${ac_cv_c_const+set}" = set; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353else
15354 cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360
15361int
15362main ()
15363{
15364/* FIXME: Include the comments suggested by Paul. */
15365#ifndef __cplusplus
15366 /* Ultrix mips cc rejects this. */
15367 typedef int charset[2];
15368 const charset x;
15369 /* SunOS 4.1.1 cc rejects this. */
15370 char const *const *ccp;
15371 char **p;
15372 /* NEC SVR4.0.2 mips cc rejects this. */
15373 struct point {int x, y;};
15374 static struct point const zero = {0,0};
15375 /* AIX XL C 1.02.0.0 rejects this.
15376 It does not let you subtract one const X* pointer from another in
15377 an arm of an if-expression whose if-part is not a constant
15378 expression */
15379 const char *g = "string";
15380 ccp = &g + (g ? g-g : 0);
15381 /* HPUX 7.0 cc rejects these. */
15382 ++ccp;
15383 p = (char**) ccp;
15384 ccp = (char const *const *) p;
15385 { /* SCO 3.2v4 cc rejects this. */
15386 char *t;
15387 char const *s = 0 ? (char *) 0 : (char const *) 0;
15388
15389 *t++ = 0;
15390 }
15391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15392 int x[] = {25, 17};
15393 const int *foo = &x[0];
15394 ++foo;
15395 }
15396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15397 typedef const int *iptr;
15398 iptr p = 0;
15399 ++p;
15400 }
15401 { /* AIX XL C 1.02.0.0 rejects this saying
15402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15403 struct s { int j; const int *ap[3]; };
15404 struct s *b; b->j = 5;
15405 }
15406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15407 const int foo = 10;
15408 }
15409#endif
15410
15411 ;
15412 return 0;
15413}
15414_ACEOF
15415rm -f conftest.$ac_objext
15416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag"
15425 || test ! -s conftest.err'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_c_const=yes
15438else
15439 echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
15442ac_cv_c_const=no
15443fi
15444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445fi
15446echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15447echo "${ECHO_T}$ac_cv_c_const" >&6
15448if test $ac_cv_c_const = no; then
15449
15450cat >>confdefs.h <<\_ACEOF
15451#define const
15452_ACEOF
15453
15454fi
15455
15456echo "$as_me:$LINENO: checking for inline" >&5
15457echo $ECHO_N "checking for inline... $ECHO_C" >&6
15458if test "${ac_cv_c_inline+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460else
15461 ac_cv_c_inline=no
15462for ac_kw in inline __inline__ __inline; do
15463 cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
15469#ifndef __cplusplus
15470typedef int foo_t;
15471static $ac_kw foo_t static_foo () {return 0; }
15472$ac_kw foo_t foo () {return 0; }
15473#endif
15474
15475_ACEOF
15476rm -f conftest.$ac_objext
15477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15478 (eval $ac_compile) 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -z "$ac_c_werror_flag"
15486 || test ! -s conftest.err'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_cv_c_inline=$ac_kw; break
15499else
15500 echo "$as_me: failed program was:" >&5
15501sed 's/^/| /' conftest.$ac_ext >&5
15502
15503fi
15504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15505done
15506
15507fi
15508echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15509echo "${ECHO_T}$ac_cv_c_inline" >&6
15510
15511
15512case $ac_cv_c_inline in
15513 inline | yes) ;;
15514 *)
15515 case $ac_cv_c_inline in
15516 no) ac_val=;;
15517 *) ac_val=$ac_cv_c_inline;;
15518 esac
15519 cat >>confdefs.h <<_ACEOF
15520#ifndef __cplusplus
15521#define inline $ac_val
15522#endif
15523_ACEOF
15524 ;;
15525esac
15526
15527
15528# ------------------------------ #
15529# Checks for library functions. #
15530# ------------------------------ #
15531
15532# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15533# for constant arguments. Useless!
15534echo "$as_me:$LINENO: checking for working alloca.h" >&5
15535echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15536if test "${ac_cv_working_alloca_h+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538else
15539 cat >conftest.$ac_ext <<_ACEOF
15540/* confdefs.h. */
15541_ACEOF
15542cat confdefs.h >>conftest.$ac_ext
15543cat >>conftest.$ac_ext <<_ACEOF
15544/* end confdefs.h. */
15545#include <alloca.h>
15546int
15547main ()
15548{
15549char *p = (char *) alloca (2 * sizeof (int));
15550 ;
15551 return 0;
15552}
15553_ACEOF
15554rm -f conftest.$ac_objext conftest$ac_exeext
15555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } &&
15563 { ac_try='test -z "$ac_c_werror_flag"
15564 || test ! -s conftest.err'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest$ac_exeext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_cv_working_alloca_h=yes
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581ac_cv_working_alloca_h=no
15582fi
15583rm -f conftest.err conftest.$ac_objext \
15584 conftest$ac_exeext conftest.$ac_ext
15585fi
15586echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15587echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15588if test $ac_cv_working_alloca_h = yes; then
15589
15590cat >>confdefs.h <<\_ACEOF
15591#define HAVE_ALLOCA_H 1
15592_ACEOF
15593
15594fi
15595
15596echo "$as_me:$LINENO: checking for alloca" >&5
15597echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15598if test "${ac_cv_func_alloca_works+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600else
15601 cat >conftest.$ac_ext <<_ACEOF
15602/* confdefs.h. */
15603_ACEOF
15604cat confdefs.h >>conftest.$ac_ext
15605cat >>conftest.$ac_ext <<_ACEOF
15606/* end confdefs.h. */
15607#ifdef __GNUC__
15608# define alloca __builtin_alloca
15609#else
15610# ifdef _MSC_VER
15611# include <malloc.h>
15612# define alloca _alloca
15613# else
15614# if HAVE_ALLOCA_H
15615# include <alloca.h>
15616# else
15617# ifdef _AIX
15618 #pragma alloca
15619# else
15620# ifndef alloca /* predefined by HP cc +Olibcalls */
15621char *alloca ();
15622# endif
15623# endif
15624# endif
15625# endif
15626#endif
15627
15628int
15629main ()
15630{
15631char *p = (char *) alloca (1);
15632 ;
15633 return 0;
15634}
15635_ACEOF
15636rm -f conftest.$ac_objext conftest$ac_exeext
15637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638 (eval $ac_link) 2>conftest.er1
15639 ac_status=$?
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
15645 { ac_try='test -z "$ac_c_werror_flag"
15646 || test ! -s conftest.err'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest$ac_exeext'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15658 ac_cv_func_alloca_works=yes
15659else
15660 echo "$as_me: failed program was:" >&5
15661sed 's/^/| /' conftest.$ac_ext >&5
15662
15663ac_cv_func_alloca_works=no
15664fi
15665rm -f conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15667fi
15668echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15669echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15670
15671if test $ac_cv_func_alloca_works = yes; then
15672
15673cat >>confdefs.h <<\_ACEOF
15674#define HAVE_ALLOCA 1
15675_ACEOF
15676
15677else
15678 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15679# that cause trouble. Some versions do not even contain alloca or
15680# contain a buggy version. If you still want to use their alloca,
15681# use ar to extract alloca.o from them instead of compiling alloca.c.
15682
15683ALLOCA=alloca.$ac_objext
15684
15685cat >>confdefs.h <<\_ACEOF
15686#define C_ALLOCA 1
15687_ACEOF
15688
15689
15690echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15691echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15692if test "${ac_cv_os_cray+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694else
15695 cat >conftest.$ac_ext <<_ACEOF
15696/* confdefs.h. */
15697_ACEOF
15698cat confdefs.h >>conftest.$ac_ext
15699cat >>conftest.$ac_ext <<_ACEOF
15700/* end confdefs.h. */
15701#if defined(CRAY) && ! defined(CRAY2)
15702webecray
15703#else
15704wenotbecray
15705#endif
15706
15707_ACEOF
15708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15709 $EGREP "webecray" >/dev/null 2>&1; then
15710 ac_cv_os_cray=yes
15711else
15712 ac_cv_os_cray=no
15713fi
15714rm -f conftest*
15715
15716fi
15717echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15718echo "${ECHO_T}$ac_cv_os_cray" >&6
15719if test $ac_cv_os_cray = yes; then
15720 for ac_func in _getb67 GETB67 getb67; do
15721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15722echo "$as_me:$LINENO: checking for $ac_func" >&5
15723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15724if eval "test \"\${$as_ac_var+set}\" = set"; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15726else
15727 cat >conftest.$ac_ext <<_ACEOF
15728/* confdefs.h. */
15729_ACEOF
15730cat confdefs.h >>conftest.$ac_ext
15731cat >>conftest.$ac_ext <<_ACEOF
15732/* end confdefs.h. */
15733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15735#define $ac_func innocuous_$ac_func
15736
15737/* System header to define __stub macros and hopefully few prototypes,
15738 which can conflict with char $ac_func (); below.
15739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15740 <limits.h> exists even on freestanding compilers. */
15741
15742#ifdef __STDC__
15743# include <limits.h>
15744#else
15745# include <assert.h>
15746#endif
15747
15748#undef $ac_func
15749
15750/* Override any gcc2 internal prototype to avoid an error. */
15751#ifdef __cplusplus
15752extern "C"
15753{
15754#endif
15755/* We use char because int might match the return type of a gcc2
15756 builtin and then its argument prototype would still apply. */
15757char $ac_func ();
15758/* The GNU C library defines this for functions which it implements
15759 to always fail with ENOSYS. Some functions are actually named
15760 something starting with __ and the normal name is an alias. */
15761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15762choke me
15763#else
15764char (*f) () = $ac_func;
15765#endif
15766#ifdef __cplusplus
15767}
15768#endif
15769
15770int
15771main ()
15772{
15773return f != $ac_func;
15774 ;
15775 return 0;
15776}
15777_ACEOF
15778rm -f conftest.$ac_objext conftest$ac_exeext
15779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15780 (eval $ac_link) 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -z "$ac_c_werror_flag"
15788 || test ! -s conftest.err'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 eval "$as_ac_var=yes"
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
15805eval "$as_ac_var=no"
15806fi
15807rm -f conftest.err conftest.$ac_objext \
15808 conftest$ac_exeext conftest.$ac_ext
15809fi
15810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15812if test `eval echo '${'$as_ac_var'}'` = yes; then
15813
15814cat >>confdefs.h <<_ACEOF
15815#define CRAY_STACKSEG_END $ac_func
15816_ACEOF
15817
15818 break
15819fi
15820
15821 done
15822fi
15823
15824echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15825echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15826if test "${ac_cv_c_stack_direction+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828else
15829 if test "$cross_compiling" = yes; then
15830 ac_cv_c_stack_direction=0
15831else
15832 cat >conftest.$ac_ext <<_ACEOF
15833/* confdefs.h. */
15834_ACEOF
15835cat confdefs.h >>conftest.$ac_ext
15836cat >>conftest.$ac_ext <<_ACEOF
15837/* end confdefs.h. */
15838int
15839find_stack_direction ()
15840{
15841 static char *addr = 0;
15842 auto char dummy;
15843 if (addr == 0)
15844 {
15845 addr = &dummy;
15846 return find_stack_direction ();
15847 }
15848 else
15849 return (&dummy > addr) ? 1 : -1;
15850}
15851
15852int
15853main ()
15854{
15855 exit (find_stack_direction () < 0);
15856}
15857_ACEOF
15858rm -f conftest$ac_exeext
15859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15860 (eval $ac_link) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_cv_c_stack_direction=1
15870else
15871 echo "$as_me: program exited with status $ac_status" >&5
15872echo "$as_me: failed program was:" >&5
15873sed 's/^/| /' conftest.$ac_ext >&5
15874
15875( exit $ac_status )
15876ac_cv_c_stack_direction=-1
15877fi
15878rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15879fi
15880fi
15881echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15882echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15883
15884cat >>confdefs.h <<_ACEOF
15885#define STACK_DIRECTION $ac_cv_c_stack_direction
15886_ACEOF
15887
15888
15889fi
15890
15891
15892
15893for ac_header in stdlib.h unistd.h
15894do
15895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15896if eval "test \"\${$as_ac_Header+set}\" = set"; then
15897 echo "$as_me:$LINENO: checking for $ac_header" >&5
15898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15899if eval "test \"\${$as_ac_Header+set}\" = set"; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901fi
15902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15904else
15905 # Is the header compilable?
15906echo "$as_me:$LINENO: checking $ac_header usability" >&5
15907echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15908cat >conftest.$ac_ext <<_ACEOF
15909/* confdefs.h. */
15910_ACEOF
15911cat confdefs.h >>conftest.$ac_ext
15912cat >>conftest.$ac_ext <<_ACEOF
15913/* end confdefs.h. */
15914$ac_includes_default
15915#include <$ac_header>
15916_ACEOF
15917rm -f conftest.$ac_objext
15918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15919 (eval $ac_compile) 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -z "$ac_c_werror_flag"
15927 || test ! -s conftest.err'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest.$ac_objext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_header_compiler=yes
15940else
15941 echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
15944ac_header_compiler=no
15945fi
15946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948echo "${ECHO_T}$ac_header_compiler" >&6
15949
15950# Is the header present?
15951echo "$as_me:$LINENO: checking $ac_header presence" >&5
15952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15953cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h. */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h. */
15959#include <$ac_header>
15960_ACEOF
15961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } >/dev/null; then
15969 if test -s conftest.err; then
15970 ac_cpp_err=$ac_c_preproc_warn_flag
15971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15972 else
15973 ac_cpp_err=
15974 fi
15975else
15976 ac_cpp_err=yes
15977fi
15978if test -z "$ac_cpp_err"; then
15979 ac_header_preproc=yes
15980else
15981 echo "$as_me: failed program was:" >&5
15982sed 's/^/| /' conftest.$ac_ext >&5
15983
15984 ac_header_preproc=no
15985fi
15986rm -f conftest.err conftest.$ac_ext
15987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15988echo "${ECHO_T}$ac_header_preproc" >&6
15989
15990# So? What about this header?
15991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15992 yes:no: )
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15997 ac_header_preproc=yes
15998 ;;
15999 no:yes:* )
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16003echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16007echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16012 (
16013 cat <<\_ASBOX
16014## ------------------------------------------ ##
16015## Report this to the AC_PACKAGE_NAME lists. ##
16016## ------------------------------------------ ##
16017_ASBOX
16018 ) |
16019 sed "s/^/$as_me: WARNING: /" >&2
16020 ;;
16021esac
16022echo "$as_me:$LINENO: checking for $ac_header" >&5
16023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16024if eval "test \"\${$as_ac_Header+set}\" = set"; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16026else
16027 eval "$as_ac_Header=\$ac_header_preproc"
16028fi
16029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16031
16032fi
16033if test `eval echo '${'$as_ac_Header'}'` = yes; then
16034 cat >>confdefs.h <<_ACEOF
16035#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16036_ACEOF
16037
16038fi
16039
16040done
16041
16042
16043for ac_func in getpagesize
16044do
16045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16046echo "$as_me:$LINENO: checking for $ac_func" >&5
16047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16048if eval "test \"\${$as_ac_var+set}\" = set"; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16050else
16051 cat >conftest.$ac_ext <<_ACEOF
16052/* confdefs.h. */
16053_ACEOF
16054cat confdefs.h >>conftest.$ac_ext
16055cat >>conftest.$ac_ext <<_ACEOF
16056/* end confdefs.h. */
16057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16059#define $ac_func innocuous_$ac_func
16060
16061/* System header to define __stub macros and hopefully few prototypes,
16062 which can conflict with char $ac_func (); below.
16063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16064 <limits.h> exists even on freestanding compilers. */
16065
16066#ifdef __STDC__
16067# include <limits.h>
16068#else
16069# include <assert.h>
16070#endif
16071
16072#undef $ac_func
16073
16074/* Override any gcc2 internal prototype to avoid an error. */
16075#ifdef __cplusplus
16076extern "C"
16077{
16078#endif
16079/* We use char because int might match the return type of a gcc2
16080 builtin and then its argument prototype would still apply. */
16081char $ac_func ();
16082/* The GNU C library defines this for functions which it implements
16083 to always fail with ENOSYS. Some functions are actually named
16084 something starting with __ and the normal name is an alias. */
16085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16086choke me
16087#else
16088char (*f) () = $ac_func;
16089#endif
16090#ifdef __cplusplus
16091}
16092#endif
16093
16094int
16095main ()
16096{
16097return f != $ac_func;
16098 ;
16099 return 0;
16100}
16101_ACEOF
16102rm -f conftest.$ac_objext conftest$ac_exeext
16103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>conftest.er1
16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -z "$ac_c_werror_flag"
16112 || test ! -s conftest.err'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest$ac_exeext'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16124 eval "$as_ac_var=yes"
16125else
16126 echo "$as_me: failed program was:" >&5
16127sed 's/^/| /' conftest.$ac_ext >&5
16128
16129eval "$as_ac_var=no"
16130fi
16131rm -f conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133fi
16134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16136if test `eval echo '${'$as_ac_var'}'` = yes; then
16137 cat >>confdefs.h <<_ACEOF
16138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16139_ACEOF
16140
16141fi
16142done
16143
16144echo "$as_me:$LINENO: checking for working mmap" >&5
16145echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16146if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148else
16149 if test "$cross_compiling" = yes; then
16150 ac_cv_func_mmap_fixed_mapped=no
16151else
16152 cat >conftest.$ac_ext <<_ACEOF
16153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
16158$ac_includes_default
16159/* malloc might have been renamed as rpl_malloc. */
16160#undef malloc
16161
16162/* Thanks to Mike Haertel and Jim Avera for this test.
16163 Here is a matrix of mmap possibilities:
16164 mmap private not fixed
16165 mmap private fixed at somewhere currently unmapped
16166 mmap private fixed at somewhere already mapped
16167 mmap shared not fixed
16168 mmap shared fixed at somewhere currently unmapped
16169 mmap shared fixed at somewhere already mapped
16170 For private mappings, we should verify that changes cannot be read()
16171 back from the file, nor mmap's back from the file at a different
16172 address. (There have been systems where private was not correctly
16173 implemented like the infamous i386 svr4.0, and systems where the
16174 VM page cache was not coherent with the file system buffer cache
16175 like early versions of FreeBSD and possibly contemporary NetBSD.)
16176 For shared mappings, we should conversely verify that changes get
16177 propagated back to all the places they're supposed to be.
16178
16179 Grep wants private fixed already mapped.
16180 The main things grep needs to know about mmap are:
16181 * does it exist and is it safe to write into the mmap'd area
16182 * how to use it (BSD variants) */
16183
16184#include <fcntl.h>
16185#include <sys/mman.h>
16186
16187#if !STDC_HEADERS && !HAVE_STDLIB_H
16188char *malloc ();
16189#endif
16190
16191/* This mess was copied from the GNU getpagesize.h. */
16192#if !HAVE_GETPAGESIZE
16193/* Assume that all systems that can run configure have sys/param.h. */
16194# if !HAVE_SYS_PARAM_H
16195# define HAVE_SYS_PARAM_H 1
16196# endif
16197
16198# ifdef _SC_PAGESIZE
16199# define getpagesize() sysconf(_SC_PAGESIZE)
16200# else /* no _SC_PAGESIZE */
16201# if HAVE_SYS_PARAM_H
16202# include <sys/param.h>
16203# ifdef EXEC_PAGESIZE
16204# define getpagesize() EXEC_PAGESIZE
16205# else /* no EXEC_PAGESIZE */
16206# ifdef NBPG
16207# define getpagesize() NBPG * CLSIZE
16208# ifndef CLSIZE
16209# define CLSIZE 1
16210# endif /* no CLSIZE */
16211# else /* no NBPG */
16212# ifdef NBPC
16213# define getpagesize() NBPC
16214# else /* no NBPC */
16215# ifdef PAGESIZE
16216# define getpagesize() PAGESIZE
16217# endif /* PAGESIZE */
16218# endif /* no NBPC */
16219# endif /* no NBPG */
16220# endif /* no EXEC_PAGESIZE */
16221# else /* no HAVE_SYS_PARAM_H */
16222# define getpagesize() 8192 /* punt totally */
16223# endif /* no HAVE_SYS_PARAM_H */
16224# endif /* no _SC_PAGESIZE */
16225
16226#endif /* no HAVE_GETPAGESIZE */
16227
16228int
16229main ()
16230{
16231 char *data, *data2, *data3;
16232 int i, pagesize;
16233 int fd;
16234
16235 pagesize = getpagesize ();
16236
16237 /* First, make a file with some known garbage in it. */
16238 data = (char *) malloc (pagesize);
16239 if (!data)
16240 exit (1);
16241 for (i = 0; i < pagesize; ++i)
16242 *(data + i) = rand ();
16243 umask (0);
16244 fd = creat ("conftest.mmap", 0600);
16245 if (fd < 0)
16246 exit (1);
16247 if (write (fd, data, pagesize) != pagesize)
16248 exit (1);
16249 close (fd);
16250
16251 /* Next, try to mmap the file at a fixed address which already has
16252 something else allocated at it. If we can, also make sure that
16253 we see the same garbage. */
16254 fd = open ("conftest.mmap", O_RDWR);
16255 if (fd < 0)
16256 exit (1);
16257 data2 = (char *) malloc (2 * pagesize);
16258 if (!data2)
16259 exit (1);
16260 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16261 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16262 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16263 exit (1);
16264 for (i = 0; i < pagesize; ++i)
16265 if (*(data + i) != *(data2 + i))
16266 exit (1);
16267
16268 /* Finally, make sure that changes to the mapped area do not
16269 percolate back to the file as seen by read(). (This is a bug on
16270 some variants of i386 svr4.0.) */
16271 for (i = 0; i < pagesize; ++i)
16272 *(data2 + i) = *(data2 + i) + 1;
16273 data3 = (char *) malloc (pagesize);
16274 if (!data3)
16275 exit (1);
16276 if (read (fd, data3, pagesize) != pagesize)
16277 exit (1);
16278 for (i = 0; i < pagesize; ++i)
16279 if (*(data + i) != *(data3 + i))
16280 exit (1);
16281 close (fd);
16282 exit (0);
16283}
16284_ACEOF
16285rm -f conftest$ac_exeext
16286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296 ac_cv_func_mmap_fixed_mapped=yes
16297else
16298 echo "$as_me: program exited with status $ac_status" >&5
16299echo "$as_me: failed program was:" >&5
16300sed 's/^/| /' conftest.$ac_ext >&5
16301
16302( exit $ac_status )
16303ac_cv_func_mmap_fixed_mapped=no
16304fi
16305rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16306fi
16307fi
16308echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16309echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16310if test $ac_cv_func_mmap_fixed_mapped = yes; then
16311
16312cat >>confdefs.h <<\_ACEOF
16313#define HAVE_MMAP 1
16314_ACEOF
16315
16316fi
16317rm -f conftest.mmap
16318
16319echo "$as_me:$LINENO: checking for pid_t" >&5
16320echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16321if test "${ac_cv_type_pid_t+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323else
16324 cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
16330$ac_includes_default
16331int
16332main ()
16333{
16334if ((pid_t *) 0)
16335 return 0;
16336if (sizeof (pid_t))
16337 return 0;
16338 ;
16339 return 0;
16340}
16341_ACEOF
16342rm -f conftest.$ac_objext
16343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344 (eval $ac_compile) 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_type_pid_t=yes
16365else
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
16369ac_cv_type_pid_t=no
16370fi
16371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16372fi
16373echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16374echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16375if test $ac_cv_type_pid_t = yes; then
16376 :
16377else
16378
16379cat >>confdefs.h <<_ACEOF
16380#define pid_t int
16381_ACEOF
16382
16383fi
16384
16385
16386
16387for ac_header in unistd.h vfork.h
16388do
16389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16390if eval "test \"\${$as_ac_Header+set}\" = set"; then
16391 echo "$as_me:$LINENO: checking for $ac_header" >&5
16392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16393if eval "test \"\${$as_ac_Header+set}\" = set"; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395fi
16396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16398else
16399 # Is the header compilable?
16400echo "$as_me:$LINENO: checking $ac_header usability" >&5
16401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16402cat >conftest.$ac_ext <<_ACEOF
16403/* confdefs.h. */
16404_ACEOF
16405cat confdefs.h >>conftest.$ac_ext
16406cat >>conftest.$ac_ext <<_ACEOF
16407/* end confdefs.h. */
16408$ac_includes_default
16409#include <$ac_header>
16410_ACEOF
16411rm -f conftest.$ac_objext
16412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16413 (eval $ac_compile) 2>conftest.er1
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } &&
16420 { ac_try='test -z "$ac_c_werror_flag"
16421 || test ! -s conftest.err'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_header_compiler=yes
16434else
16435 echo "$as_me: failed program was:" >&5
16436sed 's/^/| /' conftest.$ac_ext >&5
16437
16438ac_header_compiler=no
16439fi
16440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16442echo "${ECHO_T}$ac_header_compiler" >&6
16443
16444# Is the header present?
16445echo "$as_me:$LINENO: checking $ac_header presence" >&5
16446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16447cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453#include <$ac_header>
16454_ACEOF
16455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } >/dev/null; then
16463 if test -s conftest.err; then
16464 ac_cpp_err=$ac_c_preproc_warn_flag
16465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16466 else
16467 ac_cpp_err=
16468 fi
16469else
16470 ac_cpp_err=yes
16471fi
16472if test -z "$ac_cpp_err"; then
16473 ac_header_preproc=yes
16474else
16475 echo "$as_me: failed program was:" >&5
16476sed 's/^/| /' conftest.$ac_ext >&5
16477
16478 ac_header_preproc=no
16479fi
16480rm -f conftest.err conftest.$ac_ext
16481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16482echo "${ECHO_T}$ac_header_preproc" >&6
16483
16484# So? What about this header?
16485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16486 yes:no: )
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16491 ac_header_preproc=yes
16492 ;;
16493 no:yes:* )
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16506 (
16507 cat <<\_ASBOX
16508## ------------------------------------------ ##
16509## Report this to the AC_PACKAGE_NAME lists. ##
16510## ------------------------------------------ ##
16511_ASBOX
16512 ) |
16513 sed "s/^/$as_me: WARNING: /" >&2
16514 ;;
16515esac
16516echo "$as_me:$LINENO: checking for $ac_header" >&5
16517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16518if eval "test \"\${$as_ac_Header+set}\" = set"; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520else
16521 eval "$as_ac_Header=\$ac_header_preproc"
16522fi
16523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16525
16526fi
16527if test `eval echo '${'$as_ac_Header'}'` = yes; then
16528 cat >>confdefs.h <<_ACEOF
16529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16530_ACEOF
16531
16532fi
16533
16534done
16535
16536
16537
16538for ac_func in fork vfork
16539do
16540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16541echo "$as_me:$LINENO: checking for $ac_func" >&5
16542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16543if eval "test \"\${$as_ac_var+set}\" = set"; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545else
16546 cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h. */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h. */
16552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16554#define $ac_func innocuous_$ac_func
16555
16556/* System header to define __stub macros and hopefully few prototypes,
16557 which can conflict with char $ac_func (); below.
16558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16559 <limits.h> exists even on freestanding compilers. */
16560
16561#ifdef __STDC__
16562# include <limits.h>
16563#else
16564# include <assert.h>
16565#endif
16566
16567#undef $ac_func
16568
16569/* Override any gcc2 internal prototype to avoid an error. */
16570#ifdef __cplusplus
16571extern "C"
16572{
16573#endif
16574/* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
16576char $ac_func ();
16577/* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16581choke me
16582#else
16583char (*f) () = $ac_func;
16584#endif
16585#ifdef __cplusplus
16586}
16587#endif
16588
16589int
16590main ()
16591{
16592return f != $ac_func;
16593 ;
16594 return 0;
16595}
16596_ACEOF
16597rm -f conftest.$ac_objext conftest$ac_exeext
16598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag"
16607 || test ! -s conftest.err'
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); }; } &&
16613 { ac_try='test -s conftest$ac_exeext'
16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615 (eval $ac_try) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 eval "$as_ac_var=yes"
16620else
16621 echo "$as_me: failed program was:" >&5
16622sed 's/^/| /' conftest.$ac_ext >&5
16623
16624eval "$as_ac_var=no"
16625fi
16626rm -f conftest.err conftest.$ac_objext \
16627 conftest$ac_exeext conftest.$ac_ext
16628fi
16629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16630echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16631if test `eval echo '${'$as_ac_var'}'` = yes; then
16632 cat >>confdefs.h <<_ACEOF
16633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16634_ACEOF
16635
16636fi
16637done
16638
16639if test "x$ac_cv_func_fork" = xyes; then
16640 echo "$as_me:$LINENO: checking for working fork" >&5
16641echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16642if test "${ac_cv_func_fork_works+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645 if test "$cross_compiling" = yes; then
16646 ac_cv_func_fork_works=cross
16647else
16648 cat >conftest.$ac_ext <<_ACEOF
16649/* By Ruediger Kuhlmann. */
16650 #include <sys/types.h>
16651 #if HAVE_UNISTD_H
16652 # include <unistd.h>
16653 #endif
16654 /* Some systems only have a dummy stub for fork() */
16655 int main ()
16656 {
16657 if (fork() < 0)
16658 exit (1);
16659 exit (0);
16660 }
16661_ACEOF
16662rm -f conftest$ac_exeext
16663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
16673 ac_cv_func_fork_works=yes
16674else
16675 echo "$as_me: program exited with status $ac_status" >&5
16676echo "$as_me: failed program was:" >&5
16677sed 's/^/| /' conftest.$ac_ext >&5
16678
16679( exit $ac_status )
16680ac_cv_func_fork_works=no
16681fi
16682rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16683fi
16684fi
16685echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16686echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16687
16688else
16689 ac_cv_func_fork_works=$ac_cv_func_fork
16690fi
16691if test "x$ac_cv_func_fork_works" = xcross; then
16692 case $host in
16693 *-*-amigaos* | *-*-msdosdjgpp*)
16694 # Override, as these systems have only a dummy fork() stub
16695 ac_cv_func_fork_works=no
16696 ;;
16697 *)
16698 ac_cv_func_fork_works=yes
16699 ;;
16700 esac
16701 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16702echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16703fi
16704ac_cv_func_vfork_works=$ac_cv_func_vfork
16705if test "x$ac_cv_func_vfork" = xyes; then
16706 echo "$as_me:$LINENO: checking for working vfork" >&5
16707echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16708if test "${ac_cv_func_vfork_works+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710else
16711 if test "$cross_compiling" = yes; then
16712 ac_cv_func_vfork_works=cross
16713else
16714 cat >conftest.$ac_ext <<_ACEOF
16715/* confdefs.h. */
16716_ACEOF
16717cat confdefs.h >>conftest.$ac_ext
16718cat >>conftest.$ac_ext <<_ACEOF
16719/* end confdefs.h. */
16720/* Thanks to Paul Eggert for this test. */
16721#include <stdio.h>
16722#include <stdlib.h>
16723#include <sys/types.h>
16724#include <sys/stat.h>
16725#include <sys/wait.h>
16726#if HAVE_UNISTD_H
16727# include <unistd.h>
16728#endif
16729#if HAVE_VFORK_H
16730# include <vfork.h>
16731#endif
16732/* On some sparc systems, changes by the child to local and incoming
16733 argument registers are propagated back to the parent. The compiler
16734 is told about this with #include <vfork.h>, but some compilers
16735 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16736 static variable whose address is put into a register that is
16737 clobbered by the vfork. */
16738static void
16739#ifdef __cplusplus
16740sparc_address_test (int arg)
16741# else
16742sparc_address_test (arg) int arg;
16743#endif
16744{
16745 static pid_t child;
16746 if (!child) {
16747 child = vfork ();
16748 if (child < 0) {
16749 perror ("vfork");
16750 _exit(2);
16751 }
16752 if (!child) {
16753 arg = getpid();
16754 write(-1, "", 0);
16755 _exit (arg);
16756 }
16757 }
16758}
16759
16760int
16761main ()
16762{
16763 pid_t parent = getpid ();
16764 pid_t child;
16765
16766 sparc_address_test (0);
16767
16768 child = vfork ();
16769
16770 if (child == 0) {
16771 /* Here is another test for sparc vfork register problems. This
16772 test uses lots of local variables, at least as many local
16773 variables as main has allocated so far including compiler
16774 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16775 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16776 reuse the register of parent for one of the local variables,
16777 since it will think that parent can't possibly be used any more
16778 in this routine. Assigning to the local variable will thus
16779 munge parent in the parent process. */
16780 pid_t
16781 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16782 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16783 /* Convince the compiler that p..p7 are live; otherwise, it might
16784 use the same hardware register for all 8 local variables. */
16785 if (p != p1 || p != p2 || p != p3 || p != p4
16786 || p != p5 || p != p6 || p != p7)
16787 _exit(1);
16788
16789 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16790 from child file descriptors. If the child closes a descriptor
16791 before it execs or exits, this munges the parent's descriptor
16792 as well. Test for this by closing stdout in the child. */
16793 _exit(close(fileno(stdout)) != 0);
16794 } else {
16795 int status;
16796 struct stat st;
16797
16798 while (wait(&status) != child)
16799 ;
16800 exit(
16801 /* Was there some problem with vforking? */
16802 child < 0
16803
16804 /* Did the child fail? (This shouldn't happen.) */
16805 || status
16806
16807 /* Did the vfork/compiler bug occur? */
16808 || parent != getpid()
16809
16810 /* Did the file descriptor bug occur? */
16811 || fstat(fileno(stdout), &st) != 0
16812 );
16813 }
16814}
16815_ACEOF
16816rm -f conftest$ac_exeext
16817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16818 (eval $ac_link) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16827 ac_cv_func_vfork_works=yes
16828else
16829 echo "$as_me: program exited with status $ac_status" >&5
16830echo "$as_me: failed program was:" >&5
16831sed 's/^/| /' conftest.$ac_ext >&5
16832
16833( exit $ac_status )
16834ac_cv_func_vfork_works=no
16835fi
16836rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16837fi
16838fi
16839echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16840echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16841
16842fi;
16843if test "x$ac_cv_func_fork_works" = xcross; then
16844 ac_cv_func_vfork_works=$ac_cv_func_vfork
16845 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16846echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16847fi
16848
16849if test "x$ac_cv_func_vfork_works" = xyes; then
16850
16851cat >>confdefs.h <<\_ACEOF
16852#define HAVE_WORKING_VFORK 1
16853_ACEOF
16854
16855else
16856
16857cat >>confdefs.h <<\_ACEOF
16858#define vfork fork
16859_ACEOF
16860
16861fi
16862if test "x$ac_cv_func_fork_works" = xyes; then
16863
16864cat >>confdefs.h <<\_ACEOF
16865#define HAVE_WORKING_FORK 1
16866_ACEOF
16867
16868fi
16869
16870
16871
16872for ac_func in canonicalize_file_name realpath
16873do
16874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16875echo "$as_me:$LINENO: checking for $ac_func" >&5
16876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16877if eval "test \"\${$as_ac_var+set}\" = set"; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16879else
16880 cat >conftest.$ac_ext <<_ACEOF
16881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
16886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16888#define $ac_func innocuous_$ac_func
16889
16890/* System header to define __stub macros and hopefully few prototypes,
16891 which can conflict with char $ac_func (); below.
16892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16893 <limits.h> exists even on freestanding compilers. */
16894
16895#ifdef __STDC__
16896# include <limits.h>
16897#else
16898# include <assert.h>
16899#endif
16900
16901#undef $ac_func
16902
16903/* Override any gcc2 internal prototype to avoid an error. */
16904#ifdef __cplusplus
16905extern "C"
16906{
16907#endif
16908/* We use char because int might match the return type of a gcc2
16909 builtin and then its argument prototype would still apply. */
16910char $ac_func ();
16911/* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16915choke me
16916#else
16917char (*f) () = $ac_func;
16918#endif
16919#ifdef __cplusplus
16920}
16921#endif
16922
16923int
16924main ()
16925{
16926return f != $ac_func;
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext conftest$ac_exeext
16932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933 (eval $ac_link) 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest$ac_exeext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 eval "$as_ac_var=yes"
16954else
16955 echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
16958eval "$as_ac_var=no"
16959fi
16960rm -f conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962fi
16963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16965if test `eval echo '${'$as_ac_var'}'` = yes; then
16966 cat >>confdefs.h <<_ACEOF
16967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16968_ACEOF
16969
16970fi
16971done
16972
16973
16974for ac_func in getrusage
16975do
16976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16977echo "$as_me:$LINENO: checking for $ac_func" >&5
16978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16979if eval "test \"\${$as_ac_var+set}\" = set"; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 cat >conftest.$ac_ext <<_ACEOF
16983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
16988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16990#define $ac_func innocuous_$ac_func
16991
16992/* System header to define __stub macros and hopefully few prototypes,
16993 which can conflict with char $ac_func (); below.
16994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16995 <limits.h> exists even on freestanding compilers. */
16996
16997#ifdef __STDC__
16998# include <limits.h>
16999#else
17000# include <assert.h>
17001#endif
17002
17003#undef $ac_func
17004
17005/* Override any gcc2 internal prototype to avoid an error. */
17006#ifdef __cplusplus
17007extern "C"
17008{
17009#endif
17010/* We use char because int might match the return type of a gcc2
17011 builtin and then its argument prototype would still apply. */
17012char $ac_func ();
17013/* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
17016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17017choke me
17018#else
17019char (*f) () = $ac_func;
17020#endif
17021#ifdef __cplusplus
17022}
17023#endif
17024
17025int
17026main ()
17027{
17028return f != $ac_func;
17029 ;
17030 return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext conftest$ac_exeext
17034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$as_ac_var=yes"
17056else
17057 echo "$as_me: failed program was:" >&5
17058sed 's/^/| /' conftest.$ac_ext >&5
17059
17060eval "$as_ac_var=no"
17061fi
17062rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064fi
17065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17067if test `eval echo '${'$as_ac_var'}'` = yes; then
17068 cat >>confdefs.h <<_ACEOF
17069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17070_ACEOF
17071
17072fi
17073done
17074
17075
17076
17077for ac_func in getuid getgid
17078do
17079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17080echo "$as_me:$LINENO: checking for $ac_func" >&5
17081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17082if eval "test \"\${$as_ac_var+set}\" = set"; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084else
17085 cat >conftest.$ac_ext <<_ACEOF
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
17091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17093#define $ac_func innocuous_$ac_func
17094
17095/* System header to define __stub macros and hopefully few prototypes,
17096 which can conflict with char $ac_func (); below.
17097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 <limits.h> exists even on freestanding compilers. */
17099
17100#ifdef __STDC__
17101# include <limits.h>
17102#else
17103# include <assert.h>
17104#endif
17105
17106#undef $ac_func
17107
17108/* Override any gcc2 internal prototype to avoid an error. */
17109#ifdef __cplusplus
17110extern "C"
17111{
17112#endif
17113/* We use char because int might match the return type of a gcc2
17114 builtin and then its argument prototype would still apply. */
17115char $ac_func ();
17116/* The GNU C library defines this for functions which it implements
17117 to always fail with ENOSYS. Some functions are actually named
17118 something starting with __ and the normal name is an alias. */
17119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17120choke me
17121#else
17122char (*f) () = $ac_func;
17123#endif
17124#ifdef __cplusplus
17125}
17126#endif
17127
17128int
17129main ()
17130{
17131return f != $ac_func;
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
17137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest$ac_exeext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 eval "$as_ac_var=yes"
17159else
17160 echo "$as_me: failed program was:" >&5
17161sed 's/^/| /' conftest.$ac_ext >&5
17162
17163eval "$as_ac_var=no"
17164fi
17165rm -f conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167fi
17168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17170if test `eval echo '${'$as_ac_var'}'` = yes; then
17171 cat >>confdefs.h <<_ACEOF
17172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17173_ACEOF
17174
17175fi
17176done
17177
17178
17179for ac_func in poll
17180do
17181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182echo "$as_me:$LINENO: checking for $ac_func" >&5
17183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17184if eval "test \"\${$as_ac_var+set}\" = set"; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17186else
17187 cat >conftest.$ac_ext <<_ACEOF
17188/* confdefs.h. */
17189_ACEOF
17190cat confdefs.h >>conftest.$ac_ext
17191cat >>conftest.$ac_ext <<_ACEOF
17192/* end confdefs.h. */
17193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17195#define $ac_func innocuous_$ac_func
17196
17197/* System header to define __stub macros and hopefully few prototypes,
17198 which can conflict with char $ac_func (); below.
17199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200 <limits.h> exists even on freestanding compilers. */
17201
17202#ifdef __STDC__
17203# include <limits.h>
17204#else
17205# include <assert.h>
17206#endif
17207
17208#undef $ac_func
17209
17210/* Override any gcc2 internal prototype to avoid an error. */
17211#ifdef __cplusplus
17212extern "C"
17213{
17214#endif
17215/* We use char because int might match the return type of a gcc2
17216 builtin and then its argument prototype would still apply. */
17217char $ac_func ();
17218/* The GNU C library defines this for functions which it implements
17219 to always fail with ENOSYS. Some functions are actually named
17220 something starting with __ and the normal name is an alias. */
17221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17222choke me
17223#else
17224char (*f) () = $ac_func;
17225#endif
17226#ifdef __cplusplus
17227}
17228#endif
17229
17230int
17231main ()
17232{
17233return f != $ac_func;
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext conftest$ac_exeext
17239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17240 (eval $ac_link) 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 eval "$as_ac_var=yes"
17261else
17262 echo "$as_me: failed program was:" >&5
17263sed 's/^/| /' conftest.$ac_ext >&5
17264
17265eval "$as_ac_var=no"
17266fi
17267rm -f conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269fi
17270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17272if test `eval echo '${'$as_ac_var'}'` = yes; then
17273 cat >>confdefs.h <<_ACEOF
17274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17275_ACEOF
17276
17277fi
17278done
17279
17280
17281for ac_func in pread64
17282do
17283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284echo "$as_me:$LINENO: checking for $ac_func" >&5
17285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17286if eval "test \"\${$as_ac_var+set}\" = set"; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289 cat >conftest.$ac_ext <<_ACEOF
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
17295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17297#define $ac_func innocuous_$ac_func
17298
17299/* System header to define __stub macros and hopefully few prototypes,
17300 which can conflict with char $ac_func (); below.
17301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302 <limits.h> exists even on freestanding compilers. */
17303
17304#ifdef __STDC__
17305# include <limits.h>
17306#else
17307# include <assert.h>
17308#endif
17309
17310#undef $ac_func
17311
17312/* Override any gcc2 internal prototype to avoid an error. */
17313#ifdef __cplusplus
17314extern "C"
17315{
17316#endif
17317/* We use char because int might match the return type of a gcc2
17318 builtin and then its argument prototype would still apply. */
17319char $ac_func ();
17320/* The GNU C library defines this for functions which it implements
17321 to always fail with ENOSYS. Some functions are actually named
17322 something starting with __ and the normal name is an alias. */
17323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17324choke me
17325#else
17326char (*f) () = $ac_func;
17327#endif
17328#ifdef __cplusplus
17329}
17330#endif
17331
17332int
17333main ()
17334{
17335return f != $ac_func;
17336 ;
17337 return 0;
17338}
17339_ACEOF
17340rm -f conftest.$ac_objext conftest$ac_exeext
17341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17342 (eval $ac_link) 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } &&
17349 { ac_try='test -z "$ac_c_werror_flag"
17350 || test ! -s conftest.err'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; } &&
17356 { ac_try='test -s conftest$ac_exeext'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 eval "$as_ac_var=yes"
17363else
17364 echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367eval "$as_ac_var=no"
17368fi
17369rm -f conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext conftest.$ac_ext
17371fi
17372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17374if test `eval echo '${'$as_ac_var'}'` = yes; then
17375 cat >>confdefs.h <<_ACEOF
17376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17377_ACEOF
17378
17379fi
17380done
17381
17382
17383for ac_func in sbrk
17384do
17385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17386echo "$as_me:$LINENO: checking for $ac_func" >&5
17387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17388if eval "test \"\${$as_ac_var+set}\" = set"; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390else
17391 cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h. */
17397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399#define $ac_func innocuous_$ac_func
17400
17401/* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char $ac_func (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17405
17406#ifdef __STDC__
17407# include <limits.h>
17408#else
17409# include <assert.h>
17410#endif
17411
17412#undef $ac_func
17413
17414/* Override any gcc2 internal prototype to avoid an error. */
17415#ifdef __cplusplus
17416extern "C"
17417{
17418#endif
17419/* We use char because int might match the return type of a gcc2
17420 builtin and then its argument prototype would still apply. */
17421char $ac_func ();
17422/* The GNU C library defines this for functions which it implements
17423 to always fail with ENOSYS. Some functions are actually named
17424 something starting with __ and the normal name is an alias. */
17425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17426choke me
17427#else
17428char (*f) () = $ac_func;
17429#endif
17430#ifdef __cplusplus
17431}
17432#endif
17433
17434int
17435main ()
17436{
17437return f != $ac_func;
17438 ;
17439 return 0;
17440}
17441_ACEOF
17442rm -f conftest.$ac_objext conftest$ac_exeext
17443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17444 (eval $ac_link) 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -z "$ac_c_werror_flag"
17452 || test ! -s conftest.err'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 eval "$as_ac_var=yes"
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469eval "$as_ac_var=no"
17470fi
17471rm -f conftest.err conftest.$ac_objext \
17472 conftest$ac_exeext conftest.$ac_ext
17473fi
17474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17476if test `eval echo '${'$as_ac_var'}'` = yes; then
17477 cat >>confdefs.h <<_ACEOF
17478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17479_ACEOF
17480
17481fi
17482done
17483
17484
17485
17486for ac_func in setpgid setpgrp
17487do
17488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17489echo "$as_me:$LINENO: checking for $ac_func" >&5
17490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17491if eval "test \"\${$as_ac_var+set}\" = set"; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493else
17494 cat >conftest.$ac_ext <<_ACEOF
17495/* confdefs.h. */
17496_ACEOF
17497cat confdefs.h >>conftest.$ac_ext
17498cat >>conftest.$ac_ext <<_ACEOF
17499/* end confdefs.h. */
17500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17502#define $ac_func innocuous_$ac_func
17503
17504/* System header to define __stub macros and hopefully few prototypes,
17505 which can conflict with char $ac_func (); below.
17506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17507 <limits.h> exists even on freestanding compilers. */
17508
17509#ifdef __STDC__
17510# include <limits.h>
17511#else
17512# include <assert.h>
17513#endif
17514
17515#undef $ac_func
17516
17517/* Override any gcc2 internal prototype to avoid an error. */
17518#ifdef __cplusplus
17519extern "C"
17520{
17521#endif
17522/* We use char because int might match the return type of a gcc2
17523 builtin and then its argument prototype would still apply. */
17524char $ac_func ();
17525/* The GNU C library defines this for functions which it implements
17526 to always fail with ENOSYS. Some functions are actually named
17527 something starting with __ and the normal name is an alias. */
17528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17529choke me
17530#else
17531char (*f) () = $ac_func;
17532#endif
17533#ifdef __cplusplus
17534}
17535#endif
17536
17537int
17538main ()
17539{
17540return f != $ac_func;
17541 ;
17542 return 0;
17543}
17544_ACEOF
17545rm -f conftest.$ac_objext conftest$ac_exeext
17546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547 (eval $ac_link) 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 eval "$as_ac_var=yes"
17568else
17569 echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
17572eval "$as_ac_var=no"
17573fi
17574rm -f conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17576fi
17577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17579if test `eval echo '${'$as_ac_var'}'` = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582_ACEOF
17583
17584fi
17585done
17586
17587
17588
17589
17590for ac_func in sigaction sigprocmask sigsetmask
17591do
17592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17593echo "$as_me:$LINENO: checking for $ac_func" >&5
17594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17595if eval "test \"\${$as_ac_var+set}\" = set"; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597else
17598 cat >conftest.$ac_ext <<_ACEOF
17599/* confdefs.h. */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h. */
17604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17606#define $ac_func innocuous_$ac_func
17607
17608/* System header to define __stub macros and hopefully few prototypes,
17609 which can conflict with char $ac_func (); below.
17610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611 <limits.h> exists even on freestanding compilers. */
17612
17613#ifdef __STDC__
17614# include <limits.h>
17615#else
17616# include <assert.h>
17617#endif
17618
17619#undef $ac_func
17620
17621/* Override any gcc2 internal prototype to avoid an error. */
17622#ifdef __cplusplus
17623extern "C"
17624{
17625#endif
17626/* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
17628char $ac_func ();
17629/* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17633choke me
17634#else
17635char (*f) () = $ac_func;
17636#endif
17637#ifdef __cplusplus
17638}
17639#endif
17640
17641int
17642main ()
17643{
17644return f != $ac_func;
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext conftest$ac_exeext
17650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651 (eval $ac_link) 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); } &&
17658 { ac_try='test -z "$ac_c_werror_flag"
17659 || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest$ac_exeext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 eval "$as_ac_var=yes"
17672else
17673 echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
17676eval "$as_ac_var=no"
17677fi
17678rm -f conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
17680fi
17681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17683if test `eval echo '${'$as_ac_var'}'` = yes; then
17684 cat >>confdefs.h <<_ACEOF
17685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17686_ACEOF
17687
17688fi
17689done
17690
17691
17692for ac_func in socketpair
17693do
17694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695echo "$as_me:$LINENO: checking for $ac_func" >&5
17696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17697if eval "test \"\${$as_ac_var+set}\" = set"; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699else
17700 cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708#define $ac_func innocuous_$ac_func
17709
17710/* System header to define __stub macros and hopefully few prototypes,
17711 which can conflict with char $ac_func (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17714
17715#ifdef __STDC__
17716# include <limits.h>
17717#else
17718# include <assert.h>
17719#endif
17720
17721#undef $ac_func
17722
17723/* Override any gcc2 internal prototype to avoid an error. */
17724#ifdef __cplusplus
17725extern "C"
17726{
17727#endif
17728/* We use char because int might match the return type of a gcc2
17729 builtin and then its argument prototype would still apply. */
17730char $ac_func ();
17731/* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
17734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17735choke me
17736#else
17737char (*f) () = $ac_func;
17738#endif
17739#ifdef __cplusplus
17740}
17741#endif
17742
17743int
17744main ()
17745{
17746return f != $ac_func;
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext conftest$ac_exeext
17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>conftest.er1
17754 ac_status=$?
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 eval "$as_ac_var=yes"
17774else
17775 echo "$as_me: failed program was:" >&5
17776sed 's/^/| /' conftest.$ac_ext >&5
17777
17778eval "$as_ac_var=no"
17779fi
17780rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782fi
17783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17785if test `eval echo '${'$as_ac_var'}'` = yes; then
17786 cat >>confdefs.h <<_ACEOF
17787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17788_ACEOF
17789
17790fi
17791done
17792
17793
17794for ac_func in syscall
17795do
17796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17797echo "$as_me:$LINENO: checking for $ac_func" >&5
17798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17799if eval "test \"\${$as_ac_var+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. */
17808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17810#define $ac_func innocuous_$ac_func
17811
17812/* System header to define __stub macros and hopefully few prototypes,
17813 which can conflict with char $ac_func (); below.
17814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17815 <limits.h> exists even on freestanding compilers. */
17816
17817#ifdef __STDC__
17818# include <limits.h>
17819#else
17820# include <assert.h>
17821#endif
17822
17823#undef $ac_func
17824
17825/* Override any gcc2 internal prototype to avoid an error. */
17826#ifdef __cplusplus
17827extern "C"
17828{
17829#endif
17830/* We use char because int might match the return type of a gcc2
17831 builtin and then its argument prototype would still apply. */
17832char $ac_func ();
17833/* The GNU C library defines this for functions which it implements
17834 to always fail with ENOSYS. Some functions are actually named
17835 something starting with __ and the normal name is an alias. */
17836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17837choke me
17838#else
17839char (*f) () = $ac_func;
17840#endif
17841#ifdef __cplusplus
17842}
17843#endif
17844
17845int
17846main ()
17847{
17848return f != $ac_func;
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853rm -f conftest.$ac_objext conftest$ac_exeext
17854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17855 (eval $ac_link) 2>conftest.er1
17856 ac_status=$?
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -z "$ac_c_werror_flag"
17863 || test ! -s conftest.err'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest$ac_exeext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 eval "$as_ac_var=yes"
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880eval "$as_ac_var=no"
17881fi
17882rm -f conftest.err conftest.$ac_objext \
17883 conftest$ac_exeext conftest.$ac_ext
17884fi
17885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17887if test `eval echo '${'$as_ac_var'}'` = yes; then
17888 cat >>confdefs.h <<_ACEOF
17889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17890_ACEOF
17891
17892fi
17893done
17894
17895
17896for ac_func in ttrace
17897do
17898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17899echo "$as_me:$LINENO: checking for $ac_func" >&5
17900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17901if eval "test \"\${$as_ac_var+set}\" = set"; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903else
17904 cat >conftest.$ac_ext <<_ACEOF
17905/* confdefs.h. */
17906_ACEOF
17907cat confdefs.h >>conftest.$ac_ext
17908cat >>conftest.$ac_ext <<_ACEOF
17909/* end confdefs.h. */
17910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912#define $ac_func innocuous_$ac_func
17913
17914/* System header to define __stub macros and hopefully few prototypes,
17915 which can conflict with char $ac_func (); below.
17916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917 <limits.h> exists even on freestanding compilers. */
17918
17919#ifdef __STDC__
17920# include <limits.h>
17921#else
17922# include <assert.h>
17923#endif
17924
17925#undef $ac_func
17926
17927/* Override any gcc2 internal prototype to avoid an error. */
17928#ifdef __cplusplus
17929extern "C"
17930{
17931#endif
17932/* We use char because int might match the return type of a gcc2
17933 builtin and then its argument prototype would still apply. */
17934char $ac_func ();
17935/* The GNU C library defines this for functions which it implements
17936 to always fail with ENOSYS. Some functions are actually named
17937 something starting with __ and the normal name is an alias. */
17938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17939choke me
17940#else
17941char (*f) () = $ac_func;
17942#endif
17943#ifdef __cplusplus
17944}
17945#endif
17946
17947int
17948main ()
17949{
17950return f != $ac_func;
17951 ;
17952 return 0;
17953}
17954_ACEOF
17955rm -f conftest.$ac_objext conftest$ac_exeext
17956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957 (eval $ac_link) 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_c_werror_flag"
17965 || test ! -s conftest.err'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; } &&
17971 { ac_try='test -s conftest$ac_exeext'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 eval "$as_ac_var=yes"
17978else
17979 echo "$as_me: failed program was:" >&5
17980sed 's/^/| /' conftest.$ac_ext >&5
17981
17982eval "$as_ac_var=no"
17983fi
17984rm -f conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
17986fi
17987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17989if test `eval echo '${'$as_ac_var'}'` = yes; then
17990 cat >>confdefs.h <<_ACEOF
17991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17992_ACEOF
17993
17994fi
17995done
17996
17997
17998for ac_func in wborder
17999do
18000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18001echo "$as_me:$LINENO: checking for $ac_func" >&5
18002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18003if eval "test \"\${$as_ac_var+set}\" = set"; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005else
18006 cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
18012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18014#define $ac_func innocuous_$ac_func
18015
18016/* System header to define __stub macros and hopefully few prototypes,
18017 which can conflict with char $ac_func (); below.
18018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019 <limits.h> exists even on freestanding compilers. */
18020
18021#ifdef __STDC__
18022# include <limits.h>
18023#else
18024# include <assert.h>
18025#endif
18026
18027#undef $ac_func
18028
18029/* Override any gcc2 internal prototype to avoid an error. */
18030#ifdef __cplusplus
18031extern "C"
18032{
18033#endif
18034/* We use char because int might match the return type of a gcc2
18035 builtin and then its argument prototype would still apply. */
18036char $ac_func ();
18037/* The GNU C library defines this for functions which it implements
18038 to always fail with ENOSYS. Some functions are actually named
18039 something starting with __ and the normal name is an alias. */
18040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18041choke me
18042#else
18043char (*f) () = $ac_func;
18044#endif
18045#ifdef __cplusplus
18046}
18047#endif
18048
18049int
18050main ()
18051{
18052return f != $ac_func;
18053 ;
18054 return 0;
18055}
18056_ACEOF
18057rm -f conftest.$ac_objext conftest$ac_exeext
18058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18059 (eval $ac_link) 2>conftest.er1
18060 ac_status=$?
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try='test -z "$ac_c_werror_flag"
18067 || test ! -s conftest.err'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest$ac_exeext'
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 eval "$as_ac_var=yes"
18080else
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084eval "$as_ac_var=no"
18085fi
18086rm -f conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18088fi
18089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18091if test `eval echo '${'$as_ac_var'}'` = yes; then
18092 cat >>confdefs.h <<_ACEOF
18093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18094_ACEOF
18095
18096fi
18097done
18098
18099
18100# Check the return and argument types of ptrace. No canned test for
18101# this, so roll our own.
18102gdb_ptrace_headers='
18103#if HAVE_SYS_TYPES_H
18104# include <sys/types.h>
18105#endif
18106#if HAVE_SYS_PTRACE_H
18107# include <sys/ptrace.h>
18108#endif
18109#if HAVE_UNISTD_H
18110# include <unistd.h>
18111#endif
18112'
18113# There is no point in checking if we don't have a prototype.
18114echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18115echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
18116if test "${ac_cv_have_decl_ptrace+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18118else
18119 cat >conftest.$ac_ext <<_ACEOF
18120/* confdefs.h. */
18121_ACEOF
18122cat confdefs.h >>conftest.$ac_ext
18123cat >>conftest.$ac_ext <<_ACEOF
18124/* end confdefs.h. */
18125$gdb_ptrace_headers
18126
18127int
18128main ()
18129{
18130#ifndef ptrace
18131 char *p = (char *) ptrace;
18132#endif
18133
18134 ;
18135 return 0;
18136}
18137_ACEOF
18138rm -f conftest.$ac_objext
18139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } &&
18147 { ac_try='test -z "$ac_c_werror_flag"
18148 || test ! -s conftest.err'
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
18160 ac_cv_have_decl_ptrace=yes
18161else
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165ac_cv_have_decl_ptrace=no
18166fi
18167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18168fi
18169echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18170echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
18171if test $ac_cv_have_decl_ptrace = yes; then
18172
18173cat >>confdefs.h <<_ACEOF
18174#define HAVE_DECL_PTRACE 1
18175_ACEOF
18176
18177
18178else
18179 cat >>confdefs.h <<_ACEOF
18180#define HAVE_DECL_PTRACE 0
18181_ACEOF
18182
18183
18184 : ${gdb_cv_func_ptrace_ret='int'}
18185 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18186
18187fi
18188
18189
18190# Check return type.
18191echo "$as_me:$LINENO: checking return type of ptrace" >&5
18192echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
18193if test "${gdb_cv_func_ptrace_ret+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195else
18196 cat >conftest.$ac_ext <<_ACEOF
18197/* confdefs.h. */
18198_ACEOF
18199cat confdefs.h >>conftest.$ac_ext
18200cat >>conftest.$ac_ext <<_ACEOF
18201/* end confdefs.h. */
18202$gdb_ptrace_headers
18203int
18204main ()
18205{
18206extern int ptrace ();
18207 ;
18208 return 0;
18209}
18210_ACEOF
18211rm -f conftest.$ac_objext
18212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
18220 { ac_try='test -z "$ac_c_werror_flag"
18221 || test ! -s conftest.err'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest.$ac_objext'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 gdb_cv_func_ptrace_ret='int'
18234else
18235 echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
18238gdb_cv_func_ptrace_ret='long'
18239fi
18240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18241fi
18242echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18243echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
18244
18245cat >>confdefs.h <<_ACEOF
18246#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
18247_ACEOF
18248
18249# Check argument types.
18250echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18251echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
18252if test "${gdb_cv_func_ptrace_args+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
18255
18256for gdb_arg1 in 'int' 'long'; do
18257 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18258 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18259 for gdb_arg4 in 'int' 'long'; do
18260 cat >conftest.$ac_ext <<_ACEOF
18261/* confdefs.h. */
18262_ACEOF
18263cat confdefs.h >>conftest.$ac_ext
18264cat >>conftest.$ac_ext <<_ACEOF
18265/* end confdefs.h. */
18266$gdb_ptrace_headers
18267int
18268main ()
18269{
18270
18271extern $gdb_cv_func_ptrace_ret
18272 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18273
18274 ;
18275 return 0;
18276}
18277_ACEOF
18278rm -f conftest.$ac_objext
18279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18280 (eval $ac_compile) 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag"
18288 || test ! -s conftest.err'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest.$ac_objext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18301 break 4;
18302else
18303 echo "$as_me: failed program was:" >&5
18304sed 's/^/| /' conftest.$ac_ext >&5
18305
18306fi
18307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18308 for gdb_arg5 in 'int *' 'int' 'long'; do
18309 cat >conftest.$ac_ext <<_ACEOF
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
18315$gdb_ptrace_headers
18316int
18317main ()
18318{
18319
18320extern $gdb_cv_func_ptrace_ret
18321 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18322
18323 ;
18324 return 0;
18325}
18326_ACEOF
18327rm -f conftest.$ac_objext
18328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest.$ac_objext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349
18350gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18351 break 5;
18352else
18353 echo "$as_me: failed program was:" >&5
18354sed 's/^/| /' conftest.$ac_ext >&5
18355
18356fi
18357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18358 done
18359 done
18360 done
18361 done
18362done
18363# Provide a safe default value.
18364: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18365
18366fi
18367echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18368echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
18369ac_save_IFS=$IFS; IFS=','
18370set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18371IFS=$ac_save_IFS
18372shift
18373
18374cat >>confdefs.h <<_ACEOF
18375#define PTRACE_TYPE_ARG3 $3
18376_ACEOF
18377
18378if test -n "$5"; then
18379
18380cat >>confdefs.h <<_ACEOF
18381#define PTRACE_TYPE_ARG5 $5
18382_ACEOF
18383
18384fi
18385
18386if test "$cross_compiling" = no; then
18387 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18388echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18389if test "${ac_cv_func_setpgrp_void+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391else
18392 if test "$cross_compiling" = yes; then
18393 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18394echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18395 { (exit 1); exit 1; }; }
18396else
18397 cat >conftest.$ac_ext <<_ACEOF
18398/* confdefs.h. */
18399_ACEOF
18400cat confdefs.h >>conftest.$ac_ext
18401cat >>conftest.$ac_ext <<_ACEOF
18402/* end confdefs.h. */
18403#if HAVE_UNISTD_H
18404# include <unistd.h>
18405#endif
18406
18407int
18408main ()
18409{
18410/* If this system has a BSD-style setpgrp which takes arguments,
18411 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18412 exit successfully. */
18413 exit (setpgrp (1,1) == -1 ? 0 : 1);
18414 ;
18415 return 0;
18416}
18417_ACEOF
18418rm -f conftest$ac_exeext
18419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420 (eval $ac_link) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_cv_func_setpgrp_void=no
18430else
18431 echo "$as_me: program exited with status $ac_status" >&5
18432echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435( exit $ac_status )
18436ac_cv_func_setpgrp_void=yes
18437fi
18438rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18439fi
18440fi
18441echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18442echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18443if test $ac_cv_func_setpgrp_void = yes; then
18444
18445cat >>confdefs.h <<\_ACEOF
18446#define SETPGRP_VOID 1
18447_ACEOF
18448
18449fi
18450
18451else
18452 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18453echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18454if test "${ac_cv_func_setpgrp_void+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18456else
18457 cat >conftest.$ac_ext <<_ACEOF
18458/* confdefs.h. */
18459_ACEOF
18460cat confdefs.h >>conftest.$ac_ext
18461cat >>conftest.$ac_ext <<_ACEOF
18462/* end confdefs.h. */
18463
18464#include <unistd.h>
18465
18466int
18467main ()
18468{
18469
18470 if (setpgrp(1,1) == -1)
18471 exit (0);
18472 else
18473 exit (1);
18474
18475 ;
18476 return 0;
18477}
18478_ACEOF
18479rm -f conftest.$ac_objext
18480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481 (eval $ac_compile) 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
18488 { ac_try='test -z "$ac_c_werror_flag"
18489 || test ! -s conftest.err'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest.$ac_objext'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_func_setpgrp_void=no
18502else
18503 echo "$as_me: failed program was:" >&5
18504sed 's/^/| /' conftest.$ac_ext >&5
18505
18506ac_cv_func_setpgrp_void=yes
18507fi
18508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18509fi
18510echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18511echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18512if test $ac_cv_func_setpgrp_void = yes; then
18513 cat >>confdefs.h <<\_ACEOF
18514#define SETPGRP_VOID 1
18515_ACEOF
18516
18517fi
18518fi
18519
18520# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18521# since sigsetjmp might only be defined as a macro.
18522echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18523echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
18524if test "${gdb_cv_func_sigsetjmp+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526else
18527 cat >conftest.$ac_ext <<_ACEOF
18528/* confdefs.h. */
18529_ACEOF
18530cat confdefs.h >>conftest.$ac_ext
18531cat >>conftest.$ac_ext <<_ACEOF
18532/* end confdefs.h. */
18533
18534#include <setjmp.h>
18535
18536int
18537main ()
18538{
18539sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18540 ;
18541 return 0;
18542}
18543_ACEOF
18544rm -f conftest.$ac_objext
18545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18546 (eval $ac_compile) 2>conftest.er1
18547 ac_status=$?
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -z "$ac_c_werror_flag"
18554 || test ! -s conftest.err'
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest.$ac_objext'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
18566 gdb_cv_func_sigsetjmp=yes
18567else
18568 echo "$as_me: failed program was:" >&5
18569sed 's/^/| /' conftest.$ac_ext >&5
18570
18571gdb_cv_func_sigsetjmp=no
18572fi
18573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18574fi
18575echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18576echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
18577if test $gdb_cv_func_sigsetjmp = yes; then
18578
18579cat >>confdefs.h <<\_ACEOF
18580#define HAVE_SIGSETJMP 1
18581_ACEOF
18582
18583fi
18584
18585# Assume we'll default to using the included libiberty regex.
18586gdb_use_included_regex=yes
18587
18588# However, if the system regex is GNU regex, then default to *not*
18589# using the included regex.
18590echo "$as_me:$LINENO: checking for GNU regex" >&5
18591echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
18592if test "${gdb_cv_have_gnu_regex+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594else
18595 cat >conftest.$ac_ext <<_ACEOF
18596/* confdefs.h. */
18597_ACEOF
18598cat confdefs.h >>conftest.$ac_ext
18599cat >>conftest.$ac_ext <<_ACEOF
18600/* end confdefs.h. */
18601#include <gnu-versions.h>
18602int
18603main ()
18604{
18605#define REGEX_INTERFACE_VERSION 1
18606#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18607# error "Version mismatch"
18608#endif
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext
18614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615 (eval $ac_compile) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 gdb_cv_have_gnu_regex=yes
18636else
18637 echo "$as_me: failed program was:" >&5
18638sed 's/^/| /' conftest.$ac_ext >&5
18639
18640gdb_cv_have_gnu_regex=no
18641fi
18642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18643fi
18644echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18645echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18646if test $gdb_cv_have_gnu_regex = yes; then
18647 gdb_use_included_regex=no
18648fi
18649
18650
18651# Check whether --with-included-regex or --without-included-regex was given.
18652if test "${with_included_regex+set}" = set; then
18653 withval="$with_included_regex"
18654 gdb_with_regex=$withval
18655else
18656 gdb_with_regex=$gdb_use_included_regex
18657fi;
18658if test "$gdb_with_regex" = yes; then
18659
18660cat >>confdefs.h <<\_ACEOF
18661#define USE_INCLUDED_REGEX 1
18662_ACEOF
18663
18664fi
18665
18666# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18667echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18668echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18669if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671else
18672 cat >conftest.$ac_ext <<_ACEOF
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
18678#include <sys/param.h>
18679#include <sys/proc.h>
18680
18681
18682int
18683main ()
18684{
18685static struct thread ac_aggr;
18686if (ac_aggr.td_pcb)
18687return 0;
18688 ;
18689 return 0;
18690}
18691_ACEOF
18692rm -f conftest.$ac_objext
18693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18694 (eval $ac_compile) 2>conftest.er1
18695 ac_status=$?
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -z "$ac_c_werror_flag"
18702 || test ! -s conftest.err'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; } &&
18708 { ac_try='test -s conftest.$ac_objext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_member_struct_thread_td_pcb=yes
18715else
18716 echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
18719cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725#include <sys/param.h>
18726#include <sys/proc.h>
18727
18728
18729int
18730main ()
18731{
18732static struct thread ac_aggr;
18733if (sizeof ac_aggr.td_pcb)
18734return 0;
18735 ;
18736 return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext
18740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18741 (eval $ac_compile) 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
18748 { ac_try='test -z "$ac_c_werror_flag"
18749 || test ! -s conftest.err'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; } &&
18755 { ac_try='test -s conftest.$ac_objext'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_member_struct_thread_td_pcb=yes
18762else
18763 echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
18766ac_cv_member_struct_thread_td_pcb=no
18767fi
18768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18769fi
18770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18771fi
18772echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18773echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
18774if test $ac_cv_member_struct_thread_td_pcb = yes; then
18775
18776cat >>confdefs.h <<_ACEOF
18777#define HAVE_STRUCT_THREAD_TD_PCB 1
18778_ACEOF
18779
18780
18781fi
18782
18783
18784# See if <sys/lwp.h> defines `struct lwp`.
18785echo "$as_me:$LINENO: checking for struct lwp" >&5
18786echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
18787if test "${gdb_cv_struct_lwp+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18789else
18790 cat >conftest.$ac_ext <<_ACEOF
18791/* confdefs.h. */
18792_ACEOF
18793cat confdefs.h >>conftest.$ac_ext
18794cat >>conftest.$ac_ext <<_ACEOF
18795/* end confdefs.h. */
18796#include <sys/param.h>
18797#include <sys/lwp.h>
18798int
18799main ()
18800{
18801struct lwp l;
18802 ;
18803 return 0;
18804}
18805_ACEOF
18806rm -f conftest.$ac_objext
18807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18808 (eval $ac_compile) 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -z "$ac_c_werror_flag"
18816 || test ! -s conftest.err'
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try='test -s conftest.$ac_objext'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
18828 gdb_cv_struct_lwp=yes
18829else
18830 echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
18832
18833gdb_cv_struct_lwp=no
18834fi
18835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18836fi
18837echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18838echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
18839if test $gdb_cv_struct_lwp = yes; then
18840
18841cat >>confdefs.h <<\_ACEOF
18842#define HAVE_STRUCT_LWP 1
18843_ACEOF
18844
18845fi
18846
18847# See if <machine/reg.h> degines `struct reg'.
18848echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18849echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
18850if test "${gdb_cv_struct_reg+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859#include <sys/types.h>
18860#include <machine/reg.h>
18861int
18862main ()
18863{
18864struct reg r;
18865 ;
18866 return 0;
18867}
18868_ACEOF
18869rm -f conftest.$ac_objext
18870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18871 (eval $ac_compile) 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 gdb_cv_struct_reg=yes
18892else
18893 echo "$as_me: failed program was:" >&5
18894sed 's/^/| /' conftest.$ac_ext >&5
18895
18896gdb_cv_struct_reg=no
18897fi
18898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18899fi
18900echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18901echo "${ECHO_T}$gdb_cv_struct_reg" >&6
18902if test $gdb_cv_struct_reg = yes; then
18903
18904cat >>confdefs.h <<\_ACEOF
18905#define HAVE_STRUCT_REG 1
18906_ACEOF
18907
18908fi
18909
18910# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18911# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
18912echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18913echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
18914if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916else
18917 cat >conftest.$ac_ext <<_ACEOF
18918/* confdefs.h. */
18919_ACEOF
18920cat confdefs.h >>conftest.$ac_ext
18921cat >>conftest.$ac_ext <<_ACEOF
18922/* end confdefs.h. */
18923#include <machine/reg.h>
18924
18925int
18926main ()
18927{
18928static struct reg ac_aggr;
18929if (ac_aggr.r_fs)
18930return 0;
18931 ;
18932 return 0;
18933}
18934_ACEOF
18935rm -f conftest.$ac_objext
18936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937 (eval $ac_compile) 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag"
18945 || test ! -s conftest.err'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_member_struct_reg_r_fs=yes
18958else
18959 echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
18962cat >conftest.$ac_ext <<_ACEOF
18963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
18967/* end confdefs.h. */
18968#include <machine/reg.h>
18969
18970int
18971main ()
18972{
18973static struct reg ac_aggr;
18974if (sizeof ac_aggr.r_fs)
18975return 0;
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext
18981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982 (eval $ac_compile) 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
18989 { ac_try='test -z "$ac_c_werror_flag"
18990 || test ! -s conftest.err'
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); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_cv_member_struct_reg_r_fs=yes
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007ac_cv_member_struct_reg_r_fs=no
19008fi
19009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19010fi
19011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19012fi
19013echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
19014echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
19015if test $ac_cv_member_struct_reg_r_fs = yes; then
19016
19017cat >>confdefs.h <<_ACEOF
19018#define HAVE_STRUCT_REG_R_FS 1
19019_ACEOF
19020
19021
19022fi
19023echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
19024echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
19025if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027else
19028 cat >conftest.$ac_ext <<_ACEOF
19029/* confdefs.h. */
19030_ACEOF
19031cat confdefs.h >>conftest.$ac_ext
19032cat >>conftest.$ac_ext <<_ACEOF
19033/* end confdefs.h. */
19034#include <machine/reg.h>
19035
19036int
19037main ()
19038{
19039static struct reg ac_aggr;
19040if (ac_aggr.r_gs)
19041return 0;
19042 ;
19043 return 0;
19044}
19045_ACEOF
19046rm -f conftest.$ac_objext
19047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048 (eval $ac_compile) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_member_struct_reg_r_gs=yes
19069else
19070 echo "$as_me: failed program was:" >&5
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
19073cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079#include <machine/reg.h>
19080
19081int
19082main ()
19083{
19084static struct reg ac_aggr;
19085if (sizeof ac_aggr.r_gs)
19086return 0;
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093 (eval $ac_compile) 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try='test -s conftest.$ac_objext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 ac_cv_member_struct_reg_r_gs=yes
19114else
19115 echo "$as_me: failed program was:" >&5
19116sed 's/^/| /' conftest.$ac_ext >&5
19117
19118ac_cv_member_struct_reg_r_gs=no
19119fi
19120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19121fi
19122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19123fi
19124echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19125echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
19126if test $ac_cv_member_struct_reg_r_gs = yes; then
19127
19128cat >>confdefs.h <<_ACEOF
19129#define HAVE_STRUCT_REG_R_GS 1
19130_ACEOF
19131
19132
19133fi
19134
19135
19136# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
19137echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19138echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
19139if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141else
19142 cat >conftest.$ac_ext <<_ACEOF
19143/* confdefs.h. */
19144_ACEOF
19145cat confdefs.h >>conftest.$ac_ext
19146cat >>conftest.$ac_ext <<_ACEOF
19147/* end confdefs.h. */
19148#include <sys/ptrace.h>
19149int
19150main ()
19151{
19152PTRACE_GETREGS;
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
19158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag"
19167 || test ! -s conftest.err'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 gdb_cv_have_ptrace_getregs=yes
19180else
19181 echo "$as_me: failed program was:" >&5
19182sed 's/^/| /' conftest.$ac_ext >&5
19183
19184gdb_cv_have_ptrace_getregs=no
19185fi
19186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19187fi
19188
19189echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19190echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
19191if test $gdb_cv_have_ptrace_getregs = yes; then
19192
19193cat >>confdefs.h <<\_ACEOF
19194#define HAVE_PTRACE_GETREGS 1
19195_ACEOF
19196
19197fi
19198
19199# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
19200echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19201echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
19202if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204else
19205 cat >conftest.$ac_ext <<_ACEOF
19206/* confdefs.h. */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
19210/* end confdefs.h. */
19211#include <sys/ptrace.h>
19212int
19213main ()
19214{
19215PTRACE_GETFPXREGS;
19216 ;
19217 return 0;
19218}
19219_ACEOF
19220rm -f conftest.$ac_objext
19221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19222 (eval $ac_compile) 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 gdb_cv_have_ptrace_getfpxregs=yes
19243else
19244 echo "$as_me: failed program was:" >&5
19245sed 's/^/| /' conftest.$ac_ext >&5
19246
19247gdb_cv_have_ptrace_getfpxregs=no
19248fi
19249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19250fi
19251
19252echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19253echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
19254if test $gdb_cv_have_ptrace_getfpxregs = yes; then
19255
19256cat >>confdefs.h <<\_ACEOF
19257#define HAVE_PTRACE_GETFPXREGS 1
19258_ACEOF
19259
19260fi
19261
19262# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
19263echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19264echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
19265if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19267else
19268 cat >conftest.$ac_ext <<_ACEOF
19269/* confdefs.h. */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
19273/* end confdefs.h. */
19274#include <sys/types.h>
19275#include <sys/ptrace.h>
19276int
19277main ()
19278{
19279PT_GETDBREGS;
19280 ;
19281 return 0;
19282}
19283_ACEOF
19284rm -f conftest.$ac_objext
19285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286 (eval $ac_compile) 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 gdb_cv_have_pt_getdbregs=yes
19307else
19308 echo "$as_me: failed program was:" >&5
19309sed 's/^/| /' conftest.$ac_ext >&5
19310
19311gdb_cv_have_pt_getdbregs=no
19312fi
19313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19314fi
19315
19316echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19317echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
19318if test $gdb_cv_have_pt_getdbregs = yes; then
19319
19320cat >>confdefs.h <<\_ACEOF
19321#define HAVE_PT_GETDBREGS 1
19322_ACEOF
19323
19324fi
19325
19326# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
19327echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19328echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
19329if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331else
19332 cat >conftest.$ac_ext <<_ACEOF
19333/* confdefs.h. */
19334_ACEOF
19335cat confdefs.h >>conftest.$ac_ext
19336cat >>conftest.$ac_ext <<_ACEOF
19337/* end confdefs.h. */
19338#include <sys/types.h>
19339#include <sys/ptrace.h>
19340int
19341main ()
19342{
19343PT_GETXMMREGS;
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348rm -f conftest.$ac_objext
19349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
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
19370 gdb_cv_have_pt_getxmmregs=yes
19371else
19372 echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
19375gdb_cv_have_pt_getxmmregs=no
19376fi
19377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378fi
19379
19380echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19381echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
19382if test $gdb_cv_have_pt_getxmmregs = yes; then
19383
19384cat >>confdefs.h <<\_ACEOF
19385#define HAVE_PT_GETXMMREGS 1
19386_ACEOF
19387
19388fi
19389
19390# Detect which type of /proc is in use, such as for Unixware or Solaris.
19391
19392if test "${target}" = "${host}"; then
19393 case "${host}" in
19394 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
19395
19396cat >>confdefs.h <<\_ACEOF
19397#define NEW_PROC_API 1
19398_ACEOF
19399
19400 ;;
19401 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
19402
19403cat >>confdefs.h <<\_ACEOF
19404#define NEW_PROC_API 1
19405_ACEOF
19406
19407 ;;
19408 mips-sgi-irix5*)
19409 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
19410
19411cat >>confdefs.h <<\_ACEOF
19412#define _KMEMUSER 1
19413_ACEOF
19414
19415 ;;
19416 esac
19417fi
19418
19419if test "$ac_cv_header_sys_procfs_h" = yes; then
19420 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19421echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19422 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431
19432#define _SYSCALL32
19433#include <sys/procfs.h>
19434int
19435main ()
19436{
19437pstatus_t avar
19438 ;
19439 return 0;
19440}
19441_ACEOF
19442rm -f conftest.$ac_objext
19443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444 (eval $ac_compile) 2>conftest.er1
19445 ac_status=$?
19446 grep -v '^ *+' conftest.er1 >conftest.err
19447 rm -f conftest.er1
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
19451 { ac_try='test -z "$ac_c_werror_flag"
19452 || test ! -s conftest.err'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } &&
19458 { ac_try='test -s conftest.$ac_objext'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19465else
19466 echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
19469bfd_cv_have_sys_procfs_type_pstatus_t=no
19470
19471fi
19472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19473fi
19474
19475 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19476
19477cat >>confdefs.h <<\_ACEOF
19478#define HAVE_PSTATUS_T 1
19479_ACEOF
19480
19481 fi
19482 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19483echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19484
19485 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19486echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
19487 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489else
19490 cat >conftest.$ac_ext <<_ACEOF
19491/* confdefs.h. */
19492_ACEOF
19493cat confdefs.h >>conftest.$ac_ext
19494cat >>conftest.$ac_ext <<_ACEOF
19495/* end confdefs.h. */
19496
19497#define _SYSCALL32
19498#include <sys/procfs.h>
19499int
19500main ()
19501{
19502prrun_t avar
19503 ;
19504 return 0;
19505}
19506_ACEOF
19507rm -f conftest.$ac_objext
19508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509 (eval $ac_compile) 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try='test -z "$ac_c_werror_flag"
19517 || test ! -s conftest.err'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 bfd_cv_have_sys_procfs_type_prrun_t=yes
19530else
19531 echo "$as_me: failed program was:" >&5
19532sed 's/^/| /' conftest.$ac_ext >&5
19533
19534bfd_cv_have_sys_procfs_type_prrun_t=no
19535
19536fi
19537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19538fi
19539
19540 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
19541
19542cat >>confdefs.h <<\_ACEOF
19543#define HAVE_PRRUN_T 1
19544_ACEOF
19545
19546 fi
19547 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19548echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
19549
19550 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19551echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
19552 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554else
19555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
19561
19562#define _SYSCALL32
19563#include <sys/procfs.h>
19564int
19565main ()
19566{
19567gregset_t avar
19568 ;
19569 return 0;
19570}
19571_ACEOF
19572rm -f conftest.$ac_objext
19573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19574 (eval $ac_compile) 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
19581 { ac_try='test -z "$ac_c_werror_flag"
19582 || test ! -s conftest.err'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; } &&
19588 { ac_try='test -s conftest.$ac_objext'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 bfd_cv_have_sys_procfs_type_gregset_t=yes
19595else
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
19599bfd_cv_have_sys_procfs_type_gregset_t=no
19600
19601fi
19602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19603fi
19604
19605 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
19606
19607cat >>confdefs.h <<\_ACEOF
19608#define HAVE_GREGSET_T 1
19609_ACEOF
19610
19611 fi
19612 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19613echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
19614
19615 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19616echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
19617 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619else
19620 cat >conftest.$ac_ext <<_ACEOF
19621/* confdefs.h. */
19622_ACEOF
19623cat confdefs.h >>conftest.$ac_ext
19624cat >>conftest.$ac_ext <<_ACEOF
19625/* end confdefs.h. */
19626
19627#define _SYSCALL32
19628#include <sys/procfs.h>
19629int
19630main ()
19631{
19632fpregset_t avar
19633 ;
19634 return 0;
19635}
19636_ACEOF
19637rm -f conftest.$ac_objext
19638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19639 (eval $ac_compile) 2>conftest.er1
19640 ac_status=$?
19641 grep -v '^ *+' conftest.er1 >conftest.err
19642 rm -f conftest.er1
19643 cat conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
19646 { ac_try='test -z "$ac_c_werror_flag"
19647 || test ! -s conftest.err'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest.$ac_objext'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 bfd_cv_have_sys_procfs_type_fpregset_t=yes
19660else
19661 echo "$as_me: failed program was:" >&5
19662sed 's/^/| /' conftest.$ac_ext >&5
19663
19664bfd_cv_have_sys_procfs_type_fpregset_t=no
19665
19666fi
19667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19668fi
19669
19670 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19671
19672cat >>confdefs.h <<\_ACEOF
19673#define HAVE_FPREGSET_T 1
19674_ACEOF
19675
19676 fi
19677 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19678echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19679
19680 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19681echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19682 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19684else
19685 cat >conftest.$ac_ext <<_ACEOF
19686/* confdefs.h. */
19687_ACEOF
19688cat confdefs.h >>conftest.$ac_ext
19689cat >>conftest.$ac_ext <<_ACEOF
19690/* end confdefs.h. */
19691
19692#define _SYSCALL32
19693#include <sys/procfs.h>
19694int
19695main ()
19696{
19697prgregset_t avar
19698 ;
19699 return 0;
19700}
19701_ACEOF
19702rm -f conftest.$ac_objext
19703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704 (eval $ac_compile) 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_c_werror_flag"
19712 || test ! -s conftest.err'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 bfd_cv_have_sys_procfs_type_prgregset_t=yes
19725else
19726 echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729bfd_cv_have_sys_procfs_type_prgregset_t=no
19730
19731fi
19732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19733fi
19734
19735 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
19736
19737cat >>confdefs.h <<\_ACEOF
19738#define HAVE_PRGREGSET_T 1
19739_ACEOF
19740
19741 fi
19742 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19743echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
19744
19745 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19746echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
19747 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749else
19750 cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
19756
19757#define _SYSCALL32
19758#include <sys/procfs.h>
19759int
19760main ()
19761{
19762prfpregset_t avar
19763 ;
19764 return 0;
19765}
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769 (eval $ac_compile) 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_c_werror_flag"
19777 || test ! -s conftest.err'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
19783 { ac_try='test -s conftest.$ac_objext'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
19790else
19791 echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
19794bfd_cv_have_sys_procfs_type_prfpregset_t=no
19795
19796fi
19797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19798fi
19799
19800 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19801
19802cat >>confdefs.h <<\_ACEOF
19803#define HAVE_PRFPREGSET_T 1
19804_ACEOF
19805
19806 fi
19807 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19808echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
19809
19810 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19811echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
19812 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814else
19815 cat >conftest.$ac_ext <<_ACEOF
19816/* confdefs.h. */
19817_ACEOF
19818cat confdefs.h >>conftest.$ac_ext
19819cat >>conftest.$ac_ext <<_ACEOF
19820/* end confdefs.h. */
19821
19822#define _SYSCALL32
19823#include <sys/procfs.h>
19824int
19825main ()
19826{
19827prgregset32_t avar
19828 ;
19829 return 0;
19830}
19831_ACEOF
19832rm -f conftest.$ac_objext
19833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest.$ac_objext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
19855else
19856 echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
19859bfd_cv_have_sys_procfs_type_prgregset32_t=no
19860
19861fi
19862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19863fi
19864
19865 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
19866
19867cat >>confdefs.h <<\_ACEOF
19868#define HAVE_PRGREGSET32_T 1
19869_ACEOF
19870
19871 fi
19872 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19873echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
19874
19875 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19876echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
19877 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879else
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
19886
19887#define _SYSCALL32
19888#include <sys/procfs.h>
19889int
19890main ()
19891{
19892prfpregset32_t avar
19893 ;
19894 return 0;
19895}
19896_ACEOF
19897rm -f conftest.$ac_objext
19898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19899 (eval $ac_compile) 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -z "$ac_c_werror_flag"
19907 || test ! -s conftest.err'
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
19920else
19921 echo "$as_me: failed program was:" >&5
19922sed 's/^/| /' conftest.$ac_ext >&5
19923
19924bfd_cv_have_sys_procfs_type_prfpregset32_t=no
19925
19926fi
19927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19928fi
19929
19930 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
19931
19932cat >>confdefs.h <<\_ACEOF
19933#define HAVE_PRFPREGSET32_T 1
19934_ACEOF
19935
19936 fi
19937 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19938echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
19939
19940 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19941echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
19942 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944else
19945 cat >conftest.$ac_ext <<_ACEOF
19946/* confdefs.h. */
19947_ACEOF
19948cat confdefs.h >>conftest.$ac_ext
19949cat >>conftest.$ac_ext <<_ACEOF
19950/* end confdefs.h. */
19951
19952#define _SYSCALL32
19953#include <sys/procfs.h>
19954int
19955main ()
19956{
19957lwpid_t avar
19958 ;
19959 return 0;
19960}
19961_ACEOF
19962rm -f conftest.$ac_objext
19963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19964 (eval $ac_compile) 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_c_werror_flag"
19972 || test ! -s conftest.err'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest.$ac_objext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 bfd_cv_have_sys_procfs_type_lwpid_t=yes
19985else
19986 echo "$as_me: failed program was:" >&5
19987sed 's/^/| /' conftest.$ac_ext >&5
19988
19989bfd_cv_have_sys_procfs_type_lwpid_t=no
19990
19991fi
19992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19993fi
19994
19995 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
19996
19997cat >>confdefs.h <<\_ACEOF
19998#define HAVE_LWPID_T 1
19999_ACEOF
20000
20001 fi
20002 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
20003echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
20004
20005 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
20006echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
20007 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009else
20010 cat >conftest.$ac_ext <<_ACEOF
20011/* confdefs.h. */
20012_ACEOF
20013cat confdefs.h >>conftest.$ac_ext
20014cat >>conftest.$ac_ext <<_ACEOF
20015/* end confdefs.h. */
20016
20017#define _SYSCALL32
20018#include <sys/procfs.h>
20019int
20020main ()
20021{
20022psaddr_t avar
20023 ;
20024 return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029 (eval $ac_compile) 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag"
20037 || test ! -s conftest.err'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 bfd_cv_have_sys_procfs_type_psaddr_t=yes
20050else
20051 echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
20054bfd_cv_have_sys_procfs_type_psaddr_t=no
20055
20056fi
20057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20058fi
20059
20060 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
20061
20062cat >>confdefs.h <<\_ACEOF
20063#define HAVE_PSADDR_T 1
20064_ACEOF
20065
20066 fi
20067 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20068echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
20069
20070 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20071echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
20072 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074else
20075 cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081
20082#define _SYSCALL32
20083#include <sys/procfs.h>
20084int
20085main ()
20086{
20087prsysent_t avar
20088 ;
20089 return 0;
20090}
20091_ACEOF
20092rm -f conftest.$ac_objext
20093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20094 (eval $ac_compile) 2>conftest.er1
20095 ac_status=$?
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag"
20102 || test ! -s conftest.err'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; } &&
20108 { ac_try='test -s conftest.$ac_objext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 bfd_cv_have_sys_procfs_type_prsysent_t=yes
20115else
20116 echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
20119bfd_cv_have_sys_procfs_type_prsysent_t=no
20120
20121fi
20122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123fi
20124
20125 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
20126
20127cat >>confdefs.h <<\_ACEOF
20128#define HAVE_PRSYSENT_T 1
20129_ACEOF
20130
20131 fi
20132 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20133echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
20134
20135 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20136echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
20137 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139else
20140 cat >conftest.$ac_ext <<_ACEOF
20141/* confdefs.h. */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h. */
20146
20147#define _SYSCALL32
20148#include <sys/procfs.h>
20149int
20150main ()
20151{
20152pr_sigset_t avar
20153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext
20158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159 (eval $ac_compile) 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -z "$ac_c_werror_flag"
20167 || test ! -s conftest.err'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
20180else
20181 echo "$as_me: failed program was:" >&5
20182sed 's/^/| /' conftest.$ac_ext >&5
20183
20184bfd_cv_have_sys_procfs_type_pr_sigset_t=no
20185
20186fi
20187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20188fi
20189
20190 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
20191
20192cat >>confdefs.h <<\_ACEOF
20193#define HAVE_PR_SIGSET_T 1
20194_ACEOF
20195
20196 fi
20197 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20198echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
20199
20200 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20201echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
20202 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20204else
20205 cat >conftest.$ac_ext <<_ACEOF
20206/* confdefs.h. */
20207_ACEOF
20208cat confdefs.h >>conftest.$ac_ext
20209cat >>conftest.$ac_ext <<_ACEOF
20210/* end confdefs.h. */
20211
20212#define _SYSCALL32
20213#include <sys/procfs.h>
20214int
20215main ()
20216{
20217pr_sigaction64_t avar
20218 ;
20219 return 0;
20220}
20221_ACEOF
20222rm -f conftest.$ac_objext
20223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224 (eval $ac_compile) 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag"
20232 || test ! -s conftest.err'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest.$ac_objext'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
20245else
20246 echo "$as_me: failed program was:" >&5
20247sed 's/^/| /' conftest.$ac_ext >&5
20248
20249bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
20250
20251fi
20252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20253fi
20254
20255 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
20256
20257cat >>confdefs.h <<\_ACEOF
20258#define HAVE_PR_SIGACTION64_T 1
20259_ACEOF
20260
20261 fi
20262 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20263echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
20264
20265 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20266echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
20267 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269else
20270 cat >conftest.$ac_ext <<_ACEOF
20271/* confdefs.h. */
20272_ACEOF
20273cat confdefs.h >>conftest.$ac_ext
20274cat >>conftest.$ac_ext <<_ACEOF
20275/* end confdefs.h. */
20276
20277#define _SYSCALL32
20278#include <sys/procfs.h>
20279int
20280main ()
20281{
20282pr_siginfo64_t avar
20283 ;
20284 return 0;
20285}
20286_ACEOF
20287rm -f conftest.$ac_objext
20288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest.$ac_objext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20310else
20311 echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
20315
20316fi
20317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20318fi
20319
20320 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
20321
20322cat >>confdefs.h <<\_ACEOF
20323#define HAVE_PR_SIGINFO64_T 1
20324_ACEOF
20325
20326 fi
20327 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20328echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
20329
20330
20331
20332
20333
20334 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20335 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20336echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
20337 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20338 echo $ECHO_N "(cached) $ECHO_C" >&6
20339else
20340 if test "$cross_compiling" = yes; then
20341 gdb_cv_prfpregset_t_broken=yes
20342else
20343 cat >conftest.$ac_ext <<_ACEOF
20344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
20348/* end confdefs.h. */
20349#include <sys/procfs.h>
20350 int main ()
20351 {
20352 if (sizeof (prfpregset_t) == sizeof (void *))
20353 return 1;
20354 return 0;
20355 }
20356_ACEOF
20357rm -f conftest$ac_exeext
20358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359 (eval $ac_link) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 gdb_cv_prfpregset_t_broken=no
20369else
20370 echo "$as_me: program exited with status $ac_status" >&5
20371echo "$as_me: failed program was:" >&5
20372sed 's/^/| /' conftest.$ac_ext >&5
20373
20374( exit $ac_status )
20375gdb_cv_prfpregset_t_broken=yes
20376fi
20377rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20378fi
20379fi
20380
20381 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20382echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
20383 if test $gdb_cv_prfpregset_t_broken = yes; then
20384
20385cat >>confdefs.h <<\_ACEOF
20386#define PRFPREGSET_T_BROKEN 1
20387_ACEOF
20388
20389 fi
20390 fi
20391
20392
20393 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20394echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
20395 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397else
20398 cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404#include <unistd.h>
20405#include <sys/types.h>
20406#include <sys/procfs.h>
20407
20408int
20409main ()
20410{
20411
20412 int dummy;;
20413 dummy = ioctl(0, PIOCSET, &dummy);
20414
20415 ;
20416 return 0;
20417}
20418_ACEOF
20419rm -f conftest.$ac_objext
20420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 gdb_cv_have_procfs_piocset=yes
20442else
20443 echo "$as_me: failed program was:" >&5
20444sed 's/^/| /' conftest.$ac_ext >&5
20445
20446gdb_cv_have_procfs_piocset=no
20447fi
20448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449fi
20450
20451 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20452echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
20453 if test $gdb_cv_have_procfs_piocset = yes; then
20454
20455cat >>confdefs.h <<\_ACEOF
20456#define HAVE_PROCFS_PIOCSET 1
20457_ACEOF
20458
20459 fi
20460fi
20461
20462if test ${host} = ${target} ; then
20463
20464 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20465echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
20466 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20468else
20469 cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
20475#include <link.h>
20476int
20477main ()
20478{
20479struct link_map lm; (void) lm.l_addr;
20480 ;
20481 return 0;
20482}
20483_ACEOF
20484rm -f conftest.$ac_objext
20485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 gdb_cv_have_struct_link_map_with_l_members=yes
20507else
20508 echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
20511gdb_cv_have_struct_link_map_with_l_members=no
20512fi
20513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20514fi
20515
20516 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20517echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
20518 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
20519
20520cat >>confdefs.h <<\_ACEOF
20521#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
20522_ACEOF
20523
20524 fi
20525
20526
20527 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20528echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
20529 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20531else
20532 cat >conftest.$ac_ext <<_ACEOF
20533/* confdefs.h. */
20534_ACEOF
20535cat confdefs.h >>conftest.$ac_ext
20536cat >>conftest.$ac_ext <<_ACEOF
20537/* end confdefs.h. */
20538#include <sys/types.h>
20539#include <link.h>
20540int
20541main ()
20542{
20543struct link_map lm; (void) lm.lm_addr;
20544 ;
20545 return 0;
20546}
20547_ACEOF
20548rm -f conftest.$ac_objext
20549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20550 (eval $ac_compile) 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
20557 { ac_try='test -z "$ac_c_werror_flag"
20558 || test ! -s conftest.err'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; } &&
20564 { ac_try='test -s conftest.$ac_objext'
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 gdb_cv_have_struct_link_map_with_lm_members=yes
20571else
20572 echo "$as_me: failed program was:" >&5
20573sed 's/^/| /' conftest.$ac_ext >&5
20574
20575gdb_cv_have_struct_link_map_with_lm_members=no
20576fi
20577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20578fi
20579
20580 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20581echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
20582 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
20583
20584cat >>confdefs.h <<\_ACEOF
20585#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
20586_ACEOF
20587
20588 fi
20589
20590
20591 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20592echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
20593 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595else
20596 cat >conftest.$ac_ext <<_ACEOF
20597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
20602#include <sys/types.h>
20603#ifdef HAVE_NLIST_H
20604#include <nlist.h>
20605#endif
20606#include <link.h>
20607int
20608main ()
20609{
20610struct so_map lm; (void) lm.som_addr;
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_c_werror_flag"
20625 || test ! -s conftest.err'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; } &&
20631 { ac_try='test -s conftest.$ac_objext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 gdb_cv_have_struct_so_map_with_som_members=yes
20638else
20639 echo "$as_me: failed program was:" >&5
20640sed 's/^/| /' conftest.$ac_ext >&5
20641
20642gdb_cv_have_struct_so_map_with_som_members=no
20643fi
20644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20645fi
20646
20647 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20648echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20649 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20650
20651cat >>confdefs.h <<\_ACEOF
20652#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20653_ACEOF
20654
20655 fi
20656
20657
20658 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20659echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20660 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
20669#define _SYSCALL32
20670#include <sys/link.h>
20671int
20672main ()
20673{
20674struct link_map32 l;
20675 ;
20676 return 0;
20677}
20678_ACEOF
20679rm -f conftest.$ac_objext
20680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 gdb_cv_have_struct_link_map32=yes
20702else
20703 echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
20706gdb_cv_have_struct_link_map32=no
20707fi
20708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20709fi
20710
20711 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20712echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20713 if test $gdb_cv_have_struct_link_map32 = yes; then
20714
20715cat >>confdefs.h <<\_ACEOF
20716#define HAVE_STRUCT_LINK_MAP32 1
20717_ACEOF
20718
20719
20720cat >>confdefs.h <<\_ACEOF
20721#define _SYSCALL32 1
20722_ACEOF
20723
20724 fi
20725fi
20726
20727# Check if the compiler supports the `long long' type.
20728
20729echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20730echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
20731if test "${gdb_cv_c_long_long+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733else
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740extern long long foo;
20741int
20742main ()
20743{
20744switch (foo & 2) { case 0: return 1; }
20745 ;
20746 return 0;
20747}
20748_ACEOF
20749rm -f conftest.$ac_objext
20750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751 (eval $ac_compile) 2>conftest.er1
20752 ac_status=$?
20753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
20758 { ac_try='test -z "$ac_c_werror_flag"
20759 || test ! -s conftest.err'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; } &&
20765 { ac_try='test -s conftest.$ac_objext'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 gdb_cv_c_long_long=yes
20772else
20773 echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
20776gdb_cv_c_long_long=no
20777fi
20778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20779fi
20780echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20781echo "${ECHO_T}$gdb_cv_c_long_long" >&6
20782if test $gdb_cv_c_long_long = yes; then
20783
20784cat >>confdefs.h <<\_ACEOF
20785#define CC_HAS_LONG_LONG 1
20786_ACEOF
20787
20788fi
20789
20790# Check if the compiler and runtime support printing long longs.
20791
20792echo "$as_me:$LINENO: checking for long long support in printf" >&5
20793echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
20794if test "${gdb_cv_printf_has_long_long+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796else
20797 if test "$cross_compiling" = yes; then
20798 gdb_cv_printf_has_long_long=no
20799else
20800 cat >conftest.$ac_ext <<_ACEOF
20801/* confdefs.h. */
20802_ACEOF
20803cat confdefs.h >>conftest.$ac_ext
20804cat >>conftest.$ac_ext <<_ACEOF
20805/* end confdefs.h. */
20806$ac_includes_default
20807int
20808main ()
20809{
20810char buf[32];
20811 long long l = 0;
20812 l = (l << 16) + 0x0123;
20813 l = (l << 16) + 0x4567;
20814 l = (l << 16) + 0x89ab;
20815 l = (l << 16) + 0xcdef;
20816 sprintf (buf, "0x%016llx", l);
20817 return (strcmp ("0x0123456789abcdef", buf));
20818 ;
20819 return 0;
20820}
20821_ACEOF
20822rm -f conftest$ac_exeext
20823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
20833 gdb_cv_printf_has_long_long=yes
20834else
20835 echo "$as_me: program exited with status $ac_status" >&5
20836echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839( exit $ac_status )
20840gdb_cv_printf_has_long_long=no
20841fi
20842rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20843fi
20844fi
20845echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20846echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
20847if test $gdb_cv_printf_has_long_long = yes; then
20848
20849cat >>confdefs.h <<\_ACEOF
20850#define PRINTF_HAS_LONG_LONG 1
20851_ACEOF
20852
20853fi
20854
20855# Check if the compiler supports the `long double' type. We can't use
20856# AC_C_LONG_DOUBLE because that one does additional checks on the
20857# constants defined in <float.h> that fail on some systems,
20858# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
20859
20860echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20861echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
20862if test "${gdb_cv_c_long_double+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20864else
20865 cat >conftest.$ac_ext <<_ACEOF
20866/* confdefs.h. */
20867_ACEOF
20868cat confdefs.h >>conftest.$ac_ext
20869cat >>conftest.$ac_ext <<_ACEOF
20870/* end confdefs.h. */
20871long double foo;
20872_ACEOF
20873rm -f conftest.$ac_objext
20874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20875 (eval $ac_compile) 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } &&
20882 { ac_try='test -z "$ac_c_werror_flag"
20883 || test ! -s conftest.err'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; } &&
20889 { ac_try='test -s conftest.$ac_objext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 gdb_cv_c_long_double=yes
20896else
20897 echo "$as_me: failed program was:" >&5
20898sed 's/^/| /' conftest.$ac_ext >&5
20899
20900gdb_cv_c_long_double=no
20901fi
20902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903fi
20904echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20905echo "${ECHO_T}$gdb_cv_c_long_double" >&6
20906if test $gdb_cv_c_long_double = yes; then
20907
20908cat >>confdefs.h <<\_ACEOF
20909#define HAVE_LONG_DOUBLE 1
20910_ACEOF
20911
20912fi
20913
20914# Check if the compiler and runtime support printing long doubles.
20915
20916echo "$as_me:$LINENO: checking for long double support in printf" >&5
20917echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
20918if test "${gdb_cv_printf_has_long_double+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920else
20921 if test "$cross_compiling" = yes; then
20922 gdb_cv_printf_has_long_double=no
20923else
20924 cat >conftest.$ac_ext <<_ACEOF
20925/* confdefs.h. */
20926_ACEOF
20927cat confdefs.h >>conftest.$ac_ext
20928cat >>conftest.$ac_ext <<_ACEOF
20929/* end confdefs.h. */
20930$ac_includes_default
20931int
20932main ()
20933{
20934char buf[16];
20935 long double f = 3.141592653;
20936 sprintf (buf, "%Lg", f);
20937 return (strncmp ("3.14159", buf, 7));
20938 ;
20939 return 0;
20940}
20941_ACEOF
20942rm -f conftest$ac_exeext
20943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20944 (eval $ac_link) 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 gdb_cv_printf_has_long_double=yes
20954else
20955 echo "$as_me: program exited with status $ac_status" >&5
20956echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959( exit $ac_status )
20960gdb_cv_printf_has_long_double=no
20961fi
20962rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20963fi
20964fi
20965echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20966echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
20967if test $gdb_cv_printf_has_long_double = yes; then
20968
20969cat >>confdefs.h <<\_ACEOF
20970#define PRINTF_HAS_LONG_DOUBLE 1
20971_ACEOF
20972
20973fi
20974
20975# Check if the compiler and runtime support scanning long doubles.
20976
20977echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20978echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
20979if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981else
20982 if test "$cross_compiling" = yes; then
20983 gdb_cv_scanf_has_long_double=no
20984else
20985 cat >conftest.$ac_ext <<_ACEOF
20986/* confdefs.h. */
20987_ACEOF
20988cat confdefs.h >>conftest.$ac_ext
20989cat >>conftest.$ac_ext <<_ACEOF
20990/* end confdefs.h. */
20991#include <stdio.h>
20992int
20993main ()
20994{
20995char *buf = "3.141592653";
20996 long double f = 0;
20997 sscanf (buf, "%Lg", &f);
20998 return !(f > 3.14159 && f < 3.14160);
20999 ;
21000 return 0;
21001}
21002_ACEOF
21003rm -f conftest$ac_exeext
21004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005 (eval $ac_link) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 gdb_cv_scanf_has_long_double=yes
21015else
21016 echo "$as_me: program exited with status $ac_status" >&5
21017echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020( exit $ac_status )
21021gdb_cv_scanf_has_long_double=no
21022fi
21023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21024fi
21025fi
21026echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
21027echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
21028if test $gdb_cv_scanf_has_long_double = yes; then
21029
21030cat >>confdefs.h <<\_ACEOF
21031#define SCANF_HAS_LONG_DOUBLE 1
21032_ACEOF
21033
21034fi
21035
21036case ${host_os} in
21037aix*)
21038 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
21039echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
21040if test "${gdb_cv_bigtoc+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21042else
21043
21044 SAVE_LDFLAGS=$LDFLAGS
21045
21046 case $GCC in
21047 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
21048 *) gdb_cv_bigtoc=-bbigtoc ;;
21049 esac
21050
21051 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
21052 cat >conftest.$ac_ext <<_ACEOF
21053/* confdefs.h. */
21054_ACEOF
21055cat confdefs.h >>conftest.$ac_ext
21056cat >>conftest.$ac_ext <<_ACEOF
21057/* end confdefs.h. */
21058
21059int
21060main ()
21061{
21062int i;
21063 ;
21064 return 0;
21065}
21066_ACEOF
21067rm -f conftest.$ac_objext conftest$ac_exeext
21068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21069 (eval $ac_link) 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -z "$ac_c_werror_flag"
21077 || test ! -s conftest.err'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 :
21090else
21091 echo "$as_me: failed program was:" >&5
21092sed 's/^/| /' conftest.$ac_ext >&5
21093
21094gdb_cv_bigtoc=
21095fi
21096rm -f conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
21098 LDFLAGS="${SAVE_LDFLAGS}"
21099
21100fi
21101echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21102echo "${ECHO_T}$gdb_cv_bigtoc" >&6
21103 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21104 ;;
21105esac
21106
21107
21108
21109if test ${build} = ${host} -a ${host} = ${target} ; then
21110 case ${host_os} in
21111 hpux*)
21112 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21113echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
21114 if test -f /usr/include/dce/cma_config.h ; then
21115 if test "$GCC" = "yes" ; then
21116 echo "$as_me:$LINENO: result: yes" >&5
21117echo "${ECHO_T}yes" >&6
21118
21119cat >>confdefs.h <<\_ACEOF
21120#define HAVE_HPUX_THREAD_SUPPORT 1
21121_ACEOF
21122
21123 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
21124 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21125 else
21126 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21127echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
21128 fi
21129 else
21130 echo "$as_me:$LINENO: result: no" >&5
21131echo "${ECHO_T}no" >&6
21132 fi
21133 ;;
21134 solaris*)
21135 # See if thread_db library is around for Solaris thread debugging.
21136 # Note that we must explicitly test for version 1 of the library
21137 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21138 # the same API.
21139 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21140echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
21141 if test -f /usr/lib/libthread_db.so.1 ; then
21142 echo "$as_me:$LINENO: result: yes" >&5
21143echo "${ECHO_T}yes" >&6
21144
21145cat >>confdefs.h <<\_ACEOF
21146#define HAVE_THREAD_DB_LIB 1
21147_ACEOF
21148
21149 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
21150 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
21151
21152echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156else
21157 ac_check_lib_save_LIBS=$LIBS
21158LIBS="-ldl $LIBS"
21159cat >conftest.$ac_ext <<_ACEOF
21160/* confdefs.h. */
21161_ACEOF
21162cat confdefs.h >>conftest.$ac_ext
21163cat >>conftest.$ac_ext <<_ACEOF
21164/* end confdefs.h. */
21165
21166/* Override any gcc2 internal prototype to avoid an error. */
21167#ifdef __cplusplus
21168extern "C"
21169#endif
21170/* We use char because int might match the return type of a gcc2
21171 builtin and then its argument prototype would still apply. */
21172char dlopen ();
21173int
21174main ()
21175{
21176dlopen ();
21177 ;
21178 return 0;
21179}
21180_ACEOF
21181rm -f conftest.$ac_objext conftest$ac_exeext
21182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_lib_dl_dlopen=yes
21204else
21205 echo "$as_me: failed program was:" >&5
21206sed 's/^/| /' conftest.$ac_ext >&5
21207
21208ac_cv_lib_dl_dlopen=no
21209fi
21210rm -f conftest.err conftest.$ac_objext \
21211 conftest$ac_exeext conftest.$ac_ext
21212LIBS=$ac_check_lib_save_LIBS
21213fi
21214echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21215echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21216if test $ac_cv_lib_dl_dlopen = yes; then
21217 cat >>confdefs.h <<_ACEOF
21218#define HAVE_LIBDL 1
21219_ACEOF
21220
21221 LIBS="-ldl $LIBS"
21222
21223fi
21224
21225 if test "$GCC" = "yes" ; then
21226 # The GNU linker requires the -export-dynamic option to make
21227 # all symbols visible in the dynamic symbol table.
21228 hold_ldflags=$LDFLAGS
21229 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21230echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
21231 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
21232 cat >conftest.$ac_ext <<_ACEOF
21233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
21238
21239int
21240main ()
21241{
21242int i;
21243 ;
21244 return 0;
21245}
21246_ACEOF
21247rm -f conftest.$ac_objext conftest$ac_exeext
21248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } &&
21256 { ac_try='test -z "$ac_c_werror_flag"
21257 || test ! -s conftest.err'
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; } &&
21263 { ac_try='test -s conftest$ac_exeext'
21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 found=yes
21270else
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
21274found=no
21275fi
21276rm -f conftest.err conftest.$ac_objext \
21277 conftest$ac_exeext conftest.$ac_ext
21278 LDFLAGS=$hold_ldflags
21279 echo "$as_me:$LINENO: result: $found" >&5
21280echo "${ECHO_T}$found" >&6
21281 if test $found = yes; then
21282 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21283 fi
21284 fi
21285 # Sun randomly tweaked the prototypes in <proc_service.h>
21286 # at one point.
21287 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21288echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
21289 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291else
21292
21293 cat >conftest.$ac_ext <<_ACEOF
21294/* confdefs.h. */
21295_ACEOF
21296cat confdefs.h >>conftest.$ac_ext
21297cat >>conftest.$ac_ext <<_ACEOF
21298/* end confdefs.h. */
21299
21300 #include <proc_service.h>
21301 ps_err_e ps_pdwrite
21302 (struct ps_prochandle*, psaddr_t, const void*, size_t);
21303
21304int
21305main ()
21306{
21307
21308 ;
21309 return 0;
21310}
21311_ACEOF
21312rm -f conftest.$ac_objext
21313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21314 (eval $ac_compile) 2>conftest.er1
21315 ac_status=$?
21316 grep -v '^ *+' conftest.er1 >conftest.err
21317 rm -f conftest.er1
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } &&
21321 { ac_try='test -z "$ac_c_werror_flag"
21322 || test ! -s conftest.err'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21325 ac_status=$?
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest.$ac_objext'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 gdb_cv_proc_service_is_old=no
21335else
21336 echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
21339gdb_cv_proc_service_is_old=yes
21340fi
21341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21342
21343fi
21344
21345 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21346echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
21347 if test $gdb_cv_proc_service_is_old = yes; then
21348
21349cat >>confdefs.h <<\_ACEOF
21350#define PROC_SERVICE_IS_OLD 1
21351_ACEOF
21352
21353 fi
21354 else
21355 echo "$as_me:$LINENO: result: no" >&5
21356echo "${ECHO_T}no" >&6
21357 fi
21358 ;;
21359 aix*)
21360 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21361echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
21362 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21364else
21365 cat >conftest.$ac_ext <<_ACEOF
21366/* confdefs.h. */
21367_ACEOF
21368cat confdefs.h >>conftest.$ac_ext
21369cat >>conftest.$ac_ext <<_ACEOF
21370/* end confdefs.h. */
21371#include <sys/pthdebug.h>
21372int
21373main ()
21374{
21375#ifndef PTHDB_VERSION_3
21376 #error
21377 #endif
21378 ;
21379 return 0;
21380}
21381_ACEOF
21382rm -f conftest.$ac_objext
21383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21384 (eval $ac_compile) 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } &&
21391 { ac_try='test -z "$ac_c_werror_flag"
21392 || test ! -s conftest.err'
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; } &&
21398 { ac_try='test -s conftest.$ac_objext'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 gdb_cv_have_aix_thread_debug=yes
21405else
21406 echo "$as_me: failed program was:" >&5
21407sed 's/^/| /' conftest.$ac_ext >&5
21408
21409gdb_cv_have_aix_thread_debug=no
21410fi
21411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21412fi
21413
21414 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21415echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
21416 if test $gdb_cv_have_aix_thread_debug = yes; then
21417 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
21418 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
21419 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21420 fi
21421 ;;
21422 esac
21423
21424fi
21425
21426if test "x$ac_cv_header_thread_db_h" = "xyes"; then
21427 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21428echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
21429if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431else
21432 cat >conftest.$ac_ext <<_ACEOF
21433/* confdefs.h. */
21434_ACEOF
21435cat confdefs.h >>conftest.$ac_ext
21436cat >>conftest.$ac_ext <<_ACEOF
21437/* end confdefs.h. */
21438#include <thread_db.h>
21439int
21440main ()
21441{
21442int i = TD_NOTALLOC;
21443 ;
21444 return 0;
21445}
21446_ACEOF
21447rm -f conftest.$ac_objext
21448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21449 (eval $ac_compile) 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } &&
21456 { ac_try='test -z "$ac_c_werror_flag"
21457 || test ! -s conftest.err'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; } &&
21463 { ac_try='test -s conftest.$ac_objext'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 gdb_cv_thread_db_h_has_td_notalloc=yes
21470else
21471 echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
21474gdb_cv_thread_db_h_has_td_notalloc=no
21475
21476fi
21477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21478
21479fi
21480echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21481echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
21482 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21483echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21484if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486else
21487 cat >conftest.$ac_ext <<_ACEOF
21488/* confdefs.h. */
21489_ACEOF
21490cat confdefs.h >>conftest.$ac_ext
21491cat >>conftest.$ac_ext <<_ACEOF
21492/* end confdefs.h. */
21493#include <thread_db.h>
21494int
21495main ()
21496{
21497int i = TD_VERSION;
21498 ;
21499 return 0;
21500}
21501_ACEOF
21502rm -f conftest.$ac_objext
21503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
21511 { ac_try='test -z "$ac_c_werror_flag"
21512 || test ! -s conftest.err'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try='test -s conftest.$ac_objext'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524 gdb_cv_thread_db_h_has_td_version=yes
21525else
21526 echo "$as_me: failed program was:" >&5
21527sed 's/^/| /' conftest.$ac_ext >&5
21528
21529gdb_cv_thread_db_h_has_td_version=no
21530
21531fi
21532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21533
21534fi
21535echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21536echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21537 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21538echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21539if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542 cat >conftest.$ac_ext <<_ACEOF
21543/* confdefs.h. */
21544_ACEOF
21545cat confdefs.h >>conftest.$ac_ext
21546cat >>conftest.$ac_ext <<_ACEOF
21547/* end confdefs.h. */
21548#include <thread_db.h>
21549int
21550main ()
21551{
21552int i = TD_NOTLS;
21553 ;
21554 return 0;
21555}
21556_ACEOF
21557rm -f conftest.$ac_objext
21558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 gdb_cv_thread_db_h_has_td_notls=yes
21580else
21581 echo "$as_me: failed program was:" >&5
21582sed 's/^/| /' conftest.$ac_ext >&5
21583
21584gdb_cv_thread_db_h_has_td_notls=no
21585
21586fi
21587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588
21589fi
21590echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21591echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
21592fi
21593if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
21594
21595cat >>confdefs.h <<\_ACEOF
21596#define THREAD_DB_HAS_TD_NOTALLOC 1
21597_ACEOF
21598
21599fi
21600if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21601
21602cat >>confdefs.h <<\_ACEOF
21603#define THREAD_DB_HAS_TD_VERSION 1
21604_ACEOF
21605
21606fi
21607if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21608
21609cat >>confdefs.h <<\_ACEOF
21610#define THREAD_DB_HAS_TD_NOTLS 1
21611_ACEOF
21612
21613fi
21614
21615if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
21616 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21617echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
21618if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620else
21621 cat >conftest.$ac_ext <<_ACEOF
21622/* confdefs.h. */
21623_ACEOF
21624cat confdefs.h >>conftest.$ac_ext
21625cat >>conftest.$ac_ext <<_ACEOF
21626/* end confdefs.h. */
21627#include <sys/syscall.h>
21628int
21629main ()
21630{
21631int i = __NR_tkill;
21632 ;
21633 return 0;
21634}
21635_ACEOF
21636rm -f conftest.$ac_objext
21637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638 (eval $ac_compile) 2>conftest.er1
21639 ac_status=$?
21640 grep -v '^ *+' conftest.er1 >conftest.err
21641 rm -f conftest.er1
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
21645 { ac_try='test -z "$ac_c_werror_flag"
21646 || test ! -s conftest.err'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 gdb_cv_sys_syscall_h_has_tkill=yes
21659else
21660 echo "$as_me: failed program was:" >&5
21661sed 's/^/| /' conftest.$ac_ext >&5
21662
21663gdb_cv_sys_syscall_h_has_tkill=no
21664
21665fi
21666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21667
21668fi
21669echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21670echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
21671fi
21672if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
21673
21674cat >>confdefs.h <<\_ACEOF
21675#define HAVE_TKILL_SYSCALL 1
21676_ACEOF
21677
21678fi
21679
21680
21681
21682# Check whether --with-sysroot or --without-sysroot was given.
21683if test "${with_sysroot+set}" = set; then
21684 withval="$with_sysroot"
21685
21686 case ${with_sysroot} in
21687 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
21688 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21689 esac
21690
21691 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21692
21693 if test "x$prefix" = xNONE; then
21694 test_prefix=/usr/local
21695 else
21696 test_prefix=$prefix
21697 fi
21698 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
21699 test_exec_prefix=$test_prefix
21700 else
21701 test_exec_prefix=$exec_prefix
21702 fi
21703 case ${TARGET_SYSTEM_ROOT} in
21704 "${test_prefix}"|"${test_prefix}/"*|\
21705 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
21706 '${prefix}'|'${prefix}/'*|\
21707 '${exec_prefix}'|'${exec_prefix}/'*)
21708 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21709 TARGET_SYSTEM_ROOT_DEFINE="$t"
21710 ;;
21711 esac
21712
21713else
21714
21715 TARGET_SYSTEM_ROOT=
21716 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21717
21718fi;
21719
21720
21721
21722# Check whether --enable-werror or --disable-werror was given.
21723if test "${enable_werror+set}" = set; then
21724 enableval="$enable_werror"
21725 case "${enableval}" in
21726 yes | y) ERROR_ON_WARNING="yes" ;;
21727 no | n) ERROR_ON_WARNING="no" ;;
21728 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21729echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21730 { (exit 1); exit 1; }; } ;;
21731 esac
21732fi;
21733
21734# Enable -Werror by default when using gcc
21735if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21736 ERROR_ON_WARNING=yes
21737fi
21738
21739WERROR_CFLAGS=""
21740if test "${ERROR_ON_WARNING}" = yes ; then
21741 WERROR_CFLAGS="-Werror"
21742fi
21743
21744# The entries after -Wno-pointer-sign are disabled warnings which may
21745# be enabled in the future, which can not currently be used to build
21746# GDB.
21747# NOTE: If you change this list, remember to update
21748# gdb/doc/gdbint.texinfo.
21749build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21750-Wformat-nonliteral -Wno-pointer-sign \
21751-Wno-unused -Wno-switch -Wno-char-subscripts"
21752
21753# Check whether --enable-build-warnings or --disable-build-warnings was given.
21754if test "${enable_build_warnings+set}" = set; then
21755 enableval="$enable_build_warnings"
21756 case "${enableval}" in
21757 yes) ;;
21758 no) build_warnings="-w";;
21759 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21760 build_warnings="${build_warnings} ${t}";;
21761 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21762 build_warnings="${t} ${build_warnings}";;
21763 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21764esac
21765if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21766 echo "Setting compiler warning flags = $build_warnings" 6>&1
21767fi
21768fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
21769if test "${enable_gdb_build_warnings+set}" = set; then
21770 enableval="$enable_gdb_build_warnings"
21771 case "${enableval}" in
21772 yes) ;;
21773 no) build_warnings="-w";;
21774 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21775 build_warnings="${build_warnings} ${t}";;
21776 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21777 build_warnings="${t} ${build_warnings}";;
21778 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21779esac
21780if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21781 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21782fi
21783fi; WARN_CFLAGS=""
21784if test "x${build_warnings}" != x -a "x$GCC" = xyes
21785then
21786 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21787echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
21788 # Separate out the -Werror flag as some files just cannot be
21789 # compiled with it enabled.
21790 for w in ${build_warnings}; do
21791 case $w in
21792 -Werr*) WERROR_CFLAGS=-Werror ;;
21793 *) # Check that GCC accepts it
21794 saved_CFLAGS="$CFLAGS"
21795 CFLAGS="$CFLAGS $w"
21796 cat >conftest.$ac_ext <<_ACEOF
21797/* confdefs.h. */
21798_ACEOF
21799cat confdefs.h >>conftest.$ac_ext
21800cat >>conftest.$ac_ext <<_ACEOF
21801/* end confdefs.h. */
21802
21803int
21804main ()
21805{
21806
21807 ;
21808 return 0;
21809}
21810_ACEOF
21811rm -f conftest.$ac_objext
21812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813 (eval $ac_compile) 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_c_werror_flag"
21821 || test ! -s conftest.err'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest.$ac_objext'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 WARN_CFLAGS="${WARN_CFLAGS} $w"
21834else
21835 echo "$as_me: failed program was:" >&5
21836sed 's/^/| /' conftest.$ac_ext >&5
21837
21838fi
21839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21840 CFLAGS="$saved_CFLAGS"
21841 esac
21842 done
21843 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21844echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
21845fi
21846
21847
21848
21849# In the Cygwin environment, we need some additional flags.
21850echo "$as_me:$LINENO: checking for cygwin" >&5
21851echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
21852if test "${gdb_cv_os_cygwin+set}" = set; then
21853 echo $ECHO_N "(cached) $ECHO_C" >&6
21854else
21855 cat >conftest.$ac_ext <<_ACEOF
21856/* confdefs.h. */
21857_ACEOF
21858cat confdefs.h >>conftest.$ac_ext
21859cat >>conftest.$ac_ext <<_ACEOF
21860/* end confdefs.h. */
21861
21862#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21863lose
21864#endif
21865_ACEOF
21866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21867 $EGREP "lose" >/dev/null 2>&1; then
21868 gdb_cv_os_cygwin=yes
21869else
21870 gdb_cv_os_cygwin=no
21871fi
21872rm -f conftest*
21873
21874fi
21875echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21876echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
21877
21878
21879SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
21880case ${host} in
21881 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21882 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
21883 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
21884esac
21885
21886
21887# libreadline needs libuser32.a in a cygwin environment
21888WIN32LIBS=
21889if test x$gdb_cv_os_cygwin = xyes; then
21890 WIN32LIBS="-luser32"
21891 case "${target}" in
21892 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21893 ;;
21894 esac
21895fi
21896
21897# The ser-tcp.c module requires sockets.
21898case ${host} in
21899 *mingw32*)
21900
21901cat >>confdefs.h <<\_ACEOF
21902#define USE_WIN32API 1
21903_ACEOF
21904
21905 WIN32LIBS="$WIN32LIBS -lws2_32"
21906 ;;
21907esac
21908
21909
21910# Add ELF support to GDB, but only if BFD includes ELF support.
21911OLD_CFLAGS=$CFLAGS
21912OLD_LDFLAGS=$LDFLAGS
21913OLD_LIBS=$LIBS
21914CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
21915LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
21916LIBS="$LIBS -lbfd -liberty"
21917echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
21918echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
21919if test "${gdb_cv_var_elf+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921else
21922 cat >conftest.$ac_ext <<_ACEOF
21923/* confdefs.h. */
21924_ACEOF
21925cat confdefs.h >>conftest.$ac_ext
21926cat >>conftest.$ac_ext <<_ACEOF
21927/* end confdefs.h. */
21928#include <stdlib.h>
21929#include "bfd.h"
21930#include "elf-bfd.h"
21931
21932int
21933main ()
21934{
21935bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
21936 ;
21937 return 0;
21938}
21939_ACEOF
21940rm -f conftest.$ac_objext conftest$ac_exeext
21941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21942 (eval $ac_link) 2>conftest.er1
21943 ac_status=$?
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
21949 { ac_try='test -z "$ac_c_werror_flag"
21950 || test ! -s conftest.err'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; } &&
21956 { ac_try='test -s conftest$ac_exeext'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
21962 gdb_cv_var_elf=yes
21963else
21964 echo "$as_me: failed program was:" >&5
21965sed 's/^/| /' conftest.$ac_ext >&5
21966
21967gdb_cv_var_elf=no
21968fi
21969rm -f conftest.err conftest.$ac_objext \
21970 conftest$ac_exeext conftest.$ac_ext
21971fi
21972echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
21973echo "${ECHO_T}$gdb_cv_var_elf" >&6
21974if test $gdb_cv_var_elf = yes; then
21975 CONFIG_OBS="$CONFIG_OBS elfread.o"
21976
21977cat >>confdefs.h <<\_ACEOF
21978#define HAVE_ELF 1
21979_ACEOF
21980
21981fi
21982CFLAGS=$OLD_CFLAGS
21983LDFLAGS=$OLD_LDFLAGS
21984LIBS=$OLD_LIBS
21985
21986# Add any host-specific objects to GDB.
21987CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21988
21989LIBGUI="../libgui/src/libgui.a"
21990GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21991
21992
21993
21994WIN32LDAPP=
21995
21996
21997
21998case "${host}" in
21999*-*-cygwin*)
22000 configdir="win"
22001 ;;
22002*)
22003 configdir="unix"
22004 ;;
22005esac
22006
22007GDBTKLIBS=
22008if test "${enable_gdbtk}" = "yes"; then
22009
22010 # Gdbtk must have an absolute path to srcdir in order to run
22011 # properly when not installed.
22012 here=`pwd`
22013 cd ${srcdir}
22014 GDBTK_SRC_DIR=`pwd`
22015 cd $here
22016
22017
22018#
22019# Ok, lets find the tcl configuration
22020# First, look for one uninstalled.
22021# the alternative search directory is invoked by --with-tclconfig
22022#
22023
22024if test x"${no_tcl}" = x ; then
22025 # we reset no_tcl in case something fails here
22026 no_tcl=true
22027
22028# Check whether --with-tclconfig or --without-tclconfig was given.
22029if test "${with_tclconfig+set}" = set; then
22030 withval="$with_tclconfig"
22031 with_tclconfig=${withval}
22032fi;
22033 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
22034echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
22035 if test "${ac_cv_c_tclconfig+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22037else
22038
22039
22040 # First check to see if --with-tclconfig was specified.
22041 if test x"${with_tclconfig}" != x ; then
22042 if test -f "${with_tclconfig}/tclConfig.sh" ; then
22043 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
22044 else
22045 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
22046echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
22047 { (exit 1); exit 1; }; }
22048 fi
22049 fi
22050
22051 # then check for a private Tcl installation
22052 if test x"${ac_cv_c_tclconfig}" = x ; then
22053 for i in \
22054 ../tcl \
22055 `ls -dr ../tcl[7-9]* 2>/dev/null` \
22056 ../../tcl \
22057 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
22058 ../../../tcl \
22059 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
22060 if test -f "$i/${configdir}/tclConfig.sh" ; then
22061 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22062 break
22063 fi
22064 done
22065 fi
22066 # check in a few common install locations
22067 if test x"${ac_cv_c_tclconfig}" = x ; then
22068 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22069 if test -f "$i/tclConfig.sh" ; then
22070 ac_cv_c_tclconfig=`(cd $i; pwd)`
22071 break
22072 fi
22073 done
22074 fi
22075 # check in a few other private locations
22076 if test x"${ac_cv_c_tclconfig}" = x ; then
22077 for i in \
22078 ${srcdir}/../tcl \
22079 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22080 if test -f "$i/${configdir}/tclConfig.sh" ; then
22081 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22082 break
22083 fi
22084 done
22085 fi
22086
22087fi
22088
22089 if test x"${ac_cv_c_tclconfig}" = x ; then
22090 TCLCONFIG="# no Tcl configs found"
22091 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22092echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
22093 else
22094 no_tcl=
22095 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
22096 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22097echo "${ECHO_T}found $TCLCONFIG" >&6
22098 fi
22099fi
22100
22101 if test -z "${no_tcl}"; then
22102
22103 . $TCLCONFIG
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131#
22132# Ok, lets find the tk configuration
22133# First, look for one uninstalled.
22134# the alternative search directory is invoked by --with-tkconfig
22135#
22136
22137if test x"${no_tk}" = x ; then
22138 # we reset no_tk in case something fails here
22139 no_tk=true
22140
22141# Check whether --with-tkconfig or --without-tkconfig was given.
22142if test "${with_tkconfig+set}" = set; then
22143 withval="$with_tkconfig"
22144 with_tkconfig=${withval}
22145fi;
22146 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22147echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
22148 if test "${ac_cv_c_tkconfig+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22150else
22151
22152
22153 # First check to see if --with-tkconfig was specified.
22154 if test x"${with_tkconfig}" != x ; then
22155 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22156 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22157 else
22158 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22159echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22160 { (exit 1); exit 1; }; }
22161 fi
22162 fi
22163
22164 # then check for a private Tk library
22165 if test x"${ac_cv_c_tkconfig}" = x ; then
22166 for i in \
22167 ../tk \
22168 `ls -dr ../tk[4-9]* 2>/dev/null` \
22169 ../../tk \
22170 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22171 ../../../tk \
22172 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22173 if test -f "$i/${configdir}/tkConfig.sh" ; then
22174 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22175 break
22176 fi
22177 done
22178 fi
22179 # check in a few common install locations
22180 if test x"${ac_cv_c_tkconfig}" = x ; then
22181 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22182 if test -f "$i/tkConfig.sh" ; then
22183 ac_cv_c_tkconfig=`(cd $i; pwd)`
22184 break
22185 fi
22186 done
22187 fi
22188 # check in a few other private locations
22189 if test x"${ac_cv_c_tkconfig}" = x ; then
22190 for i in \
22191 ${srcdir}/../tk \
22192 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22193 if test -f "$i/${configdir}/tkConfig.sh" ; then
22194 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22195 break
22196 fi
22197 done
22198 fi
22199
22200fi
22201
22202 if test x"${ac_cv_c_tkconfig}" = x ; then
22203 TKCONFIG="# no Tk configs found"
22204 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22205echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
22206 else
22207 no_tk=
22208 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
22209 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22210echo "${ECHO_T}found $TKCONFIG" >&6
22211 fi
22212fi
22213
22214
22215
22216 # now look for Tcl library stuff
22217
22218 tcldir="../tcl/${configdir}/"
22219
22220 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22221
22222 # If $no_tk is nonempty, then we can't do Tk, and there is no
22223 # point to doing Tcl.
22224 if test -z "${no_tk}"; then
22225
22226 if test -f "$TKCONFIG" ; then
22227 . $TKCONFIG
22228 fi
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243#
22244# Ok, lets find the tcl source trees so we can use the headers
22245# Warning: transition of version 9 to 10 will break this algorithm
22246# because 10 sorts before 9. We also look for just tcl. We have to
22247# be careful that we don't match stuff like tclX by accident.
22248# the alternative search directory is involked by --with-tclinclude
22249#
22250
22251no_tcl=true
22252echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22253echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
22254
22255# Check whether --with-tclinclude or --without-tclinclude was given.
22256if test "${with_tclinclude+set}" = set; then
22257 withval="$with_tclinclude"
22258 with_tclinclude=${withval}
22259fi;
22260if test "${ac_cv_c_tclh+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22262else
22263
22264# first check to see if --with-tclinclude was specified
22265if test x"${with_tclinclude}" != x ; then
22266 if test -f ${with_tclinclude}/tclInt.h ; then
22267 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22268 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22269 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22270 else
22271 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22272echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22273 { (exit 1); exit 1; }; }
22274 fi
22275fi
22276
22277# next check if it came with Tcl configuration file
22278if test x"${ac_cv_c_tclconfig}" = x ; then
22279 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22280 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22281 fi
22282fi
22283
22284# next check in private source directory
22285#
22286# since ls returns lowest version numbers first, reverse its output
22287if test x"${ac_cv_c_tclh}" = x ; then
22288 for i in \
22289 ${srcdir}/../tcl \
22290 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22291 ${srcdir}/../../tcl \
22292 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22293 ${srcdir}/../../../tcl \
22294 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22295 if test -f $i/generic/tclInt.h ; then
22296 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22297 break
22298 fi
22299 done
22300fi
22301# finally check in a few common install locations
22302#
22303# since ls returns lowest version numbers first, reverse its output
22304if test x"${ac_cv_c_tclh}" = x ; then
22305 for i in \
22306 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22307 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22308 /usr/local/src/tcl \
22309 /usr/local/lib/tcl \
22310 ${prefix}/include ; do
22311 if test -f $i/generic/tclInt.h ; then
22312 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22313 break
22314 fi
22315 done
22316fi
22317# see if one is installed
22318if test x"${ac_cv_c_tclh}" = x ; then
22319 if test "${ac_cv_header_tclInt_h+set}" = set; then
22320 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22321echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22322if test "${ac_cv_header_tclInt_h+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324fi
22325echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22326echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22327else
22328 # Is the header compilable?
22329echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22330echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
22331cat >conftest.$ac_ext <<_ACEOF
22332/* confdefs.h. */
22333_ACEOF
22334cat confdefs.h >>conftest.$ac_ext
22335cat >>conftest.$ac_ext <<_ACEOF
22336/* end confdefs.h. */
22337$ac_includes_default
22338#include <tclInt.h>
22339_ACEOF
22340rm -f conftest.$ac_objext
22341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22342 (eval $ac_compile) 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } &&
22349 { ac_try='test -z "$ac_c_werror_flag"
22350 || test ! -s conftest.err'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; } &&
22356 { ac_try='test -s conftest.$ac_objext'
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 ac_header_compiler=yes
22363else
22364 echo "$as_me: failed program was:" >&5
22365sed 's/^/| /' conftest.$ac_ext >&5
22366
22367ac_header_compiler=no
22368fi
22369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22371echo "${ECHO_T}$ac_header_compiler" >&6
22372
22373# Is the header present?
22374echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22375echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
22376cat >conftest.$ac_ext <<_ACEOF
22377/* confdefs.h. */
22378_ACEOF
22379cat confdefs.h >>conftest.$ac_ext
22380cat >>conftest.$ac_ext <<_ACEOF
22381/* end confdefs.h. */
22382#include <tclInt.h>
22383_ACEOF
22384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22386 ac_status=$?
22387 grep -v '^ *+' conftest.er1 >conftest.err
22388 rm -f conftest.er1
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } >/dev/null; then
22392 if test -s conftest.err; then
22393 ac_cpp_err=$ac_c_preproc_warn_flag
22394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22395 else
22396 ac_cpp_err=
22397 fi
22398else
22399 ac_cpp_err=yes
22400fi
22401if test -z "$ac_cpp_err"; then
22402 ac_header_preproc=yes
22403else
22404 echo "$as_me: failed program was:" >&5
22405sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 ac_header_preproc=no
22408fi
22409rm -f conftest.err conftest.$ac_ext
22410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22411echo "${ECHO_T}$ac_header_preproc" >&6
22412
22413# So? What about this header?
22414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22415 yes:no: )
22416 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22417echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22418 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22419echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22420 ac_header_preproc=yes
22421 ;;
22422 no:yes:* )
22423 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22424echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22425 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22426echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22427 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22428echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22429 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22430echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22431 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22432echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22433 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22434echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
22435 (
22436 cat <<\_ASBOX
22437## ------------------------------------------ ##
22438## Report this to the AC_PACKAGE_NAME lists. ##
22439## ------------------------------------------ ##
22440_ASBOX
22441 ) |
22442 sed "s/^/$as_me: WARNING: /" >&2
22443 ;;
22444esac
22445echo "$as_me:$LINENO: checking for tclInt.h" >&5
22446echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22447if test "${ac_cv_header_tclInt_h+set}" = set; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
22449else
22450 ac_cv_header_tclInt_h=$ac_header_preproc
22451fi
22452echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22453echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22454
22455fi
22456if test $ac_cv_header_tclInt_h = yes; then
22457 ac_cv_c_tclh=installed
22458else
22459 ac_cv_c_tclh=""
22460fi
22461
22462
22463fi
22464
22465fi
22466
22467if test x"${ac_cv_c_tclh}" = x ; then
22468 TCLHDIR="# no Tcl private headers found"
22469 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22470echo "$as_me: error: Can't find Tcl private headers" >&2;}
22471 { (exit 1); exit 1; }; }
22472fi
22473if test x"${ac_cv_c_tclh}" != x ; then
22474 no_tcl=""
22475 if test x"${ac_cv_c_tclh}" = x"installed" ; then
22476 echo "$as_me:$LINENO: result: is installed" >&5
22477echo "${ECHO_T}is installed" >&6
22478 TCLHDIR=""
22479 else
22480 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22481echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
22482 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22483 TCLHDIR="-I${ac_cv_c_tclh}"
22484 fi
22485fi
22486
22487
22488
22489
22490#
22491# Ok, lets find the tk source trees so we can use the headers
22492# If the directory (presumably symlink) named "tk" exists, use that one
22493# in preference to any others. Same logic is used when choosing library
22494# and again with Tcl. The search order is the best place to look first, then in
22495# decreasing significance. The loop breaks if the trigger file is found.
22496# Note the gross little conversion here of srcdir by cd'ing to the found
22497# directory. This converts the path from a relative to an absolute, so
22498# recursive cache variables for the path will work right. We check all
22499# the possible paths in one loop rather than many seperate loops to speed
22500# things up.
22501# the alternative search directory is involked by --with-tkinclude
22502#
22503no_tk=true
22504echo "$as_me:$LINENO: checking for Tk private headers" >&5
22505echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
22506
22507# Check whether --with-tkinclude or --without-tkinclude was given.
22508if test "${with_tkinclude+set}" = set; then
22509 withval="$with_tkinclude"
22510 with_tkinclude=${withval}
22511fi;
22512if test "${ac_cv_c_tkh+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22514else
22515
22516# first check to see if --with-tkinclude was specified
22517if test x"${with_tkinclude}" != x ; then
22518 if test -f ${with_tkinclude}/tk.h ; then
22519 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22520 elif test -f ${with_tkinclude}/generic/tk.h ; then
22521 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22522 else
22523 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22524echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22525 { (exit 1); exit 1; }; }
22526 fi
22527fi
22528
22529# next check if it came with Tk configuration file
22530if test x"${ac_cv_c_tkconfig}" = x ; then
22531 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22532 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22533 fi
22534fi
22535
22536# next check in private source directory
22537#
22538# since ls returns lowest version numbers first, reverse its output
22539if test x"${ac_cv_c_tkh}" = x ; then
22540 for i in \
22541 ${srcdir}/../tk \
22542 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22543 ${srcdir}/../../tk \
22544 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22545 ${srcdir}/../../../tk \
22546 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22547 if test -f $i/generic/tk.h ; then
22548 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22549 break
22550 fi
22551 done
22552fi
22553# finally check in a few common install locations
22554#
22555# since ls returns lowest version numbers first, reverse its output
22556if test x"${ac_cv_c_tkh}" = x ; then
22557 for i in \
22558 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22559 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22560 /usr/local/src/tk \
22561 /usr/local/lib/tk \
22562 ${prefix}/include ; do
22563 if test -f $i/generic/tk.h ; then
22564 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22565 break
22566 fi
22567 done
22568fi
22569# see if one is installed
22570if test x"${ac_cv_c_tkh}" = x ; then
22571 if test "${ac_cv_header_tk_h+set}" = set; then
22572 echo "$as_me:$LINENO: checking for tk.h" >&5
22573echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22574if test "${ac_cv_header_tk_h+set}" = set; then
22575 echo $ECHO_N "(cached) $ECHO_C" >&6
22576fi
22577echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22578echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22579else
22580 # Is the header compilable?
22581echo "$as_me:$LINENO: checking tk.h usability" >&5
22582echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
22583cat >conftest.$ac_ext <<_ACEOF
22584/* confdefs.h. */
22585_ACEOF
22586cat confdefs.h >>conftest.$ac_ext
22587cat >>conftest.$ac_ext <<_ACEOF
22588/* end confdefs.h. */
22589$ac_includes_default
22590#include <tk.h>
22591_ACEOF
22592rm -f conftest.$ac_objext
22593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22594 (eval $ac_compile) 2>conftest.er1
22595 ac_status=$?
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } &&
22601 { ac_try='test -z "$ac_c_werror_flag"
22602 || test ! -s conftest.err'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; } &&
22608 { ac_try='test -s conftest.$ac_objext'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }; then
22614 ac_header_compiler=yes
22615else
22616 echo "$as_me: failed program was:" >&5
22617sed 's/^/| /' conftest.$ac_ext >&5
22618
22619ac_header_compiler=no
22620fi
22621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22623echo "${ECHO_T}$ac_header_compiler" >&6
22624
22625# Is the header present?
22626echo "$as_me:$LINENO: checking tk.h presence" >&5
22627echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
22628cat >conftest.$ac_ext <<_ACEOF
22629/* confdefs.h. */
22630_ACEOF
22631cat confdefs.h >>conftest.$ac_ext
22632cat >>conftest.$ac_ext <<_ACEOF
22633/* end confdefs.h. */
22634#include <tk.h>
22635_ACEOF
22636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22638 ac_status=$?
22639 grep -v '^ *+' conftest.er1 >conftest.err
22640 rm -f conftest.er1
22641 cat conftest.err >&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } >/dev/null; then
22644 if test -s conftest.err; then
22645 ac_cpp_err=$ac_c_preproc_warn_flag
22646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22647 else
22648 ac_cpp_err=
22649 fi
22650else
22651 ac_cpp_err=yes
22652fi
22653if test -z "$ac_cpp_err"; then
22654 ac_header_preproc=yes
22655else
22656 echo "$as_me: failed program was:" >&5
22657sed 's/^/| /' conftest.$ac_ext >&5
22658
22659 ac_header_preproc=no
22660fi
22661rm -f conftest.err conftest.$ac_ext
22662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22663echo "${ECHO_T}$ac_header_preproc" >&6
22664
22665# So? What about this header?
22666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22667 yes:no: )
22668 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22669echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22671echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22672 ac_header_preproc=yes
22673 ;;
22674 no:yes:* )
22675 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22676echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22677 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22678echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22679 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22680echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22681 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22682echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22683 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22684echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22685 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22686echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
22687 (
22688 cat <<\_ASBOX
22689## ------------------------------------------ ##
22690## Report this to the AC_PACKAGE_NAME lists. ##
22691## ------------------------------------------ ##
22692_ASBOX
22693 ) |
22694 sed "s/^/$as_me: WARNING: /" >&2
22695 ;;
22696esac
22697echo "$as_me:$LINENO: checking for tk.h" >&5
22698echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22699if test "${ac_cv_header_tk_h+set}" = set; then
22700 echo $ECHO_N "(cached) $ECHO_C" >&6
22701else
22702 ac_cv_header_tk_h=$ac_header_preproc
22703fi
22704echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22705echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22706
22707fi
22708if test $ac_cv_header_tk_h = yes; then
22709 ac_cv_c_tkh=installed
22710else
22711 ac_cv_c_tkh=""
22712fi
22713
22714
22715fi
22716
22717fi
22718
22719if test x"${ac_cv_c_tkh}" != x ; then
22720 no_tk=""
22721 if test x"${ac_cv_c_tkh}" = x"installed" ; then
22722 echo "$as_me:$LINENO: result: is installed" >&5
22723echo "${ECHO_T}is installed" >&6
22724 TKHDIR=""
22725 else
22726 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22727echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
22728 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22729 TKHDIR="-I${ac_cv_c_tkh}"
22730 fi
22731else
22732 TKHDIR="# no Tk directory found"
22733 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22734echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
22735 no_tk=true
22736fi
22737
22738
22739
22740
22741echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22742echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
22743if test x"${ac_cv_c_itclh}" = x ; then
22744 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22745 if test -f $i/generic/itcl.h ; then
22746 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22747 break
22748 fi
22749 done
22750fi
22751if test x"${ac_cv_c_itclh}" = x ; then
22752 ITCLHDIR="# no Itcl private headers found"
22753 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22754echo "$as_me: error: Can't find Itcl private headers" >&2;}
22755 { (exit 1); exit 1; }; }
22756fi
22757if test x"${ac_cv_c_itclh}" != x ; then
22758 ITCLHDIR="-I${ac_cv_c_itclh}"
22759fi
22760# should always be here
22761# ITCLLIB="../itcl/itcl/unix/libitcl.a"
22762
22763#AC_SUBST(ITCLLIB)
22764
22765
22766echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22767echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
22768if test x"${ac_cv_c_itkh}" = x ; then
22769 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22770 if test -f $i/generic/itk.h ; then
22771 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22772 break
22773 fi
22774 done
22775fi
22776if test x"${ac_cv_c_itkh}" = x ; then
22777 ITKHDIR="# no Itk private headers found"
22778 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22779echo "$as_me: error: Can't find Itk private headers" >&2;}
22780 { (exit 1); exit 1; }; }
22781fi
22782if test x"${ac_cv_c_itkh}" != x ; then
22783 ITKHDIR="-I${ac_cv_c_itkh}"
22784fi
22785# should always be here
22786# ITKLIB="../itcl/itk/unix/libitk.a"
22787
22788#AC_SUBST(ITKLIB)
22789
22790
22791
22792 # now look for Tk library stuff
22793
22794 tkdir="../tk/${configdir}/"
22795
22796 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22797
22798 # now look for Itcl library stuff
22799
22800
22801#
22802# Ok, lets find the itcl configuration
22803# First, look for one uninstalled.
22804# the alternative search directory is invoked by --with-itclconfig
22805#
22806
22807if test x"${no_itcl}" = x ; then
22808 # we reset no_itcl in case something fails here
22809 no_itcl=true
22810
22811# Check whether --with-itclconfig or --without-itclconfig was given.
22812if test "${with_itclconfig+set}" = set; then
22813 withval="$with_itclconfig"
22814 with_itclconfig=${withval}
22815fi;
22816 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22817echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
22818 if test "${ac_cv_c_itclconfig+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22820else
22821
22822
22823 # First check to see if --with-itclconfig was specified.
22824 if test x"${with_itclconfig}" != x ; then
22825 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22826 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22827 else
22828 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22829echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22830 { (exit 1); exit 1; }; }
22831 fi
22832 fi
22833
22834 # then check for a private Itcl library
22835 if test x"${ac_cv_c_itclconfig}" = x ; then
22836 for i in \
22837 ../itcl/itcl \
22838 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22839 ../../itcl \
22840 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22841 ../../../itcl \
22842 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22843 if test -f "$i/itclConfig.sh" ; then
22844 ac_cv_c_itclconfig=`(cd $i; pwd)`
22845 break
22846 fi
22847 done
22848 fi
22849 # check in a few common install locations
22850 if test x"${ac_cv_c_itclconfig}" = x ; then
22851 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22852 if test -f "$i/itclConfig.sh" ; then
22853 ac_cv_c_itclconfig=`(cd $i; pwd)`
22854 break
22855 fi
22856 done
22857 fi
22858 # check in a few other private locations
22859 if test x"${ac_cv_c_itclconfig}" = x ; then
22860 for i in \
22861 ${srcdir}/../itcl/itcl \
22862 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22863 if test -f "$i/itclConfig.sh" ; then
22864 ac_cv_c_itclconfig=`(cd $i; pwd)`
22865 break
22866 fi
22867 done
22868 fi
22869
22870fi
22871
22872 if test x"${ac_cv_c_itclconfig}" = x ; then
22873 ITCLCONFIG="# no Itcl configs found"
22874 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22875echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
22876 else
22877 no_itcl=
22878 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
22879 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22880echo "${ECHO_T}found $ITCLCONFIG" >&6
22881 fi
22882fi
22883
22884 if test -z "${no_itcl}"; then
22885
22886 if test -f "$ITCLCONFIG" ; then
22887 . $ITCLCONFIG
22888 fi
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
22902 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
22903 fi
22904
22905
22906 # now look for Itk library stuff
22907
22908#
22909# Ok, lets find the itk configuration
22910# First, look for one uninstalled.
22911# the alternative search directory is invoked by --with-itkconfig
22912#
22913
22914if test x"${no_itk}" = x ; then
22915 # we reset no_itk in case something fails here
22916 no_itk=true
22917
22918# Check whether --with-itkconfig or --without-itkconfig was given.
22919if test "${with_itkconfig+set}" = set; then
22920 withval="$with_itkconfig"
22921 with_itkconfig=${withval}
22922fi;
22923 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22924echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
22925 if test "${ac_cv_c_itkconfig+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22927else
22928
22929
22930 # First check to see if --with-itkconfig was specified.
22931 if test x"${with_itkconfig}" != x ; then
22932 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22933 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22934 else
22935 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22936echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22937 { (exit 1); exit 1; }; }
22938 fi
22939 fi
22940
22941 # then check for a private Itk library
22942 if test x"${ac_cv_c_itkconfig}" = x ; then
22943 for i in \
22944 ../itcl/itk \
22945 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22946 ../../itk \
22947 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22948 ../../../itk \
22949 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22950 if test -f "$i/itkConfig.sh" ; then
22951 ac_cv_c_itkconfig=`(cd $i; pwd)`
22952 break
22953 fi
22954 done
22955 fi
22956 # check in a few common install locations
22957 if test x"${ac_cv_c_itkconfig}" = x ; then
22958 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22959 if test -f "$i/itkConfig.sh" ; then
22960 ac_cv_c_itkconfig=`(cd $i; pwd)`
22961 break
22962 fi
22963 done
22964 fi
22965 # check in a few other private locations
22966 if test x"${ac_cv_c_itkconfig}" = x ; then
22967 for i in \
22968 ${srcdir}/../itcl/itk \
22969 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22970 if test -f "$i/itkConfig.sh" ; then
22971 ac_cv_c_itkconfig=`(cd $i; pwd)`
22972 break
22973 fi
22974 done
22975 fi
22976
22977fi
22978
22979 if test x"${ac_cv_c_itkconfig}" = x ; then
22980 ITKCONFIG="# no Itk configs found"
22981 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22982echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
22983 else
22984 no_itk=
22985 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
22986 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22987echo "${ECHO_T}found $ITKCONFIG" >&6
22988 fi
22989fi
22990
22991
22992 if test -z "${no_itcl}"; then
22993
22994 if test -f "$ITKCONFIG" ; then
22995 . $ITKCONFIG
22996 fi
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009 ITKLIB="${ITK_BUILD_LIB_SPEC}"
23010 ITK_DEPS="${ITK_LIB_FULL_PATH}"
23011 fi
23012
23013 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
23014
23015 # Include some libraries that Tcl and Tk want.
23016 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
23017 # Yes, the ordering seems wrong here. But it isn't.
23018 # TK_LIBS is the list of libraries that need to be linked
23019 # after Tcl/Tk. Note that this isn't put into LIBS. If it
23020 # were in LIBS then any link tests after this point would
23021 # try to include things like `$(LIBGUI)', which wouldn't work.
23022 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
23023
23024 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
23025 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
23026 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
23027 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
23028 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
23029 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
23030 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
23031
23032 if test x$gdb_cv_os_cygwin = xyes; then
23033 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
23034 WIN32LDAPP="-Wl,--subsystem,console"
23035 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
23036 fi
23037 fi
23038 fi
23039
23040
23041
23042subdirs="$subdirs gdbtk"
23043
23044fi
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059echo "$as_me:$LINENO: checking for X" >&5
23060echo $ECHO_N "checking for X... $ECHO_C" >&6
23061
23062
23063# Check whether --with-x or --without-x was given.
23064if test "${with_x+set}" = set; then
23065 withval="$with_x"
23066
23067fi;
23068# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23069if test "x$with_x" = xno; then
23070 # The user explicitly disabled X.
23071 have_x=disabled
23072else
23073 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23074 # Both variables are already set.
23075 have_x=yes
23076 else
23077 if test "${ac_cv_have_x+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23079else
23080 # One or both of the vars are not set, and there is no cached value.
23081ac_x_includes=no ac_x_libraries=no
23082rm -fr conftest.dir
23083if mkdir conftest.dir; then
23084 cd conftest.dir
23085 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23086 cat >Imakefile <<'_ACEOF'
23087acfindx:
23088 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23089_ACEOF
23090 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23092 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23093 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23094 for ac_extension in a so sl; do
23095 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23096 test -f $ac_im_libdir/libX11.$ac_extension; then
23097 ac_im_usrlibdir=$ac_im_libdir; break
23098 fi
23099 done
23100 # Screen out bogus values from the imake configuration. They are
23101 # bogus both because they are the default anyway, and because
23102 # using them would break gcc on systems where it needs fixed includes.
23103 case $ac_im_incroot in
23104 /usr/include) ;;
23105 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23106 esac
23107 case $ac_im_usrlibdir in
23108 /usr/lib | /lib) ;;
23109 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23110 esac
23111 fi
23112 cd ..
23113 rm -fr conftest.dir
23114fi
23115
23116# Standard set of common directories for X headers.
23117# Check X11 before X11Rn because it is often a symlink to the current release.
23118ac_x_header_dirs='
23119/usr/X11/include
23120/usr/X11R6/include
23121/usr/X11R5/include
23122/usr/X11R4/include
23123
23124/usr/include/X11
23125/usr/include/X11R6
23126/usr/include/X11R5
23127/usr/include/X11R4
23128
23129/usr/local/X11/include
23130/usr/local/X11R6/include
23131/usr/local/X11R5/include
23132/usr/local/X11R4/include
23133
23134/usr/local/include/X11
23135/usr/local/include/X11R6
23136/usr/local/include/X11R5
23137/usr/local/include/X11R4
23138
23139/usr/X386/include
23140/usr/x386/include
23141/usr/XFree86/include/X11
23142
23143/usr/include
23144/usr/local/include
23145/usr/unsupported/include
23146/usr/athena/include
23147/usr/local/x11r5/include
23148/usr/lpp/Xamples/include
23149
23150/usr/openwin/include
23151/usr/openwin/share/include'
23152
23153if test "$ac_x_includes" = no; then
23154 # Guess where to find include files, by looking for Intrinsic.h.
23155 # First, try using that file with no special directory specified.
23156 cat >conftest.$ac_ext <<_ACEOF
23157/* confdefs.h. */
23158_ACEOF
23159cat confdefs.h >>conftest.$ac_ext
23160cat >>conftest.$ac_ext <<_ACEOF
23161/* end confdefs.h. */
23162#include <X11/Intrinsic.h>
23163_ACEOF
23164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23166 ac_status=$?
23167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } >/dev/null; then
23172 if test -s conftest.err; then
23173 ac_cpp_err=$ac_c_preproc_warn_flag
23174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23175 else
23176 ac_cpp_err=
23177 fi
23178else
23179 ac_cpp_err=yes
23180fi
23181if test -z "$ac_cpp_err"; then
23182 # We can compile using X headers with no special include directory.
23183ac_x_includes=
23184else
23185 echo "$as_me: failed program was:" >&5
23186sed 's/^/| /' conftest.$ac_ext >&5
23187
23188 for ac_dir in $ac_x_header_dirs; do
23189 if test -r "$ac_dir/X11/Intrinsic.h"; then
23190 ac_x_includes=$ac_dir
23191 break
23192 fi
23193done
23194fi
23195rm -f conftest.err conftest.$ac_ext
23196fi # $ac_x_includes = no
23197
23198if test "$ac_x_libraries" = no; then
23199 # Check for the libraries.
23200 # See if we find them without any special options.
23201 # Don't add to $LIBS permanently.
23202 ac_save_LIBS=$LIBS
23203 LIBS="-lXt $LIBS"
23204 cat >conftest.$ac_ext <<_ACEOF
23205/* confdefs.h. */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h. */
23210#include <X11/Intrinsic.h>
23211int
23212main ()
23213{
23214XtMalloc (0)
23215 ;
23216 return 0;
23217}
23218_ACEOF
23219rm -f conftest.$ac_objext conftest$ac_exeext
23220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23221 (eval $ac_link) 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
23228 { ac_try='test -z "$ac_c_werror_flag"
23229 || test ! -s conftest.err'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; } &&
23235 { ac_try='test -s conftest$ac_exeext'
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; }; then
23241 LIBS=$ac_save_LIBS
23242# We can link X programs with no special library path.
23243ac_x_libraries=
23244else
23245 echo "$as_me: failed program was:" >&5
23246sed 's/^/| /' conftest.$ac_ext >&5
23247
23248LIBS=$ac_save_LIBS
23249for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23250do
23251 # Don't even attempt the hair of trying to link an X program!
23252 for ac_extension in a so sl; do
23253 if test -r $ac_dir/libXt.$ac_extension; then
23254 ac_x_libraries=$ac_dir
23255 break 2
23256 fi
23257 done
23258done
23259fi
23260rm -f conftest.err conftest.$ac_objext \
23261 conftest$ac_exeext conftest.$ac_ext
23262fi # $ac_x_libraries = no
23263
23264if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23265 # Didn't find X anywhere. Cache the known absence of X.
23266 ac_cv_have_x="have_x=no"
23267else
23268 # Record where we found X for the cache.
23269 ac_cv_have_x="have_x=yes \
23270 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23271fi
23272fi
23273
23274 fi
23275 eval "$ac_cv_have_x"
23276fi # $with_x != no
23277
23278if test "$have_x" != yes; then
23279 echo "$as_me:$LINENO: result: $have_x" >&5
23280echo "${ECHO_T}$have_x" >&6
23281 no_x=yes
23282else
23283 # If each of the values was on the command line, it overrides each guess.
23284 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23285 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23286 # Update the cache value to reflect the command line values.
23287 ac_cv_have_x="have_x=yes \
23288 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23289 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23290echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23291fi
23292
23293
23294# Check whether we should enable the TUI, but only do so if we really
23295# can.
23296if test x"$enable_tui" = xyes; then
23297 if test -d $srcdir/tui; then
23298 if test "$ac_cv_search_waddstr" != no; then
23299 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23300 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23301 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23302 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23303 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23304 CONFIG_ALL="${CONFIG_ALL} all-tui"
23305 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23306 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23307 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23308 else
23309 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23310echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
23311 fi
23312 fi
23313fi
23314
23315# Unlike the sim directory, whether a simulator is linked is controlled by
23316# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
23317# This code just checks for a few cases where we'd like to ignore those
23318# definitions, even when they're present in the '.mt' file. These cases
23319# are when --disable-sim is specified, or if the simulator directory is
23320# not part of the source tree.
23321#
23322# Check whether --enable-sim or --disable-sim was given.
23323if test "${enable_sim+set}" = set; then
23324 enableval="$enable_sim"
23325 echo "enable_sim = $enable_sim";
23326 echo "enableval = ${enableval}";
23327 case "${enableval}" in
23328 yes) ignore_sim=false ;;
23329 no) ignore_sim=true ;;
23330 *) ignore_sim=false ;;
23331 esac
23332else
23333 ignore_sim=false
23334fi;
23335
23336if test ! -d "${srcdir}/../sim"; then
23337 ignore_sim=true
23338fi
23339
23340if test "${ignore_sim}" = "true"; then
23341 IGNORE_SIM="SIM="
23342 IGNORE_SIM_OBS="SIM_OBS="
23343else
23344 IGNORE_SIM=""
23345 IGNORE_SIM_OBS=""
23346
23347cat >>confdefs.h <<\_ACEOF
23348#define WITH_SIM 1
23349_ACEOF
23350
23351fi
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366# List of host floatformats.
23367
23368cat >>confdefs.h <<_ACEOF
23369#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
23370_ACEOF
23371
23372
23373cat >>confdefs.h <<_ACEOF
23374#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
23375_ACEOF
23376
23377
23378cat >>confdefs.h <<_ACEOF
23379#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
23380_ACEOF
23381
23382
23383# target_subdir is used by the testsuite to find the target libraries.
23384target_subdir=
23385if test "${host}" != "${target}"; then
23386 target_subdir="${target_alias}/"
23387fi
23388
23389
23390frags=
23391if test "${gdb_native}" = "yes"; then
23392 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23393 if test ! -f ${host_makefile_frag}; then
23394 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23395echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23396 { (exit 1); exit 1; }; }
23397 fi
23398 frags="$frags $host_makefile_frag"
23399else
23400 host_makefile_frag=/dev/null
23401fi
23402
23403target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23404if test ! -f ${target_makefile_frag}; then
23405 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23406echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23407 { (exit 1); exit 1; }; }
23408fi
23409frags="$frags $target_makefile_frag"
23410
23411
23412
23413
23414
23415hostfile=`sed -n '
23416s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23417' ${host_makefile_frag}`
23418
23419targetfile=`sed -n '
23420s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23421' ${target_makefile_frag}`
23422
23423if test "${gdb_native}" = "yes"; then
23424# We pick this up from the host configuration file (.mh) because we
23425# do not have a native configuration Makefile fragment.
23426nativefile=`sed -n '
23427s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23428' ${host_makefile_frag}`
23429fi
23430
23431
23432if test x"${gdb_osabi}" != x ; then
23433
23434cat >>confdefs.h <<_ACEOF
23435#define GDB_OSABI_DEFAULT $gdb_osabi
23436_ACEOF
23437
23438fi
23439
23440# Enable multi-ice-gdb-server.
23441# Check whether --enable-multi-ice or --disable-multi-ice was given.
23442if test "${enable_multi_ice+set}" = set; then
23443 enableval="$enable_multi_ice"
23444 case $enableval in
23445 yes | no)
23446 ;;
23447 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23448echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23449 { (exit 1); exit 1; }; } ;;
23450 esac
23451fi;
23452if test "x$enable_multi_ice" = xyes; then
23453
23454
23455subdirs="$subdirs multi-ice"
23456
23457fi
23458
23459# We only build gdbserver automatically in a native configuration.
23460if test "$gdb_native" = "yes"; then
23461 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23462echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
23463 if test "x$build_gdbserver" = xyes; then
23464 echo "$as_me:$LINENO: result: yes" >&5
23465echo "${ECHO_T}yes" >&6
23466
23467
23468subdirs="$subdirs gdbserver"
23469
23470 else
23471 echo "$as_me:$LINENO: result: no" >&5
23472echo "${ECHO_T}no" >&6
23473 fi
23474fi
23475
23476# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23477# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23478# to an empty version.
23479
23480files=
23481links=
23482
23483rm -f xm.h
23484xm_h=""
23485if test "${hostfile}" != ""; then
23486 xm_h=xm.h
23487 case "${hostfile}" in
23488 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23489 * ) GDB_XM_FILE="${hostfile}"
23490 esac
23491 files="${files} ${GDB_XM_FILE}"
23492 links="${links} xm.h"
23493
23494cat >>confdefs.h <<_ACEOF
23495#define GDB_XM_FILE "${GDB_XM_FILE}"
23496_ACEOF
23497
23498fi
23499
23500
23501rm -f tm.h
23502tm_h=""
23503if test "${targetfile}" != ""; then
23504 tm_h=tm.h
23505 case "${targetfile}" in
23506 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
23507 * ) GDB_TM_FILE="${targetfile}"
23508 esac
23509 files="${files} ${GDB_TM_FILE}"
23510 links="${links} tm.h"
23511
23512cat >>confdefs.h <<_ACEOF
23513#define GDB_TM_FILE "${GDB_TM_FILE}"
23514_ACEOF
23515
23516fi
23517
23518
23519rm -f nm.h
23520nm_h=""
23521if test "${nativefile}" != ""; then
23522 nm_h=nm.h
23523 case "${nativefile}" in
23524 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23525 * ) GDB_NM_FILE="${nativefile}"
23526 esac
23527 files="${files} ${GDB_NM_FILE}"
23528 links="${links} nm.h"
23529
23530cat >>confdefs.h <<_ACEOF
23531#define GDB_NM_FILE "${GDB_NM_FILE}"
23532_ACEOF
23533
23534fi
23535
23536
23537ac_sources="$files"
23538ac_dests="$links"
23539while test -n "$ac_sources"; do
23540 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23541 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23542 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23543done
23544 ac_config_links="$ac_config_links $ac_config_links_1"
23545
23546
23547
23548
23549
23550
23551cat >>confdefs.h <<\_ACEOF
23552#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23553_ACEOF
23554
23555
23556
23557
23558
23559# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
23560if test "${with_libiconv_prefix+set}" = set; then
23561 withval="$with_libiconv_prefix"
23562
23563 for dir in `echo "$withval" | tr : ' '`; do
23564 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23565 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23566 done
23567
23568fi;
23569
23570 echo "$as_me:$LINENO: checking for iconv" >&5
23571echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23572if test "${am_cv_func_iconv+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23574else
23575
23576 am_cv_func_iconv="no, consider installing GNU libiconv"
23577 am_cv_lib_iconv=no
23578 cat >conftest.$ac_ext <<_ACEOF
23579/* confdefs.h. */
23580_ACEOF
23581cat confdefs.h >>conftest.$ac_ext
23582cat >>conftest.$ac_ext <<_ACEOF
23583/* end confdefs.h. */
23584#include <stdlib.h>
23585#include <iconv.h>
23586int
23587main ()
23588{
23589iconv_t cd = iconv_open("","");
23590 iconv(cd,NULL,NULL,NULL,NULL);
23591 iconv_close(cd);
23592 ;
23593 return 0;
23594}
23595_ACEOF
23596rm -f conftest.$ac_objext conftest$ac_exeext
23597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23598 (eval $ac_link) 2>conftest.er1
23599 ac_status=$?
23600 grep -v '^ *+' conftest.er1 >conftest.err
23601 rm -f conftest.er1
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } &&
23605 { ac_try='test -z "$ac_c_werror_flag"
23606 || test ! -s conftest.err'
23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23609 ac_status=$?
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; } &&
23612 { ac_try='test -s conftest$ac_exeext'
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; }; then
23618 am_cv_func_iconv=yes
23619else
23620 echo "$as_me: failed program was:" >&5
23621sed 's/^/| /' conftest.$ac_ext >&5
23622
23623fi
23624rm -f conftest.err conftest.$ac_objext \
23625 conftest$ac_exeext conftest.$ac_ext
23626 if test "$am_cv_func_iconv" != yes; then
23627 am_save_LIBS="$LIBS"
23628 LIBS="$LIBS -liconv"
23629 cat >conftest.$ac_ext <<_ACEOF
23630/* confdefs.h. */
23631_ACEOF
23632cat confdefs.h >>conftest.$ac_ext
23633cat >>conftest.$ac_ext <<_ACEOF
23634/* end confdefs.h. */
23635#include <stdlib.h>
23636#include <iconv.h>
23637int
23638main ()
23639{
23640iconv_t cd = iconv_open("","");
23641 iconv(cd,NULL,NULL,NULL,NULL);
23642 iconv_close(cd);
23643 ;
23644 return 0;
23645}
23646_ACEOF
23647rm -f conftest.$ac_objext conftest$ac_exeext
23648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23649 (eval $ac_link) 2>conftest.er1
23650 ac_status=$?
23651 grep -v '^ *+' conftest.er1 >conftest.err
23652 rm -f conftest.er1
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
23656 { ac_try='test -z "$ac_c_werror_flag"
23657 || test ! -s conftest.err'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; } &&
23663 { ac_try='test -s conftest$ac_exeext'
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; }; then
23669 am_cv_lib_iconv=yes
23670 am_cv_func_iconv=yes
23671else
23672 echo "$as_me: failed program was:" >&5
23673sed 's/^/| /' conftest.$ac_ext >&5
23674
23675fi
23676rm -f conftest.err conftest.$ac_objext \
23677 conftest$ac_exeext conftest.$ac_ext
23678 LIBS="$am_save_LIBS"
23679 fi
23680
23681fi
23682echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23683echo "${ECHO_T}$am_cv_func_iconv" >&6
23684 if test "$am_cv_func_iconv" = yes; then
23685
23686cat >>confdefs.h <<\_ACEOF
23687#define HAVE_ICONV 1
23688_ACEOF
23689
23690 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23691echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
23692 if test "${am_cv_proto_iconv+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23694else
23695
23696 cat >conftest.$ac_ext <<_ACEOF
23697/* confdefs.h. */
23698_ACEOF
23699cat confdefs.h >>conftest.$ac_ext
23700cat >>conftest.$ac_ext <<_ACEOF
23701/* end confdefs.h. */
23702
23703#include <stdlib.h>
23704#include <iconv.h>
23705extern
23706#ifdef __cplusplus
23707"C"
23708#endif
23709#if defined(__STDC__) || defined(__cplusplus)
23710size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23711#else
23712size_t iconv();
23713#endif
23714
23715int
23716main ()
23717{
23718
23719 ;
23720 return 0;
23721}
23722_ACEOF
23723rm -f conftest.$ac_objext
23724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23725 (eval $ac_compile) 2>conftest.er1
23726 ac_status=$?
23727 grep -v '^ *+' conftest.er1 >conftest.err
23728 rm -f conftest.er1
23729 cat conftest.err >&5
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } &&
23732 { ac_try='test -z "$ac_c_werror_flag"
23733 || test ! -s conftest.err'
23734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23735 (eval $ac_try) 2>&5
23736 ac_status=$?
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); }; } &&
23739 { ac_try='test -s conftest.$ac_objext'
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; }; then
23745 am_cv_proto_iconv_arg1=""
23746else
23747 echo "$as_me: failed program was:" >&5
23748sed 's/^/| /' conftest.$ac_ext >&5
23749
23750am_cv_proto_iconv_arg1="const"
23751fi
23752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23753 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);"
23754fi
23755
23756 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23757 echo "$as_me:$LINENO: result: ${ac_t:-
23758 }$am_cv_proto_iconv" >&5
23759echo "${ECHO_T}${ac_t:-
23760 }$am_cv_proto_iconv" >&6
23761
23762cat >>confdefs.h <<_ACEOF
23763#define ICONV_CONST $am_cv_proto_iconv_arg1
23764_ACEOF
23765
23766 fi
23767 LIBICONV=
23768 if test "$am_cv_lib_iconv" = yes; then
23769 LIBICONV="-liconv"
23770 fi
23771
23772
23773
23774 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23775 ac_config_commands="$ac_config_commands default"
23776cat >confcache <<\_ACEOF
23777# This file is a shell script that caches the results of configure
23778# tests run on this system so they can be shared between configure
23779# scripts and configure runs, see configure's option --config-cache.
23780# It is not useful on other systems. If it contains results you don't
23781# want to keep, you may remove or edit it.
23782#
23783# config.status only pays attention to the cache file if you give it
23784# the --recheck option to rerun configure.
23785#
23786# `ac_cv_env_foo' variables (set or unset) will be overridden when
23787# loading this file, other *unset* `ac_cv_foo' will be assigned the
23788# following values.
23789
23790_ACEOF
23791
23792# The following way of writing the cache mishandles newlines in values,
23793# but we know of no workaround that is simple, portable, and efficient.
23794# So, don't put newlines in cache variables' values.
23795# Ultrix sh set writes to stderr and can't be redirected directly,
23796# and sets the high bit in the cache file unless we assign to the vars.
23797{
23798 (set) 2>&1 |
23799 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23800 *ac_space=\ *)
23801 # `set' does not quote correctly, so add quotes (double-quote
23802 # substitution turns \\\\ into \\, and sed turns \\ into \).
23803 sed -n \
23804 "s/'/'\\\\''/g;
23805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23806 ;;
23807 *)
23808 # `set' quotes correctly as required by POSIX, so do not add quotes.
23809 sed -n \
23810 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23811 ;;
23812 esac;
23813} |
23814 sed '
23815 t clear
23816 : clear
23817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23818 t end
23819 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23820 : end' >>confcache
23821if diff $cache_file confcache >/dev/null 2>&1; then :; else
23822 if test -w $cache_file; then
23823 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23824 cat confcache >$cache_file
23825 else
23826 echo "not updating unwritable cache $cache_file"
23827 fi
23828fi
23829rm -f confcache
23830
23831test "x$prefix" = xNONE && prefix=$ac_default_prefix
23832# Let make expand exec_prefix.
23833test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23834
23835# VPATH may cause trouble with some makes, so we remove $(srcdir),
23836# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23837# trailing colons and then remove the whole line if VPATH becomes empty
23838# (actually we leave an empty line to preserve line numbers).
23839if test "x$srcdir" = x.; then
23840 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23841s/:*\$(srcdir):*/:/;
23842s/:*\${srcdir}:*/:/;
23843s/:*@srcdir@:*/:/;
23844s/^\([^=]*=[ ]*\):*/\1/;
23845s/:*$//;
23846s/^[^=]*=[ ]*$//;
23847}'
23848fi
23849
23850DEFS=-DHAVE_CONFIG_H
23851
23852ac_libobjs=
23853ac_ltlibobjs=
23854for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23855 # 1. Remove the extension, and $U if already installed.
23856 ac_i=`echo "$ac_i" |
23857 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23858 # 2. Add them.
23859 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23860 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23861done
23862LIBOBJS=$ac_libobjs
23863
23864LTLIBOBJS=$ac_ltlibobjs
23865
23866
23867if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23868 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23869Usually this means the macro was only invoked conditionally." >&5
23870echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23871Usually this means the macro was only invoked conditionally." >&2;}
23872 { (exit 1); exit 1; }; }
23873fi
23874
23875: ${CONFIG_STATUS=./config.status}
23876ac_clean_files_save=$ac_clean_files
23877ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23878{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23879echo "$as_me: creating $CONFIG_STATUS" >&6;}
23880cat >$CONFIG_STATUS <<_ACEOF
23881#! $SHELL
23882# Generated by $as_me.
23883# Run this file to recreate the current configuration.
23884# Compiler output produced by configure, useful for debugging
23885# configure, is in config.log if it exists.
23886
23887debug=false
23888ac_cs_recheck=false
23889ac_cs_silent=false
23890SHELL=\${CONFIG_SHELL-$SHELL}
23891_ACEOF
23892
23893cat >>$CONFIG_STATUS <<\_ACEOF
23894## --------------------- ##
23895## M4sh Initialization. ##
23896## --------------------- ##
23897
23898# Be Bourne compatible
23899if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23900 emulate sh
23901 NULLCMD=:
23902 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23903 # is contrary to our usage. Disable this feature.
23904 alias -g '${1+"$@"}'='"$@"'
23905elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23906 set -o posix
23907fi
23908DUALCASE=1; export DUALCASE # for MKS sh
23909
23910# Support unset when possible.
23911if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23912 as_unset=unset
23913else
23914 as_unset=false
23915fi
23916
23917
23918# Work around bugs in pre-3.0 UWIN ksh.
23919$as_unset ENV MAIL MAILPATH
23920PS1='$ '
23921PS2='> '
23922PS4='+ '
23923
23924# NLS nuisances.
23925for as_var in \
23926 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23927 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23928 LC_TELEPHONE LC_TIME
23929do
23930 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23931 eval $as_var=C; export $as_var
23932 else
23933 $as_unset $as_var
23934 fi
23935done
23936
23937# Required to use basename.
23938if expr a : '\(a\)' >/dev/null 2>&1; then
23939 as_expr=expr
23940else
23941 as_expr=false
23942fi
23943
23944if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23945 as_basename=basename
23946else
23947 as_basename=false
23948fi
23949
23950
23951# Name of the executable.
23952as_me=`$as_basename "$0" ||
23953$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23954 X"$0" : 'X\(//\)$' \| \
23955 X"$0" : 'X\(/\)$' \| \
23956 . : '\(.\)' 2>/dev/null ||
23957echo X/"$0" |
23958 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23959 /^X\/\(\/\/\)$/{ s//\1/; q; }
23960 /^X\/\(\/\).*/{ s//\1/; q; }
23961 s/.*/./; q'`
23962
23963
23964# PATH needs CR, and LINENO needs CR and PATH.
23965# Avoid depending upon Character Ranges.
23966as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23967as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23968as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23969as_cr_digits='0123456789'
23970as_cr_alnum=$as_cr_Letters$as_cr_digits
23971
23972# The user is always right.
23973if test "${PATH_SEPARATOR+set}" != set; then
23974 echo "#! /bin/sh" >conf$$.sh
23975 echo "exit 0" >>conf$$.sh
23976 chmod +x conf$$.sh
23977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23978 PATH_SEPARATOR=';'
23979 else
23980 PATH_SEPARATOR=:
23981 fi
23982 rm -f conf$$.sh
23983fi
23984
23985
23986 as_lineno_1=$LINENO
23987 as_lineno_2=$LINENO
23988 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23989 test "x$as_lineno_1" != "x$as_lineno_2" &&
23990 test "x$as_lineno_3" = "x$as_lineno_2" || {
23991 # Find who we are. Look in the path if we contain no path at all
23992 # relative or not.
23993 case $0 in
23994 *[\\/]* ) as_myself=$0 ;;
23995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23996for as_dir in $PATH
23997do
23998 IFS=$as_save_IFS
23999 test -z "$as_dir" && as_dir=.
24000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24001done
24002
24003 ;;
24004 esac
24005 # We did not find ourselves, most probably we were run as `sh COMMAND'
24006 # in which case we are not to be found in the path.
24007 if test "x$as_myself" = x; then
24008 as_myself=$0
24009 fi
24010 if test ! -f "$as_myself"; then
24011 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24012echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24013 { (exit 1); exit 1; }; }
24014 fi
24015 case $CONFIG_SHELL in
24016 '')
24017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24018for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24019do
24020 IFS=$as_save_IFS
24021 test -z "$as_dir" && as_dir=.
24022 for as_base in sh bash ksh sh5; do
24023 case $as_dir in
24024 /*)
24025 if ("$as_dir/$as_base" -c '
24026 as_lineno_1=$LINENO
24027 as_lineno_2=$LINENO
24028 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24029 test "x$as_lineno_1" != "x$as_lineno_2" &&
24030 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24031 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24032 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24033 CONFIG_SHELL=$as_dir/$as_base
24034 export CONFIG_SHELL
24035 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24036 fi;;
24037 esac
24038 done
24039done
24040;;
24041 esac
24042
24043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24044 # uniformly replaced by the line number. The first 'sed' inserts a
24045 # line-number line before each line; the second 'sed' does the real
24046 # work. The second script uses 'N' to pair each line-number line
24047 # with the numbered line, and appends trailing '-' during
24048 # substitution so that $LINENO is not a special case at line end.
24049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24050 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24051 sed '=' <$as_myself |
24052 sed '
24053 N
24054 s,$,-,
24055 : loop
24056 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24057 t loop
24058 s,-$,,
24059 s,^['$as_cr_digits']*\n,,
24060 ' >$as_me.lineno &&
24061 chmod +x $as_me.lineno ||
24062 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24063echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24064 { (exit 1); exit 1; }; }
24065
24066 # Don't try to exec as it changes $[0], causing all sort of problems
24067 # (the dirname of $[0] is not the place where we might find the
24068 # original and so on. Autoconf is especially sensible to this).
24069 . ./$as_me.lineno
24070 # Exit status is that of the last command.
24071 exit
24072}
24073
24074
24075case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24076 *c*,-n*) ECHO_N= ECHO_C='
24077' ECHO_T=' ' ;;
24078 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24079 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24080esac
24081
24082if expr a : '\(a\)' >/dev/null 2>&1; then
24083 as_expr=expr
24084else
24085 as_expr=false
24086fi
24087
24088rm -f conf$$ conf$$.exe conf$$.file
24089echo >conf$$.file
24090if ln -s conf$$.file conf$$ 2>/dev/null; then
24091 # We could just check for DJGPP; but this test a) works b) is more generic
24092 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24093 if test -f conf$$.exe; then
24094 # Don't use ln at all; we don't have any links
24095 as_ln_s='cp -p'
24096 else
24097 as_ln_s='ln -s'
24098 fi
24099elif ln conf$$.file conf$$ 2>/dev/null; then
24100 as_ln_s=ln
24101else
24102 as_ln_s='cp -p'
24103fi
24104rm -f conf$$ conf$$.exe conf$$.file
24105
24106if mkdir -p . 2>/dev/null; then
24107 as_mkdir_p=:
24108else
24109 test -d ./-p && rmdir ./-p
24110 as_mkdir_p=false
24111fi
24112
24113as_executable_p="test -f"
24114
24115# Sed expression to map a string onto a valid CPP name.
24116as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24117
24118# Sed expression to map a string onto a valid variable name.
24119as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24120
24121
24122# IFS
24123# We need space, tab and new line, in precisely that order.
24124as_nl='
24125'
24126IFS=" $as_nl"
24127
24128# CDPATH.
24129$as_unset CDPATH
24130
24131exec 6>&1
24132
24133# Open the log real soon, to keep \$[0] and so on meaningful, and to
24134# report actual input values of CONFIG_FILES etc. instead of their
24135# values after options handling. Logging --version etc. is OK.
24136exec 5>>config.log
24137{
24138 echo
24139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24140## Running $as_me. ##
24141_ASBOX
24142} >&5
24143cat >&5 <<_CSEOF
24144
24145This file was extended by $as_me, which was
24146generated by GNU Autoconf 2.59. Invocation command line was
24147
24148 CONFIG_FILES = $CONFIG_FILES
24149 CONFIG_HEADERS = $CONFIG_HEADERS
24150 CONFIG_LINKS = $CONFIG_LINKS
24151 CONFIG_COMMANDS = $CONFIG_COMMANDS
24152 $ $0 $@
24153
24154_CSEOF
24155echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24156echo >&5
24157_ACEOF
24158
24159# Files that config.status was made for.
24160if test -n "$ac_config_files"; then
24161 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24162fi
24163
24164if test -n "$ac_config_headers"; then
24165 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24166fi
24167
24168if test -n "$ac_config_links"; then
24169 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24170fi
24171
24172if test -n "$ac_config_commands"; then
24173 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24174fi
24175
24176cat >>$CONFIG_STATUS <<\_ACEOF
24177
24178ac_cs_usage="\
24179\`$as_me' instantiates files from templates according to the
24180current configuration.
24181
24182Usage: $0 [OPTIONS] [FILE]...
24183
24184 -h, --help print this help, then exit
24185 -V, --version print version number, then exit
24186 -q, --quiet do not print progress messages
24187 -d, --debug don't remove temporary files
24188 --recheck update $as_me by reconfiguring in the same conditions
24189 --file=FILE[:TEMPLATE]
24190 instantiate the configuration file FILE
24191 --header=FILE[:TEMPLATE]
24192 instantiate the configuration header FILE
24193
24194Configuration files:
24195$config_files
24196
24197Configuration headers:
24198$config_headers
24199
24200Configuration links:
24201$config_links
24202
24203Configuration commands:
24204$config_commands
24205
24206Report bugs to <bug-autoconf@gnu.org>."
24207_ACEOF
24208
24209cat >>$CONFIG_STATUS <<_ACEOF
24210ac_cs_version="\\
24211config.status
24212configured by $0, generated by GNU Autoconf 2.59,
24213 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24214
24215Copyright (C) 2003 Free Software Foundation, Inc.
24216This config.status script is free software; the Free Software Foundation
24217gives unlimited permission to copy, distribute and modify it."
24218srcdir=$srcdir
24219INSTALL="$INSTALL"
24220_ACEOF
24221
24222cat >>$CONFIG_STATUS <<\_ACEOF
24223# If no file are specified by the user, then we need to provide default
24224# value. By we need to know if files were specified by the user.
24225ac_need_defaults=:
24226while test $# != 0
24227do
24228 case $1 in
24229 --*=*)
24230 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24231 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24232 ac_shift=:
24233 ;;
24234 -*)
24235 ac_option=$1
24236 ac_optarg=$2
24237 ac_shift=shift
24238 ;;
24239 *) # This is not an option, so the user has probably given explicit
24240 # arguments.
24241 ac_option=$1
24242 ac_need_defaults=false;;
24243 esac
24244
24245 case $ac_option in
24246 # Handling of the options.
24247_ACEOF
24248cat >>$CONFIG_STATUS <<\_ACEOF
24249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24250 ac_cs_recheck=: ;;
24251 --version | --vers* | -V )
24252 echo "$ac_cs_version"; exit 0 ;;
24253 --he | --h)
24254 # Conflict between --help and --header
24255 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24256Try \`$0 --help' for more information." >&5
24257echo "$as_me: error: ambiguous option: $1
24258Try \`$0 --help' for more information." >&2;}
24259 { (exit 1); exit 1; }; };;
24260 --help | --hel | -h )
24261 echo "$ac_cs_usage"; exit 0 ;;
24262 --debug | --d* | -d )
24263 debug=: ;;
24264 --file | --fil | --fi | --f )
24265 $ac_shift
24266 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24267 ac_need_defaults=false;;
24268 --header | --heade | --head | --hea )
24269 $ac_shift
24270 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24271 ac_need_defaults=false;;
24272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24274 ac_cs_silent=: ;;
24275
24276 # This is an error.
24277 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24278Try \`$0 --help' for more information." >&5
24279echo "$as_me: error: unrecognized option: $1
24280Try \`$0 --help' for more information." >&2;}
24281 { (exit 1); exit 1; }; } ;;
24282
24283 *) ac_config_targets="$ac_config_targets $1" ;;
24284
24285 esac
24286 shift
24287done
24288
24289ac_configure_extra_args=
24290
24291if $ac_cs_silent; then
24292 exec 6>/dev/null
24293 ac_configure_extra_args="$ac_configure_extra_args --silent"
24294fi
24295
24296_ACEOF
24297cat >>$CONFIG_STATUS <<_ACEOF
24298if \$ac_cs_recheck; then
24299 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24300 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24301fi
24302
24303_ACEOF
24304
24305cat >>$CONFIG_STATUS <<_ACEOF
24306#
24307# INIT-COMMANDS section.
24308#
24309
24310
24311GCC="$GCC"
24312CC="$CC"
24313acx_cv_header_stdint="$acx_cv_header_stdint"
24314acx_cv_type_int8_t="$acx_cv_type_int8_t"
24315acx_cv_type_int16_t="$acx_cv_type_int16_t"
24316acx_cv_type_int32_t="$acx_cv_type_int32_t"
24317acx_cv_type_int64_t="$acx_cv_type_int64_t"
24318acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24319ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24320ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24321ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24322ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24323ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24324ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24325ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24326ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24327
24328
24329gdb_host_cpu=$gdb_host_cpu
24330gdb_target_cpu=$gdb_target_cpu
24331nativefile=$nativefile
24332
24333
24334_ACEOF
24335
24336
24337
24338cat >>$CONFIG_STATUS <<\_ACEOF
24339for ac_config_target in $ac_config_targets
24340do
24341 case "$ac_config_target" in
24342 # Handling of arguments.
24343 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24344 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24345 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24346 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24347 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24348 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
24349 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24350echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24351 { (exit 1); exit 1; }; };;
24352 esac
24353done
24354
24355# If the user did not use the arguments to specify the items to instantiate,
24356# then the envvar interface is used. Set only those that are not.
24357# We use the long form for the default assignment because of an extremely
24358# bizarre bug on SunOS 4.1.3.
24359if $ac_need_defaults; then
24360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24362 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24364fi
24365
24366# Have a temporary directory for convenience. Make it in the build tree
24367# simply because there is no reason to put it here, and in addition,
24368# creating and moving files from /tmp can sometimes cause problems.
24369# Create a temporary directory, and hook for its removal unless debugging.
24370$debug ||
24371{
24372 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24373 trap '{ (exit 1); exit 1; }' 1 2 13 15
24374}
24375
24376# Create a (secure) tmp directory for tmp files.
24377
24378{
24379 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24380 test -n "$tmp" && test -d "$tmp"
24381} ||
24382{
24383 tmp=./confstat$$-$RANDOM
24384 (umask 077 && mkdir $tmp)
24385} ||
24386{
24387 echo "$me: cannot create a temporary directory in ." >&2
24388 { (exit 1); exit 1; }
24389}
24390
24391_ACEOF
24392
24393cat >>$CONFIG_STATUS <<_ACEOF
24394
24395#
24396# CONFIG_FILES section.
24397#
24398
24399# No need to generate the scripts if there are no CONFIG_FILES.
24400# This happens for instance when ./config.status config.h
24401if test -n "\$CONFIG_FILES"; then
24402 # Protect against being on the right side of a sed subst in config.status.
24403 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24404 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24405s,@SHELL@,$SHELL,;t t
24406s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24407s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24408s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24409s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24410s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24411s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24412s,@exec_prefix@,$exec_prefix,;t t
24413s,@prefix@,$prefix,;t t
24414s,@program_transform_name@,$program_transform_name,;t t
24415s,@bindir@,$bindir,;t t
24416s,@sbindir@,$sbindir,;t t
24417s,@libexecdir@,$libexecdir,;t t
24418s,@datadir@,$datadir,;t t
24419s,@sysconfdir@,$sysconfdir,;t t
24420s,@sharedstatedir@,$sharedstatedir,;t t
24421s,@localstatedir@,$localstatedir,;t t
24422s,@libdir@,$libdir,;t t
24423s,@includedir@,$includedir,;t t
24424s,@oldincludedir@,$oldincludedir,;t t
24425s,@infodir@,$infodir,;t t
24426s,@mandir@,$mandir,;t t
24427s,@build_alias@,$build_alias,;t t
24428s,@host_alias@,$host_alias,;t t
24429s,@target_alias@,$target_alias,;t t
24430s,@DEFS@,$DEFS,;t t
24431s,@ECHO_C@,$ECHO_C,;t t
24432s,@ECHO_N@,$ECHO_N,;t t
24433s,@ECHO_T@,$ECHO_T,;t t
24434s,@LIBS@,$LIBS,;t t
24435s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24436s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24437s,@MAINT@,$MAINT,;t t
24438s,@CC@,$CC,;t t
24439s,@CFLAGS@,$CFLAGS,;t t
24440s,@LDFLAGS@,$LDFLAGS,;t t
24441s,@CPPFLAGS@,$CPPFLAGS,;t t
24442s,@ac_ct_CC@,$ac_ct_CC,;t t
24443s,@EXEEXT@,$EXEEXT,;t t
24444s,@OBJEXT@,$OBJEXT,;t t
24445s,@CPP@,$CPP,;t t
24446s,@EGREP@,$EGREP,;t t
24447s,@build@,$build,;t t
24448s,@build_cpu@,$build_cpu,;t t
24449s,@build_vendor@,$build_vendor,;t t
24450s,@build_os@,$build_os,;t t
24451s,@host@,$host,;t t
24452s,@host_cpu@,$host_cpu,;t t
24453s,@host_vendor@,$host_vendor,;t t
24454s,@host_os@,$host_os,;t t
24455s,@target@,$target,;t t
24456s,@target_cpu@,$target_cpu,;t t
24457s,@target_vendor@,$target_vendor,;t t
24458s,@target_os@,$target_os,;t t
24459s,@USE_NLS@,$USE_NLS,;t t
24460s,@LIBINTL@,$LIBINTL,;t t
24461s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24462s,@INCINTL@,$INCINTL,;t t
24463s,@XGETTEXT@,$XGETTEXT,;t t
24464s,@GMSGFMT@,$GMSGFMT,;t t
24465s,@POSUB@,$POSUB,;t t
24466s,@CATALOGS@,$CATALOGS,;t t
24467s,@DATADIRNAME@,$DATADIRNAME,;t t
24468s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24469s,@GENCAT@,$GENCAT,;t t
24470s,@CATOBJEXT@,$CATOBJEXT,;t t
24471s,@localedir@,$localedir,;t t
24472s,@PACKAGE@,$PACKAGE,;t t
24473s,@subdirs@,$subdirs,;t t
24474s,@AWK@,$AWK,;t t
24475s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24476s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24477s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24478s,@LN_S@,$LN_S,;t t
24479s,@RANLIB@,$RANLIB,;t t
24480s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24481s,@YACC@,$YACC,;t t
24482s,@AR@,$AR,;t t
24483s,@ac_ct_AR@,$ac_ct_AR,;t t
24484s,@DLLTOOL@,$DLLTOOL,;t t
24485s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24486s,@WINDRES@,$WINDRES,;t t
24487s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24488s,@MIG@,$MIG,;t t
24489s,@ac_ct_MIG@,$ac_ct_MIG,;t t
24490s,@READLINE@,$READLINE,;t t
24491s,@READLINE_DEPS@,$READLINE_DEPS,;t t
24492s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
24493s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24494s,@LIBEXPAT@,$LIBEXPAT,;t t
24495s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
24496s,@ALLOCA@,$ALLOCA,;t t
24497s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24498s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24499s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24500s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24501s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24502s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24503s,@WIN32LIBS@,$WIN32LIBS,;t t
24504s,@LIBGUI@,$LIBGUI,;t t
24505s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24506s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24507s,@TCL_VERSION@,$TCL_VERSION,;t t
24508s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24509s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24510s,@TCL_CC@,$TCL_CC,;t t
24511s,@TCL_DEFS@,$TCL_DEFS,;t t
24512s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24513s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24514s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24515s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24516s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24517s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24518s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24519s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24520s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24521s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24522s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24523s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24524s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24525s,@TK_VERSION@,$TK_VERSION,;t t
24526s,@TK_DEFS@,$TK_DEFS,;t t
24527s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24528s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24529s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24530s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24531s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24532s,@TCLHDIR@,$TCLHDIR,;t t
24533s,@TKHDIR@,$TKHDIR,;t t
24534s,@ITCLHDIR@,$ITCLHDIR,;t t
24535s,@ITKHDIR@,$ITKHDIR,;t t
24536s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24537s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24538s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24539s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24540s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24541s,@ITK_VERSION@,$ITK_VERSION,;t t
24542s,@ITK_DEFS@,$ITK_DEFS,;t t
24543s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24544s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24545s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24546s,@X_CFLAGS@,$X_CFLAGS,;t t
24547s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24548s,@X_LIBS@,$X_LIBS,;t t
24549s,@TCL_DEPS@,$TCL_DEPS,;t t
24550s,@TK_DEPS@,$TK_DEPS,;t t
24551s,@ITCLLIB@,$ITCLLIB,;t t
24552s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24553s,@ITKLIB@,$ITKLIB,;t t
24554s,@ITK_DEPS@,$ITK_DEPS,;t t
24555s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24556s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24557s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24558s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24559s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24560s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24561s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24562s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24563s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24564s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24565s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24566s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24567s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24568s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24569s,@target_subdir@,$target_subdir,;t t
24570s,@frags@,$frags,;t t
24571s,@xm_h@,$xm_h,;t t
24572s,@tm_h@,$tm_h,;t t
24573s,@nm_h@,$nm_h,;t t
24574s,@LIBICONV@,$LIBICONV,;t t
24575s,@LIBOBJS@,$LIBOBJS,;t t
24576s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24577/@host_makefile_frag@/r $host_makefile_frag
24578s,@host_makefile_frag@,,;t t
24579/@target_makefile_frag@/r $target_makefile_frag
24580s,@target_makefile_frag@,,;t t
24581CEOF
24582
24583_ACEOF
24584
24585 cat >>$CONFIG_STATUS <<\_ACEOF
24586 # Split the substitutions into bite-sized pieces for seds with
24587 # small command number limits, like on Digital OSF/1 and HP-UX.
24588 ac_max_sed_lines=48
24589 ac_sed_frag=1 # Number of current file.
24590 ac_beg=1 # First line for current file.
24591 ac_end=$ac_max_sed_lines # Line after last line for current file.
24592 ac_more_lines=:
24593 ac_sed_cmds=
24594 while $ac_more_lines; do
24595 if test $ac_beg -gt 1; then
24596 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24597 else
24598 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24599 fi
24600 if test ! -s $tmp/subs.frag; then
24601 ac_more_lines=false
24602 else
24603 # The purpose of the label and of the branching condition is to
24604 # speed up the sed processing (if there are no `@' at all, there
24605 # is no need to browse any of the substitutions).
24606 # These are the two extra sed commands mentioned above.
24607 (echo ':t
24608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24609 if test -z "$ac_sed_cmds"; then
24610 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24611 else
24612 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24613 fi
24614 ac_sed_frag=`expr $ac_sed_frag + 1`
24615 ac_beg=$ac_end
24616 ac_end=`expr $ac_end + $ac_max_sed_lines`
24617 fi
24618 done
24619 if test -z "$ac_sed_cmds"; then
24620 ac_sed_cmds=cat
24621 fi
24622fi # test -n "$CONFIG_FILES"
24623
24624_ACEOF
24625cat >>$CONFIG_STATUS <<\_ACEOF
24626for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24628 case $ac_file in
24629 - | *:- | *:-:* ) # input from stdin
24630 cat >$tmp/stdin
24631 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24633 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24635 * ) ac_file_in=$ac_file.in ;;
24636 esac
24637
24638 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24639 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24640$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24641 X"$ac_file" : 'X\(//\)[^/]' \| \
24642 X"$ac_file" : 'X\(//\)$' \| \
24643 X"$ac_file" : 'X\(/\)' \| \
24644 . : '\(.\)' 2>/dev/null ||
24645echo X"$ac_file" |
24646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24648 /^X\(\/\/\)$/{ s//\1/; q; }
24649 /^X\(\/\).*/{ s//\1/; q; }
24650 s/.*/./; q'`
24651 { if $as_mkdir_p; then
24652 mkdir -p "$ac_dir"
24653 else
24654 as_dir="$ac_dir"
24655 as_dirs=
24656 while test ! -d "$as_dir"; do
24657 as_dirs="$as_dir $as_dirs"
24658 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24659$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24660 X"$as_dir" : 'X\(//\)[^/]' \| \
24661 X"$as_dir" : 'X\(//\)$' \| \
24662 X"$as_dir" : 'X\(/\)' \| \
24663 . : '\(.\)' 2>/dev/null ||
24664echo X"$as_dir" |
24665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24667 /^X\(\/\/\)$/{ s//\1/; q; }
24668 /^X\(\/\).*/{ s//\1/; q; }
24669 s/.*/./; q'`
24670 done
24671 test ! -n "$as_dirs" || mkdir $as_dirs
24672 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24673echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24674 { (exit 1); exit 1; }; }; }
24675
24676 ac_builddir=.
24677
24678if test "$ac_dir" != .; then
24679 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24680 # A "../" for each directory in $ac_dir_suffix.
24681 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24682else
24683 ac_dir_suffix= ac_top_builddir=
24684fi
24685
24686case $srcdir in
24687 .) # No --srcdir option. We are building in place.
24688 ac_srcdir=.
24689 if test -z "$ac_top_builddir"; then
24690 ac_top_srcdir=.
24691 else
24692 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24693 fi ;;
24694 [\\/]* | ?:[\\/]* ) # Absolute path.
24695 ac_srcdir=$srcdir$ac_dir_suffix;
24696 ac_top_srcdir=$srcdir ;;
24697 *) # Relative path.
24698 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24699 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24700esac
24701
24702# Do not use `cd foo && pwd` to compute absolute paths, because
24703# the directories may not exist.
24704case `pwd` in
24705.) ac_abs_builddir="$ac_dir";;
24706*)
24707 case "$ac_dir" in
24708 .) ac_abs_builddir=`pwd`;;
24709 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24710 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24711 esac;;
24712esac
24713case $ac_abs_builddir in
24714.) ac_abs_top_builddir=${ac_top_builddir}.;;
24715*)
24716 case ${ac_top_builddir}. in
24717 .) ac_abs_top_builddir=$ac_abs_builddir;;
24718 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24719 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24720 esac;;
24721esac
24722case $ac_abs_builddir in
24723.) ac_abs_srcdir=$ac_srcdir;;
24724*)
24725 case $ac_srcdir in
24726 .) ac_abs_srcdir=$ac_abs_builddir;;
24727 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24728 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24729 esac;;
24730esac
24731case $ac_abs_builddir in
24732.) ac_abs_top_srcdir=$ac_top_srcdir;;
24733*)
24734 case $ac_top_srcdir in
24735 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24736 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24737 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24738 esac;;
24739esac
24740
24741
24742 case $INSTALL in
24743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24744 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24745 esac
24746
24747 if test x"$ac_file" != x-; then
24748 { echo "$as_me:$LINENO: creating $ac_file" >&5
24749echo "$as_me: creating $ac_file" >&6;}
24750 rm -f "$ac_file"
24751 fi
24752 # Let's still pretend it is `configure' which instantiates (i.e., don't
24753 # use $as_me), people would be surprised to read:
24754 # /* config.h. Generated by config.status. */
24755 if test x"$ac_file" = x-; then
24756 configure_input=
24757 else
24758 configure_input="$ac_file. "
24759 fi
24760 configure_input=$configure_input"Generated from `echo $ac_file_in |
24761 sed 's,.*/,,'` by configure."
24762
24763 # First look for the input files in the build tree, otherwise in the
24764 # src tree.
24765 ac_file_inputs=`IFS=:
24766 for f in $ac_file_in; do
24767 case $f in
24768 -) echo $tmp/stdin ;;
24769 [\\/$]*)
24770 # Absolute (can't be DOS-style, as IFS=:)
24771 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24772echo "$as_me: error: cannot find input file: $f" >&2;}
24773 { (exit 1); exit 1; }; }
24774 echo "$f";;
24775 *) # Relative
24776 if test -f "$f"; then
24777 # Build tree
24778 echo "$f"
24779 elif test -f "$srcdir/$f"; then
24780 # Source tree
24781 echo "$srcdir/$f"
24782 else
24783 # /dev/null tree
24784 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24785echo "$as_me: error: cannot find input file: $f" >&2;}
24786 { (exit 1); exit 1; }; }
24787 fi;;
24788 esac
24789 done` || { (exit 1); exit 1; }
24790_ACEOF
24791cat >>$CONFIG_STATUS <<_ACEOF
24792 sed "$ac_vpsub
24793$extrasub
24794_ACEOF
24795cat >>$CONFIG_STATUS <<\_ACEOF
24796:t
24797/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24798s,@configure_input@,$configure_input,;t t
24799s,@srcdir@,$ac_srcdir,;t t
24800s,@abs_srcdir@,$ac_abs_srcdir,;t t
24801s,@top_srcdir@,$ac_top_srcdir,;t t
24802s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24803s,@builddir@,$ac_builddir,;t t
24804s,@abs_builddir@,$ac_abs_builddir,;t t
24805s,@top_builddir@,$ac_top_builddir,;t t
24806s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24807s,@INSTALL@,$ac_INSTALL,;t t
24808" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24809 rm -f $tmp/stdin
24810 if test x"$ac_file" != x-; then
24811 mv $tmp/out $ac_file
24812 else
24813 cat $tmp/out
24814 rm -f $tmp/out
24815 fi
24816
24817done
24818_ACEOF
24819cat >>$CONFIG_STATUS <<\_ACEOF
24820
24821#
24822# CONFIG_HEADER section.
24823#
24824
24825# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24826# NAME is the cpp macro being defined and VALUE is the value it is being given.
24827#
24828# ac_d sets the value in "#define NAME VALUE" lines.
24829ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24830ac_dB='[ ].*$,\1#\2'
24831ac_dC=' '
24832ac_dD=',;t'
24833# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24834ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24835ac_uB='$,\1#\2define\3'
24836ac_uC=' '
24837ac_uD=',;t'
24838
24839for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24841 case $ac_file in
24842 - | *:- | *:-:* ) # input from stdin
24843 cat >$tmp/stdin
24844 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24846 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24848 * ) ac_file_in=$ac_file.in ;;
24849 esac
24850
24851 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24852echo "$as_me: creating $ac_file" >&6;}
24853
24854 # First look for the input files in the build tree, otherwise in the
24855 # src tree.
24856 ac_file_inputs=`IFS=:
24857 for f in $ac_file_in; do
24858 case $f in
24859 -) echo $tmp/stdin ;;
24860 [\\/$]*)
24861 # Absolute (can't be DOS-style, as IFS=:)
24862 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24863echo "$as_me: error: cannot find input file: $f" >&2;}
24864 { (exit 1); exit 1; }; }
24865 # Do quote $f, to prevent DOS paths from being IFS'd.
24866 echo "$f";;
24867 *) # Relative
24868 if test -f "$f"; then
24869 # Build tree
24870 echo "$f"
24871 elif test -f "$srcdir/$f"; then
24872 # Source tree
24873 echo "$srcdir/$f"
24874 else
24875 # /dev/null tree
24876 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24877echo "$as_me: error: cannot find input file: $f" >&2;}
24878 { (exit 1); exit 1; }; }
24879 fi;;
24880 esac
24881 done` || { (exit 1); exit 1; }
24882 # Remove the trailing spaces.
24883 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24884
24885_ACEOF
24886
24887# Transform confdefs.h into two sed scripts, `conftest.defines' and
24888# `conftest.undefs', that substitutes the proper values into
24889# config.h.in to produce config.h. The first handles `#define'
24890# templates, and the second `#undef' templates.
24891# And first: Protect against being on the right side of a sed subst in
24892# config.status. Protect against being in an unquoted here document
24893# in config.status.
24894rm -f conftest.defines conftest.undefs
24895# Using a here document instead of a string reduces the quoting nightmare.
24896# Putting comments in sed scripts is not portable.
24897#
24898# `end' is used to avoid that the second main sed command (meant for
24899# 0-ary CPP macros) applies to n-ary macro definitions.
24900# See the Autoconf documentation for `clear'.
24901cat >confdef2sed.sed <<\_ACEOF
24902s/[\\&,]/\\&/g
24903s,[\\$`],\\&,g
24904t clear
24905: clear
24906s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24907t end
24908s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24909: end
24910_ACEOF
24911# If some macros were called several times there might be several times
24912# the same #defines, which is useless. Nevertheless, we may not want to
24913# sort them, since we want the *last* AC-DEFINE to be honored.
24914uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24915sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24916rm -f confdef2sed.sed
24917
24918# This sed command replaces #undef with comments. This is necessary, for
24919# example, in the case of _POSIX_SOURCE, which is predefined and required
24920# on some systems where configure will not decide to define it.
24921cat >>conftest.undefs <<\_ACEOF
24922s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24923_ACEOF
24924
24925# Break up conftest.defines because some shells have a limit on the size
24926# of here documents, and old seds have small limits too (100 cmds).
24927echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24928echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24929echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24930echo ' :' >>$CONFIG_STATUS
24931rm -f conftest.tail
24932while grep . conftest.defines >/dev/null
24933do
24934 # Write a limited-size here document to $tmp/defines.sed.
24935 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24936 # Speed up: don't consider the non `#define' lines.
24937 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24938 # Work around the forget-to-reset-the-flag bug.
24939 echo 't clr' >>$CONFIG_STATUS
24940 echo ': clr' >>$CONFIG_STATUS
24941 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24942 echo 'CEOF
24943 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24944 rm -f $tmp/in
24945 mv $tmp/out $tmp/in
24946' >>$CONFIG_STATUS
24947 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24948 rm -f conftest.defines
24949 mv conftest.tail conftest.defines
24950done
24951rm -f conftest.defines
24952echo ' fi # grep' >>$CONFIG_STATUS
24953echo >>$CONFIG_STATUS
24954
24955# Break up conftest.undefs because some shells have a limit on the size
24956# of here documents, and old seds have small limits too (100 cmds).
24957echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24958rm -f conftest.tail
24959while grep . conftest.undefs >/dev/null
24960do
24961 # Write a limited-size here document to $tmp/undefs.sed.
24962 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24963 # Speed up: don't consider the non `#undef'
24964 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24965 # Work around the forget-to-reset-the-flag bug.
24966 echo 't clr' >>$CONFIG_STATUS
24967 echo ': clr' >>$CONFIG_STATUS
24968 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24969 echo 'CEOF
24970 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24971 rm -f $tmp/in
24972 mv $tmp/out $tmp/in
24973' >>$CONFIG_STATUS
24974 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24975 rm -f conftest.undefs
24976 mv conftest.tail conftest.undefs
24977done
24978rm -f conftest.undefs
24979
24980cat >>$CONFIG_STATUS <<\_ACEOF
24981 # Let's still pretend it is `configure' which instantiates (i.e., don't
24982 # use $as_me), people would be surprised to read:
24983 # /* config.h. Generated by config.status. */
24984 if test x"$ac_file" = x-; then
24985 echo "/* Generated by configure. */" >$tmp/config.h
24986 else
24987 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24988 fi
24989 cat $tmp/in >>$tmp/config.h
24990 rm -f $tmp/in
24991 if test x"$ac_file" != x-; then
24992 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24993 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24994echo "$as_me: $ac_file is unchanged" >&6;}
24995 else
24996 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24997$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24998 X"$ac_file" : 'X\(//\)[^/]' \| \
24999 X"$ac_file" : 'X\(//\)$' \| \
25000 X"$ac_file" : 'X\(/\)' \| \
25001 . : '\(.\)' 2>/dev/null ||
25002echo X"$ac_file" |
25003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25005 /^X\(\/\/\)$/{ s//\1/; q; }
25006 /^X\(\/\).*/{ s//\1/; q; }
25007 s/.*/./; q'`
25008 { if $as_mkdir_p; then
25009 mkdir -p "$ac_dir"
25010 else
25011 as_dir="$ac_dir"
25012 as_dirs=
25013 while test ! -d "$as_dir"; do
25014 as_dirs="$as_dir $as_dirs"
25015 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25017 X"$as_dir" : 'X\(//\)[^/]' \| \
25018 X"$as_dir" : 'X\(//\)$' \| \
25019 X"$as_dir" : 'X\(/\)' \| \
25020 . : '\(.\)' 2>/dev/null ||
25021echo X"$as_dir" |
25022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25024 /^X\(\/\/\)$/{ s//\1/; q; }
25025 /^X\(\/\).*/{ s//\1/; q; }
25026 s/.*/./; q'`
25027 done
25028 test ! -n "$as_dirs" || mkdir $as_dirs
25029 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25030echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25031 { (exit 1); exit 1; }; }; }
25032
25033 rm -f $ac_file
25034 mv $tmp/config.h $ac_file
25035 fi
25036 else
25037 cat $tmp/config.h
25038 rm -f $tmp/config.h
25039 fi
25040done
25041_ACEOF
25042cat >>$CONFIG_STATUS <<\_ACEOF
25043
25044#
25045# CONFIG_LINKS section.
25046#
25047
25048for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25049 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25050 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25051
25052 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25053echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25054
25055 if test ! -r $srcdir/$ac_source; then
25056 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25057echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25058 { (exit 1); exit 1; }; }
25059 fi
25060 rm -f $ac_dest
25061
25062 # Make relative symlinks.
25063 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25064$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25065 X"$ac_dest" : 'X\(//\)[^/]' \| \
25066 X"$ac_dest" : 'X\(//\)$' \| \
25067 X"$ac_dest" : 'X\(/\)' \| \
25068 . : '\(.\)' 2>/dev/null ||
25069echo X"$ac_dest" |
25070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25072 /^X\(\/\/\)$/{ s//\1/; q; }
25073 /^X\(\/\).*/{ s//\1/; q; }
25074 s/.*/./; q'`
25075 { if $as_mkdir_p; then
25076 mkdir -p "$ac_dest_dir"
25077 else
25078 as_dir="$ac_dest_dir"
25079 as_dirs=
25080 while test ! -d "$as_dir"; do
25081 as_dirs="$as_dir $as_dirs"
25082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25083$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25084 X"$as_dir" : 'X\(//\)[^/]' \| \
25085 X"$as_dir" : 'X\(//\)$' \| \
25086 X"$as_dir" : 'X\(/\)' \| \
25087 . : '\(.\)' 2>/dev/null ||
25088echo X"$as_dir" |
25089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25091 /^X\(\/\/\)$/{ s//\1/; q; }
25092 /^X\(\/\).*/{ s//\1/; q; }
25093 s/.*/./; q'`
25094 done
25095 test ! -n "$as_dirs" || mkdir $as_dirs
25096 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25097echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25098 { (exit 1); exit 1; }; }; }
25099
25100 ac_builddir=.
25101
25102if test "$ac_dest_dir" != .; then
25103 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25104 # A "../" for each directory in $ac_dir_suffix.
25105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25106else
25107 ac_dir_suffix= ac_top_builddir=
25108fi
25109
25110case $srcdir in
25111 .) # No --srcdir option. We are building in place.
25112 ac_srcdir=.
25113 if test -z "$ac_top_builddir"; then
25114 ac_top_srcdir=.
25115 else
25116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25117 fi ;;
25118 [\\/]* | ?:[\\/]* ) # Absolute path.
25119 ac_srcdir=$srcdir$ac_dir_suffix;
25120 ac_top_srcdir=$srcdir ;;
25121 *) # Relative path.
25122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25124esac
25125
25126# Do not use `cd foo && pwd` to compute absolute paths, because
25127# the directories may not exist.
25128case `pwd` in
25129.) ac_abs_builddir="$ac_dest_dir";;
25130*)
25131 case "$ac_dest_dir" in
25132 .) ac_abs_builddir=`pwd`;;
25133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25134 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25135 esac;;
25136esac
25137case $ac_abs_builddir in
25138.) ac_abs_top_builddir=${ac_top_builddir}.;;
25139*)
25140 case ${ac_top_builddir}. in
25141 .) ac_abs_top_builddir=$ac_abs_builddir;;
25142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25144 esac;;
25145esac
25146case $ac_abs_builddir in
25147.) ac_abs_srcdir=$ac_srcdir;;
25148*)
25149 case $ac_srcdir in
25150 .) ac_abs_srcdir=$ac_abs_builddir;;
25151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25153 esac;;
25154esac
25155case $ac_abs_builddir in
25156.) ac_abs_top_srcdir=$ac_top_srcdir;;
25157*)
25158 case $ac_top_srcdir in
25159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25162 esac;;
25163esac
25164
25165
25166 case $srcdir in
25167 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25168 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25169 esac
25170
25171 # Try a symlink, then a hard link, then a copy.
25172 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25173 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25174 cp -p $srcdir/$ac_source $ac_dest ||
25175 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25176echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25177 { (exit 1); exit 1; }; }
25178done
25179_ACEOF
25180cat >>$CONFIG_STATUS <<\_ACEOF
25181
25182#
25183# CONFIG_COMMANDS section.
25184#
25185for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25186 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25187 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25188 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25189$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25190 X"$ac_dest" : 'X\(//\)[^/]' \| \
25191 X"$ac_dest" : 'X\(//\)$' \| \
25192 X"$ac_dest" : 'X\(/\)' \| \
25193 . : '\(.\)' 2>/dev/null ||
25194echo X"$ac_dest" |
25195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25197 /^X\(\/\/\)$/{ s//\1/; q; }
25198 /^X\(\/\).*/{ s//\1/; q; }
25199 s/.*/./; q'`
25200 { if $as_mkdir_p; then
25201 mkdir -p "$ac_dir"
25202 else
25203 as_dir="$ac_dir"
25204 as_dirs=
25205 while test ! -d "$as_dir"; do
25206 as_dirs="$as_dir $as_dirs"
25207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25209 X"$as_dir" : 'X\(//\)[^/]' \| \
25210 X"$as_dir" : 'X\(//\)$' \| \
25211 X"$as_dir" : 'X\(/\)' \| \
25212 . : '\(.\)' 2>/dev/null ||
25213echo X"$as_dir" |
25214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25216 /^X\(\/\/\)$/{ s//\1/; q; }
25217 /^X\(\/\).*/{ s//\1/; q; }
25218 s/.*/./; q'`
25219 done
25220 test ! -n "$as_dirs" || mkdir $as_dirs
25221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25222echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25223 { (exit 1); exit 1; }; }; }
25224
25225 ac_builddir=.
25226
25227if test "$ac_dir" != .; then
25228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25229 # A "../" for each directory in $ac_dir_suffix.
25230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25231else
25232 ac_dir_suffix= ac_top_builddir=
25233fi
25234
25235case $srcdir in
25236 .) # No --srcdir option. We are building in place.
25237 ac_srcdir=.
25238 if test -z "$ac_top_builddir"; then
25239 ac_top_srcdir=.
25240 else
25241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25242 fi ;;
25243 [\\/]* | ?:[\\/]* ) # Absolute path.
25244 ac_srcdir=$srcdir$ac_dir_suffix;
25245 ac_top_srcdir=$srcdir ;;
25246 *) # Relative path.
25247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25249esac
25250
25251# Do not use `cd foo && pwd` to compute absolute paths, because
25252# the directories may not exist.
25253case `pwd` in
25254.) ac_abs_builddir="$ac_dir";;
25255*)
25256 case "$ac_dir" in
25257 .) ac_abs_builddir=`pwd`;;
25258 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25259 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25260 esac;;
25261esac
25262case $ac_abs_builddir in
25263.) ac_abs_top_builddir=${ac_top_builddir}.;;
25264*)
25265 case ${ac_top_builddir}. in
25266 .) ac_abs_top_builddir=$ac_abs_builddir;;
25267 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25268 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25269 esac;;
25270esac
25271case $ac_abs_builddir in
25272.) ac_abs_srcdir=$ac_srcdir;;
25273*)
25274 case $ac_srcdir in
25275 .) ac_abs_srcdir=$ac_abs_builddir;;
25276 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25277 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25278 esac;;
25279esac
25280case $ac_abs_builddir in
25281.) ac_abs_top_srcdir=$ac_top_srcdir;;
25282*)
25283 case $ac_top_srcdir in
25284 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25285 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25286 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25287 esac;;
25288esac
25289
25290
25291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25292echo "$as_me: executing $ac_dest commands" >&6;}
25293 case $ac_dest in
25294 gdb_stdint.h )
25295if test "$GCC" = yes; then
25296 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25297else
25298 echo "/* generated for $CC */" > tmp-stdint.h
25299fi
25300
25301sed 's/^ *//' >> tmp-stdint.h <<EOF
25302
25303 #ifndef GCC_GENERATED_STDINT_H
25304 #define GCC_GENERATED_STDINT_H 1
25305
25306 #include <sys/types.h>
25307EOF
25308
25309if test "$acx_cv_header_stdint" != stdint.h; then
25310 echo "#include <stddef.h>" >> tmp-stdint.h
25311fi
25312if test "$acx_cv_header_stdint" != stddef.h; then
25313 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25314fi
25315
25316sed 's/^ *//' >> tmp-stdint.h <<EOF
25317 /* glibc uses these symbols as guards to prevent redefinitions. */
25318 #ifdef __int8_t_defined
25319 #define _INT8_T
25320 #define _INT16_T
25321 #define _INT32_T
25322 #endif
25323 #ifdef __uint32_t_defined
25324 #define _UINT32_T
25325 #endif
25326
25327EOF
25328
25329# ----------------- done header, emit basic int types -------------
25330if test "$acx_cv_header_stdint" = stddef.h; then
25331 sed 's/^ *//' >> tmp-stdint.h <<EOF
25332
25333 #ifndef _UINT8_T
25334 #define _UINT8_T
25335 #ifndef __uint8_t_defined
25336 #define __uint8_t_defined
25337 typedef unsigned $acx_cv_type_int8_t uint8_t;
25338 #endif
25339 #endif
25340
25341 #ifndef _UINT16_T
25342 #define _UINT16_T
25343 #ifndef __uint16_t_defined
25344 #define __uint16_t_defined
25345 typedef unsigned $acx_cv_type_int16_t uint16_t;
25346 #endif
25347 #endif
25348
25349 #ifndef _UINT32_T
25350 #define _UINT32_T
25351 #ifndef __uint32_t_defined
25352 #define __uint32_t_defined
25353 typedef unsigned $acx_cv_type_int32_t uint32_t;
25354 #endif
25355 #endif
25356
25357 #ifndef _INT8_T
25358 #define _INT8_T
25359 #ifndef __int8_t_defined
25360 #define __int8_t_defined
25361 typedef $acx_cv_type_int8_t int8_t;
25362 #endif
25363 #endif
25364
25365 #ifndef _INT16_T
25366 #define _INT16_T
25367 #ifndef __int16_t_defined
25368 #define __int16_t_defined
25369 typedef $acx_cv_type_int16_t int16_t;
25370 #endif
25371 #endif
25372
25373 #ifndef _INT32_T
25374 #define _INT32_T
25375 #ifndef __int32_t_defined
25376 #define __int32_t_defined
25377 typedef $acx_cv_type_int32_t int32_t;
25378 #endif
25379 #endif
25380EOF
25381elif test "$ac_cv_type_u_int32_t" = yes; then
25382 sed 's/^ *//' >> tmp-stdint.h <<EOF
25383
25384 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25385 #ifndef _INT8_T
25386 #define _INT8_T
25387 #endif
25388 #ifndef _INT16_T
25389 #define _INT16_T
25390 #endif
25391 #ifndef _INT32_T
25392 #define _INT32_T
25393 #endif
25394
25395 #ifndef _UINT8_T
25396 #define _UINT8_T
25397 #ifndef __uint8_t_defined
25398 #define __uint8_t_defined
25399 typedef u_int8_t uint8_t;
25400 #endif
25401 #endif
25402
25403 #ifndef _UINT16_T
25404 #define _UINT16_T
25405 #ifndef __uint16_t_defined
25406 #define __uint16_t_defined
25407 typedef u_int16_t uint16_t;
25408 #endif
25409 #endif
25410
25411 #ifndef _UINT32_T
25412 #define _UINT32_T
25413 #ifndef __uint32_t_defined
25414 #define __uint32_t_defined
25415 typedef u_int32_t uint32_t;
25416 #endif
25417 #endif
25418EOF
25419else
25420 sed 's/^ *//' >> tmp-stdint.h <<EOF
25421
25422 /* Some systems have guard macros to prevent redefinitions, define them. */
25423 #ifndef _INT8_T
25424 #define _INT8_T
25425 #endif
25426 #ifndef _INT16_T
25427 #define _INT16_T
25428 #endif
25429 #ifndef _INT32_T
25430 #define _INT32_T
25431 #endif
25432 #ifndef _UINT8_T
25433 #define _UINT8_T
25434 #endif
25435 #ifndef _UINT16_T
25436 #define _UINT16_T
25437 #endif
25438 #ifndef _UINT32_T
25439 #define _UINT32_T
25440 #endif
25441EOF
25442fi
25443
25444# ------------- done basic int types, emit int64_t types ------------
25445if test "$ac_cv_type_uint64_t" = yes; then
25446 sed 's/^ *//' >> tmp-stdint.h <<EOF
25447
25448 /* system headers have good uint64_t and int64_t */
25449 #ifndef _INT64_T
25450 #define _INT64_T
25451 #endif
25452 #ifndef _UINT64_T
25453 #define _UINT64_T
25454 #endif
25455EOF
25456elif test "$ac_cv_type_u_int64_t" = yes; then
25457 sed 's/^ *//' >> tmp-stdint.h <<EOF
25458
25459 /* system headers have an u_int64_t (and int64_t) */
25460 #ifndef _INT64_T
25461 #define _INT64_T
25462 #endif
25463 #ifndef _UINT64_T
25464 #define _UINT64_T
25465 #ifndef __uint64_t_defined
25466 #define __uint64_t_defined
25467 typedef u_int64_t uint64_t;
25468 #endif
25469 #endif
25470EOF
25471elif test -n "$acx_cv_type_int64_t"; then
25472 sed 's/^ *//' >> tmp-stdint.h <<EOF
25473
25474 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25475 #ifndef _INT64_T
25476 #define _INT64_T
25477 typedef $acx_cv_type_int64_t int64_t;
25478 #endif
25479 #ifndef _UINT64_T
25480 #define _UINT64_T
25481 #ifndef __uint64_t_defined
25482 #define __uint64_t_defined
25483 typedef unsigned $acx_cv_type_int64_t uint64_t;
25484 #endif
25485 #endif
25486EOF
25487else
25488 sed 's/^ *//' >> tmp-stdint.h <<EOF
25489
25490 /* some common heuristics for int64_t, using compiler-specific tests */
25491 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25492 #ifndef _INT64_T
25493 #define _INT64_T
25494 #ifndef __int64_t_defined
25495 typedef long long int64_t;
25496 #endif
25497 #endif
25498 #ifndef _UINT64_T
25499 #define _UINT64_T
25500 typedef unsigned long long uint64_t;
25501 #endif
25502
25503 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25504 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25505 does not implement __extension__. But that compiler doesn't define
25506 __GNUC_MINOR__. */
25507 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25508 # define __extension__
25509 # endif
25510
25511 # ifndef _INT64_T
25512 # define _INT64_T
25513 __extension__ typedef long long int64_t;
25514 # endif
25515 # ifndef _UINT64_T
25516 # define _UINT64_T
25517 __extension__ typedef unsigned long long uint64_t;
25518 # endif
25519
25520 #elif !defined __STRICT_ANSI__
25521 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25522
25523 # ifndef _INT64_T
25524 # define _INT64_T
25525 typedef __int64 int64_t;
25526 # endif
25527 # ifndef _UINT64_T
25528 # define _UINT64_T
25529 typedef unsigned __int64 uint64_t;
25530 # endif
25531 # endif /* compiler */
25532
25533 #endif /* ANSI version */
25534EOF
25535fi
25536
25537# ------------- done int64_t types, emit intptr types ------------
25538if test "$ac_cv_type_uintptr_t" != yes; then
25539 sed 's/^ *//' >> tmp-stdint.h <<EOF
25540
25541 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25542 #ifndef __uintptr_t_defined
25543 typedef u$acx_cv_type_intptr_t uintptr_t;
25544 #endif
25545 #ifndef __intptr_t_defined
25546 typedef $acx_cv_type_intptr_t intptr_t;
25547 #endif
25548EOF
25549fi
25550
25551# ------------- done intptr types, emit int_least types ------------
25552if test "$ac_cv_type_int_least32_t" != yes; then
25553 sed 's/^ *//' >> tmp-stdint.h <<EOF
25554
25555 /* Define int_least types */
25556 typedef int8_t int_least8_t;
25557 typedef int16_t int_least16_t;
25558 typedef int32_t int_least32_t;
25559 #ifdef _INT64_T
25560 typedef int64_t int_least64_t;
25561 #endif
25562
25563 typedef uint8_t uint_least8_t;
25564 typedef uint16_t uint_least16_t;
25565 typedef uint32_t uint_least32_t;
25566 #ifdef _UINT64_T
25567 typedef uint64_t uint_least64_t;
25568 #endif
25569EOF
25570fi
25571
25572# ------------- done intptr types, emit int_fast types ------------
25573if test "$ac_cv_type_int_fast32_t" != yes; then
25574 sed 's/^ *//' >> tmp-stdint.h <<EOF
25575
25576 /* Define int_fast types. short is often slow */
25577 typedef int8_t int_fast8_t;
25578 typedef int int_fast16_t;
25579 typedef int32_t int_fast32_t;
25580 #ifdef _INT64_T
25581 typedef int64_t int_fast64_t;
25582 #endif
25583
25584 typedef uint8_t uint_fast8_t;
25585 typedef unsigned int uint_fast16_t;
25586 typedef uint32_t uint_fast32_t;
25587 #ifdef _UINT64_T
25588 typedef uint64_t uint_fast64_t;
25589 #endif
25590EOF
25591fi
25592
25593if test "$ac_cv_type_uintmax_t" != yes; then
25594 sed 's/^ *//' >> tmp-stdint.h <<EOF
25595
25596 /* Define intmax based on what we found */
25597 #ifdef _INT64_T
25598 typedef int64_t intmax_t;
25599 #else
25600 typedef long intmax_t;
25601 #endif
25602 #ifdef _UINT64_T
25603 typedef uint64_t uintmax_t;
25604 #else
25605 typedef unsigned long uintmax_t;
25606 #endif
25607EOF
25608fi
25609
25610sed 's/^ *//' >> tmp-stdint.h <<EOF
25611
25612 #endif /* GCC_GENERATED_STDINT_H */
25613EOF
25614
25615if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25616 rm -f tmp-stdint.h
25617else
25618 mv -f tmp-stdint.h gdb_stdint.h
25619fi
25620
25621 ;;
25622 default )
25623
25624sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
25625/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25626/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25627mv -f Makefile.tmp Makefile
25628
25629
25630case x$CONFIG_HEADERS in
25631xconfig.h:config.in)
25632echo > stamp-h ;;
25633esac
25634 ;;
25635 esac
25636done
25637_ACEOF
25638
25639cat >>$CONFIG_STATUS <<\_ACEOF
25640
25641{ (exit 0); exit 0; }
25642_ACEOF
25643chmod +x $CONFIG_STATUS
25644ac_clean_files=$ac_clean_files_save
25645
25646
25647# configure is writing to config.log, and then calls config.status.
25648# config.status does its own redirection, appending to config.log.
25649# Unfortunately, on DOS this fails, as config.log is still kept open
25650# by configure, so config.status won't be able to write to it; its
25651# output is simply discarded. So we exec the FD to /dev/null,
25652# effectively closing config.log, so it can be properly (re)opened and
25653# appended to by config.status. When coming back to configure, we
25654# need to make the FD available again.
25655if test "$no_create" != yes; then
25656 ac_cs_success=:
25657 ac_config_status_args=
25658 test "$silent" = yes &&
25659 ac_config_status_args="$ac_config_status_args --quiet"
25660 exec 5>/dev/null
25661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25662 exec 5>>config.log
25663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25664 # would make configure fail if this is the last instruction.
25665 $ac_cs_success || { (exit 1); exit 1; }
25666fi
25667
25668#
25669# CONFIG_SUBDIRS section.
25670#
25671if test "$no_recursion" != yes; then
25672
25673 # Remove --cache-file and --srcdir arguments so they do not pile up.
25674 ac_sub_configure_args=
25675 ac_prev=
25676 for ac_arg in $ac_configure_args; do
25677 if test -n "$ac_prev"; then
25678 ac_prev=
25679 continue
25680 fi
25681 case $ac_arg in
25682 -cache-file | --cache-file | --cache-fil | --cache-fi \
25683 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25684 ac_prev=cache_file ;;
25685 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25686 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25687 | --c=*)
25688 ;;
25689 --config-cache | -C)
25690 ;;
25691 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25692 ac_prev=srcdir ;;
25693 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25694 ;;
25695 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25696 ac_prev=prefix ;;
25697 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25698 ;;
25699 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25700 esac
25701 done
25702
25703 # Always prepend --prefix to ensure using the same prefix
25704 # in subdir configurations.
25705 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25706
25707 ac_popdir=`pwd`
25708 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25709
25710 # Do not complain, so a configure script can configure whichever
25711 # parts of a large source tree are present.
25712 test -d $srcdir/$ac_dir || continue
25713
25714 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25715echo "$as_me: configuring in $ac_dir" >&6;}
25716 { if $as_mkdir_p; then
25717 mkdir -p "$ac_dir"
25718 else
25719 as_dir="$ac_dir"
25720 as_dirs=
25721 while test ! -d "$as_dir"; do
25722 as_dirs="$as_dir $as_dirs"
25723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25725 X"$as_dir" : 'X\(//\)[^/]' \| \
25726 X"$as_dir" : 'X\(//\)$' \| \
25727 X"$as_dir" : 'X\(/\)' \| \
25728 . : '\(.\)' 2>/dev/null ||
25729echo X"$as_dir" |
25730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25732 /^X\(\/\/\)$/{ s//\1/; q; }
25733 /^X\(\/\).*/{ s//\1/; q; }
25734 s/.*/./; q'`
25735 done
25736 test ! -n "$as_dirs" || mkdir $as_dirs
25737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25738echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25739 { (exit 1); exit 1; }; }; }
25740
25741 ac_builddir=.
25742
25743if test "$ac_dir" != .; then
25744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25745 # A "../" for each directory in $ac_dir_suffix.
25746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25747else
25748 ac_dir_suffix= ac_top_builddir=
25749fi
25750
25751case $srcdir in
25752 .) # No --srcdir option. We are building in place.
25753 ac_srcdir=.
25754 if test -z "$ac_top_builddir"; then
25755 ac_top_srcdir=.
25756 else
25757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25758 fi ;;
25759 [\\/]* | ?:[\\/]* ) # Absolute path.
25760 ac_srcdir=$srcdir$ac_dir_suffix;
25761 ac_top_srcdir=$srcdir ;;
25762 *) # Relative path.
25763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25765esac
25766
25767# Do not use `cd foo && pwd` to compute absolute paths, because
25768# the directories may not exist.
25769case `pwd` in
25770.) ac_abs_builddir="$ac_dir";;
25771*)
25772 case "$ac_dir" in
25773 .) ac_abs_builddir=`pwd`;;
25774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25776 esac;;
25777esac
25778case $ac_abs_builddir in
25779.) ac_abs_top_builddir=${ac_top_builddir}.;;
25780*)
25781 case ${ac_top_builddir}. in
25782 .) ac_abs_top_builddir=$ac_abs_builddir;;
25783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25785 esac;;
25786esac
25787case $ac_abs_builddir in
25788.) ac_abs_srcdir=$ac_srcdir;;
25789*)
25790 case $ac_srcdir in
25791 .) ac_abs_srcdir=$ac_abs_builddir;;
25792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25794 esac;;
25795esac
25796case $ac_abs_builddir in
25797.) ac_abs_top_srcdir=$ac_top_srcdir;;
25798*)
25799 case $ac_top_srcdir in
25800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25803 esac;;
25804esac
25805
25806
25807 cd $ac_dir
25808
25809 # Check for guested configure; otherwise get Cygnus style configure.
25810 if test -f $ac_srcdir/configure.gnu; then
25811 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25812 elif test -f $ac_srcdir/configure; then
25813 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25814 elif test -f $ac_srcdir/configure.in; then
25815 ac_sub_configure=$ac_configure
25816 else
25817 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25818echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25819 ac_sub_configure=
25820 fi
25821
25822 # The recursion is here.
25823 if test -n "$ac_sub_configure"; then
25824 # Make the cache file name correct relative to the subdirectory.
25825 case $cache_file in
25826 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25827 *) # Relative path.
25828 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25829 esac
25830
25831 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25832echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25833 # The eval makes quoting arguments work.
25834 eval $ac_sub_configure $ac_sub_configure_args \
25835 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25836 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25837echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25838 { (exit 1); exit 1; }; }
25839 fi
25840
25841 cd $ac_popdir
25842 done
25843fi
25844
25845
25846exit 0
This page took 0.114156 seconds and 4 git commands to generate.