2008-04-23 Paolo Bonzini <bonzini@gnu.org>
[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"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312gl_header_list=
313ac_subdirs_all="$ac_subdirs_all doc testsuite"
314ac_subdirs_all="$ac_subdirs_all gdbtk"
315ac_subdirs_all="$ac_subdirs_all multi-ice"
316ac_subdirs_all="$ac_subdirs_all gdbserver"
317ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB 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 GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS LN_S 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 SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318ac_subst_files='host_makefile_frag'
319
320# Initialize some variables set by options.
321ac_init_help=
322ac_init_version=false
323# The variables have the same names as the options, with
324# dashes changed to underlines.
325cache_file=/dev/null
326exec_prefix=NONE
327no_create=
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
336verbose=
337x_includes=NONE
338x_libraries=NONE
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
348datadir='${prefix}/share'
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
352libdir='${exec_prefix}/lib'
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
355infodir='${prefix}/info'
356mandir='${prefix}/man'
357
358ac_prev=
359for ac_option
360do
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
372 case $ac_option in
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 bindir=$ac_optarg ;;
378
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
398 datadir=$ac_optarg ;;
399
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
408
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir=$ac_optarg ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir=$ac_optarg ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix=$ac_optarg ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir=$ac_optarg ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir=$ac_optarg ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site=$ac_optarg ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir=$ac_optarg ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
590
591 -with-* | --with-*)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
603
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
630
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
634 ;;
635
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
646 *)
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 ;;
653
654 esac
655done
656
657if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
661fi
662
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
665do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672done
673
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
677do
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
683 esac
684done
685
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702fi
703
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
708
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
737 else
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
740 fi
741fi
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
778
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786\`configure' configures this package to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE. See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
806_ACEOF
807
808 cat <<_ACEOF
809Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
835_ACEOF
836
837 cat <<\_ACEOF
838
839Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852_ACEOF
853fi
854
855if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
866 --enable-targets alternative target configurations
867 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
868 --disable-gdbcli disable command-line interface (CLI)
869 --disable-gdbmi disable machine-interface (MI)
870 --enable-tui enable full-screen terminal user interface (TUI)
871 --enable-gdbtk enable gdbtk graphical user interface (GUI)
872 --enable-profiling enable profiling of GDB
873 --disable-rpath do not hardcode runtime library paths
874 --enable-werror treat compile warnings as errors
875 --enable-build-warnings Enable build-time compiler warnings if gcc is used
876 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
877 --enable-sim Link gdb with simulator
878 --enable-multi-ice build the multi-ice-gdb-server
879
880Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
884 --with-libunwind Use libunwind frame unwinding support
885 --with-system-readline use installed readline library
886 --with-expat include expat support (auto/yes/no)
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
889 --without-libexpat-prefix don't search for libexpat in includedir and libdir
890 --without-included-regex don't use included regex; this is the default
891 on systems with version 2 of the GNU C library
892 (use with caution on other system)
893 --with-sysroot=DIR Search for usr/lib et al within DIR.
894 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
895 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
896 --with-tclinclude=DIR Directory where tcl private headers are
897 --with-tkinclude=DIR Directory where tk private headers are
898 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
899 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
900 --with-x use the X Window System
901 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
902
903Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CPP C preprocessor
911
912Use these variables to override the choices made by `configure' or to help
913it to find libraries and programs with nonstandard names/locations.
914
915_ACEOF
916fi
917
918if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
925if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929else
930 ac_dir_suffix= ac_top_builddir=
931fi
932
933case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947esac
948
949# Do not use `cd foo && pwd` to compute absolute paths, because
950# the directories may not exist.
951case `pwd` in
952.) ac_abs_builddir="$ac_dir";;
953*)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_top_builddir=${ac_top_builddir}.;;
962*)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968esac
969case $ac_abs_builddir in
970.) ac_abs_srcdir=$ac_srcdir;;
971*)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977esac
978case $ac_abs_builddir in
979.) ac_abs_top_srcdir=$ac_top_srcdir;;
980*)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986esac
987
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 fi
1003 cd $ac_popdir
1004 done
1005fi
1006
1007test -n "$ac_init_help" && exit 0
1008if $ac_init_version; then
1009 cat <<\_ACEOF
1010
1011Copyright (C) 2003 Free Software Foundation, Inc.
1012This configure script is free software; the Free Software Foundation
1013gives unlimited permission to copy, distribute and modify it.
1014_ACEOF
1015 exit 0
1016fi
1017exec 5>config.log
1018cat >&5 <<_ACEOF
1019This file contains any messages produced by compilers while
1020running configure, to aid debugging if configure makes a mistake.
1021
1022It was created by $as_me, which was
1023generated by GNU Autoconf 2.59. Invocation command line was
1024
1025 $ $0 $@
1026
1027_ACEOF
1028{
1029cat <<_ASUNAME
1030## --------- ##
1031## Platform. ##
1032## --------- ##
1033
1034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
1040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042
1043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050
1051_ASUNAME
1052
1053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054for as_dir in $PATH
1055do
1056 IFS=$as_save_IFS
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1059done
1060
1061} >&5
1062
1063cat >&5 <<_ACEOF
1064
1065
1066## ----------- ##
1067## Core tests. ##
1068## ----------- ##
1069
1070_ACEOF
1071
1072
1073# Keep a trace of the command line.
1074# Strip out --no-create and --no-recursion so they do not pile up.
1075# Strip out --silent because we don't want to record it for future runs.
1076# Also quote any args containing shell meta-characters.
1077# Make two passes to allow for proper duplicate-argument suppression.
1078ac_configure_args=
1079ac_configure_args0=
1080ac_configure_args1=
1081ac_sep=
1082ac_must_keep_next=false
1083for ac_pass in 1 2
1084do
1085 for ac_arg
1086 do
1087 case $ac_arg in
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 continue ;;
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 esac
1095 case $ac_pass in
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 2)
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1101 else
1102 case $ac_arg in
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 esac
1110 ;;
1111 -* ) ac_must_keep_next=true ;;
1112 esac
1113 fi
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1116 ac_sep=" "
1117 ;;
1118 esac
1119 done
1120done
1121$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
1124# When interrupted or exit'd, cleanup temporary files, and complete
1125# config.log. We remove comments because anyway the quotes in there
1126# would cause problems or look ugly.
1127# WARNING: Be sure not to use single quotes in there, as some shells,
1128# such as our DU 5.0 friend, will then `close' the trap.
1129trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1131 {
1132 echo
1133
1134 cat <<\_ASBOX
1135## ---------------- ##
1136## Cache variables. ##
1137## ---------------- ##
1138_ASBOX
1139 echo
1140 # The following way of writing the cache mishandles newlines in values,
1141{
1142 (set) 2>&1 |
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 *ac_space=\ *)
1145 sed -n \
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 ;;
1149 *)
1150 sed -n \
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152 ;;
1153 esac;
1154}
1155 echo
1156
1157 cat <<\_ASBOX
1158## ----------------- ##
1159## Output variables. ##
1160## ----------------- ##
1161_ASBOX
1162 echo
1163 for ac_var in $ac_subst_vars
1164 do
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1169
1170 if test -n "$ac_subst_files"; then
1171 cat <<\_ASBOX
1172## ------------- ##
1173## Output files. ##
1174## ------------- ##
1175_ASBOX
1176 echo
1177 for ac_var in $ac_subst_files
1178 do
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1181 done | sort
1182 echo
1183 fi
1184
1185 if test -s confdefs.h; then
1186 cat <<\_ASBOX
1187## ----------- ##
1188## confdefs.h. ##
1189## ----------- ##
1190_ASBOX
1191 echo
1192 sed "/^$/d" confdefs.h | sort
1193 echo
1194 fi
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1198 } >&5
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201 exit $exit_status
1202 ' 0
1203for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205done
1206ac_signal=0
1207
1208# confdefs.h avoids OS command line length limits that DEFS can exceed.
1209rm -rf conftest* confdefs.h
1210# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211echo >confdefs.h
1212
1213# Predefined preprocessor variables.
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_NAME "$PACKAGE_NAME"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_VERSION "$PACKAGE_VERSION"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_STRING "$PACKAGE_STRING"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237_ACEOF
1238
1239
1240# Let the site file select an alternate cache file if it wants to.
1241# Prefer explicitly selected file to automatically selected ones.
1242if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 else
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 fi
1248fi
1249for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1254 . "$ac_site_file"
1255 fi
1256done
1257
1258if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263echo "$as_me: loading cache $cache_file" >&6;}
1264 case $cache_file in
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1267 esac
1268 fi
1269else
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271echo "$as_me: creating cache $cache_file" >&6;}
1272 >$cache_file
1273fi
1274
1275# Check that the precious variables saved in the cache have kept the same
1276# value.
1277ac_cache_corrupted=false
1278for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1285 set,)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,set)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,);;
1294 *)
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1297echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1298 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1299echo "$as_me: former value: $ac_old_val" >&2;}
1300 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1301echo "$as_me: current value: $ac_new_val" >&2;}
1302 ac_cache_corrupted=:
1303 fi;;
1304 esac
1305 # Pass precious variables to config.status.
1306 if test "$ac_new_set" = set; then
1307 case $ac_new_val in
1308 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310 *) ac_arg=$ac_var=$ac_new_val ;;
1311 esac
1312 case " $ac_configure_args " in
1313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1315 esac
1316 fi
1317done
1318if $ac_cache_corrupted; then
1319 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323 { (exit 1); exit 1; }; }
1324fi
1325
1326ac_ext=c
1327ac_cpp='$CPP $CPPFLAGS'
1328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331
1332
1333gl_header_list="$gl_header_list stdint.h"
1334gl_header_list="$gl_header_list wchar.h"
1335gl_header_list="$gl_header_list string.h"
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353 ac_config_headers="$ac_config_headers config.h:config.in"
1354
1355echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1356echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1357 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1358if test "${enable_maintainer_mode+set}" = set; then
1359 enableval="$enable_maintainer_mode"
1360 USE_MAINTAINER_MODE=$enableval
1361else
1362 USE_MAINTAINER_MODE=no
1363fi;
1364 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1365echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1366
1367
1368if test $USE_MAINTAINER_MODE = yes; then
1369 MAINTAINER_MODE_TRUE=
1370 MAINTAINER_MODE_FALSE='#'
1371else
1372 MAINTAINER_MODE_TRUE='#'
1373 MAINTAINER_MODE_FALSE=
1374fi
1375
1376 MAINT=$MAINTAINER_MODE_TRUE
1377
1378
1379
1380ac_ext=c
1381ac_cpp='$CPP $CPPFLAGS'
1382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385if test -n "$ac_tool_prefix"; then
1386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1387set dummy ${ac_tool_prefix}gcc; ac_word=$2
1388echo "$as_me:$LINENO: checking for $ac_word" >&5
1389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390if test "${ac_cv_prog_CC+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392else
1393 if test -n "$CC"; then
1394 ac_cv_prog_CC="$CC" # Let the user override the test.
1395else
1396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397for as_dir in $PATH
1398do
1399 IFS=$as_save_IFS
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405 break 2
1406 fi
1407done
1408done
1409
1410fi
1411fi
1412CC=$ac_cv_prog_CC
1413if test -n "$CC"; then
1414 echo "$as_me:$LINENO: result: $CC" >&5
1415echo "${ECHO_T}$CC" >&6
1416else
1417 echo "$as_me:$LINENO: result: no" >&5
1418echo "${ECHO_T}no" >&6
1419fi
1420
1421fi
1422if test -z "$ac_cv_prog_CC"; then
1423 ac_ct_CC=$CC
1424 # Extract the first word of "gcc", so it can be a program name with args.
1425set dummy gcc; ac_word=$2
1426echo "$as_me:$LINENO: checking for $ac_word" >&5
1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431 if test -n "$ac_ct_CC"; then
1432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1433else
1434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435for as_dir in $PATH
1436do
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_ac_ct_CC="gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 break 2
1444 fi
1445done
1446done
1447
1448fi
1449fi
1450ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451if test -n "$ac_ct_CC"; then
1452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1453echo "${ECHO_T}$ac_ct_CC" >&6
1454else
1455 echo "$as_me:$LINENO: result: no" >&5
1456echo "${ECHO_T}no" >&6
1457fi
1458
1459 CC=$ac_ct_CC
1460else
1461 CC="$ac_cv_prog_CC"
1462fi
1463
1464if test -z "$CC"; then
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1467set dummy ${ac_tool_prefix}cc; ac_word=$2
1468echo "$as_me:$LINENO: checking for $ac_word" >&5
1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475else
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC="${ac_tool_prefix}cc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487done
1488done
1489
1490fi
1491fi
1492CC=$ac_cv_prog_CC
1493if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495echo "${ECHO_T}$CC" >&6
1496else
1497 echo "$as_me:$LINENO: result: no" >&5
1498echo "${ECHO_T}no" >&6
1499fi
1500
1501fi
1502if test -z "$ac_cv_prog_CC"; then
1503 ac_ct_CC=$CC
1504 # Extract the first word of "cc", so it can be a program name with args.
1505set dummy cc; ac_word=$2
1506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513else
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_ac_ct_CC="cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525done
1526done
1527
1528fi
1529fi
1530ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531if test -n "$ac_ct_CC"; then
1532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533echo "${ECHO_T}$ac_ct_CC" >&6
1534else
1535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
1537fi
1538
1539 CC=$ac_ct_CC
1540else
1541 CC="$ac_cv_prog_CC"
1542fi
1543
1544fi
1545if test -z "$CC"; then
1546 # Extract the first word of "cc", so it can be a program name with args.
1547set dummy cc; ac_word=$2
1548echo "$as_me:$LINENO: checking for $ac_word" >&5
1549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555else
1556 ac_prog_rejected=no
1557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558for as_dir in $PATH
1559do
1560 IFS=$as_save_IFS
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1565 ac_prog_rejected=yes
1566 continue
1567 fi
1568 ac_cv_prog_CC="cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 break 2
1571 fi
1572done
1573done
1574
1575if test $ac_prog_rejected = yes; then
1576 # We found a bogon in the path, so make sure we never use it.
1577 set dummy $ac_cv_prog_CC
1578 shift
1579 if test $# != 0; then
1580 # We chose a different compiler from the bogus one.
1581 # However, it has the same basename, so the bogon will be chosen
1582 # first if we set CC to just the basename; use the full file name.
1583 shift
1584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1585 fi
1586fi
1587fi
1588fi
1589CC=$ac_cv_prog_CC
1590if test -n "$CC"; then
1591 echo "$as_me:$LINENO: result: $CC" >&5
1592echo "${ECHO_T}$CC" >&6
1593else
1594 echo "$as_me:$LINENO: result: no" >&5
1595echo "${ECHO_T}no" >&6
1596fi
1597
1598fi
1599if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1601 for ac_prog in cl
1602 do
1603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1605echo "$as_me:$LINENO: checking for $ac_word" >&5
1606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1612else
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
1627fi
1628fi
1629CC=$ac_cv_prog_CC
1630if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632echo "${ECHO_T}$CC" >&6
1633else
1634 echo "$as_me:$LINENO: result: no" >&5
1635echo "${ECHO_T}no" >&6
1636fi
1637
1638 test -n "$CC" && break
1639 done
1640fi
1641if test -z "$CC"; then
1642 ac_ct_CC=$CC
1643 for ac_prog in cl
1644do
1645 # Extract the first word of "$ac_prog", so it can be a program name with args.
1646set dummy $ac_prog; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="$ac_prog"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666done
1667done
1668
1669fi
1670fi
1671ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674echo "${ECHO_T}$ac_ct_CC" >&6
1675else
1676 echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680 test -n "$ac_ct_CC" && break
1681done
1682
1683 CC=$ac_ct_CC
1684fi
1685
1686fi
1687
1688
1689test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1690See \`config.log' for more details." >&5
1691echo "$as_me: error: no acceptable C compiler found in \$PATH
1692See \`config.log' for more details." >&2;}
1693 { (exit 1); exit 1; }; }
1694
1695# Provide some information about the compiler.
1696echo "$as_me:$LINENO:" \
1697 "checking for C compiler version" >&5
1698ac_compiler=`set X $ac_compile; echo $2`
1699{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1700 (eval $ac_compiler --version </dev/null >&5) 2>&5
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1705 (eval $ac_compiler -v </dev/null >&5) 2>&5
1706 ac_status=$?
1707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1708 (exit $ac_status); }
1709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1710 (eval $ac_compiler -V </dev/null >&5) 2>&5
1711 ac_status=$?
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714
1715cat >conftest.$ac_ext <<_ACEOF
1716/* confdefs.h. */
1717_ACEOF
1718cat confdefs.h >>conftest.$ac_ext
1719cat >>conftest.$ac_ext <<_ACEOF
1720/* end confdefs.h. */
1721
1722int
1723main ()
1724{
1725
1726 ;
1727 return 0;
1728}
1729_ACEOF
1730ac_clean_files_save=$ac_clean_files
1731ac_clean_files="$ac_clean_files a.out a.exe b.out"
1732# Try to create an executable without -o first, disregard a.out.
1733# It will help us diagnose broken compilers, and finding out an intuition
1734# of exeext.
1735echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1736echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1737ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1738if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1739 (eval $ac_link_default) 2>&5
1740 ac_status=$?
1741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
1743 # Find the output, starting from the most likely. This scheme is
1744# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745# resort.
1746
1747# Be careful to initialize this variable, since it used to be cached.
1748# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1749ac_cv_exeext=
1750# b.out is created by i960 compilers.
1751for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1752do
1753 test -f "$ac_file" || continue
1754 case $ac_file in
1755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1756 ;;
1757 conftest.$ac_ext )
1758 # This is the source file.
1759 ;;
1760 [ab].out )
1761 # We found the default executable, but exeext='' is most
1762 # certainly right.
1763 break;;
1764 *.* )
1765 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1766 # FIXME: I believe we export ac_cv_exeext for Libtool,
1767 # but it would be cool to find out if it's true. Does anybody
1768 # maintain Libtool? --akim.
1769 export ac_cv_exeext
1770 break;;
1771 * )
1772 break;;
1773 esac
1774done
1775else
1776 echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1780See \`config.log' for more details." >&5
1781echo "$as_me: error: C compiler cannot create executables
1782See \`config.log' for more details." >&2;}
1783 { (exit 77); exit 77; }; }
1784fi
1785
1786ac_exeext=$ac_cv_exeext
1787echo "$as_me:$LINENO: result: $ac_file" >&5
1788echo "${ECHO_T}$ac_file" >&6
1789
1790# Check the compiler produces executables we can run. If not, either
1791# the compiler is broken, or we cross compile.
1792echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1793echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1794# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1795# If not cross compiling, check that we can run a simple program.
1796if test "$cross_compiling" != yes; then
1797 if { ac_try='./$ac_file'
1798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1799 (eval $ac_try) 2>&5
1800 ac_status=$?
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }; }; then
1803 cross_compiling=no
1804 else
1805 if test "$cross_compiling" = maybe; then
1806 cross_compiling=yes
1807 else
1808 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1809If you meant to cross compile, use \`--host'.
1810See \`config.log' for more details." >&5
1811echo "$as_me: error: cannot run C compiled programs.
1812If you meant to cross compile, use \`--host'.
1813See \`config.log' for more details." >&2;}
1814 { (exit 1); exit 1; }; }
1815 fi
1816 fi
1817fi
1818echo "$as_me:$LINENO: result: yes" >&5
1819echo "${ECHO_T}yes" >&6
1820
1821rm -f a.out a.exe conftest$ac_cv_exeext b.out
1822ac_clean_files=$ac_clean_files_save
1823# Check the compiler produces executables we can run. If not, either
1824# the compiler is broken, or we cross compile.
1825echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1826echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1827echo "$as_me:$LINENO: result: $cross_compiling" >&5
1828echo "${ECHO_T}$cross_compiling" >&6
1829
1830echo "$as_me:$LINENO: checking for suffix of executables" >&5
1831echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1833 (eval $ac_link) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; then
1837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1838# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1839# work properly (i.e., refer to `conftest.exe'), while it won't with
1840# `rm'.
1841for ac_file in conftest.exe conftest conftest.*; do
1842 test -f "$ac_file" || continue
1843 case $ac_file in
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 export ac_cv_exeext
1847 break;;
1848 * ) break;;
1849 esac
1850done
1851else
1852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1853See \`config.log' for more details." >&5
1854echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1855See \`config.log' for more details." >&2;}
1856 { (exit 1); exit 1; }; }
1857fi
1858
1859rm -f conftest$ac_cv_exeext
1860echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1861echo "${ECHO_T}$ac_cv_exeext" >&6
1862
1863rm -f conftest.$ac_ext
1864EXEEXT=$ac_cv_exeext
1865ac_exeext=$EXEEXT
1866echo "$as_me:$LINENO: checking for suffix of object files" >&5
1867echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1868if test "${ac_cv_objext+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 cat >conftest.$ac_ext <<_ACEOF
1872/* confdefs.h. */
1873_ACEOF
1874cat confdefs.h >>conftest.$ac_ext
1875cat >>conftest.$ac_ext <<_ACEOF
1876/* end confdefs.h. */
1877
1878int
1879main ()
1880{
1881
1882 ;
1883 return 0;
1884}
1885_ACEOF
1886rm -f conftest.o conftest.obj
1887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1888 (eval $ac_compile) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1896 break;;
1897 esac
1898done
1899else
1900 echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1904See \`config.log' for more details." >&5
1905echo "$as_me: error: cannot compute suffix of object files: cannot compile
1906See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908fi
1909
1910rm -f conftest.$ac_cv_objext conftest.$ac_ext
1911fi
1912echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1913echo "${ECHO_T}$ac_cv_objext" >&6
1914OBJEXT=$ac_cv_objext
1915ac_objext=$OBJEXT
1916echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1917echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1918if test "${ac_cv_c_compiler_gnu+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921 cat >conftest.$ac_ext <<_ACEOF
1922/* confdefs.h. */
1923_ACEOF
1924cat confdefs.h >>conftest.$ac_ext
1925cat >>conftest.$ac_ext <<_ACEOF
1926/* end confdefs.h. */
1927
1928int
1929main ()
1930{
1931#ifndef __GNUC__
1932 choke me
1933#endif
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939rm -f conftest.$ac_objext
1940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>conftest.er1
1942 ac_status=$?
1943 grep -v '^ *+' conftest.er1 >conftest.err
1944 rm -f conftest.er1
1945 cat conftest.err >&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
1948 { ac_try='test -z "$ac_c_werror_flag"
1949 || test ! -s conftest.err'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 (eval $ac_try) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; } &&
1955 { ac_try='test -s conftest.$ac_objext'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 (eval $ac_try) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1961 ac_compiler_gnu=yes
1962else
1963 echo "$as_me: failed program was:" >&5
1964sed 's/^/| /' conftest.$ac_ext >&5
1965
1966ac_compiler_gnu=no
1967fi
1968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1969ac_cv_c_compiler_gnu=$ac_compiler_gnu
1970
1971fi
1972echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1973echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1974GCC=`test $ac_compiler_gnu = yes && echo yes`
1975ac_test_CFLAGS=${CFLAGS+set}
1976ac_save_CFLAGS=$CFLAGS
1977CFLAGS="-g"
1978echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1979echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1980if test "${ac_cv_prog_cc_g+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983 cat >conftest.$ac_ext <<_ACEOF
1984/* confdefs.h. */
1985_ACEOF
1986cat confdefs.h >>conftest.$ac_ext
1987cat >>conftest.$ac_ext <<_ACEOF
1988/* end confdefs.h. */
1989
1990int
1991main ()
1992{
1993
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998rm -f conftest.$ac_objext
1999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>conftest.er1
2001 ac_status=$?
2002 grep -v '^ *+' conftest.er1 >conftest.err
2003 rm -f conftest.er1
2004 cat conftest.err >&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -z "$ac_c_werror_flag"
2008 || test ! -s conftest.err'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; } &&
2014 { ac_try='test -s conftest.$ac_objext'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 ac_cv_prog_cc_g=yes
2021else
2022 echo "$as_me: failed program was:" >&5
2023sed 's/^/| /' conftest.$ac_ext >&5
2024
2025ac_cv_prog_cc_g=no
2026fi
2027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2028fi
2029echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031if test "$ac_test_CFLAGS" = set; then
2032 CFLAGS=$ac_save_CFLAGS
2033elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2035 CFLAGS="-g -O2"
2036 else
2037 CFLAGS="-g"
2038 fi
2039else
2040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2044 fi
2045fi
2046echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051 ac_cv_prog_cc_stdc=no
2052ac_save_CC=$CC
2053cat >conftest.$ac_ext <<_ACEOF
2054/* confdefs.h. */
2055_ACEOF
2056cat confdefs.h >>conftest.$ac_ext
2057cat >>conftest.$ac_ext <<_ACEOF
2058/* end confdefs.h. */
2059#include <stdarg.h>
2060#include <stdio.h>
2061#include <sys/types.h>
2062#include <sys/stat.h>
2063/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2064struct buf { int x; };
2065FILE * (*rcsopen) (struct buf *, struct stat *, int);
2066static char *e (p, i)
2067 char **p;
2068 int i;
2069{
2070 return p[i];
2071}
2072static char *f (char * (*g) (char **, int), char **p, ...)
2073{
2074 char *s;
2075 va_list v;
2076 va_start (v,p);
2077 s = g (p, va_arg (v,int));
2078 va_end (v);
2079 return s;
2080}
2081
2082/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2083 function prototypes and stuff, but not '\xHH' hex character constants.
2084 These don't provoke an error unfortunately, instead are silently treated
2085 as 'x'. The following induces an error, until -std1 is added to get
2086 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2087 array size at least. It's necessary to write '\x00'==0 to get something
2088 that's true only with -std1. */
2089int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2090
2091int test (int i, double x);
2092struct s1 {int (*f) (int a);};
2093struct s2 {int (*f) (double a);};
2094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2095int argc;
2096char **argv;
2097int
2098main ()
2099{
2100return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105# Don't try gcc -ansi; that turns off useful extensions and
2106# breaks some systems' header files.
2107# AIX -qlanglvl=ansi
2108# Ultrix and OSF/1 -std1
2109# HP-UX 10.20 and later -Ae
2110# HP-UX older versions -Aa -D_HPUX_SOURCE
2111# SVR4 -Xc -D__EXTENSIONS__
2112for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2113do
2114 CC="$ac_save_CC $ac_arg"
2115 rm -f conftest.$ac_objext
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>conftest.er1
2118 ac_status=$?
2119 grep -v '^ *+' conftest.er1 >conftest.err
2120 rm -f conftest.er1
2121 cat conftest.err >&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); } &&
2124 { ac_try='test -z "$ac_c_werror_flag"
2125 || test ! -s conftest.err'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; } &&
2131 { ac_try='test -s conftest.$ac_objext'
2132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133 (eval $ac_try) 2>&5
2134 ac_status=$?
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; }; then
2137 ac_cv_prog_cc_stdc=$ac_arg
2138break
2139else
2140 echo "$as_me: failed program was:" >&5
2141sed 's/^/| /' conftest.$ac_ext >&5
2142
2143fi
2144rm -f conftest.err conftest.$ac_objext
2145done
2146rm -f conftest.$ac_ext conftest.$ac_objext
2147CC=$ac_save_CC
2148
2149fi
2150
2151case "x$ac_cv_prog_cc_stdc" in
2152 x|xno)
2153 echo "$as_me:$LINENO: result: none needed" >&5
2154echo "${ECHO_T}none needed" >&6 ;;
2155 *)
2156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2157echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2158 CC="$CC $ac_cv_prog_cc_stdc" ;;
2159esac
2160
2161# Some people use a C++ compiler to compile C. Since we use `exit',
2162# in C++ we need to declare it. In case someone uses the same compiler
2163# for both compiling C and C++ we need to have the C++ compiler decide
2164# the declaration of exit, since it's the most demanding environment.
2165cat >conftest.$ac_ext <<_ACEOF
2166#ifndef __cplusplus
2167 choke me
2168#endif
2169_ACEOF
2170rm -f conftest.$ac_objext
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2193 '' \
2194 'extern "C" void std::exit (int) throw (); using std::exit;' \
2195 'extern "C" void std::exit (int); using std::exit;' \
2196 'extern "C" void exit (int) throw ();' \
2197 'extern "C" void exit (int);' \
2198 'void exit (int);'
2199do
2200 cat >conftest.$ac_ext <<_ACEOF
2201/* confdefs.h. */
2202_ACEOF
2203cat confdefs.h >>conftest.$ac_ext
2204cat >>conftest.$ac_ext <<_ACEOF
2205/* end confdefs.h. */
2206$ac_declaration
2207#include <stdlib.h>
2208int
2209main ()
2210{
2211exit (42);
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216rm -f conftest.$ac_objext
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2219 ac_status=$?
2220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag"
2226 || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 :
2239else
2240 echo "$as_me: failed program was:" >&5
2241sed 's/^/| /' conftest.$ac_ext >&5
2242
2243continue
2244fi
2245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2246 cat >conftest.$ac_ext <<_ACEOF
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
2252$ac_declaration
2253int
2254main ()
2255{
2256exit (42);
2257 ;
2258 return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 break
2284else
2285 echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288fi
2289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290done
2291rm -f conftest*
2292if test -n "$ac_declaration"; then
2293 echo '#ifdef __cplusplus' >>confdefs.h
2294 echo $ac_declaration >>confdefs.h
2295 echo '#endif' >>confdefs.h
2296fi
2297
2298else
2299 echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
2301
2302fi
2303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2304ac_ext=c
2305ac_cpp='$CPP $CPPFLAGS'
2306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309
2310
2311cat >>confdefs.h <<\_ACEOF
2312#define _GNU_SOURCE 1
2313_ACEOF
2314
2315
2316
2317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2323echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2324# On Suns, sometimes $CPP names a directory.
2325if test -n "$CPP" && test -d "$CPP"; then
2326 CPP=
2327fi
2328if test -z "$CPP"; then
2329 if test "${ac_cv_prog_CPP+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 # Double quotes because CPP needs to be expanded
2333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2334 do
2335 ac_preproc_ok=false
2336for ac_c_preproc_warn_flag in '' yes
2337do
2338 # Use a header file that comes with gcc, so configuring glibc
2339 # with a fresh cross-compiler works.
2340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2341 # <limits.h> exists even on freestanding compilers.
2342 # On the NeXT, cc -E runs the code through the compiler's parser,
2343 # not just through cpp. "Syntax error" is here to catch this case.
2344 cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
2350#ifdef __STDC__
2351# include <limits.h>
2352#else
2353# include <assert.h>
2354#endif
2355 Syntax error
2356_ACEOF
2357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359 ac_status=$?
2360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } >/dev/null; then
2365 if test -s conftest.err; then
2366 ac_cpp_err=$ac_c_preproc_warn_flag
2367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2368 else
2369 ac_cpp_err=
2370 fi
2371else
2372 ac_cpp_err=yes
2373fi
2374if test -z "$ac_cpp_err"; then
2375 :
2376else
2377 echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 # Broken: fails on valid input.
2381continue
2382fi
2383rm -f conftest.err conftest.$ac_ext
2384
2385 # OK, works on sane cases. Now check whether non-existent headers
2386 # can be detected and how.
2387 cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h. */
2393#include <ac_nonexistent.h>
2394_ACEOF
2395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } >/dev/null; then
2403 if test -s conftest.err; then
2404 ac_cpp_err=$ac_c_preproc_warn_flag
2405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2406 else
2407 ac_cpp_err=
2408 fi
2409else
2410 ac_cpp_err=yes
2411fi
2412if test -z "$ac_cpp_err"; then
2413 # Broken: success on invalid input.
2414continue
2415else
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 # Passes both tests.
2420ac_preproc_ok=:
2421break
2422fi
2423rm -f conftest.err conftest.$ac_ext
2424
2425done
2426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2427rm -f conftest.err conftest.$ac_ext
2428if $ac_preproc_ok; then
2429 break
2430fi
2431
2432 done
2433 ac_cv_prog_CPP=$CPP
2434
2435fi
2436 CPP=$ac_cv_prog_CPP
2437else
2438 ac_cv_prog_CPP=$CPP
2439fi
2440echo "$as_me:$LINENO: result: $CPP" >&5
2441echo "${ECHO_T}$CPP" >&6
2442ac_preproc_ok=false
2443for ac_c_preproc_warn_flag in '' yes
2444do
2445 # Use a header file that comes with gcc, so configuring glibc
2446 # with a fresh cross-compiler works.
2447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2448 # <limits.h> exists even on freestanding compilers.
2449 # On the NeXT, cc -E runs the code through the compiler's parser,
2450 # not just through cpp. "Syntax error" is here to catch this case.
2451 cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h. */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h. */
2457#ifdef __STDC__
2458# include <limits.h>
2459#else
2460# include <assert.h>
2461#endif
2462 Syntax error
2463_ACEOF
2464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 else
2476 ac_cpp_err=
2477 fi
2478else
2479 ac_cpp_err=yes
2480fi
2481if test -z "$ac_cpp_err"; then
2482 :
2483else
2484 echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 # Broken: fails on valid input.
2488continue
2489fi
2490rm -f conftest.err conftest.$ac_ext
2491
2492 # OK, works on sane cases. Now check whether non-existent headers
2493 # can be detected and how.
2494 cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h. */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h. */
2500#include <ac_nonexistent.h>
2501_ACEOF
2502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } >/dev/null; then
2510 if test -s conftest.err; then
2511 ac_cpp_err=$ac_c_preproc_warn_flag
2512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2513 else
2514 ac_cpp_err=
2515 fi
2516else
2517 ac_cpp_err=yes
2518fi
2519if test -z "$ac_cpp_err"; then
2520 # Broken: success on invalid input.
2521continue
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 # Passes both tests.
2527ac_preproc_ok=:
2528break
2529fi
2530rm -f conftest.err conftest.$ac_ext
2531
2532done
2533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2534rm -f conftest.err conftest.$ac_ext
2535if $ac_preproc_ok; then
2536 :
2537else
2538 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2539See \`config.log' for more details." >&5
2540echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2541See \`config.log' for more details." >&2;}
2542 { (exit 1); exit 1; }; }
2543fi
2544
2545ac_ext=c
2546ac_cpp='$CPP $CPPFLAGS'
2547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550
2551
2552echo "$as_me:$LINENO: checking for egrep" >&5
2553echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2554if test "${ac_cv_prog_egrep+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2558 then ac_cv_prog_egrep='grep -E'
2559 else ac_cv_prog_egrep='egrep'
2560 fi
2561fi
2562echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2563echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2564 EGREP=$ac_cv_prog_egrep
2565
2566
2567
2568echo "$as_me:$LINENO: checking for AIX" >&5
2569echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2570cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */
2576#ifdef _AIX
2577 yes
2578#endif
2579
2580_ACEOF
2581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2582 $EGREP "yes" >/dev/null 2>&1; then
2583 echo "$as_me:$LINENO: result: yes" >&5
2584echo "${ECHO_T}yes" >&6
2585cat >>confdefs.h <<\_ACEOF
2586#define _ALL_SOURCE 1
2587_ACEOF
2588
2589else
2590 echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6
2592fi
2593rm -f conftest*
2594
2595
2596echo "$as_me:$LINENO: checking for library containing strerror" >&5
2597echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2598if test "${ac_cv_search_strerror+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601 ac_func_search_save_LIBS=$LIBS
2602ac_cv_search_strerror=no
2603cat >conftest.$ac_ext <<_ACEOF
2604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
2609
2610/* Override any gcc2 internal prototype to avoid an error. */
2611#ifdef __cplusplus
2612extern "C"
2613#endif
2614/* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616char strerror ();
2617int
2618main ()
2619{
2620strerror ();
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext conftest$ac_exeext
2626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627 (eval $ac_link) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest$ac_exeext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_search_strerror="none required"
2648else
2649 echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652fi
2653rm -f conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2655if test "$ac_cv_search_strerror" = no; then
2656 for ac_lib in cposix; do
2657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2658 cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h. */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h. */
2664
2665/* Override any gcc2 internal prototype to avoid an error. */
2666#ifdef __cplusplus
2667extern "C"
2668#endif
2669/* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2671char strerror ();
2672int
2673main ()
2674{
2675strerror ();
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext conftest$ac_exeext
2681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2682 (eval $ac_link) 2>conftest.er1
2683 ac_status=$?
2684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest$ac_exeext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 ac_cv_search_strerror="-l$ac_lib"
2703break
2704else
2705 echo "$as_me: failed program was:" >&5
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
2708fi
2709rm -f conftest.err conftest.$ac_objext \
2710 conftest$ac_exeext conftest.$ac_ext
2711 done
2712fi
2713LIBS=$ac_func_search_save_LIBS
2714fi
2715echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2716echo "${ECHO_T}$ac_cv_search_strerror" >&6
2717if test "$ac_cv_search_strerror" != no; then
2718 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2719
2720fi
2721
2722if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2724set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2725echo "$as_me:$LINENO: checking for $ac_word" >&5
2726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727if test "${ac_cv_prog_RANLIB+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 if test -n "$RANLIB"; then
2731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744done
2745done
2746
2747fi
2748fi
2749RANLIB=$ac_cv_prog_RANLIB
2750if test -n "$RANLIB"; then
2751 echo "$as_me:$LINENO: result: $RANLIB" >&5
2752echo "${ECHO_T}$RANLIB" >&6
2753else
2754 echo "$as_me:$LINENO: result: no" >&5
2755echo "${ECHO_T}no" >&6
2756fi
2757
2758fi
2759if test -z "$ac_cv_prog_RANLIB"; then
2760 ac_ct_RANLIB=$RANLIB
2761 # Extract the first word of "ranlib", so it can be a program name with args.
2762set dummy ranlib; ac_word=$2
2763echo "$as_me:$LINENO: checking for $ac_word" >&5
2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
2768 if test -n "$ac_ct_RANLIB"; then
2769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_RANLIB="ranlib"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782done
2783done
2784
2785 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2786fi
2787fi
2788ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2789if test -n "$ac_ct_RANLIB"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2791echo "${ECHO_T}$ac_ct_RANLIB" >&6
2792else
2793 echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6
2795fi
2796
2797 RANLIB=$ac_ct_RANLIB
2798else
2799 RANLIB="$ac_cv_prog_RANLIB"
2800fi
2801
2802echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2804if test "${ac_cv_header_stdc+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
2807 cat >conftest.$ac_ext <<_ACEOF
2808/* confdefs.h. */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
2812/* end confdefs.h. */
2813#include <stdlib.h>
2814#include <stdarg.h>
2815#include <string.h>
2816#include <float.h>
2817
2818int
2819main ()
2820{
2821
2822 ;
2823 return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext
2827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 ac_cv_header_stdc=yes
2849else
2850 echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853ac_cv_header_stdc=no
2854fi
2855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856
2857if test $ac_cv_header_stdc = yes; then
2858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2859 cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h. */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h. */
2865#include <string.h>
2866
2867_ACEOF
2868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2869 $EGREP "memchr" >/dev/null 2>&1; then
2870 :
2871else
2872 ac_cv_header_stdc=no
2873fi
2874rm -f conftest*
2875
2876fi
2877
2878if test $ac_cv_header_stdc = yes; then
2879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2880 cat >conftest.$ac_ext <<_ACEOF
2881/* confdefs.h. */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h. */
2886#include <stdlib.h>
2887
2888_ACEOF
2889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2890 $EGREP "free" >/dev/null 2>&1; then
2891 :
2892else
2893 ac_cv_header_stdc=no
2894fi
2895rm -f conftest*
2896
2897fi
2898
2899if test $ac_cv_header_stdc = yes; then
2900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2901 if test "$cross_compiling" = yes; then
2902 :
2903else
2904 cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910#include <ctype.h>
2911#if ((' ' & 0x0FF) == 0x020)
2912# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2913# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2914#else
2915# define ISLOWER(c) \
2916 (('a' <= (c) && (c) <= 'i') \
2917 || ('j' <= (c) && (c) <= 'r') \
2918 || ('s' <= (c) && (c) <= 'z'))
2919# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2920#endif
2921
2922#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2923int
2924main ()
2925{
2926 int i;
2927 for (i = 0; i < 256; i++)
2928 if (XOR (islower (i), ISLOWER (i))
2929 || toupper (i) != TOUPPER (i))
2930 exit(2);
2931 exit (0);
2932}
2933_ACEOF
2934rm -f conftest$ac_exeext
2935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936 (eval $ac_link) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 :
2946else
2947 echo "$as_me: program exited with status $ac_status" >&5
2948echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951( exit $ac_status )
2952ac_cv_header_stdc=no
2953fi
2954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2955fi
2956fi
2957fi
2958echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2959echo "${ECHO_T}$ac_cv_header_stdc" >&6
2960if test $ac_cv_header_stdc = yes; then
2961
2962cat >>confdefs.h <<\_ACEOF
2963#define STDC_HEADERS 1
2964_ACEOF
2965
2966fi
2967
2968# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2979 inttypes.h stdint.h unistd.h
2980do
2981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2982echo "$as_me:$LINENO: checking for $ac_header" >&5
2983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2984if eval "test \"\${$as_ac_Header+set}\" = set"; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987 cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993$ac_includes_default
2994
2995#include <$ac_header>
2996_ACEOF
2997rm -f conftest.$ac_objext
2998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 eval "$as_ac_Header=yes"
3020else
3021 echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024eval "$as_ac_Header=no"
3025fi
3026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027fi
3028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3030if test `eval echo '${'$as_ac_Header'}'` = yes; then
3031 cat >>confdefs.h <<_ACEOF
3032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3033_ACEOF
3034
3035fi
3036
3037done
3038
3039
3040
3041 if test "${ac_cv_header_minix_config_h+set}" = set; then
3042 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3043echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3044if test "${ac_cv_header_minix_config_h+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046fi
3047echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3048echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3049else
3050 # Is the header compilable?
3051echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3052echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3053cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059$ac_includes_default
3060#include <minix/config.h>
3061_ACEOF
3062rm -f conftest.$ac_objext
3063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag"
3072 || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 ac_header_compiler=yes
3085else
3086 echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089ac_header_compiler=no
3090fi
3091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3093echo "${ECHO_T}$ac_header_compiler" >&6
3094
3095# Is the header present?
3096echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3097echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3098cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104#include <minix/config.h>
3105_ACEOF
3106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } >/dev/null; then
3114 if test -s conftest.err; then
3115 ac_cpp_err=$ac_c_preproc_warn_flag
3116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117 else
3118 ac_cpp_err=
3119 fi
3120else
3121 ac_cpp_err=yes
3122fi
3123if test -z "$ac_cpp_err"; then
3124 ac_header_preproc=yes
3125else
3126 echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_header_preproc=no
3130fi
3131rm -f conftest.err conftest.$ac_ext
3132echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3133echo "${ECHO_T}$ac_header_preproc" >&6
3134
3135# So? What about this header?
3136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3137 yes:no: )
3138 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3139echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3140 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3141echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3142 ac_header_preproc=yes
3143 ;;
3144 no:yes:* )
3145 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3146echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3147 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3148echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3149 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3150echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3151 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3152echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3153 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3154echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3155 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3156echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3157 (
3158 cat <<\_ASBOX
3159## ------------------------------------------ ##
3160## Report this to the AC_PACKAGE_NAME lists. ##
3161## ------------------------------------------ ##
3162_ASBOX
3163 ) |
3164 sed "s/^/$as_me: WARNING: /" >&2
3165 ;;
3166esac
3167echo "$as_me:$LINENO: checking for minix/config.h" >&5
3168echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3169if test "${ac_cv_header_minix_config_h+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 ac_cv_header_minix_config_h=$ac_header_preproc
3173fi
3174echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3175echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3176
3177fi
3178if test $ac_cv_header_minix_config_h = yes; then
3179 MINIX=yes
3180else
3181 MINIX=
3182fi
3183
3184
3185 if test "$MINIX" = yes; then
3186
3187cat >>confdefs.h <<\_ACEOF
3188#define _POSIX_SOURCE 1
3189_ACEOF
3190
3191
3192cat >>confdefs.h <<\_ACEOF
3193#define _POSIX_1_SOURCE 2
3194_ACEOF
3195
3196
3197cat >>confdefs.h <<\_ACEOF
3198#define _MINIX 1
3199_ACEOF
3200
3201 fi
3202
3203
3204
3205 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3206echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3207if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217# define __EXTENSIONS__ 1
3218 $ac_includes_default
3219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227rm -f conftest.$ac_objext
3228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_safe_to_define___extensions__=yes
3250else
3251 echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254ac_cv_safe_to_define___extensions__=no
3255fi
3256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257fi
3258echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3259echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3260 test $ac_cv_safe_to_define___extensions__ = yes &&
3261 cat >>confdefs.h <<\_ACEOF
3262#define __EXTENSIONS__ 1
3263_ACEOF
3264
3265 cat >>confdefs.h <<\_ACEOF
3266#define _ALL_SOURCE 1
3267_ACEOF
3268
3269 cat >>confdefs.h <<\_ACEOF
3270#define _GNU_SOURCE 1
3271_ACEOF
3272
3273 cat >>confdefs.h <<\_ACEOF
3274#define _POSIX_PTHREAD_SEMANTICS 1
3275_ACEOF
3276
3277 cat >>confdefs.h <<\_ACEOF
3278#define _TANDEM_SOURCE 1
3279_ACEOF
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3291echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3292if test "${am_cv_prog_cc_stdc+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295 am_cv_prog_cc_stdc=no
3296ac_save_CC="$CC"
3297# Don't try gcc -ansi; that turns off useful extensions and
3298# breaks some systems' header files.
3299# AIX -qlanglvl=ansi
3300# Ultrix and OSF/1 -std1
3301# HP-UX 10.20 and later -Ae
3302# HP-UX older versions -Aa -D_HPUX_SOURCE
3303# SVR4 -Xc -D__EXTENSIONS__
3304for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3305do
3306 CC="$ac_save_CC $ac_arg"
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313#include <stdarg.h>
3314#include <stdio.h>
3315#include <sys/types.h>
3316#include <sys/stat.h>
3317/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318struct buf { int x; };
3319FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320static char *e (p, i)
3321 char **p;
3322 int i;
3323{
3324 return p[i];
3325}
3326static char *f (char * (*g) (char **, int), char **p, ...)
3327{
3328 char *s;
3329 va_list v;
3330 va_start (v,p);
3331 s = g (p, va_arg (v,int));
3332 va_end (v);
3333 return s;
3334}
3335int test (int i, double x);
3336struct s1 {int (*f) (int a);};
3337struct s2 {int (*f) (double a);};
3338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339int argc;
3340char **argv;
3341
3342int
3343main ()
3344{
3345
3346return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3347
3348 ;
3349 return 0;
3350}
3351_ACEOF
3352rm -f conftest.$ac_objext
3353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>conftest.er1
3355 ac_status=$?
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try='test -z "$ac_c_werror_flag"
3362 || test ! -s conftest.err'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest.$ac_objext'
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 am_cv_prog_cc_stdc="$ac_arg"; break
3375else
3376 echo "$as_me: failed program was:" >&5
3377sed 's/^/| /' conftest.$ac_ext >&5
3378
3379fi
3380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381done
3382CC="$ac_save_CC"
3383
3384fi
3385
3386if test -z "$am_cv_prog_cc_stdc"; then
3387 echo "$as_me:$LINENO: result: none needed" >&5
3388echo "${ECHO_T}none needed" >&6
3389else
3390 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3391echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3392fi
3393case "x$am_cv_prog_cc_stdc" in
3394 x|xno) ;;
3395 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3396esac
3397
3398
3399ac_aux_dir=
3400for ac_dir in .. $srcdir/..; do
3401 if test -f $ac_dir/install-sh; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/install-sh -c"
3404 break
3405 elif test -f $ac_dir/install.sh; then
3406 ac_aux_dir=$ac_dir
3407 ac_install_sh="$ac_aux_dir/install.sh -c"
3408 break
3409 elif test -f $ac_dir/shtool; then
3410 ac_aux_dir=$ac_dir
3411 ac_install_sh="$ac_aux_dir/shtool install -c"
3412 break
3413 fi
3414done
3415if test -z "$ac_aux_dir"; then
3416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3417echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3418 { (exit 1); exit 1; }; }
3419fi
3420ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3421ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3422ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3423
3424# Make sure we can run config.sub.
3425$ac_config_sub sun4 >/dev/null 2>&1 ||
3426 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3427echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3428 { (exit 1); exit 1; }; }
3429
3430echo "$as_me:$LINENO: checking build system type" >&5
3431echo $ECHO_N "checking build system type... $ECHO_C" >&6
3432if test "${ac_cv_build+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434else
3435 ac_cv_build_alias=$build_alias
3436test -z "$ac_cv_build_alias" &&
3437 ac_cv_build_alias=`$ac_config_guess`
3438test -z "$ac_cv_build_alias" &&
3439 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3440echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3441 { (exit 1); exit 1; }; }
3442ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3444echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3445 { (exit 1); exit 1; }; }
3446
3447fi
3448echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3449echo "${ECHO_T}$ac_cv_build" >&6
3450build=$ac_cv_build
3451build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3452build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3453build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3454
3455
3456echo "$as_me:$LINENO: checking host system type" >&5
3457echo $ECHO_N "checking host system type... $ECHO_C" >&6
3458if test "${ac_cv_host+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461 ac_cv_host_alias=$host_alias
3462test -z "$ac_cv_host_alias" &&
3463 ac_cv_host_alias=$ac_cv_build_alias
3464ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3465 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3466echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3467 { (exit 1); exit 1; }; }
3468
3469fi
3470echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3471echo "${ECHO_T}$ac_cv_host" >&6
3472host=$ac_cv_host
3473host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3474host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3475host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3476
3477
3478echo "$as_me:$LINENO: checking target system type" >&5
3479echo $ECHO_N "checking target system type... $ECHO_C" >&6
3480if test "${ac_cv_target+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483 ac_cv_target_alias=$target_alias
3484test "x$ac_cv_target_alias" = "x" &&
3485 ac_cv_target_alias=$ac_cv_host_alias
3486ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3487 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3488echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3489 { (exit 1); exit 1; }; }
3490
3491fi
3492echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3493echo "${ECHO_T}$ac_cv_target" >&6
3494target=$ac_cv_target
3495target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3496target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3497target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3498
3499
3500# The aliases save the names the user supplied, while $host etc.
3501# will get canonicalized.
3502test -n "$target_alias" &&
3503 test "$program_prefix$program_suffix$program_transform_name" = \
3504 NONENONEs,x,x, &&
3505 program_prefix=${target_alias}-
3506
3507
3508CONFIG_OBS=
3509CONFIG_DEPS=
3510CONFIG_SRCS=
3511ENABLE_CFLAGS=
3512
3513CONFIG_ALL=
3514CONFIG_CLEAN=
3515CONFIG_INSTALL=
3516CONFIG_UNINSTALL=
3517
3518# If we haven't got the data from the intl directory,
3519# assume NLS is disabled.
3520USE_NLS=no
3521LIBINTL=
3522LIBINTL_DEP=
3523INCINTL=
3524XGETTEXT=
3525GMSGFMT=
3526POSUB=
3527
3528if test -f ../intl/config.intl; then
3529 . ../intl/config.intl
3530fi
3531echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3532echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3533if test x"$USE_NLS" != xyes; then
3534 echo "$as_me:$LINENO: result: no" >&5
3535echo "${ECHO_T}no" >&6
3536else
3537 echo "$as_me:$LINENO: result: yes" >&5
3538echo "${ECHO_T}yes" >&6
3539
3540cat >>confdefs.h <<\_ACEOF
3541#define ENABLE_NLS 1
3542_ACEOF
3543
3544
3545 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3546echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3547 # Look for .po and .gmo files in the source directory.
3548 CATALOGS=
3549 XLINGUAS=
3550 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3551 # If there aren't any .gmo files the shell will give us the
3552 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3553 # weeded out.
3554 case "$cat" in *\**)
3555 continue;;
3556 esac
3557 # The quadruple backslash is collapsed to a double backslash
3558 # by the backticks, then collapsed again by the double quotes,
3559 # leaving us with one backslash in the sed expression (right
3560 # before the dot that mustn't act as a wildcard).
3561 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3562 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3563 # The user is allowed to set LINGUAS to a list of languages to
3564 # install catalogs for. If it's empty that means "all of them."
3565 if test "x$LINGUAS" = x; then
3566 CATALOGS="$CATALOGS $cat"
3567 XLINGUAS="$XLINGUAS $lang"
3568 else
3569 case "$LINGUAS" in *$lang*)
3570 CATALOGS="$CATALOGS $cat"
3571 XLINGUAS="$XLINGUAS $lang"
3572 ;;
3573 esac
3574 fi
3575 done
3576 LINGUAS="$XLINGUAS"
3577 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3578echo "${ECHO_T}$LINGUAS" >&6
3579
3580
3581 DATADIRNAME=share
3582
3583 INSTOBJEXT=.mo
3584
3585 GENCAT=gencat
3586
3587 CATOBJEXT=.gmo
3588
3589fi
3590
3591localedir='${datadir}/locale'
3592
3593
3594if test x"$USE_NLS" = xyes; then
3595 CONFIG_ALL="$CONFIG_ALL all-po"
3596 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3597 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3598 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3599fi
3600
3601
3602 GNULIB_MEMMEM=0;
3603 GNULIB_MEMPCPY=0;
3604 GNULIB_MEMRCHR=0;
3605 GNULIB_STPCPY=0;
3606 GNULIB_STPNCPY=0;
3607 GNULIB_STRCHRNUL=0;
3608 GNULIB_STRDUP=0;
3609 GNULIB_STRNDUP=0;
3610 GNULIB_STRNLEN=0;
3611 GNULIB_STRPBRK=0;
3612 GNULIB_STRSEP=0;
3613 GNULIB_STRSTR=0;
3614 GNULIB_STRCASESTR=0;
3615 GNULIB_STRTOK_R=0;
3616 GNULIB_MBSLEN=0;
3617 GNULIB_MBSNLEN=0;
3618 GNULIB_MBSCHR=0;
3619 GNULIB_MBSRCHR=0;
3620 GNULIB_MBSSTR=0;
3621 GNULIB_MBSCASECMP=0;
3622 GNULIB_MBSNCASECMP=0;
3623 GNULIB_MBSPCASECMP=0;
3624 GNULIB_MBSCASESTR=0;
3625 GNULIB_MBSCSPN=0;
3626 GNULIB_MBSPBRK=0;
3627 GNULIB_MBSSPN=0;
3628 GNULIB_MBSSEP=0;
3629 GNULIB_MBSTOK_R=0;
3630 GNULIB_STRERROR=0;
3631 GNULIB_STRSIGNAL=0;
3632 HAVE_DECL_MEMMEM=1;
3633 HAVE_MEMPCPY=1;
3634 HAVE_DECL_MEMRCHR=1;
3635 HAVE_STPCPY=1;
3636 HAVE_STPNCPY=1;
3637 HAVE_STRCHRNUL=1;
3638 HAVE_DECL_STRDUP=1;
3639 HAVE_STRNDUP=1;
3640 HAVE_DECL_STRNDUP=1;
3641 HAVE_DECL_STRNLEN=1;
3642 HAVE_STRPBRK=1;
3643 HAVE_STRSEP=1;
3644 HAVE_STRCASESTR=1;
3645 HAVE_DECL_STRTOK_R=1;
3646 HAVE_DECL_STRERROR=1;
3647 HAVE_DECL_STRSIGNAL=1;
3648 REPLACE_STRERROR=0;
3649 REPLACE_STRSIGNAL=0;
3650 REPLACE_MEMMEM=0;
3651 REPLACE_STRCASESTR=0;
3652 REPLACE_STRSTR=0;
3653
3654
3655 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3656echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3657if test "${ac_cv_have_decl_memmem+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
3660 cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h. */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h. */
3666$ac_includes_default
3667int
3668main ()
3669{
3670#ifndef memmem
3671 char *p = (char *) memmem;
3672#endif
3673
3674 ;
3675 return 0;
3676}
3677_ACEOF
3678rm -f conftest.$ac_objext
3679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -z "$ac_c_werror_flag"
3688 || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_cv_have_decl_memmem=yes
3701else
3702 echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705ac_cv_have_decl_memmem=no
3706fi
3707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708fi
3709echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3710echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3711if test $ac_cv_have_decl_memmem = yes; then
3712
3713cat >>confdefs.h <<_ACEOF
3714#define HAVE_DECL_MEMMEM 1
3715_ACEOF
3716
3717
3718else
3719 cat >>confdefs.h <<_ACEOF
3720#define HAVE_DECL_MEMMEM 0
3721_ACEOF
3722
3723
3724fi
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740for ac_func in memmem
3741do
3742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3743echo "$as_me:$LINENO: checking for $ac_func" >&5
3744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3745if eval "test \"\${$as_ac_var+set}\" = set"; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748 cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h. */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h. */
3754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3756#define $ac_func innocuous_$ac_func
3757
3758/* System header to define __stub macros and hopefully few prototypes,
3759 which can conflict with char $ac_func (); below.
3760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3761 <limits.h> exists even on freestanding compilers. */
3762
3763#ifdef __STDC__
3764# include <limits.h>
3765#else
3766# include <assert.h>
3767#endif
3768
3769#undef $ac_func
3770
3771/* Override any gcc2 internal prototype to avoid an error. */
3772#ifdef __cplusplus
3773extern "C"
3774{
3775#endif
3776/* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3778char $ac_func ();
3779/* The GNU C library defines this for functions which it implements
3780 to always fail with ENOSYS. Some functions are actually named
3781 something starting with __ and the normal name is an alias. */
3782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3783choke me
3784#else
3785char (*f) () = $ac_func;
3786#endif
3787#ifdef __cplusplus
3788}
3789#endif
3790
3791int
3792main ()
3793{
3794return f != $ac_func;
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest$ac_exeext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 eval "$as_ac_var=yes"
3822else
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826eval "$as_ac_var=no"
3827fi
3828rm -f conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
3830fi
3831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3833if test `eval echo '${'$as_ac_var'}'` = yes; then
3834 cat >>confdefs.h <<_ACEOF
3835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3836_ACEOF
3837
3838else
3839
3840 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3841
3842fi
3843done
3844
3845
3846
3847 :
3848
3849
3850
3851
3852
3853 if test $ac_cv_have_decl_memmem = no; then
3854 HAVE_DECL_MEMMEM=0
3855 fi
3856 :
3857
3858
3859 echo "$as_me:$LINENO: checking for long long int" >&5
3860echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3861if test "${ac_cv_type_long_long_int+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 cat >conftest.$ac_ext <<_ACEOF
3865
3866 /* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
3870/* end confdefs.h. */
3871/* For now, do not test the preprocessor; as of 2007 there are too many
3872 implementations with broken preprocessors. Perhaps this can
3873 be revisited in 2012. In the meantime, code should not expect
3874 #if to work with literals wider than 32 bits. */
3875 /* Test literals. */
3876 long long int ll = 9223372036854775807ll;
3877 long long int nll = -9223372036854775807LL;
3878 unsigned long long int ull = 18446744073709551615ULL;
3879 /* Test constant expressions. */
3880 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3881 ? 1 : -1)];
3882 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3883 ? 1 : -1)];
3884 int i = 63;
3885int
3886main ()
3887{
3888/* Test availability of runtime routines for shift and division. */
3889 long long int llmax = 9223372036854775807ll;
3890 unsigned long long int ullmax = 18446744073709551615ull;
3891 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3892 | (llmax / ll) | (llmax % ll)
3893 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3894 | (ullmax / ull) | (ullmax % ull));
3895 ;
3896 return 0;
3897}
3898
3899_ACEOF
3900rm -f conftest.$ac_objext conftest$ac_exeext
3901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag"
3910 || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try='test -s conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 if test "$cross_compiling" = yes; then
3923 ac_cv_type_long_long_int=yes
3924else
3925 cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h. */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h. */
3931#include <limits.h>
3932 #ifndef LLONG_MAX
3933 # define HALF \
3934 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3935 # define LLONG_MAX (HALF - 1 + HALF)
3936 #endif
3937int
3938main ()
3939{
3940long long int n = 1;
3941 int i;
3942 for (i = 0; ; i++)
3943 {
3944 long long int m = n << i;
3945 if (m >> i != n)
3946 return 1;
3947 if (LLONG_MAX / 2 < m)
3948 break;
3949 }
3950 return 0;
3951 ;
3952 return 0;
3953}
3954_ACEOF
3955rm -f conftest$ac_exeext
3956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_type_long_long_int=yes
3967else
3968 echo "$as_me: program exited with status $ac_status" >&5
3969echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972( exit $ac_status )
3973ac_cv_type_long_long_int=no
3974fi
3975rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3976fi
3977else
3978 echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981ac_cv_type_long_long_int=no
3982fi
3983rm -f conftest.err conftest.$ac_objext \
3984 conftest$ac_exeext conftest.$ac_ext
3985fi
3986echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
3987echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
3988 if test $ac_cv_type_long_long_int = yes; then
3989
3990cat >>confdefs.h <<\_ACEOF
3991#define HAVE_LONG_LONG_INT 1
3992_ACEOF
3993
3994 fi
3995
3996
3997 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
3998echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
3999if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 cat >conftest.$ac_ext <<_ACEOF
4003
4004 /* confdefs.h. */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h. */
4009/* For now, do not test the preprocessor; as of 2007 there are too many
4010 implementations with broken preprocessors. Perhaps this can
4011 be revisited in 2012. In the meantime, code should not expect
4012 #if to work with literals wider than 32 bits. */
4013 /* Test literals. */
4014 long long int ll = 9223372036854775807ll;
4015 long long int nll = -9223372036854775807LL;
4016 unsigned long long int ull = 18446744073709551615ULL;
4017 /* Test constant expressions. */
4018 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4019 ? 1 : -1)];
4020 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4021 ? 1 : -1)];
4022 int i = 63;
4023int
4024main ()
4025{
4026/* Test availability of runtime routines for shift and division. */
4027 long long int llmax = 9223372036854775807ll;
4028 unsigned long long int ullmax = 18446744073709551615ull;
4029 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4030 | (llmax / ll) | (llmax % ll)
4031 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4032 | (ullmax / ull) | (ullmax % ull));
4033 ;
4034 return 0;
4035}
4036
4037_ACEOF
4038rm -f conftest.$ac_objext conftest$ac_exeext
4039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4040 (eval $ac_link) 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try='test -s conftest$ac_exeext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 ac_cv_type_unsigned_long_long_int=yes
4061else
4062 echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065ac_cv_type_unsigned_long_long_int=no
4066fi
4067rm -f conftest.err conftest.$ac_objext \
4068 conftest$ac_exeext conftest.$ac_ext
4069fi
4070echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4071echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4072 if test $ac_cv_type_unsigned_long_long_int = yes; then
4073
4074cat >>confdefs.h <<\_ACEOF
4075#define HAVE_UNSIGNED_LONG_LONG_INT 1
4076_ACEOF
4077
4078 fi
4079
4080
4081
4082 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4083echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4084if test "${gl_cv_have_include_next+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087 rm -rf conftestd1 conftestd2
4088 mkdir conftestd1 conftestd2
4089 cat <<EOF > conftestd1/conftest.h
4090#define DEFINED_IN_CONFTESTD1
4091#include_next <conftest.h>
4092#ifdef DEFINED_IN_CONFTESTD2
4093int foo;
4094#else
4095#error "include_next doesn't work"
4096#endif
4097EOF
4098 cat <<EOF > conftestd2/conftest.h
4099#ifndef DEFINED_IN_CONFTESTD1
4100#error "include_next test doesn't work"
4101#endif
4102#define DEFINED_IN_CONFTESTD2
4103EOF
4104 save_CPPFLAGS="$CPPFLAGS"
4105 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4106 cat >conftest.$ac_ext <<_ACEOF
4107#include <conftest.h>
4108_ACEOF
4109rm -f conftest.$ac_objext
4110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag"
4119 || test ! -s conftest.err'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 gl_cv_have_include_next=yes
4132else
4133 echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136gl_cv_have_include_next=no
4137fi
4138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4139 CPPFLAGS="$save_CPPFLAGS"
4140 rm -rf conftestd1 conftestd2
4141
4142fi
4143echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4144echo "${ECHO_T}$gl_cv_have_include_next" >&6
4145 if test $gl_cv_have_include_next = yes; then
4146
4147
4148cat >>confdefs.h <<\_ACEOF
4149#define HAVE_INCLUDE_NEXT 1
4150_ACEOF
4151
4152
4153 INCLUDE_NEXT=include_next
4154 else
4155 INCLUDE_NEXT=include
4156 fi
4157
4158
4159
4160
4161
4162
4163
4164for ac_header in $gl_header_list
4165do
4166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4167if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168 echo "$as_me:$LINENO: checking for $ac_header" >&5
4169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4170if eval "test \"\${$as_ac_Header+set}\" = set"; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172fi
4173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4175else
4176 # Is the header compilable?
4177echo "$as_me:$LINENO: checking $ac_header usability" >&5
4178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4179cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h. */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h. */
4185$ac_includes_default
4186#include <$ac_header>
4187_ACEOF
4188rm -f conftest.$ac_objext
4189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag"
4198 || test ! -s conftest.err'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_header_compiler=yes
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215ac_header_compiler=no
4216fi
4217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4219echo "${ECHO_T}$ac_header_compiler" >&6
4220
4221# Is the header present?
4222echo "$as_me:$LINENO: checking $ac_header presence" >&5
4223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4224cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h. */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h. */
4230#include <$ac_header>
4231_ACEOF
4232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } >/dev/null; then
4240 if test -s conftest.err; then
4241 ac_cpp_err=$ac_c_preproc_warn_flag
4242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4243 else
4244 ac_cpp_err=
4245 fi
4246else
4247 ac_cpp_err=yes
4248fi
4249if test -z "$ac_cpp_err"; then
4250 ac_header_preproc=yes
4251else
4252 echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 ac_header_preproc=no
4256fi
4257rm -f conftest.err conftest.$ac_ext
4258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4259echo "${ECHO_T}$ac_header_preproc" >&6
4260
4261# So? What about this header?
4262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4263 yes:no: )
4264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4268 ac_header_preproc=yes
4269 ;;
4270 no:yes:* )
4271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4283 (
4284 cat <<\_ASBOX
4285## ------------------------------------------ ##
4286## Report this to the AC_PACKAGE_NAME lists. ##
4287## ------------------------------------------ ##
4288_ASBOX
4289 ) |
4290 sed "s/^/$as_me: WARNING: /" >&2
4291 ;;
4292esac
4293echo "$as_me:$LINENO: checking for $ac_header" >&5
4294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4295if eval "test \"\${$as_ac_Header+set}\" = set"; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 eval "$as_ac_Header=\$ac_header_preproc"
4299fi
4300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4302
4303fi
4304if test `eval echo '${'$as_ac_Header'}'` = yes; then
4305 cat >>confdefs.h <<_ACEOF
4306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307_ACEOF
4308
4309fi
4310
4311done
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4325echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4326if test "${ac_cv_c_restrict+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329 ac_cv_c_restrict=no
4330 # The order here caters to the fact that C++ does not require restrict.
4331 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
4338typedef int * int_ptr;
4339 int foo (int_ptr $ac_kw ip) {
4340 return ip[0];
4341 }
4342int
4343main ()
4344{
4345int s[1];
4346 int * $ac_kw t = s;
4347 t[0] = 0;
4348 return foo(t)
4349 ;
4350 return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext
4354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355 (eval $ac_compile) 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -z "$ac_c_werror_flag"
4363 || test ! -s conftest.err'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 ac_cv_c_restrict=$ac_kw
4376else
4377 echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380fi
4381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4382 test "$ac_cv_c_restrict" != no && break
4383 done
4384
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4387echo "${ECHO_T}$ac_cv_c_restrict" >&6
4388
4389
4390 case $ac_cv_c_restrict in
4391 restrict) ;;
4392 no) cat >>confdefs.h <<\_ACEOF
4393#define restrict
4394_ACEOF
4395 ;;
4396 *) cat >>confdefs.h <<_ACEOF
4397#define restrict $ac_cv_c_restrict
4398_ACEOF
4399 ;;
4400 esac
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414 :
4415
4416
4417
4418
4419
4420
4421
4422 if test $gl_cv_have_include_next = yes; then
4423 gl_cv_next_string_h='<'string.h'>'
4424 else
4425 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4426echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4427if test "${gl_cv_next_string_h+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430
4431 if test $ac_cv_header_string_h = yes; then
4432 cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h. */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h. */
4438#include <string.h>
4439
4440_ACEOF
4441 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 sed -n '\#/string.h#{
4443 s#.*"\(.*/string.h\)".*#\1#
4444 s#^/[^/]#//&#
4445 p
4446 q
4447 }'`'"'
4448 else
4449 gl_cv_next_string_h='<'string.h'>'
4450 fi
4451
4452fi
4453echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4454echo "${ECHO_T}$gl_cv_next_string_h" >&6
4455 fi
4456 NEXT_STRING_H=$gl_cv_next_string_h
4457
4458
4459
4460
4461
4462 GNULIB_WCWIDTH=0;
4463 HAVE_DECL_WCWIDTH=1;
4464 REPLACE_WCWIDTH=0;
4465 WCHAR_H=
4466
4467
4468
4469
4470
4471if false; then
4472 GL_COND_LIBTOOL_TRUE=
4473 GL_COND_LIBTOOL_FALSE='#'
4474else
4475 GL_COND_LIBTOOL_TRUE='#'
4476 GL_COND_LIBTOOL_FALSE=
4477fi
4478
4479 gl_cond_libtool=false
4480 gl_libdeps=
4481 gl_ltlibdeps=
4482
4483
4484
4485 gl_source_base='gnulib'
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495for ac_func in memchr
4496do
4497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4498echo "$as_me:$LINENO: checking for $ac_func" >&5
4499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4500if eval "test \"\${$as_ac_var+set}\" = set"; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 cat >conftest.$ac_ext <<_ACEOF
4504/* confdefs.h. */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h. */
4509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4511#define $ac_func innocuous_$ac_func
4512
4513/* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char $ac_func (); below.
4515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516 <limits.h> exists even on freestanding compilers. */
4517
4518#ifdef __STDC__
4519# include <limits.h>
4520#else
4521# include <assert.h>
4522#endif
4523
4524#undef $ac_func
4525
4526/* Override any gcc2 internal prototype to avoid an error. */
4527#ifdef __cplusplus
4528extern "C"
4529{
4530#endif
4531/* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4533char $ac_func ();
4534/* The GNU C library defines this for functions which it implements
4535 to always fail with ENOSYS. Some functions are actually named
4536 something starting with __ and the normal name is an alias. */
4537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4538choke me
4539#else
4540char (*f) () = $ac_func;
4541#endif
4542#ifdef __cplusplus
4543}
4544#endif
4545
4546int
4547main ()
4548{
4549return f != $ac_func;
4550 ;
4551 return 0;
4552}
4553_ACEOF
4554rm -f conftest.$ac_objext conftest$ac_exeext
4555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4556 (eval $ac_link) 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest$ac_exeext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 eval "$as_ac_var=yes"
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581eval "$as_ac_var=no"
4582fi
4583rm -f conftest.err conftest.$ac_objext \
4584 conftest$ac_exeext conftest.$ac_ext
4585fi
4586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4588if test `eval echo '${'$as_ac_var'}'` = yes; then
4589 cat >>confdefs.h <<_ACEOF
4590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4591_ACEOF
4592
4593else
4594
4595 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4596
4597fi
4598done
4599
4600
4601 if test $ac_cv_func_memchr = no; then
4602
4603
4604for ac_header in bp-sym.h
4605do
4606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4607if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo "$as_me:$LINENO: checking for $ac_header" >&5
4609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4610if eval "test \"\${$as_ac_Header+set}\" = set"; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612fi
4613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4615else
4616 # Is the header compilable?
4617echo "$as_me:$LINENO: checking $ac_header usability" >&5
4618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4619cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
4625$ac_includes_default
4626#include <$ac_header>
4627_ACEOF
4628rm -f conftest.$ac_objext
4629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_c_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_header_compiler=yes
4651else
4652 echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655ac_header_compiler=no
4656fi
4657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4658echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4659echo "${ECHO_T}$ac_header_compiler" >&6
4660
4661# Is the header present?
4662echo "$as_me:$LINENO: checking $ac_header presence" >&5
4663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4664cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h. */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h. */
4670#include <$ac_header>
4671_ACEOF
4672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } >/dev/null; then
4680 if test -s conftest.err; then
4681 ac_cpp_err=$ac_c_preproc_warn_flag
4682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4683 else
4684 ac_cpp_err=
4685 fi
4686else
4687 ac_cpp_err=yes
4688fi
4689if test -z "$ac_cpp_err"; then
4690 ac_header_preproc=yes
4691else
4692 echo "$as_me: failed program was:" >&5
4693sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ac_header_preproc=no
4696fi
4697rm -f conftest.err conftest.$ac_ext
4698echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4699echo "${ECHO_T}$ac_header_preproc" >&6
4700
4701# So? What about this header?
4702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4703 yes:no: )
4704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4708 ac_header_preproc=yes
4709 ;;
4710 no:yes:* )
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4714echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4718echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4723 (
4724 cat <<\_ASBOX
4725## ------------------------------------------ ##
4726## Report this to the AC_PACKAGE_NAME lists. ##
4727## ------------------------------------------ ##
4728_ASBOX
4729 ) |
4730 sed "s/^/$as_me: WARNING: /" >&2
4731 ;;
4732esac
4733echo "$as_me:$LINENO: checking for $ac_header" >&5
4734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4735if eval "test \"\${$as_ac_Header+set}\" = set"; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738 eval "$as_ac_Header=\$ac_header_preproc"
4739fi
4740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742
4743fi
4744if test `eval echo '${'$as_ac_Header'}'` = yes; then
4745 cat >>confdefs.h <<_ACEOF
4746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747_ACEOF
4748
4749fi
4750
4751done
4752
4753
4754 fi
4755
4756
4757 echo "$as_me:$LINENO: checking for working memcmp" >&5
4758echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4759if test "${ac_cv_func_memcmp_working+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761else
4762 if test "$cross_compiling" = yes; then
4763 ac_cv_func_memcmp_working=no
4764else
4765 cat >conftest.$ac_ext <<_ACEOF
4766/* confdefs.h. */
4767_ACEOF
4768cat confdefs.h >>conftest.$ac_ext
4769cat >>conftest.$ac_ext <<_ACEOF
4770/* end confdefs.h. */
4771$ac_includes_default
4772int
4773main ()
4774{
4775
4776 /* Some versions of memcmp are not 8-bit clean. */
4777 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4778 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4779 exit (1);
4780
4781 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4782 or more and with at least one buffer not starting on a 4-byte boundary.
4783 William Lewis provided this test program. */
4784 {
4785 char foo[21];
4786 char bar[21];
4787 int i;
4788 for (i = 0; i < 4; i++)
4789 {
4790 char *a = foo + i;
4791 char *b = bar + i;
4792 strcpy (a, "--------01111111");
4793 strcpy (b, "--------10000000");
4794 if (memcmp (a, b, 16) >= 0)
4795 exit (1);
4796 }
4797 exit (0);
4798 }
4799
4800 ;
4801 return 0;
4802}
4803_ACEOF
4804rm -f conftest$ac_exeext
4805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 ac_cv_func_memcmp_working=yes
4816else
4817 echo "$as_me: program exited with status $ac_status" >&5
4818echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821( exit $ac_status )
4822ac_cv_func_memcmp_working=no
4823fi
4824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4825fi
4826fi
4827echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4828echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4829test $ac_cv_func_memcmp_working = no &&
4830
4831
4832
4833
4834
4835
4836 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4837
4838
4839 if test $ac_cv_func_memcmp_working = no; then
4840
4841cat >>confdefs.h <<\_ACEOF
4842#define memcmp rpl_memcmp
4843_ACEOF
4844
4845 :
4846 fi
4847
4848
4849
4850 if test $ac_cv_have_decl_memmem = yes; then
4851 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4852echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4853if test "${gl_cv_func_memmem_works+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 if test "$cross_compiling" = yes; then
4857 gl_cv_func_memmem_works="guessing no"
4858else
4859 cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h. */
4865
4866#include <string.h> /* for memmem */
4867#include <stdlib.h> /* for malloc */
4868#include <unistd.h> /* for alarm */
4869
4870int
4871main ()
4872{
4873size_t m = 1000000;
4874 char *haystack = (char *) malloc (2 * m + 1);
4875 char *needle = (char *) malloc (m + 1);
4876 void *result = 0;
4877 /* Failure to compile this test due to missing alarm is okay,
4878 since all such platforms (mingw) also lack memmem. */
4879 alarm (5);
4880 /* Check for quadratic performance. */
4881 if (haystack && needle)
4882 {
4883 memset (haystack, 'A', 2 * m);
4884 haystack[2 * m] = 'B';
4885 memset (needle, 'A', m);
4886 needle[m] = 'B';
4887 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4888 }
4889 /* Check for empty needle behavior. */
4890 return !result || !memmem ("a", 1, 0, 0);
4891 ;
4892 return 0;
4893}
4894_ACEOF
4895rm -f conftest$ac_exeext
4896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 gl_cv_func_memmem_works=yes
4907else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912( exit $ac_status )
4913gl_cv_func_memmem_works=no
4914fi
4915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4916fi
4917fi
4918echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4919echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4920 if test "$gl_cv_func_memmem_works" != yes; then
4921 REPLACE_MEMMEM=1
4922
4923
4924
4925
4926
4927
4928
4929 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4930
4931 fi
4932 fi
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946for ac_func in memmem
4947do
4948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4949echo "$as_me:$LINENO: checking for $ac_func" >&5
4950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4951if eval "test \"\${$as_ac_var+set}\" = set"; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4962#define $ac_func innocuous_$ac_func
4963
4964/* System header to define __stub macros and hopefully few prototypes,
4965 which can conflict with char $ac_func (); below.
4966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967 <limits.h> exists even on freestanding compilers. */
4968
4969#ifdef __STDC__
4970# include <limits.h>
4971#else
4972# include <assert.h>
4973#endif
4974
4975#undef $ac_func
4976
4977/* Override any gcc2 internal prototype to avoid an error. */
4978#ifdef __cplusplus
4979extern "C"
4980{
4981#endif
4982/* We use char because int might match the return type of a gcc2
4983 builtin and then its argument prototype would still apply. */
4984char $ac_func ();
4985/* The GNU C library defines this for functions which it implements
4986 to always fail with ENOSYS. Some functions are actually named
4987 something starting with __ and the normal name is an alias. */
4988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4989choke me
4990#else
4991char (*f) () = $ac_func;
4992#endif
4993#ifdef __cplusplus
4994}
4995#endif
4996
4997int
4998main ()
4999{
5000return f != $ac_func;
5001 ;
5002 return 0;
5003}
5004_ACEOF
5005rm -f conftest.$ac_objext conftest$ac_exeext
5006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5007 (eval $ac_link) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -z "$ac_c_werror_flag"
5015 || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 eval "$as_ac_var=yes"
5028else
5029 echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032eval "$as_ac_var=no"
5033fi
5034rm -f conftest.err conftest.$ac_objext \
5035 conftest$ac_exeext conftest.$ac_ext
5036fi
5037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5039if test `eval echo '${'$as_ac_var'}'` = yes; then
5040 cat >>confdefs.h <<_ACEOF
5041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5042_ACEOF
5043
5044else
5045
5046 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5047
5048fi
5049done
5050
5051
5052
5053 :
5054
5055
5056
5057
5058
5059 if test $ac_cv_have_decl_memmem = no; then
5060 HAVE_DECL_MEMMEM=0
5061 fi
5062 :
5063
5064
5065
5066 GNULIB_MEMMEM=1
5067
5068
5069
5070
5071 if test $ac_cv_type_long_long_int = yes; then
5072 HAVE_LONG_LONG_INT=1
5073 else
5074 HAVE_LONG_LONG_INT=0
5075 fi
5076
5077
5078 if test $ac_cv_type_unsigned_long_long_int = yes; then
5079 HAVE_UNSIGNED_LONG_LONG_INT=1
5080 else
5081 HAVE_UNSIGNED_LONG_LONG_INT=0
5082 fi
5083
5084
5085 if test $ac_cv_header_inttypes_h = yes; then
5086 HAVE_INTTYPES_H=1
5087 else
5088 HAVE_INTTYPES_H=0
5089 fi
5090
5091
5092 if test $ac_cv_header_sys_types_h = yes; then
5093 HAVE_SYS_TYPES_H=1
5094 else
5095 HAVE_SYS_TYPES_H=0
5096 fi
5097
5098
5099
5100
5101
5102 :
5103
5104
5105
5106
5107
5108
5109
5110 if test $gl_cv_have_include_next = yes; then
5111 gl_cv_next_stdint_h='<'stdint.h'>'
5112 else
5113 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5114echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5115if test "${gl_cv_next_stdint_h+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117else
5118
5119 if test $ac_cv_header_stdint_h = yes; then
5120 cat >conftest.$ac_ext <<_ACEOF
5121/* confdefs.h. */
5122_ACEOF
5123cat confdefs.h >>conftest.$ac_ext
5124cat >>conftest.$ac_ext <<_ACEOF
5125/* end confdefs.h. */
5126#include <stdint.h>
5127
5128_ACEOF
5129 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5130 sed -n '\#/stdint.h#{
5131 s#.*"\(.*/stdint.h\)".*#\1#
5132 s#^/[^/]#//&#
5133 p
5134 q
5135 }'`'"'
5136 else
5137 gl_cv_next_stdint_h='<'stdint.h'>'
5138 fi
5139
5140fi
5141echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5142echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5143 fi
5144 NEXT_STDINT_H=$gl_cv_next_stdint_h
5145
5146
5147
5148 if test $ac_cv_header_stdint_h = yes; then
5149 HAVE_STDINT_H=1
5150 else
5151 HAVE_STDINT_H=0
5152 fi
5153
5154
5155 if test $ac_cv_header_stdint_h = yes; then
5156 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5157echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5158if test "${gl_cv_header_working_stdint_h+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161 gl_cv_header_working_stdint_h=no
5162 cat >conftest.$ac_ext <<_ACEOF
5163
5164 /* confdefs.h. */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h. */
5169
5170#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5171#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5172#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5173#include <stdint.h>
5174/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5175#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5176#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5177#endif
5178
5179
5180 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5181 included before <wchar.h>. */
5182 #include <stddef.h>
5183 #include <signal.h>
5184 #if HAVE_WCHAR_H
5185 # include <stdio.h>
5186 # include <time.h>
5187 # include <wchar.h>
5188 #endif
5189
5190
5191#ifdef INT8_MAX
5192int8_t a1 = INT8_MAX;
5193int8_t a1min = INT8_MIN;
5194#endif
5195#ifdef INT16_MAX
5196int16_t a2 = INT16_MAX;
5197int16_t a2min = INT16_MIN;
5198#endif
5199#ifdef INT32_MAX
5200int32_t a3 = INT32_MAX;
5201int32_t a3min = INT32_MIN;
5202#endif
5203#ifdef INT64_MAX
5204int64_t a4 = INT64_MAX;
5205int64_t a4min = INT64_MIN;
5206#endif
5207#ifdef UINT8_MAX
5208uint8_t b1 = UINT8_MAX;
5209#else
5210typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5211#endif
5212#ifdef UINT16_MAX
5213uint16_t b2 = UINT16_MAX;
5214#endif
5215#ifdef UINT32_MAX
5216uint32_t b3 = UINT32_MAX;
5217#endif
5218#ifdef UINT64_MAX
5219uint64_t b4 = UINT64_MAX;
5220#endif
5221int_least8_t c1 = INT8_C (0x7f);
5222int_least8_t c1max = INT_LEAST8_MAX;
5223int_least8_t c1min = INT_LEAST8_MIN;
5224int_least16_t c2 = INT16_C (0x7fff);
5225int_least16_t c2max = INT_LEAST16_MAX;
5226int_least16_t c2min = INT_LEAST16_MIN;
5227int_least32_t c3 = INT32_C (0x7fffffff);
5228int_least32_t c3max = INT_LEAST32_MAX;
5229int_least32_t c3min = INT_LEAST32_MIN;
5230int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5231int_least64_t c4max = INT_LEAST64_MAX;
5232int_least64_t c4min = INT_LEAST64_MIN;
5233uint_least8_t d1 = UINT8_C (0xff);
5234uint_least8_t d1max = UINT_LEAST8_MAX;
5235uint_least16_t d2 = UINT16_C (0xffff);
5236uint_least16_t d2max = UINT_LEAST16_MAX;
5237uint_least32_t d3 = UINT32_C (0xffffffff);
5238uint_least32_t d3max = UINT_LEAST32_MAX;
5239uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5240uint_least64_t d4max = UINT_LEAST64_MAX;
5241int_fast8_t e1 = INT_FAST8_MAX;
5242int_fast8_t e1min = INT_FAST8_MIN;
5243int_fast16_t e2 = INT_FAST16_MAX;
5244int_fast16_t e2min = INT_FAST16_MIN;
5245int_fast32_t e3 = INT_FAST32_MAX;
5246int_fast32_t e3min = INT_FAST32_MIN;
5247int_fast64_t e4 = INT_FAST64_MAX;
5248int_fast64_t e4min = INT_FAST64_MIN;
5249uint_fast8_t f1 = UINT_FAST8_MAX;
5250uint_fast16_t f2 = UINT_FAST16_MAX;
5251uint_fast32_t f3 = UINT_FAST32_MAX;
5252uint_fast64_t f4 = UINT_FAST64_MAX;
5253#ifdef INTPTR_MAX
5254intptr_t g = INTPTR_MAX;
5255intptr_t gmin = INTPTR_MIN;
5256#endif
5257#ifdef UINTPTR_MAX
5258uintptr_t h = UINTPTR_MAX;
5259#endif
5260intmax_t i = INTMAX_MAX;
5261uintmax_t j = UINTMAX_MAX;
5262
5263#include <limits.h> /* for CHAR_BIT */
5264#define TYPE_MINIMUM(t) \
5265 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5266#define TYPE_MAXIMUM(t) \
5267 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5268struct s {
5269 int check_PTRDIFF:
5270 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5271 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5272 ? 1 : -1;
5273 /* Detect bug in FreeBSD 6.0 / ia64. */
5274 int check_SIG_ATOMIC:
5275 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5276 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5277 ? 1 : -1;
5278 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5279 int check_WCHAR:
5280 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5281 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5282 ? 1 : -1;
5283 /* Detect bug in mingw. */
5284 int check_WINT:
5285 WINT_MIN == TYPE_MINIMUM (wint_t)
5286 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5287 ? 1 : -1;
5288
5289 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5290 int check_UINT8_C:
5291 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5292 int check_UINT16_C:
5293 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5294
5295 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5296#ifdef UINT8_MAX
5297 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5298#endif
5299#ifdef UINT16_MAX
5300 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5301#endif
5302#ifdef UINT32_MAX
5303 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5304#endif
5305#ifdef UINT64_MAX
5306 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5307#endif
5308 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5309 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5310 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5311 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5312 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5313 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5314 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5315 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5316 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5317 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5318 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5319};
5320
5321int
5322main ()
5323{
5324
5325 ;
5326 return 0;
5327}
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 (eval $ac_try) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 gl_cv_header_working_stdint_h=yes
5352else
5353 echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356fi
5357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358fi
5359echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5360echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5361 fi
5362 if test "$gl_cv_header_working_stdint_h" = yes; then
5363 STDINT_H=
5364 else
5365
5366
5367for ac_header in sys/inttypes.h sys/bitypes.h
5368do
5369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5370if eval "test \"\${$as_ac_Header+set}\" = set"; then
5371 echo "$as_me:$LINENO: checking for $ac_header" >&5
5372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5373if eval "test \"\${$as_ac_Header+set}\" = set"; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375fi
5376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5378else
5379 # Is the header compilable?
5380echo "$as_me:$LINENO: checking $ac_header usability" >&5
5381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5382cat >conftest.$ac_ext <<_ACEOF
5383/* confdefs.h. */
5384_ACEOF
5385cat confdefs.h >>conftest.$ac_ext
5386cat >>conftest.$ac_ext <<_ACEOF
5387/* end confdefs.h. */
5388$ac_includes_default
5389#include <$ac_header>
5390_ACEOF
5391rm -f conftest.$ac_objext
5392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_header_compiler=yes
5414else
5415 echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418ac_header_compiler=no
5419fi
5420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422echo "${ECHO_T}$ac_header_compiler" >&6
5423
5424# Is the header present?
5425echo "$as_me:$LINENO: checking $ac_header presence" >&5
5426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5427cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433#include <$ac_header>
5434_ACEOF
5435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } >/dev/null; then
5443 if test -s conftest.err; then
5444 ac_cpp_err=$ac_c_preproc_warn_flag
5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5446 else
5447 ac_cpp_err=
5448 fi
5449else
5450 ac_cpp_err=yes
5451fi
5452if test -z "$ac_cpp_err"; then
5453 ac_header_preproc=yes
5454else
5455 echo "$as_me: failed program was:" >&5
5456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_header_preproc=no
5459fi
5460rm -f conftest.err conftest.$ac_ext
5461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5462echo "${ECHO_T}$ac_header_preproc" >&6
5463
5464# So? What about this header?
5465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 yes:no: )
5467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5471 ac_header_preproc=yes
5472 ;;
5473 no:yes:* )
5474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5486 (
5487 cat <<\_ASBOX
5488## ------------------------------------------ ##
5489## Report this to the AC_PACKAGE_NAME lists. ##
5490## ------------------------------------------ ##
5491_ASBOX
5492 ) |
5493 sed "s/^/$as_me: WARNING: /" >&2
5494 ;;
5495esac
5496echo "$as_me:$LINENO: checking for $ac_header" >&5
5497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5498if eval "test \"\${$as_ac_Header+set}\" = set"; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501 eval "$as_ac_Header=\$ac_header_preproc"
5502fi
5503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5505
5506fi
5507if test `eval echo '${'$as_ac_Header'}'` = yes; then
5508 cat >>confdefs.h <<_ACEOF
5509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510_ACEOF
5511
5512fi
5513
5514done
5515
5516 if test $ac_cv_header_sys_inttypes_h = yes; then
5517 HAVE_SYS_INTTYPES_H=1
5518 else
5519 HAVE_SYS_INTTYPES_H=0
5520 fi
5521
5522 if test $ac_cv_header_sys_bitypes_h = yes; then
5523 HAVE_SYS_BITYPES_H=1
5524 else
5525 HAVE_SYS_BITYPES_H=0
5526 fi
5527
5528
5529
5530 :
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5546 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5547echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5548if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551 if test "$cross_compiling" = yes; then
5552 # Depending upon the size, compute the lo and hi bounds.
5553cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h. */
5559
5560 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5561 included before <wchar.h>. */
5562 #include <stddef.h>
5563 #include <signal.h>
5564 #if HAVE_WCHAR_H
5565 # include <stdio.h>
5566 # include <time.h>
5567 # include <wchar.h>
5568 #endif
5569
5570#include <limits.h>
5571int
5572main ()
5573{
5574static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5575test_array [0] = 0
5576
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581rm -f conftest.$ac_objext
5582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_lo=0 ac_mid=0
5604 while :; do
5605 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h. */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */
5611
5612 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5613 included before <wchar.h>. */
5614 #include <stddef.h>
5615 #include <signal.h>
5616 #if HAVE_WCHAR_H
5617 # include <stdio.h>
5618 # include <time.h>
5619 # include <wchar.h>
5620 #endif
5621
5622#include <limits.h>
5623int
5624main ()
5625{
5626static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5627test_array [0] = 0
5628
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext
5634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_hi=$ac_mid; break
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660ac_lo=`expr $ac_mid + 1`
5661 if test $ac_lo -le $ac_mid; then
5662 ac_lo= ac_hi=
5663 break
5664 fi
5665 ac_mid=`expr 2 '*' $ac_mid + 1`
5666fi
5667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 done
5669else
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
5679
5680 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5681 included before <wchar.h>. */
5682 #include <stddef.h>
5683 #include <signal.h>
5684 #if HAVE_WCHAR_H
5685 # include <stdio.h>
5686 # include <time.h>
5687 # include <wchar.h>
5688 #endif
5689
5690#include <limits.h>
5691int
5692main ()
5693{
5694static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5695test_array [0] = 0
5696
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_hi=-1 ac_mid=-1
5724 while :; do
5725 cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h. */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
5730/* end confdefs.h. */
5731
5732 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5733 included before <wchar.h>. */
5734 #include <stddef.h>
5735 #include <signal.h>
5736 #if HAVE_WCHAR_H
5737 # include <stdio.h>
5738 # include <time.h>
5739 # include <wchar.h>
5740 #endif
5741
5742#include <limits.h>
5743int
5744main ()
5745{
5746static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5747test_array [0] = 0
5748
5749 ;
5750 return 0;
5751}
5752_ACEOF
5753rm -f conftest.$ac_objext
5754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_c_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_lo=$ac_mid; break
5776else
5777 echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
5780ac_hi=`expr '(' $ac_mid ')' - 1`
5781 if test $ac_mid -le $ac_hi; then
5782 ac_lo= ac_hi=
5783 break
5784 fi
5785 ac_mid=`expr 2 '*' $ac_mid`
5786fi
5787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 done
5789else
5790 echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793ac_lo= ac_hi=
5794fi
5795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798# Binary search between lo and hi bounds.
5799while test "x$ac_lo" != "x$ac_hi"; do
5800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5801 cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h. */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h. */
5807
5808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5809 included before <wchar.h>. */
5810 #include <stddef.h>
5811 #include <signal.h>
5812 #if HAVE_WCHAR_H
5813 # include <stdio.h>
5814 # include <time.h>
5815 # include <wchar.h>
5816 #endif
5817
5818#include <limits.h>
5819int
5820main ()
5821{
5822static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5823test_array [0] = 0
5824
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_hi=$ac_mid
5852else
5853 echo "$as_me: failed program was:" >&5
5854sed 's/^/| /' conftest.$ac_ext >&5
5855
5856ac_lo=`expr '(' $ac_mid ')' + 1`
5857fi
5858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859done
5860case $ac_lo in
5861?*) result=$ac_lo;;
5862'') result=unknown ;;
5863esac
5864else
5865 if test "$cross_compiling" = yes; then
5866 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5867See \`config.log' for more details." >&5
5868echo "$as_me: error: cannot run test program while cross compiling
5869See \`config.log' for more details." >&2;}
5870 { (exit 1); exit 1; }; }
5871else
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878
5879 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5880 included before <wchar.h>. */
5881 #include <stddef.h>
5882 #include <signal.h>
5883 #if HAVE_WCHAR_H
5884 # include <stdio.h>
5885 # include <time.h>
5886 # include <wchar.h>
5887 #endif
5888
5889#include <limits.h>
5890long longval () { return sizeof ($gltype) * CHAR_BIT; }
5891unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5892#include <stdio.h>
5893#include <stdlib.h>
5894int
5895main ()
5896{
5897
5898 FILE *f = fopen ("conftest.val", "w");
5899 if (! f)
5900 exit (1);
5901 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5902 {
5903 long i = longval ();
5904 if (i != (sizeof ($gltype) * CHAR_BIT))
5905 exit (1);
5906 fprintf (f, "%ld\n", i);
5907 }
5908 else
5909 {
5910 unsigned long i = ulongval ();
5911 if (i != (sizeof ($gltype) * CHAR_BIT))
5912 exit (1);
5913 fprintf (f, "%lu\n", i);
5914 }
5915 exit (ferror (f) || fclose (f) != 0);
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921rm -f conftest$ac_exeext
5922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923 (eval $ac_link) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 result=`cat conftest.val`
5933else
5934 echo "$as_me: program exited with status $ac_status" >&5
5935echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938( exit $ac_status )
5939result=unknown
5940fi
5941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5942fi
5943fi
5944rm -f conftest.val
5945 eval gl_cv_bitsizeof_${gltype}=\$result
5946
5947fi
5948echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5949echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5950 eval result=\$gl_cv_bitsizeof_${gltype}
5951 if test $result = unknown; then
5952 result=0
5953 fi
5954 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5955 cat >>confdefs.h <<_ACEOF
5956#define BITSIZEOF_${GLTYPE} $result
5957_ACEOF
5958
5959 eval BITSIZEOF_${GLTYPE}=\$result
5960 done
5961
5962
5963
5964
5965
5966
5967
5968 for gltype in sig_atomic_t wchar_t wint_t ; do
5969 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5970echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5971if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974 cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h. */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h. */
5980
5981 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5982 included before <wchar.h>. */
5983 #include <stddef.h>
5984 #include <signal.h>
5985 #if HAVE_WCHAR_H
5986 # include <stdio.h>
5987 # include <time.h>
5988 # include <wchar.h>
5989 #endif
5990
5991 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5992int
5993main ()
5994{
5995
5996 ;
5997 return 0;
5998}
5999_ACEOF
6000rm -f conftest.$ac_objext
6001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 result=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027result=no
6028fi
6029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 eval gl_cv_type_${gltype}_signed=\$result
6031
6032fi
6033echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6034echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6035 eval result=\$gl_cv_type_${gltype}_signed
6036 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6037 if test "$result" = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039#define HAVE_SIGNED_${GLTYPE} 1
6040_ACEOF
6041
6042 eval HAVE_SIGNED_${GLTYPE}=1
6043 else
6044 eval HAVE_SIGNED_${GLTYPE}=0
6045 fi
6046 done
6047
6048
6049 gl_cv_type_ptrdiff_t_signed=yes
6050 gl_cv_type_size_t_signed=no
6051
6052
6053
6054
6055
6056
6057
6058 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6059 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6060echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6061if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064 eval gl_cv_type_${gltype}_suffix=no
6065 eval result=\$gl_cv_type_${gltype}_signed
6066 if test "$result" = yes; then
6067 glsufu=
6068 else
6069 glsufu=u
6070 fi
6071 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6072 case $glsuf in
6073 '') gltype1='int';;
6074 l) gltype1='long int';;
6075 ll) gltype1='long long int';;
6076 i64) gltype1='__int64';;
6077 u) gltype1='unsigned int';;
6078 ul) gltype1='unsigned long int';;
6079 ull) gltype1='unsigned long long int';;
6080 ui64)gltype1='unsigned __int64';;
6081 esac
6082 cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
6088
6089 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6090 included before <wchar.h>. */
6091 #include <stddef.h>
6092 #include <signal.h>
6093 #if HAVE_WCHAR_H
6094 # include <stdio.h>
6095 # include <time.h>
6096 # include <wchar.h>
6097 #endif
6098
6099 extern $gltype foo;
6100 extern $gltype1 foo;
6101int
6102main ()
6103{
6104
6105 ;
6106 return 0;
6107}
6108_ACEOF
6109rm -f conftest.$ac_objext
6110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111 (eval $ac_compile) 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -z "$ac_c_werror_flag"
6119 || test ! -s conftest.err'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 eval gl_cv_type_${gltype}_suffix=\$glsuf
6132else
6133 echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136fi
6137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6138 eval result=\$gl_cv_type_${gltype}_suffix
6139 test "$result" != no && break
6140 done
6141fi
6142echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6143echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6144 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6145 eval result=\$gl_cv_type_${gltype}_suffix
6146 test "$result" = no && result=
6147 eval ${GLTYPE}_SUFFIX=\$result
6148 cat >>confdefs.h <<_ACEOF
6149#define ${GLTYPE}_SUFFIX $result
6150_ACEOF
6151
6152 done
6153
6154
6155
6156 STDINT_H=stdint.h
6157 fi
6158
6159
6160
6161
6162
6163
6164
6165 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6166echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6167if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170 cat >conftest.$ac_ext <<_ACEOF
6171#include <wchar.h>
6172wchar_t w;
6173_ACEOF
6174rm -f conftest.$ac_objext
6175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 gl_cv_header_wchar_h_standalone=yes
6197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201gl_cv_header_wchar_h_standalone=no
6202fi
6203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204fi
6205echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6206echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6207 if test $gl_cv_header_wchar_h_standalone != yes; then
6208 WCHAR_H=wchar.h
6209 fi
6210
6211
6212 :
6213
6214
6215
6216
6217
6218 if test $ac_cv_header_wchar_h = yes; then
6219 HAVE_WCHAR_H=1
6220 else
6221 HAVE_WCHAR_H=0
6222 fi
6223
6224
6225
6226
6227 :
6228
6229
6230
6231
6232
6233
6234
6235 if test $gl_cv_have_include_next = yes; then
6236 gl_cv_next_wchar_h='<'wchar.h'>'
6237 else
6238 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6239echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6240if test "${gl_cv_next_wchar_h+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243
6244 if test $ac_cv_header_wchar_h = yes; then
6245 cat >conftest.$ac_ext <<_ACEOF
6246/* confdefs.h. */
6247_ACEOF
6248cat confdefs.h >>conftest.$ac_ext
6249cat >>conftest.$ac_ext <<_ACEOF
6250/* end confdefs.h. */
6251#include <wchar.h>
6252
6253_ACEOF
6254 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255 sed -n '\#/wchar.h#{
6256 s#.*"\(.*/wchar.h\)".*#\1#
6257 s#^/[^/]#//&#
6258 p
6259 q
6260 }'`'"'
6261 else
6262 gl_cv_next_wchar_h='<'wchar.h'>'
6263 fi
6264
6265fi
6266echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6267echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6268 fi
6269 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6270
6271
6272
6273
6274
6275
6276
6277
6278 gltests_libdeps=
6279 gltests_ltlibdeps=
6280
6281
6282
6283 gl_source_base='tests'
6284
6285
6286
6287
6288 LIBGNU_LIBDEPS="$gl_libdeps"
6289
6290 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6291
6292
6293
6294PACKAGE=gdb
6295
6296cat >>confdefs.h <<_ACEOF
6297#define PACKAGE "$PACKAGE"
6298_ACEOF
6299
6300
6301
6302# GDB does not use automake, but gnulib does. This line lets us
6303# generate its Makefile.in.
6304am__api_version="1.9"
6305# Find a good install program. We prefer a C program (faster),
6306# so one script is as good as another. But avoid the broken or
6307# incompatible versions:
6308# SysV /etc/install, /usr/sbin/install
6309# SunOS /usr/etc/install
6310# IRIX /sbin/install
6311# AIX /bin/install
6312# AmigaOS /C/install, which installs bootblocks on floppy discs
6313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6314# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6316# OS/2's system install, which has a completely different semantic
6317# ./install, which can be erroneously created by make from ./install.sh.
6318echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6319echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6320if test -z "$INSTALL"; then
6321if test "${ac_cv_path_install+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 # Account for people who put trailing slashes in PATH elements.
6330case $as_dir/ in
6331 ./ | .// | /cC/* | \
6332 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6333 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6334 /usr/ucb/* ) ;;
6335 *)
6336 # OSF1 and SCO ODT 3.0 have their own names for install.
6337 # Don't use installbsd from OSF since it installs stuff as root
6338 # by default.
6339 for ac_prog in ginstall scoinst install; do
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6342 if test $ac_prog = install &&
6343 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6344 # AIX install. It has an incompatible calling convention.
6345 :
6346 elif test $ac_prog = install &&
6347 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6348 # program-specific install script used by HP pwplus--don't use.
6349 :
6350 else
6351 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6352 break 3
6353 fi
6354 fi
6355 done
6356 done
6357 ;;
6358esac
6359done
6360
6361
6362fi
6363 if test "${ac_cv_path_install+set}" = set; then
6364 INSTALL=$ac_cv_path_install
6365 else
6366 # As a last resort, use the slow shell script. We don't cache a
6367 # path for INSTALL within a source directory, because that will
6368 # break other packages using the cache if that directory is
6369 # removed, or if the path is relative.
6370 INSTALL=$ac_install_sh
6371 fi
6372fi
6373echo "$as_me:$LINENO: result: $INSTALL" >&5
6374echo "${ECHO_T}$INSTALL" >&6
6375
6376# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6377# It thinks the first close brace ends the variable substitution.
6378test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6379
6380test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6381
6382test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6383
6384echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6385echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6386# Just in case
6387sleep 1
6388echo timestamp > conftest.file
6389# Do `set' in a subshell so we don't clobber the current shell's
6390# arguments. Must try -L first in case configure is actually a
6391# symlink; some systems play weird games with the mod time of symlinks
6392# (eg FreeBSD returns the mod time of the symlink's containing
6393# directory).
6394if (
6395 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6396 if test "$*" = "X"; then
6397 # -L didn't work.
6398 set X `ls -t $srcdir/configure conftest.file`
6399 fi
6400 rm -f conftest.file
6401 if test "$*" != "X $srcdir/configure conftest.file" \
6402 && test "$*" != "X conftest.file $srcdir/configure"; then
6403
6404 # If neither matched, then we have a broken ls. This can happen
6405 # if, for instance, CONFIG_SHELL is bash and it inherits a
6406 # broken ls alias from the environment. This has actually
6407 # happened. Such a system could not be considered "sane".
6408 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6409alias in your environment" >&5
6410echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6411alias in your environment" >&2;}
6412 { (exit 1); exit 1; }; }
6413 fi
6414
6415 test "$2" = conftest.file
6416 )
6417then
6418 # Ok.
6419 :
6420else
6421 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6422Check your system clock" >&5
6423echo "$as_me: error: newly created file is older than distributed files!
6424Check your system clock" >&2;}
6425 { (exit 1); exit 1; }; }
6426fi
6427echo "$as_me:$LINENO: result: yes" >&5
6428echo "${ECHO_T}yes" >&6
6429test "$program_prefix" != NONE &&
6430 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6431# Use a double $ so make ignores it.
6432test "$program_suffix" != NONE &&
6433 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6434# Double any \ or $. echo might interpret backslashes.
6435# By default was `s,x,x', remove it if useless.
6436cat <<\_ACEOF >conftest.sed
6437s/[\\$]/&&/g;s/;s,x,x,$//
6438_ACEOF
6439program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6440rm conftest.sed
6441
6442# expand $ac_aux_dir to an absolute path
6443am_aux_dir=`cd $ac_aux_dir && pwd`
6444
6445test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6446# Use eval to expand $SHELL
6447if eval "$MISSING --run true"; then
6448 am_missing_run="$MISSING --run "
6449else
6450 am_missing_run=
6451 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6452echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6453fi
6454
6455if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6456 # We used to keeping the `.' as first argument, in order to
6457 # allow $(mkdir_p) to be used without argument. As in
6458 # $(mkdir_p) $(somedir)
6459 # where $(somedir) is conditionally defined. However this is wrong
6460 # for two reasons:
6461 # 1. if the package is installed by a user who cannot write `.'
6462 # make install will fail,
6463 # 2. the above comment should most certainly read
6464 # $(mkdir_p) $(DESTDIR)$(somedir)
6465 # so it does not work when $(somedir) is undefined and
6466 # $(DESTDIR) is not.
6467 # To support the latter case, we have to write
6468 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6469 # so the `.' trick is pointless.
6470 mkdir_p='mkdir -p --'
6471else
6472 # On NextStep and OpenStep, the `mkdir' command does not
6473 # recognize any option. It will interpret all options as
6474 # directories to create, and then abort because `.' already
6475 # exists.
6476 for d in ./-p ./--version;
6477 do
6478 test -d $d && rmdir $d
6479 done
6480 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6481 if test -f "$ac_aux_dir/mkinstalldirs"; then
6482 mkdir_p='$(mkinstalldirs)'
6483 else
6484 mkdir_p='$(install_sh) -d'
6485 fi
6486fi
6487
6488for ac_prog in gawk mawk nawk awk
6489do
6490 # Extract the first word of "$ac_prog", so it can be a program name with args.
6491set dummy $ac_prog; ac_word=$2
6492echo "$as_me:$LINENO: checking for $ac_word" >&5
6493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6494if test "${ac_cv_prog_AWK+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496else
6497 if test -n "$AWK"; then
6498 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_AWK="$ac_prog"
6508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511done
6512done
6513
6514fi
6515fi
6516AWK=$ac_cv_prog_AWK
6517if test -n "$AWK"; then
6518 echo "$as_me:$LINENO: result: $AWK" >&5
6519echo "${ECHO_T}$AWK" >&6
6520else
6521 echo "$as_me:$LINENO: result: no" >&5
6522echo "${ECHO_T}no" >&6
6523fi
6524
6525 test -n "$AWK" && break
6526done
6527
6528echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6529echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6530set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6531if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 cat >conftest.make <<\_ACEOF
6535all:
6536 @echo 'ac_maketemp="$(MAKE)"'
6537_ACEOF
6538# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6539eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6540if test -n "$ac_maketemp"; then
6541 eval ac_cv_prog_make_${ac_make}_set=yes
6542else
6543 eval ac_cv_prog_make_${ac_make}_set=no
6544fi
6545rm -f conftest.make
6546fi
6547if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6548 echo "$as_me:$LINENO: result: yes" >&5
6549echo "${ECHO_T}yes" >&6
6550 SET_MAKE=
6551else
6552 echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
6554 SET_MAKE="MAKE=${MAKE-make}"
6555fi
6556
6557rm -rf .tst 2>/dev/null
6558mkdir .tst 2>/dev/null
6559if test -d .tst; then
6560 am__leading_dot=.
6561else
6562 am__leading_dot=_
6563fi
6564rmdir .tst 2>/dev/null
6565
6566DEPDIR="${am__leading_dot}deps"
6567
6568 ac_config_commands="$ac_config_commands depfiles"
6569
6570
6571am_make=${MAKE-make}
6572cat > confinc << 'END'
6573am__doit:
6574 @echo done
6575.PHONY: am__doit
6576END
6577# If we don't find an include directive, just comment out the code.
6578echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6579echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6580am__include="#"
6581am__quote=
6582_am_result=none
6583# First try GNU make style include.
6584echo "include confinc" > confmf
6585# We grep out `Entering directory' and `Leaving directory'
6586# messages which can occur if `w' ends up in MAKEFLAGS.
6587# In particular we don't look at `^make:' because GNU make might
6588# be invoked under some other name (usually "gmake"), in which
6589# case it prints its new name instead of `make'.
6590if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6591 am__include=include
6592 am__quote=
6593 _am_result=GNU
6594fi
6595# Now try BSD make style include.
6596if test "$am__include" = "#"; then
6597 echo '.include "confinc"' > confmf
6598 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6599 am__include=.include
6600 am__quote="\""
6601 _am_result=BSD
6602 fi
6603fi
6604
6605
6606echo "$as_me:$LINENO: result: $_am_result" >&5
6607echo "${ECHO_T}$_am_result" >&6
6608rm -f confinc confmf
6609
6610# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6611if test "${enable_dependency_tracking+set}" = set; then
6612 enableval="$enable_dependency_tracking"
6613
6614fi;
6615if test "x$enable_dependency_tracking" != xno; then
6616 am_depcomp="$ac_aux_dir/depcomp"
6617 AMDEPBACKSLASH='\'
6618fi
6619
6620
6621if test "x$enable_dependency_tracking" != xno; then
6622 AMDEP_TRUE=
6623 AMDEP_FALSE='#'
6624else
6625 AMDEP_TRUE='#'
6626 AMDEP_FALSE=
6627fi
6628
6629
6630
6631# test to see if srcdir already configured
6632if test "`cd $srcdir && pwd`" != "`pwd`" &&
6633 test -f $srcdir/config.status; then
6634 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6635echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6636 { (exit 1); exit 1; }; }
6637fi
6638
6639# test whether we have cygpath
6640if test -z "$CYGPATH_W"; then
6641 if (cygpath --version) >/dev/null 2>/dev/null; then
6642 CYGPATH_W='cygpath -w'
6643 else
6644 CYGPATH_W=echo
6645 fi
6646fi
6647
6648
6649# Define the identity of the package.
6650 PACKAGE=gdb
6651 VERSION=UNUSED-VERSION
6652
6653
6654# Some tools Automake needs.
6655
6656ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6657
6658
6659AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6660
6661
6662AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6663
6664
6665AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6666
6667
6668MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6669
6670install_sh=${install_sh-"$am_aux_dir/install-sh"}
6671
6672# Installed binaries are usually stripped using `strip' when the user
6673# run `make install-strip'. However `strip' might not be the right
6674# tool to use in cross-compilation environments, therefore Automake
6675# will honor the `STRIP' environment variable to overrule this program.
6676if test "$cross_compiling" != no; then
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6679set dummy ${ac_tool_prefix}strip; ac_word=$2
6680echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6682if test "${ac_cv_prog_STRIP+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684else
6685 if test -n "$STRIP"; then
6686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6687else
6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699done
6700done
6701
6702fi
6703fi
6704STRIP=$ac_cv_prog_STRIP
6705if test -n "$STRIP"; then
6706 echo "$as_me:$LINENO: result: $STRIP" >&5
6707echo "${ECHO_T}$STRIP" >&6
6708else
6709 echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6
6711fi
6712
6713fi
6714if test -z "$ac_cv_prog_STRIP"; then
6715 ac_ct_STRIP=$STRIP
6716 # Extract the first word of "strip", so it can be a program name with args.
6717set dummy strip; ac_word=$2
6718echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 if test -n "$ac_ct_STRIP"; then
6724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_STRIP="strip"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738done
6739
6740 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6741fi
6742fi
6743ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744if test -n "$ac_ct_STRIP"; then
6745 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6746echo "${ECHO_T}$ac_ct_STRIP" >&6
6747else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750fi
6751
6752 STRIP=$ac_ct_STRIP
6753else
6754 STRIP="$ac_cv_prog_STRIP"
6755fi
6756
6757fi
6758INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6759
6760# We need awk for the "check" target. The system "awk" is bad on
6761# some platforms.
6762# Always define AMTAR for backward compatibility.
6763
6764AMTAR=${AMTAR-"${am_missing_run}tar"}
6765
6766am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6767
6768
6769
6770
6771depcc="$CC" am_compiler_list=
6772
6773echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6774echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6775if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6779 # We make a subdir and do the tests there. Otherwise we can end up
6780 # making bogus files that we don't know about and never remove. For
6781 # instance it was reported that on HP-UX the gcc test will end up
6782 # making a dummy file named `D' -- because `-MD' means `put the output
6783 # in D'.
6784 mkdir conftest.dir
6785 # Copy depcomp to subdir because otherwise we won't find it if we're
6786 # using a relative directory.
6787 cp "$am_depcomp" conftest.dir
6788 cd conftest.dir
6789 # We will build objects and dependencies in a subdirectory because
6790 # it helps to detect inapplicable dependency modes. For instance
6791 # both Tru64's cc and ICC support -MD to output dependencies as a
6792 # side effect of compilation, but ICC will put the dependencies in
6793 # the current directory while Tru64 will put them in the object
6794 # directory.
6795 mkdir sub
6796
6797 am_cv_CC_dependencies_compiler_type=none
6798 if test "$am_compiler_list" = ""; then
6799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6800 fi
6801 for depmode in $am_compiler_list; do
6802 # Setup a source with many dependencies, because some compilers
6803 # like to wrap large dependency lists on column 80 (with \), and
6804 # we should not choose a depcomp mode which is confused by this.
6805 #
6806 # We need to recreate these files for each test, as the compiler may
6807 # overwrite some of them when testing with obscure command lines.
6808 # This happens at least with the AIX C compiler.
6809 : > sub/conftest.c
6810 for i in 1 2 3 4 5 6; do
6811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6813 # Solaris 8's {/usr,}/bin/sh.
6814 touch sub/conftst$i.h
6815 done
6816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6817
6818 case $depmode in
6819 nosideeffect)
6820 # after this tag, mechanisms are not by side-effect, so they'll
6821 # only be used when explicitly requested
6822 if test "x$enable_dependency_tracking" = xyes; then
6823 continue
6824 else
6825 break
6826 fi
6827 ;;
6828 none) break ;;
6829 esac
6830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6831 # mode. It turns out that the SunPro C++ compiler does not properly
6832 # handle `-M -o', and we need to detect this.
6833 if depmode=$depmode \
6834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6837 >/dev/null 2>conftest.err &&
6838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6839 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6841 # icc doesn't choke on unknown options, it will just issue warnings
6842 # or remarks (even with -Werror). So we grep stderr for any message
6843 # that says an option was ignored or not supported.
6844 # When given -MP, icc 7.0 and 7.1 complain thusly:
6845 # icc: Command line warning: ignoring option '-M'; no argument required
6846 # The diagnosis changed in icc 8.0:
6847 # icc: Command line remark: option '-MP' not supported
6848 if (grep 'ignoring option' conftest.err ||
6849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6850 am_cv_CC_dependencies_compiler_type=$depmode
6851 break
6852 fi
6853 fi
6854 done
6855
6856 cd ..
6857 rm -rf conftest.dir
6858else
6859 am_cv_CC_dependencies_compiler_type=none
6860fi
6861
6862fi
6863echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6864echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6865CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6866
6867
6868
6869if
6870 test "x$enable_dependency_tracking" != xno \
6871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6872 am__fastdepCC_TRUE=
6873 am__fastdepCC_FALSE='#'
6874else
6875 am__fastdepCC_TRUE='#'
6876 am__fastdepCC_FALSE=
6877fi
6878
6879
6880
6881
6882debugdir=${libdir}/debug
6883
6884
6885# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6886if test "${with_separate_debug_dir+set}" = set; then
6887 withval="$with_separate_debug_dir"
6888 debugdir="${withval}"
6889fi;
6890
6891
6892 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6894 ac_define_dir=`eval echo $debugdir`
6895 ac_define_dir=`eval echo $ac_define_dir`
6896
6897cat >>confdefs.h <<_ACEOF
6898#define DEBUGDIR "$ac_define_dir"
6899_ACEOF
6900
6901
6902#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6903
6904if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6905 if test "x$prefix" = xNONE; then
6906 test_prefix=/usr/local
6907 else
6908 test_prefix=$prefix
6909 fi
6910else
6911 test_prefix=$exec_prefix
6912fi
6913case ${debugdir} in
6914"${test_prefix}"|"${test_prefix}/"*|\
6915'${exec_prefix}'|'${exec_prefix}/'*)
6916
6917cat >>confdefs.h <<\_ACEOF
6918#define DEBUGDIR_RELOCATABLE 1
6919_ACEOF
6920
6921 ;;
6922esac
6923
6924
6925
6926subdirs="$subdirs doc testsuite"
6927
6928
6929# Check whether to support alternative target configurations
6930# Check whether --enable-targets or --disable-targets was given.
6931if test "${enable_targets+set}" = set; then
6932 enableval="$enable_targets"
6933 case "${enableval}" in
6934 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6935echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6936 { (exit 1); exit 1; }; }
6937 ;;
6938 no) enable_targets= ;;
6939 *) enable_targets=$enableval ;;
6940esac
6941fi;
6942
6943# Check whether to enable 64-bit support on 32-bit hosts
6944# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6945if test "${enable_64_bit_bfd+set}" = set; then
6946 enableval="$enable_64_bit_bfd"
6947 case "${enableval}" in
6948 yes) want64=true ;;
6949 no) want64=false ;;
6950 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6951echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6952 { (exit 1); exit 1; }; } ;;
6953esac
6954else
6955 want64=false
6956fi;
6957# Provide defaults for some variables set by the per-host and per-target
6958# configuration.
6959gdb_host_obs=posix-hdep.o
6960
6961if test "${target}" = "${host}"; then
6962 gdb_native=yes
6963else
6964 gdb_native=no
6965fi
6966
6967. $srcdir/configure.host
6968
6969# Accumulate some settings from configure.tgt over all enabled targets
6970
6971TARGET_OBS=
6972all_targets=
6973
6974for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6975do
6976 if test "$targ_alias" = "all"; then
6977 all_targets=true
6978 else
6979 # Canonicalize the secondary target names.
6980 result=`$ac_config_sub $targ_alias 2>/dev/null`
6981 if test -n "$result"; then
6982 targ=$result
6983 else
6984 targ=$targ_alias
6985 fi
6986
6987 . ${srcdir}/configure.tgt
6988
6989 # Target-specific object files
6990 for i in ${gdb_target_obs}; do
6991 case " $TARGET_OBS " in
6992 *" ${i} "*) ;;
6993 *)
6994 TARGET_OBS="$TARGET_OBS ${i}"
6995 ;;
6996 esac
6997 done
6998
6999 # Check whether this target needs 64-bit CORE_ADDR
7000 if test x${want64} = xfalse; then
7001 . ${srcdir}/../bfd/config.bfd
7002 fi
7003 fi
7004done
7005
7006if test x${all_targets} = xtrue; then
7007
7008 # We want all 64-bit targets if we either:
7009 # - run on a 64-bit host or
7010 # - already require 64-bit support for some other target or
7011 # - the --enable-64-bit-bfd option was supplied
7012 # Otherwise we only support all 32-bit targets.
7013 #
7014 # NOTE: This test must be in sync with the corresponding
7015 # tests in BFD!
7016
7017 if test x${want64} = xfalse; then
7018 echo "$as_me:$LINENO: checking for long" >&5
7019echo $ECHO_N "checking for long... $ECHO_C" >&6
7020if test "${ac_cv_type_long+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029$ac_includes_default
7030int
7031main ()
7032{
7033if ((long *) 0)
7034 return 0;
7035if (sizeof (long))
7036 return 0;
7037 ;
7038 return 0;
7039}
7040_ACEOF
7041rm -f conftest.$ac_objext
7042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -z "$ac_c_werror_flag"
7051 || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_type_long=yes
7064else
7065 echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068ac_cv_type_long=no
7069fi
7070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071fi
7072echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7073echo "${ECHO_T}$ac_cv_type_long" >&6
7074
7075echo "$as_me:$LINENO: checking size of long" >&5
7076echo $ECHO_N "checking size of long... $ECHO_C" >&6
7077if test "${ac_cv_sizeof_long+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079else
7080 if test "$ac_cv_type_long" = yes; then
7081 # The cast to unsigned long works around a bug in the HP C Compiler
7082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7084 # This bug is HP SR number 8606223364.
7085 if test "$cross_compiling" = yes; then
7086 # Depending upon the size, compute the lo and hi bounds.
7087cat >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$ac_includes_default
7094int
7095main ()
7096{
7097static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7098test_array [0] = 0
7099
7100 ;
7101 return 0;
7102}
7103_ACEOF
7104rm -f conftest.$ac_objext
7105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag"
7114 || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_lo=0 ac_mid=0
7127 while :; do
7128 cat >conftest.$ac_ext <<_ACEOF
7129/* confdefs.h. */
7130_ACEOF
7131cat confdefs.h >>conftest.$ac_ext
7132cat >>conftest.$ac_ext <<_ACEOF
7133/* end confdefs.h. */
7134$ac_includes_default
7135int
7136main ()
7137{
7138static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7139test_array [0] = 0
7140
7141 ;
7142 return 0;
7143}
7144_ACEOF
7145rm -f conftest.$ac_objext
7146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_hi=$ac_mid; break
7168else
7169 echo "$as_me: failed program was:" >&5
7170sed 's/^/| /' conftest.$ac_ext >&5
7171
7172ac_lo=`expr $ac_mid + 1`
7173 if test $ac_lo -le $ac_mid; then
7174 ac_lo= ac_hi=
7175 break
7176 fi
7177 ac_mid=`expr 2 '*' $ac_mid + 1`
7178fi
7179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7180 done
7181else
7182 echo "$as_me: failed program was:" >&5
7183sed 's/^/| /' conftest.$ac_ext >&5
7184
7185cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h. */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h. */
7191$ac_includes_default
7192int
7193main ()
7194{
7195static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7196test_array [0] = 0
7197
7198 ;
7199 return 0;
7200}
7201_ACEOF
7202rm -f conftest.$ac_objext
7203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204 (eval $ac_compile) 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -z "$ac_c_werror_flag"
7212 || test ! -s conftest.err'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; } &&
7218 { ac_try='test -s conftest.$ac_objext'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 ac_hi=-1 ac_mid=-1
7225 while :; do
7226 cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h. */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h. */
7232$ac_includes_default
7233int
7234main ()
7235{
7236static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7237test_array [0] = 0
7238
7239 ;
7240 return 0;
7241}
7242_ACEOF
7243rm -f conftest.$ac_objext
7244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7245 (eval $ac_compile) 2>conftest.er1
7246 ac_status=$?
7247 grep -v '^ *+' conftest.er1 >conftest.err
7248 rm -f conftest.er1
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -z "$ac_c_werror_flag"
7253 || test ! -s conftest.err'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 (eval $ac_try) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_lo=$ac_mid; break
7266else
7267 echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
7269
7270ac_hi=`expr '(' $ac_mid ')' - 1`
7271 if test $ac_mid -le $ac_hi; then
7272 ac_lo= ac_hi=
7273 break
7274 fi
7275 ac_mid=`expr 2 '*' $ac_mid`
7276fi
7277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278 done
7279else
7280 echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283ac_lo= ac_hi=
7284fi
7285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286fi
7287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288# Binary search between lo and hi bounds.
7289while test "x$ac_lo" != "x$ac_hi"; do
7290 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7291 cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h. */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h. */
7297$ac_includes_default
7298int
7299main ()
7300{
7301static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7302test_array [0] = 0
7303
7304 ;
7305 return 0;
7306}
7307_ACEOF
7308rm -f conftest.$ac_objext
7309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_hi=$ac_mid
7331else
7332 echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335ac_lo=`expr '(' $ac_mid ')' + 1`
7336fi
7337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7338done
7339case $ac_lo in
7340?*) ac_cv_sizeof_long=$ac_lo;;
7341'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7342See \`config.log' for more details." >&5
7343echo "$as_me: error: cannot compute sizeof (long), 77
7344See \`config.log' for more details." >&2;}
7345 { (exit 1); exit 1; }; } ;;
7346esac
7347else
7348 if test "$cross_compiling" = yes; then
7349 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7350See \`config.log' for more details." >&5
7351echo "$as_me: error: cannot run test program while cross compiling
7352See \`config.log' for more details." >&2;}
7353 { (exit 1); exit 1; }; }
7354else
7355 cat >conftest.$ac_ext <<_ACEOF
7356/* confdefs.h. */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h. */
7361$ac_includes_default
7362long longval () { return (long) (sizeof (long)); }
7363unsigned long ulongval () { return (long) (sizeof (long)); }
7364#include <stdio.h>
7365#include <stdlib.h>
7366int
7367main ()
7368{
7369
7370 FILE *f = fopen ("conftest.val", "w");
7371 if (! f)
7372 exit (1);
7373 if (((long) (sizeof (long))) < 0)
7374 {
7375 long i = longval ();
7376 if (i != ((long) (sizeof (long))))
7377 exit (1);
7378 fprintf (f, "%ld\n", i);
7379 }
7380 else
7381 {
7382 unsigned long i = ulongval ();
7383 if (i != ((long) (sizeof (long))))
7384 exit (1);
7385 fprintf (f, "%lu\n", i);
7386 }
7387 exit (ferror (f) || fclose (f) != 0);
7388
7389 ;
7390 return 0;
7391}
7392_ACEOF
7393rm -f conftest$ac_exeext
7394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>&5
7396 ac_status=$?
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 (eval $ac_try) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 ac_cv_sizeof_long=`cat conftest.val`
7405else
7406 echo "$as_me: program exited with status $ac_status" >&5
7407echo "$as_me: failed program was:" >&5
7408sed 's/^/| /' conftest.$ac_ext >&5
7409
7410( exit $ac_status )
7411{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7412See \`config.log' for more details." >&5
7413echo "$as_me: error: cannot compute sizeof (long), 77
7414See \`config.log' for more details." >&2;}
7415 { (exit 1); exit 1; }; }
7416fi
7417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7418fi
7419fi
7420rm -f conftest.val
7421else
7422 ac_cv_sizeof_long=0
7423fi
7424fi
7425echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7426echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7427cat >>confdefs.h <<_ACEOF
7428#define SIZEOF_LONG $ac_cv_sizeof_long
7429_ACEOF
7430
7431
7432 if test "x${ac_cv_sizeof_long}" = "x8"; then
7433 want64=true
7434 fi
7435 fi
7436 if test x${want64} = xtrue; then
7437 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7438 else
7439 TARGET_OBS='$(ALL_TARGET_OBS)'
7440 fi
7441fi
7442
7443
7444
7445# For other settings, only the main target counts.
7446gdb_sim=
7447gdb_osabi=
7448build_gdbserver=
7449targ=$target; . ${srcdir}/configure.tgt
7450
7451# Fetch the default architecture and default target vector from BFD.
7452targ=$target; . $srcdir/../bfd/config.bfd
7453
7454# We only want the first architecture, so strip off the others if
7455# there is more than one.
7456targ_archs=`echo $targ_archs | sed 's/ .*//'`
7457
7458if test "x$targ_archs" != x; then
7459
7460cat >>confdefs.h <<_ACEOF
7461#define DEFAULT_BFD_ARCH $targ_archs
7462_ACEOF
7463
7464fi
7465if test "x$targ_defvec" != x; then
7466
7467cat >>confdefs.h <<_ACEOF
7468#define DEFAULT_BFD_VEC $targ_defvec
7469_ACEOF
7470
7471fi
7472
7473# The CLI cannot be disabled yet, but may be in the future.
7474
7475# Enable CLI.
7476# Check whether --enable-gdbcli or --disable-gdbcli was given.
7477if test "${enable_gdbcli+set}" = set; then
7478 enableval="$enable_gdbcli"
7479 case $enableval in
7480 yes)
7481 ;;
7482 no)
7483 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7484echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7485 { (exit 1); exit 1; }; } ;;
7486 *)
7487 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7488echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7489 { (exit 1); exit 1; }; } ;;
7490 esac
7491else
7492 enable_gdbcli=yes
7493fi;
7494if test x"$enable_gdbcli" = xyes; then
7495 if test -d $srcdir/cli; then
7496 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7497 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7498 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7499 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7500 fi
7501fi
7502
7503# Enable MI.
7504# Check whether --enable-gdbmi or --disable-gdbmi was given.
7505if test "${enable_gdbmi+set}" = set; then
7506 enableval="$enable_gdbmi"
7507 case $enableval in
7508 yes | no)
7509 ;;
7510 *)
7511 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7512echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7513 { (exit 1); exit 1; }; } ;;
7514 esac
7515else
7516 enable_gdbmi=yes
7517fi;
7518if test x"$enable_gdbmi" = xyes; then
7519 if test -d $srcdir/mi; then
7520 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7521 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7522 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7523 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7524 fi
7525fi
7526
7527# Enable TUI.
7528# Check whether --enable-tui or --disable-tui was given.
7529if test "${enable_tui+set}" = set; then
7530 enableval="$enable_tui"
7531 case $enableval in
7532 yes | no)
7533 ;;
7534 *)
7535 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7536echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7537 { (exit 1); exit 1; }; } ;;
7538 esac
7539else
7540 enable_tui=yes
7541fi;
7542
7543# Enable gdbtk.
7544# Check whether --enable-gdbtk or --disable-gdbtk was given.
7545if test "${enable_gdbtk+set}" = set; then
7546 enableval="$enable_gdbtk"
7547 case $enableval in
7548 yes | no)
7549 ;;
7550 *)
7551 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7552echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7553 { (exit 1); exit 1; }; } ;;
7554 esac
7555else
7556 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7557 enable_gdbtk=yes
7558 else
7559 enable_gdbtk=no
7560 fi
7561fi;
7562# We unconditionally disable gdbtk tests on selected platforms.
7563case $host_os in
7564 go32* | windows*)
7565 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7566echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7567 enable_gdbtk=no ;;
7568esac
7569
7570# Libunwind support.
7571
7572# Check whether --with-libunwind or --without-libunwind was given.
7573if test "${with_libunwind+set}" = set; then
7574 withval="$with_libunwind"
7575 case "${withval}" in
7576 yes) enable_libunwind=yes ;;
7577 no) enable_libunwind=no ;;
7578 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7579echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7580 { (exit 1); exit 1; }; } ;;
7581esac
7582else
7583
7584
7585for ac_header in libunwind.h
7586do
7587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 echo "$as_me:$LINENO: checking for $ac_header" >&5
7590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7591if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593fi
7594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7596else
7597 # Is the header compilable?
7598echo "$as_me:$LINENO: checking $ac_header usability" >&5
7599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7600cat >conftest.$ac_ext <<_ACEOF
7601/* confdefs.h. */
7602_ACEOF
7603cat confdefs.h >>conftest.$ac_ext
7604cat >>conftest.$ac_ext <<_ACEOF
7605/* end confdefs.h. */
7606$ac_includes_default
7607#include <$ac_header>
7608_ACEOF
7609rm -f conftest.$ac_objext
7610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7611 (eval $ac_compile) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest.$ac_objext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_header_compiler=yes
7632else
7633 echo "$as_me: failed program was:" >&5
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
7636ac_header_compiler=no
7637fi
7638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7640echo "${ECHO_T}$ac_header_compiler" >&6
7641
7642# Is the header present?
7643echo "$as_me:$LINENO: checking $ac_header presence" >&5
7644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7645cat >conftest.$ac_ext <<_ACEOF
7646/* confdefs.h. */
7647_ACEOF
7648cat confdefs.h >>conftest.$ac_ext
7649cat >>conftest.$ac_ext <<_ACEOF
7650/* end confdefs.h. */
7651#include <$ac_header>
7652_ACEOF
7653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } >/dev/null; then
7661 if test -s conftest.err; then
7662 ac_cpp_err=$ac_c_preproc_warn_flag
7663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7664 else
7665 ac_cpp_err=
7666 fi
7667else
7668 ac_cpp_err=yes
7669fi
7670if test -z "$ac_cpp_err"; then
7671 ac_header_preproc=yes
7672else
7673 echo "$as_me: failed program was:" >&5
7674sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ac_header_preproc=no
7677fi
7678rm -f conftest.err conftest.$ac_ext
7679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7680echo "${ECHO_T}$ac_header_preproc" >&6
7681
7682# So? What about this header?
7683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7684 yes:no: )
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7689 ac_header_preproc=yes
7690 ;;
7691 no:yes:* )
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7704 (
7705 cat <<\_ASBOX
7706## ------------------------------------------ ##
7707## Report this to the AC_PACKAGE_NAME lists. ##
7708## ------------------------------------------ ##
7709_ASBOX
7710 ) |
7711 sed "s/^/$as_me: WARNING: /" >&2
7712 ;;
7713esac
7714echo "$as_me:$LINENO: checking for $ac_header" >&5
7715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7716if eval "test \"\${$as_ac_Header+set}\" = set"; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719 eval "$as_ac_Header=\$ac_header_preproc"
7720fi
7721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7723
7724fi
7725if test `eval echo '${'$as_ac_Header'}'` = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728_ACEOF
7729
7730fi
7731
7732done
7733
7734
7735for ac_header in libunwind-ia64.h
7736do
7737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7738if eval "test \"\${$as_ac_Header+set}\" = set"; then
7739 echo "$as_me:$LINENO: checking for $ac_header" >&5
7740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7741if eval "test \"\${$as_ac_Header+set}\" = set"; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743fi
7744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7746else
7747 # Is the header compilable?
7748echo "$as_me:$LINENO: checking $ac_header usability" >&5
7749echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7750cat >conftest.$ac_ext <<_ACEOF
7751/* confdefs.h. */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h. */
7756$ac_includes_default
7757#include <$ac_header>
7758_ACEOF
7759rm -f conftest.$ac_objext
7760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest.$ac_objext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_header_compiler=yes
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786ac_header_compiler=no
7787fi
7788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7790echo "${ECHO_T}$ac_header_compiler" >&6
7791
7792# Is the header present?
7793echo "$as_me:$LINENO: checking $ac_header presence" >&5
7794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7795cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801#include <$ac_header>
7802_ACEOF
7803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } >/dev/null; then
7811 if test -s conftest.err; then
7812 ac_cpp_err=$ac_c_preproc_warn_flag
7813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7814 else
7815 ac_cpp_err=
7816 fi
7817else
7818 ac_cpp_err=yes
7819fi
7820if test -z "$ac_cpp_err"; then
7821 ac_header_preproc=yes
7822else
7823 echo "$as_me: failed program was:" >&5
7824sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 ac_header_preproc=no
7827fi
7828rm -f conftest.err conftest.$ac_ext
7829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830echo "${ECHO_T}$ac_header_preproc" >&6
7831
7832# So? What about this header?
7833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7834 yes:no: )
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7839 ac_header_preproc=yes
7840 ;;
7841 no:yes:* )
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7854 (
7855 cat <<\_ASBOX
7856## ------------------------------------------ ##
7857## Report this to the AC_PACKAGE_NAME lists. ##
7858## ------------------------------------------ ##
7859_ASBOX
7860 ) |
7861 sed "s/^/$as_me: WARNING: /" >&2
7862 ;;
7863esac
7864echo "$as_me:$LINENO: checking for $ac_header" >&5
7865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7866if eval "test \"\${$as_ac_Header+set}\" = set"; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868else
7869 eval "$as_ac_Header=\$ac_header_preproc"
7870fi
7871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7873
7874fi
7875if test `eval echo '${'$as_ac_Header'}'` = yes; then
7876 cat >>confdefs.h <<_ACEOF
7877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7878_ACEOF
7879
7880fi
7881
7882done
7883
7884 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7885 enable_libunwind=yes;
7886 fi
7887
7888fi;
7889
7890if test x"$enable_libunwind" = xyes; then
7891
7892for ac_header in libunwind.h
7893do
7894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896 echo "$as_me:$LINENO: checking for $ac_header" >&5
7897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7898if eval "test \"\${$as_ac_Header+set}\" = set"; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900fi
7901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7903else
7904 # Is the header compilable?
7905echo "$as_me:$LINENO: checking $ac_header usability" >&5
7906echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7907cat >conftest.$ac_ext <<_ACEOF
7908/* confdefs.h. */
7909_ACEOF
7910cat confdefs.h >>conftest.$ac_ext
7911cat >>conftest.$ac_ext <<_ACEOF
7912/* end confdefs.h. */
7913$ac_includes_default
7914#include <$ac_header>
7915_ACEOF
7916rm -f conftest.$ac_objext
7917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7918 (eval $ac_compile) 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -z "$ac_c_werror_flag"
7926 || test ! -s conftest.err'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest.$ac_objext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_header_compiler=yes
7939else
7940 echo "$as_me: failed program was:" >&5
7941sed 's/^/| /' conftest.$ac_ext >&5
7942
7943ac_header_compiler=no
7944fi
7945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7946echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7947echo "${ECHO_T}$ac_header_compiler" >&6
7948
7949# Is the header present?
7950echo "$as_me:$LINENO: checking $ac_header presence" >&5
7951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7952cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958#include <$ac_header>
7959_ACEOF
7960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } >/dev/null; then
7968 if test -s conftest.err; then
7969 ac_cpp_err=$ac_c_preproc_warn_flag
7970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7971 else
7972 ac_cpp_err=
7973 fi
7974else
7975 ac_cpp_err=yes
7976fi
7977if test -z "$ac_cpp_err"; then
7978 ac_header_preproc=yes
7979else
7980 echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 ac_header_preproc=no
7984fi
7985rm -f conftest.err conftest.$ac_ext
7986echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987echo "${ECHO_T}$ac_header_preproc" >&6
7988
7989# So? What about this header?
7990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7991 yes:no: )
7992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7996 ac_header_preproc=yes
7997 ;;
7998 no:yes:* )
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8011 (
8012 cat <<\_ASBOX
8013## ------------------------------------------ ##
8014## Report this to the AC_PACKAGE_NAME lists. ##
8015## ------------------------------------------ ##
8016_ASBOX
8017 ) |
8018 sed "s/^/$as_me: WARNING: /" >&2
8019 ;;
8020esac
8021echo "$as_me:$LINENO: checking for $ac_header" >&5
8022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8023if eval "test \"\${$as_ac_Header+set}\" = set"; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026 eval "$as_ac_Header=\$ac_header_preproc"
8027fi
8028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8030
8031fi
8032if test `eval echo '${'$as_ac_Header'}'` = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8035_ACEOF
8036
8037fi
8038
8039done
8040
8041
8042for ac_header in libunwind-ia64.h
8043do
8044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8045if eval "test \"\${$as_ac_Header+set}\" = set"; then
8046 echo "$as_me:$LINENO: checking for $ac_header" >&5
8047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8048if eval "test \"\${$as_ac_Header+set}\" = set"; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050fi
8051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8053else
8054 # Is the header compilable?
8055echo "$as_me:$LINENO: checking $ac_header usability" >&5
8056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8057cat >conftest.$ac_ext <<_ACEOF
8058/* confdefs.h. */
8059_ACEOF
8060cat confdefs.h >>conftest.$ac_ext
8061cat >>conftest.$ac_ext <<_ACEOF
8062/* end confdefs.h. */
8063$ac_includes_default
8064#include <$ac_header>
8065_ACEOF
8066rm -f conftest.$ac_objext
8067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag"
8076 || test ! -s conftest.err'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_header_compiler=yes
8089else
8090 echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093ac_header_compiler=no
8094fi
8095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8097echo "${ECHO_T}$ac_header_compiler" >&6
8098
8099# Is the header present?
8100echo "$as_me:$LINENO: checking $ac_header presence" >&5
8101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8102cat >conftest.$ac_ext <<_ACEOF
8103/* confdefs.h. */
8104_ACEOF
8105cat confdefs.h >>conftest.$ac_ext
8106cat >>conftest.$ac_ext <<_ACEOF
8107/* end confdefs.h. */
8108#include <$ac_header>
8109_ACEOF
8110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev/null; then
8118 if test -s conftest.err; then
8119 ac_cpp_err=$ac_c_preproc_warn_flag
8120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8121 else
8122 ac_cpp_err=
8123 fi
8124else
8125 ac_cpp_err=yes
8126fi
8127if test -z "$ac_cpp_err"; then
8128 ac_header_preproc=yes
8129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_header_preproc=no
8134fi
8135rm -f conftest.err conftest.$ac_ext
8136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8137echo "${ECHO_T}$ac_header_preproc" >&6
8138
8139# So? What about this header?
8140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8141 yes:no: )
8142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8146 ac_header_preproc=yes
8147 ;;
8148 no:yes:* )
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8161 (
8162 cat <<\_ASBOX
8163## ------------------------------------------ ##
8164## Report this to the AC_PACKAGE_NAME lists. ##
8165## ------------------------------------------ ##
8166_ASBOX
8167 ) |
8168 sed "s/^/$as_me: WARNING: /" >&2
8169 ;;
8170esac
8171echo "$as_me:$LINENO: checking for $ac_header" >&5
8172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8173if eval "test \"\${$as_ac_Header+set}\" = set"; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 eval "$as_ac_Header=\$ac_header_preproc"
8177fi
8178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8180
8181fi
8182if test `eval echo '${'$as_ac_Header'}'` = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8185_ACEOF
8186
8187fi
8188
8189done
8190
8191
8192cat >>confdefs.h <<\_ACEOF
8193#define HAVE_LIBUNWIND 1
8194_ACEOF
8195
8196 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8197 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8198 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8199fi
8200
8201# Profiling support.
8202# Check whether --enable-profiling or --disable-profiling was given.
8203if test "${enable_profiling+set}" = set; then
8204 enableval="$enable_profiling"
8205 case $enableval in
8206 yes | no)
8207 ;;
8208 *)
8209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8210echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8211 { (exit 1); exit 1; }; } ;;
8212 esac
8213else
8214 enable_profiling=no
8215fi;
8216
8217
8218
8219for ac_func in monstartup _mcleanup
8220do
8221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222echo "$as_me:$LINENO: checking for $ac_func" >&5
8223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8224if eval "test \"\${$as_ac_var+set}\" = set"; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
8233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8235#define $ac_func innocuous_$ac_func
8236
8237/* System header to define __stub macros and hopefully few prototypes,
8238 which can conflict with char $ac_func (); below.
8239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240 <limits.h> exists even on freestanding compilers. */
8241
8242#ifdef __STDC__
8243# include <limits.h>
8244#else
8245# include <assert.h>
8246#endif
8247
8248#undef $ac_func
8249
8250/* Override any gcc2 internal prototype to avoid an error. */
8251#ifdef __cplusplus
8252extern "C"
8253{
8254#endif
8255/* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257char $ac_func ();
8258/* The GNU C library defines this for functions which it implements
8259 to always fail with ENOSYS. Some functions are actually named
8260 something starting with __ and the normal name is an alias. */
8261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8262choke me
8263#else
8264char (*f) () = $ac_func;
8265#endif
8266#ifdef __cplusplus
8267}
8268#endif
8269
8270int
8271main ()
8272{
8273return f != $ac_func;
8274 ;
8275 return 0;
8276}
8277_ACEOF
8278rm -f conftest.$ac_objext conftest$ac_exeext
8279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -z "$ac_c_werror_flag"
8288 || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 eval "$as_ac_var=yes"
8301else
8302 echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
8305eval "$as_ac_var=no"
8306fi
8307rm -f conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309fi
8310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8312if test `eval echo '${'$as_ac_var'}'` = yes; then
8313 cat >>confdefs.h <<_ACEOF
8314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8315_ACEOF
8316
8317fi
8318done
8319
8320echo "$as_me:$LINENO: checking for _etext" >&5
8321echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8322if test "${ac_cv_var__etext+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else
8325 cat >conftest.$ac_ext <<_ACEOF
8326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
8330/* end confdefs.h. */
8331#include <stdlib.h>
8332extern char _etext;
8333
8334int
8335main ()
8336{
8337free (&_etext);
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext conftest$ac_exeext
8343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -z "$ac_c_werror_flag"
8352 || test ! -s conftest.err'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_var__etext=yes
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369ac_cv_var__etext=no
8370fi
8371rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373fi
8374echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8375echo "${ECHO_T}$ac_cv_var__etext" >&6
8376if test $ac_cv_var__etext = yes; then
8377
8378cat >>confdefs.h <<\_ACEOF
8379#define HAVE__ETEXT 1
8380_ACEOF
8381
8382fi
8383echo "$as_me:$LINENO: checking for etext" >&5
8384echo $ECHO_N "checking for etext... $ECHO_C" >&6
8385if test "${ac_cv_var_etext+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387else
8388 cat >conftest.$ac_ext <<_ACEOF
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
8394#include <stdlib.h>
8395extern char etext;
8396
8397int
8398main ()
8399{
8400free (&etext);
8401 ;
8402 return 0;
8403}
8404_ACEOF
8405rm -f conftest.$ac_objext conftest$ac_exeext
8406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_var_etext=yes
8428else
8429 echo "$as_me: failed program was:" >&5
8430sed 's/^/| /' conftest.$ac_ext >&5
8431
8432ac_cv_var_etext=no
8433fi
8434rm -f conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436fi
8437echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8438echo "${ECHO_T}$ac_cv_var_etext" >&6
8439if test $ac_cv_var_etext = yes; then
8440
8441cat >>confdefs.h <<\_ACEOF
8442#define HAVE_ETEXT 1
8443_ACEOF
8444
8445fi
8446if test "$enable_profiling" = yes ; then
8447 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8448 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8449echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8450 { (exit 1); exit 1; }; }
8451 fi
8452 PROFILE_CFLAGS=-pg
8453 OLD_CFLAGS="$CFLAGS"
8454 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8455
8456 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8457echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8458if test "${ac_cv_cc_supports_pg+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
8461 cat >conftest.$ac_ext <<_ACEOF
8462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
8467
8468int
8469main ()
8470{
8471int x;
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476rm -f conftest.$ac_objext
8477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_cc_supports_pg=yes
8499else
8500 echo "$as_me: failed program was:" >&5
8501sed 's/^/| /' conftest.$ac_ext >&5
8502
8503ac_cv_cc_supports_pg=no
8504fi
8505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506fi
8507echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8508echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8509
8510 if test $ac_cv_cc_supports_pg = no; then
8511 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8512echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8513 { (exit 1); exit 1; }; }
8514 fi
8515
8516 CFLAGS="$OLD_CFLAGS"
8517fi
8518
8519# --------------------- #
8520# Checks for programs. #
8521# --------------------- #
8522
8523for ac_prog in gawk mawk nawk awk
8524do
8525 # Extract the first word of "$ac_prog", so it can be a program name with args.
8526set dummy $ac_prog; ac_word=$2
8527echo "$as_me:$LINENO: checking for $ac_word" >&5
8528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8529if test "${ac_cv_prog_AWK+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
8532 if test -n "$AWK"; then
8533 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8534else
8535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536for as_dir in $PATH
8537do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8542 ac_cv_prog_AWK="$ac_prog"
8543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546done
8547done
8548
8549fi
8550fi
8551AWK=$ac_cv_prog_AWK
8552if test -n "$AWK"; then
8553 echo "$as_me:$LINENO: result: $AWK" >&5
8554echo "${ECHO_T}$AWK" >&6
8555else
8556 echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
8558fi
8559
8560 test -n "$AWK" && break
8561done
8562
8563# Find a good install program. We prefer a C program (faster),
8564# so one script is as good as another. But avoid the broken or
8565# incompatible versions:
8566# SysV /etc/install, /usr/sbin/install
8567# SunOS /usr/etc/install
8568# IRIX /sbin/install
8569# AIX /bin/install
8570# AmigaOS /C/install, which installs bootblocks on floppy discs
8571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8574# OS/2's system install, which has a completely different semantic
8575# ./install, which can be erroneously created by make from ./install.sh.
8576echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8577echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8578if test -z "$INSTALL"; then
8579if test "${ac_cv_path_install+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 # Account for people who put trailing slashes in PATH elements.
8588case $as_dir/ in
8589 ./ | .// | /cC/* | \
8590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8591 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8592 /usr/ucb/* ) ;;
8593 *)
8594 # OSF1 and SCO ODT 3.0 have their own names for install.
8595 # Don't use installbsd from OSF since it installs stuff as root
8596 # by default.
8597 for ac_prog in ginstall scoinst install; do
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8600 if test $ac_prog = install &&
8601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8602 # AIX install. It has an incompatible calling convention.
8603 :
8604 elif test $ac_prog = install &&
8605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8606 # program-specific install script used by HP pwplus--don't use.
8607 :
8608 else
8609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8610 break 3
8611 fi
8612 fi
8613 done
8614 done
8615 ;;
8616esac
8617done
8618
8619
8620fi
8621 if test "${ac_cv_path_install+set}" = set; then
8622 INSTALL=$ac_cv_path_install
8623 else
8624 # As a last resort, use the slow shell script. We don't cache a
8625 # path for INSTALL within a source directory, because that will
8626 # break other packages using the cache if that directory is
8627 # removed, or if the path is relative.
8628 INSTALL=$ac_install_sh
8629 fi
8630fi
8631echo "$as_me:$LINENO: result: $INSTALL" >&5
8632echo "${ECHO_T}$INSTALL" >&6
8633
8634# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8635# It thinks the first close brace ends the variable substitution.
8636test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8637
8638test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8639
8640test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8641
8642echo "$as_me:$LINENO: checking whether ln -s works" >&5
8643echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8644LN_S=$as_ln_s
8645if test "$LN_S" = "ln -s"; then
8646 echo "$as_me:$LINENO: result: yes" >&5
8647echo "${ECHO_T}yes" >&6
8648else
8649 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8650echo "${ECHO_T}no, using $LN_S" >&6
8651fi
8652
8653if test -n "$ac_tool_prefix"; then
8654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8655set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8656echo "$as_me:$LINENO: checking for $ac_word" >&5
8657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658if test "${ac_cv_prog_RANLIB+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 if test -n "$RANLIB"; then
8662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8674 fi
8675done
8676done
8677
8678fi
8679fi
8680RANLIB=$ac_cv_prog_RANLIB
8681if test -n "$RANLIB"; then
8682 echo "$as_me:$LINENO: result: $RANLIB" >&5
8683echo "${ECHO_T}$RANLIB" >&6
8684else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687fi
8688
8689fi
8690if test -z "$ac_cv_prog_RANLIB"; then
8691 ac_ct_RANLIB=$RANLIB
8692 # Extract the first word of "ranlib", so it can be a program name with args.
8693set dummy ranlib; ac_word=$2
8694echo "$as_me:$LINENO: checking for $ac_word" >&5
8695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8696if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699 if test -n "$ac_ct_RANLIB"; then
8700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8701else
8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_ac_ct_RANLIB="ranlib"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713done
8714done
8715
8716 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8717fi
8718fi
8719ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8720if test -n "$ac_ct_RANLIB"; then
8721 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8722echo "${ECHO_T}$ac_ct_RANLIB" >&6
8723else
8724 echo "$as_me:$LINENO: result: no" >&5
8725echo "${ECHO_T}no" >&6
8726fi
8727
8728 RANLIB=$ac_ct_RANLIB
8729else
8730 RANLIB="$ac_cv_prog_RANLIB"
8731fi
8732
8733for ac_prog in 'bison -y' byacc
8734do
8735 # Extract the first word of "$ac_prog", so it can be a program name with args.
8736set dummy $ac_prog; ac_word=$2
8737echo "$as_me:$LINENO: checking for $ac_word" >&5
8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8739if test "${ac_cv_prog_YACC+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742 if test -n "$YACC"; then
8743 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_YACC="$ac_prog"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757done
8758
8759fi
8760fi
8761YACC=$ac_cv_prog_YACC
8762if test -n "$YACC"; then
8763 echo "$as_me:$LINENO: result: $YACC" >&5
8764echo "${ECHO_T}$YACC" >&6
8765else
8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768fi
8769
8770 test -n "$YACC" && break
8771done
8772test -n "$YACC" || YACC="yacc"
8773
8774
8775if test -n "$ac_tool_prefix"; then
8776 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8777set dummy ${ac_tool_prefix}ar; ac_word=$2
8778echo "$as_me:$LINENO: checking for $ac_word" >&5
8779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780if test "${ac_cv_prog_AR+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782else
8783 if test -n "$AR"; then
8784 ac_cv_prog_AR="$AR" # Let the user override the test.
8785else
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_AR="${ac_tool_prefix}ar"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797done
8798done
8799
8800fi
8801fi
8802AR=$ac_cv_prog_AR
8803if test -n "$AR"; then
8804 echo "$as_me:$LINENO: result: $AR" >&5
8805echo "${ECHO_T}$AR" >&6
8806else
8807 echo "$as_me:$LINENO: result: no" >&5
8808echo "${ECHO_T}no" >&6
8809fi
8810
8811fi
8812if test -z "$ac_cv_prog_AR"; then
8813 ac_ct_AR=$AR
8814 # Extract the first word of "ar", so it can be a program name with args.
8815set dummy ar; ac_word=$2
8816echo "$as_me:$LINENO: checking for $ac_word" >&5
8817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8818if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820else
8821 if test -n "$ac_ct_AR"; then
8822 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8823else
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_ac_ct_AR="ar"
8832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835done
8836done
8837
8838fi
8839fi
8840ac_ct_AR=$ac_cv_prog_ac_ct_AR
8841if test -n "$ac_ct_AR"; then
8842 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8843echo "${ECHO_T}$ac_ct_AR" >&6
8844else
8845 echo "$as_me:$LINENO: result: no" >&5
8846echo "${ECHO_T}no" >&6
8847fi
8848
8849 AR=$ac_ct_AR
8850else
8851 AR="$ac_cv_prog_AR"
8852fi
8853
8854if test -n "$ac_tool_prefix"; then
8855 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8856set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8857echo "$as_me:$LINENO: checking for $ac_word" >&5
8858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8859if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861else
8862 if test -n "$DLLTOOL"; then
8863 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8864else
8865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866for as_dir in $PATH
8867do
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8875 fi
8876done
8877done
8878
8879fi
8880fi
8881DLLTOOL=$ac_cv_prog_DLLTOOL
8882if test -n "$DLLTOOL"; then
8883 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8884echo "${ECHO_T}$DLLTOOL" >&6
8885else
8886 echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
8888fi
8889
8890fi
8891if test -z "$ac_cv_prog_DLLTOOL"; then
8892 ac_ct_DLLTOOL=$DLLTOOL
8893 # Extract the first word of "dlltool", so it can be a program name with args.
8894set dummy dlltool; ac_word=$2
8895echo "$as_me:$LINENO: checking for $ac_word" >&5
8896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899else
8900 if test -n "$ac_ct_DLLTOOL"; then
8901 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8902else
8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915done
8916
8917fi
8918fi
8919ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8920if test -n "$ac_ct_DLLTOOL"; then
8921 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8922echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8923else
8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
8926fi
8927
8928 DLLTOOL=$ac_ct_DLLTOOL
8929else
8930 DLLTOOL="$ac_cv_prog_DLLTOOL"
8931fi
8932
8933if test -n "$ac_tool_prefix"; then
8934 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8935set dummy ${ac_tool_prefix}windres; ac_word=$2
8936echo "$as_me:$LINENO: checking for $ac_word" >&5
8937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8938if test "${ac_cv_prog_WINDRES+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941 if test -n "$WINDRES"; then
8942 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8943else
8944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945for as_dir in $PATH
8946do
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8954 fi
8955done
8956done
8957
8958fi
8959fi
8960WINDRES=$ac_cv_prog_WINDRES
8961if test -n "$WINDRES"; then
8962 echo "$as_me:$LINENO: result: $WINDRES" >&5
8963echo "${ECHO_T}$WINDRES" >&6
8964else
8965 echo "$as_me:$LINENO: result: no" >&5
8966echo "${ECHO_T}no" >&6
8967fi
8968
8969fi
8970if test -z "$ac_cv_prog_WINDRES"; then
8971 ac_ct_WINDRES=$WINDRES
8972 # Extract the first word of "windres", so it can be a program name with args.
8973set dummy windres; ac_word=$2
8974echo "$as_me:$LINENO: checking for $ac_word" >&5
8975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8976if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979 if test -n "$ac_ct_WINDRES"; then
8980 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8981else
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_ac_ct_WINDRES="windres"
8990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
8993done
8994done
8995
8996fi
8997fi
8998ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8999if test -n "$ac_ct_WINDRES"; then
9000 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9001echo "${ECHO_T}$ac_ct_WINDRES" >&6
9002else
9003 echo "$as_me:$LINENO: result: no" >&5
9004echo "${ECHO_T}no" >&6
9005fi
9006
9007 WINDRES=$ac_ct_WINDRES
9008else
9009 WINDRES="$ac_cv_prog_WINDRES"
9010fi
9011
9012
9013# Needed for GNU/Hurd.
9014if test -n "$ac_tool_prefix"; then
9015 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9016set dummy ${ac_tool_prefix}mig; ac_word=$2
9017echo "$as_me:$LINENO: checking for $ac_word" >&5
9018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9019if test "${ac_cv_prog_MIG+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022 if test -n "$MIG"; then
9023 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036done
9037done
9038
9039fi
9040fi
9041MIG=$ac_cv_prog_MIG
9042if test -n "$MIG"; then
9043 echo "$as_me:$LINENO: result: $MIG" >&5
9044echo "${ECHO_T}$MIG" >&6
9045else
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
9048fi
9049
9050fi
9051if test -z "$ac_cv_prog_MIG"; then
9052 ac_ct_MIG=$MIG
9053 # Extract the first word of "mig", so it can be a program name with args.
9054set dummy mig; ac_word=$2
9055echo "$as_me:$LINENO: checking for $ac_word" >&5
9056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9057if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9059else
9060 if test -n "$ac_ct_MIG"; then
9061 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9062else
9063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064for as_dir in $PATH
9065do
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9070 ac_cv_prog_ac_ct_MIG="mig"
9071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9073 fi
9074done
9075done
9076
9077fi
9078fi
9079ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9080if test -n "$ac_ct_MIG"; then
9081 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9082echo "${ECHO_T}$ac_ct_MIG" >&6
9083else
9084 echo "$as_me:$LINENO: result: no" >&5
9085echo "${ECHO_T}no" >&6
9086fi
9087
9088 MIG=$ac_ct_MIG
9089else
9090 MIG="$ac_cv_prog_MIG"
9091fi
9092
9093
9094# ---------------------- #
9095# Checks for libraries. #
9096# ---------------------- #
9097
9098# We might need to link with -lm; most simulators need it.
9099
9100echo "$as_me:$LINENO: checking for main in -lm" >&5
9101echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9102if test "${ac_cv_lib_m_main+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104else
9105 ac_check_lib_save_LIBS=$LIBS
9106LIBS="-lm $LIBS"
9107cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113
9114
9115int
9116main ()
9117{
9118main ();
9119 ;
9120 return 0;
9121}
9122_ACEOF
9123rm -f conftest.$ac_objext conftest$ac_exeext
9124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 ac_cv_lib_m_main=yes
9146else
9147 echo "$as_me: failed program was:" >&5
9148sed 's/^/| /' conftest.$ac_ext >&5
9149
9150ac_cv_lib_m_main=no
9151fi
9152rm -f conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154LIBS=$ac_check_lib_save_LIBS
9155fi
9156echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9157echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9158if test $ac_cv_lib_m_main = yes; then
9159 cat >>confdefs.h <<_ACEOF
9160#define HAVE_LIBM 1
9161_ACEOF
9162
9163 LIBS="-lm $LIBS"
9164
9165fi
9166
9167
9168# We need to link with -lw to get `wctype' on Solaris before Solaris
9169# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9170# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9171# is known to have this problem). Therefore we avoid libw if we can.
9172echo "$as_me:$LINENO: checking for wctype" >&5
9173echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9174if test "${ac_cv_func_wctype+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176else
9177 cat >conftest.$ac_ext <<_ACEOF
9178/* confdefs.h. */
9179_ACEOF
9180cat confdefs.h >>conftest.$ac_ext
9181cat >>conftest.$ac_ext <<_ACEOF
9182/* end confdefs.h. */
9183/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9185#define wctype innocuous_wctype
9186
9187/* System header to define __stub macros and hopefully few prototypes,
9188 which can conflict with char wctype (); below.
9189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9190 <limits.h> exists even on freestanding compilers. */
9191
9192#ifdef __STDC__
9193# include <limits.h>
9194#else
9195# include <assert.h>
9196#endif
9197
9198#undef wctype
9199
9200/* Override any gcc2 internal prototype to avoid an error. */
9201#ifdef __cplusplus
9202extern "C"
9203{
9204#endif
9205/* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
9207char wctype ();
9208/* The GNU C library defines this for functions which it implements
9209 to always fail with ENOSYS. Some functions are actually named
9210 something starting with __ and the normal name is an alias. */
9211#if defined (__stub_wctype) || defined (__stub___wctype)
9212choke me
9213#else
9214char (*f) () = wctype;
9215#endif
9216#ifdef __cplusplus
9217}
9218#endif
9219
9220int
9221main ()
9222{
9223return f != wctype;
9224 ;
9225 return 0;
9226}
9227_ACEOF
9228rm -f conftest.$ac_objext conftest$ac_exeext
9229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -z "$ac_c_werror_flag"
9238 || test ! -s conftest.err'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_func_wctype=yes
9251else
9252 echo "$as_me: failed program was:" >&5
9253sed 's/^/| /' conftest.$ac_ext >&5
9254
9255ac_cv_func_wctype=no
9256fi
9257rm -f conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259fi
9260echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9261echo "${ECHO_T}$ac_cv_func_wctype" >&6
9262if test $ac_cv_func_wctype = yes; then
9263 :
9264else
9265
9266echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9267echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9268if test "${ac_cv_lib_w_wctype+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270else
9271 ac_check_lib_save_LIBS=$LIBS
9272LIBS="-lw $LIBS"
9273cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h. */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h. */
9279
9280/* Override any gcc2 internal prototype to avoid an error. */
9281#ifdef __cplusplus
9282extern "C"
9283#endif
9284/* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
9286char wctype ();
9287int
9288main ()
9289{
9290wctype ();
9291 ;
9292 return 0;
9293}
9294_ACEOF
9295rm -f conftest.$ac_objext conftest$ac_exeext
9296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297 (eval $ac_link) 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -z "$ac_c_werror_flag"
9305 || test ! -s conftest.err'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; } &&
9311 { ac_try='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 ac_cv_lib_w_wctype=yes
9318else
9319 echo "$as_me: failed program was:" >&5
9320sed 's/^/| /' conftest.$ac_ext >&5
9321
9322ac_cv_lib_w_wctype=no
9323fi
9324rm -f conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9326LIBS=$ac_check_lib_save_LIBS
9327fi
9328echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9329echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9330if test $ac_cv_lib_w_wctype = yes; then
9331 cat >>confdefs.h <<_ACEOF
9332#define HAVE_LIBW 1
9333_ACEOF
9334
9335 LIBS="-lw $LIBS"
9336
9337fi
9338
9339fi
9340
9341
9342# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9343echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9344echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9345if test "${ac_cv_search_gethostbyname+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348 ac_func_search_save_LIBS=$LIBS
9349ac_cv_search_gethostbyname=no
9350cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
9356
9357/* Override any gcc2 internal prototype to avoid an error. */
9358#ifdef __cplusplus
9359extern "C"
9360#endif
9361/* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
9363char gethostbyname ();
9364int
9365main ()
9366{
9367gethostbyname ();
9368 ;
9369 return 0;
9370}
9371_ACEOF
9372rm -f conftest.$ac_objext conftest$ac_exeext
9373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374 (eval $ac_link) 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -z "$ac_c_werror_flag"
9382 || test ! -s conftest.err'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_cv_search_gethostbyname="none required"
9395else
9396 echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399fi
9400rm -f conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9402if test "$ac_cv_search_gethostbyname" = no; then
9403 for ac_lib in nsl; do
9404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9405 cat >conftest.$ac_ext <<_ACEOF
9406/* confdefs.h. */
9407_ACEOF
9408cat confdefs.h >>conftest.$ac_ext
9409cat >>conftest.$ac_ext <<_ACEOF
9410/* end confdefs.h. */
9411
9412/* Override any gcc2 internal prototype to avoid an error. */
9413#ifdef __cplusplus
9414extern "C"
9415#endif
9416/* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9418char gethostbyname ();
9419int
9420main ()
9421{
9422gethostbyname ();
9423 ;
9424 return 0;
9425}
9426_ACEOF
9427rm -f conftest.$ac_objext conftest$ac_exeext
9428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429 (eval $ac_link) 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_c_werror_flag"
9437 || test ! -s conftest.err'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 (eval $ac_try) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; } &&
9443 { ac_try='test -s conftest$ac_exeext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_search_gethostbyname="-l$ac_lib"
9450break
9451else
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455fi
9456rm -f conftest.err conftest.$ac_objext \
9457 conftest$ac_exeext conftest.$ac_ext
9458 done
9459fi
9460LIBS=$ac_func_search_save_LIBS
9461fi
9462echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9463echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9464if test "$ac_cv_search_gethostbyname" != no; then
9465 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9466
9467fi
9468
9469
9470# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9471echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9472echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9473if test "${ac_cv_search_socketpair+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476 ac_func_search_save_LIBS=$LIBS
9477ac_cv_search_socketpair=no
9478cat >conftest.$ac_ext <<_ACEOF
9479/* confdefs.h. */
9480_ACEOF
9481cat confdefs.h >>conftest.$ac_ext
9482cat >>conftest.$ac_ext <<_ACEOF
9483/* end confdefs.h. */
9484
9485/* Override any gcc2 internal prototype to avoid an error. */
9486#ifdef __cplusplus
9487extern "C"
9488#endif
9489/* We use char because int might match the return type of a gcc2
9490 builtin and then its argument prototype would still apply. */
9491char socketpair ();
9492int
9493main ()
9494{
9495socketpair ();
9496 ;
9497 return 0;
9498}
9499_ACEOF
9500rm -f conftest.$ac_objext conftest$ac_exeext
9501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_search_socketpair="none required"
9523else
9524 echo "$as_me: failed program was:" >&5
9525sed 's/^/| /' conftest.$ac_ext >&5
9526
9527fi
9528rm -f conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530if test "$ac_cv_search_socketpair" = no; then
9531 for ac_lib in socket; do
9532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9533 cat >conftest.$ac_ext <<_ACEOF
9534/* confdefs.h. */
9535_ACEOF
9536cat confdefs.h >>conftest.$ac_ext
9537cat >>conftest.$ac_ext <<_ACEOF
9538/* end confdefs.h. */
9539
9540/* Override any gcc2 internal prototype to avoid an error. */
9541#ifdef __cplusplus
9542extern "C"
9543#endif
9544/* We use char because int might match the return type of a gcc2
9545 builtin and then its argument prototype would still apply. */
9546char socketpair ();
9547int
9548main ()
9549{
9550socketpair ();
9551 ;
9552 return 0;
9553}
9554_ACEOF
9555rm -f conftest.$ac_objext conftest$ac_exeext
9556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_search_socketpair="-l$ac_lib"
9578break
9579else
9580 echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583fi
9584rm -f conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 done
9587fi
9588LIBS=$ac_func_search_save_LIBS
9589fi
9590echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9591echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9592if test "$ac_cv_search_socketpair" != no; then
9593 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9594
9595fi
9596
9597
9598# Link in zlib if we can. This allows us to read compressed debug sections.
9599echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9600echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9601if test "${ac_cv_search_zlibVersion+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603else
9604 ac_func_search_save_LIBS=$LIBS
9605ac_cv_search_zlibVersion=no
9606cat >conftest.$ac_ext <<_ACEOF
9607/* confdefs.h. */
9608_ACEOF
9609cat confdefs.h >>conftest.$ac_ext
9610cat >>conftest.$ac_ext <<_ACEOF
9611/* end confdefs.h. */
9612
9613/* Override any gcc2 internal prototype to avoid an error. */
9614#ifdef __cplusplus
9615extern "C"
9616#endif
9617/* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9619char zlibVersion ();
9620int
9621main ()
9622{
9623zlibVersion ();
9624 ;
9625 return 0;
9626}
9627_ACEOF
9628rm -f conftest.$ac_objext conftest$ac_exeext
9629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -z "$ac_c_werror_flag"
9638 || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest$ac_exeext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_search_zlibVersion="none required"
9651else
9652 echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
9655fi
9656rm -f conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658if test "$ac_cv_search_zlibVersion" = no; then
9659 for ac_lib in z; do
9660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9661 cat >conftest.$ac_ext <<_ACEOF
9662/* confdefs.h. */
9663_ACEOF
9664cat confdefs.h >>conftest.$ac_ext
9665cat >>conftest.$ac_ext <<_ACEOF
9666/* end confdefs.h. */
9667
9668/* Override any gcc2 internal prototype to avoid an error. */
9669#ifdef __cplusplus
9670extern "C"
9671#endif
9672/* We use char because int might match the return type of a gcc2
9673 builtin and then its argument prototype would still apply. */
9674char zlibVersion ();
9675int
9676main ()
9677{
9678zlibVersion ();
9679 ;
9680 return 0;
9681}
9682_ACEOF
9683rm -f conftest.$ac_objext conftest$ac_exeext
9684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685 (eval $ac_link) 2>conftest.er1
9686 ac_status=$?
9687 grep -v '^ *+' conftest.er1 >conftest.err
9688 rm -f conftest.er1
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_search_zlibVersion="-l$ac_lib"
9706break
9707else
9708 echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
9711fi
9712rm -f conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 done
9715fi
9716LIBS=$ac_func_search_save_LIBS
9717fi
9718echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9719echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9720if test "$ac_cv_search_zlibVersion" != no; then
9721 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9722
9723for ac_header in zlib.h
9724do
9725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9726if eval "test \"\${$as_ac_Header+set}\" = set"; then
9727 echo "$as_me:$LINENO: checking for $ac_header" >&5
9728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731fi
9732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9734else
9735 # Is the header compilable?
9736echo "$as_me:$LINENO: checking $ac_header usability" >&5
9737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9738cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h. */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h. */
9744$ac_includes_default
9745#include <$ac_header>
9746_ACEOF
9747rm -f conftest.$ac_objext
9748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9749 (eval $ac_compile) 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag"
9757 || test ! -s conftest.err'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest.$ac_objext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_header_compiler=yes
9770else
9771 echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
9773
9774ac_header_compiler=no
9775fi
9776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9778echo "${ECHO_T}$ac_header_compiler" >&6
9779
9780# Is the header present?
9781echo "$as_me:$LINENO: checking $ac_header presence" >&5
9782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9783cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
9788/* end confdefs.h. */
9789#include <$ac_header>
9790_ACEOF
9791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } >/dev/null; then
9799 if test -s conftest.err; then
9800 ac_cpp_err=$ac_c_preproc_warn_flag
9801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9802 else
9803 ac_cpp_err=
9804 fi
9805else
9806 ac_cpp_err=yes
9807fi
9808if test -z "$ac_cpp_err"; then
9809 ac_header_preproc=yes
9810else
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 ac_header_preproc=no
9815fi
9816rm -f conftest.err conftest.$ac_ext
9817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9818echo "${ECHO_T}$ac_header_preproc" >&6
9819
9820# So? What about this header?
9821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9822 yes:no: )
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9827 ac_header_preproc=yes
9828 ;;
9829 no:yes:* )
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9837echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9842 (
9843 cat <<\_ASBOX
9844## ------------------------------------------ ##
9845## Report this to the AC_PACKAGE_NAME lists. ##
9846## ------------------------------------------ ##
9847_ASBOX
9848 ) |
9849 sed "s/^/$as_me: WARNING: /" >&2
9850 ;;
9851esac
9852echo "$as_me:$LINENO: checking for $ac_header" >&5
9853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9854if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857 eval "$as_ac_Header=\$ac_header_preproc"
9858fi
9859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861
9862fi
9863if test `eval echo '${'$as_ac_Header'}'` = yes; then
9864 cat >>confdefs.h <<_ACEOF
9865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9866_ACEOF
9867
9868fi
9869
9870done
9871
9872fi
9873
9874
9875# Link in zlib if we can. This allows us to read compressed debug sections.
9876echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9877echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9878if test "${ac_cv_search_zlibVersion+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881 ac_func_search_save_LIBS=$LIBS
9882ac_cv_search_zlibVersion=no
9883cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h. */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h. */
9889
9890/* Override any gcc2 internal prototype to avoid an error. */
9891#ifdef __cplusplus
9892extern "C"
9893#endif
9894/* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9896char zlibVersion ();
9897int
9898main ()
9899{
9900zlibVersion ();
9901 ;
9902 return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_search_zlibVersion="none required"
9928else
9929 echo "$as_me: failed program was:" >&5
9930sed 's/^/| /' conftest.$ac_ext >&5
9931
9932fi
9933rm -f conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
9935if test "$ac_cv_search_zlibVersion" = no; then
9936 for ac_lib in z; do
9937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9939/* confdefs.h. */
9940_ACEOF
9941cat confdefs.h >>conftest.$ac_ext
9942cat >>conftest.$ac_ext <<_ACEOF
9943/* end confdefs.h. */
9944
9945/* Override any gcc2 internal prototype to avoid an error. */
9946#ifdef __cplusplus
9947extern "C"
9948#endif
9949/* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
9951char zlibVersion ();
9952int
9953main ()
9954{
9955zlibVersion ();
9956 ;
9957 return 0;
9958}
9959_ACEOF
9960rm -f conftest.$ac_objext conftest$ac_exeext
9961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag"
9970 || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 (eval $ac_try) 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_search_zlibVersion="-l$ac_lib"
9983break
9984else
9985 echo "$as_me: failed program was:" >&5
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
9988fi
9989rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 done
9992fi
9993LIBS=$ac_func_search_save_LIBS
9994fi
9995echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9996echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9997if test "$ac_cv_search_zlibVersion" != no; then
9998 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9999
10000for ac_header in zlib.h
10001do
10002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10003if eval "test \"\${$as_ac_Header+set}\" = set"; then
10004 echo "$as_me:$LINENO: checking for $ac_header" >&5
10005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10006if eval "test \"\${$as_ac_Header+set}\" = set"; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008fi
10009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10011else
10012 # Is the header compilable?
10013echo "$as_me:$LINENO: checking $ac_header usability" >&5
10014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10015cat >conftest.$ac_ext <<_ACEOF
10016/* confdefs.h. */
10017_ACEOF
10018cat confdefs.h >>conftest.$ac_ext
10019cat >>conftest.$ac_ext <<_ACEOF
10020/* end confdefs.h. */
10021$ac_includes_default
10022#include <$ac_header>
10023_ACEOF
10024rm -f conftest.$ac_objext
10025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026 (eval $ac_compile) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_c_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest.$ac_objext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_header_compiler=yes
10047else
10048 echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051ac_header_compiler=no
10052fi
10053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10054echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10055echo "${ECHO_T}$ac_header_compiler" >&6
10056
10057# Is the header present?
10058echo "$as_me:$LINENO: checking $ac_header presence" >&5
10059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10060cat >conftest.$ac_ext <<_ACEOF
10061/* confdefs.h. */
10062_ACEOF
10063cat confdefs.h >>conftest.$ac_ext
10064cat >>conftest.$ac_ext <<_ACEOF
10065/* end confdefs.h. */
10066#include <$ac_header>
10067_ACEOF
10068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } >/dev/null; then
10076 if test -s conftest.err; then
10077 ac_cpp_err=$ac_c_preproc_warn_flag
10078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10079 else
10080 ac_cpp_err=
10081 fi
10082else
10083 ac_cpp_err=yes
10084fi
10085if test -z "$ac_cpp_err"; then
10086 ac_header_preproc=yes
10087else
10088 echo "$as_me: failed program was:" >&5
10089sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 ac_header_preproc=no
10092fi
10093rm -f conftest.err conftest.$ac_ext
10094echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10095echo "${ECHO_T}$ac_header_preproc" >&6
10096
10097# So? What about this header?
10098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10099 yes:no: )
10100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10104 ac_header_preproc=yes
10105 ;;
10106 no:yes:* )
10107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10119 (
10120 cat <<\_ASBOX
10121## ------------------------------------------ ##
10122## Report this to the AC_PACKAGE_NAME lists. ##
10123## ------------------------------------------ ##
10124_ASBOX
10125 ) |
10126 sed "s/^/$as_me: WARNING: /" >&2
10127 ;;
10128esac
10129echo "$as_me:$LINENO: checking for $ac_header" >&5
10130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10131if eval "test \"\${$as_ac_Header+set}\" = set"; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134 eval "$as_ac_Header=\$ac_header_preproc"
10135fi
10136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10138
10139fi
10140if test `eval echo '${'$as_ac_Header'}'` = yes; then
10141 cat >>confdefs.h <<_ACEOF
10142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10143_ACEOF
10144
10145fi
10146
10147done
10148
10149fi
10150
10151
10152# For the TUI, we need enhanced curses functionality.
10153#
10154# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10155# curses library because the latter might not provide all the
10156# functionality we need. However, this leads to problems on systems
10157# where the linker searches /usr/local/lib, but the compiler doesn't
10158# search /usr/local/include, if ncurses is installed in /usr/local. A
10159# default installation of ncurses on alpha*-dec-osf* will lead to such
10160# a situation.
10161echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10162echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10163if test "${ac_cv_search_waddstr+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165else
10166 ac_func_search_save_LIBS=$LIBS
10167ac_cv_search_waddstr=no
10168cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h. */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h. */
10174
10175/* Override any gcc2 internal prototype to avoid an error. */
10176#ifdef __cplusplus
10177extern "C"
10178#endif
10179/* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10181char waddstr ();
10182int
10183main ()
10184{
10185waddstr ();
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
10191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192 (eval $ac_link) 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_search_waddstr="none required"
10213else
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
10217fi
10218rm -f conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220if test "$ac_cv_search_waddstr" = no; then
10221 for ac_lib in ncurses cursesX curses; do
10222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10223 cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
10229
10230/* Override any gcc2 internal prototype to avoid an error. */
10231#ifdef __cplusplus
10232extern "C"
10233#endif
10234/* We use char because int might match the return type of a gcc2
10235 builtin and then its argument prototype would still apply. */
10236char waddstr ();
10237int
10238main ()
10239{
10240waddstr ();
10241 ;
10242 return 0;
10243}
10244_ACEOF
10245rm -f conftest.$ac_objext conftest$ac_exeext
10246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247 (eval $ac_link) 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag"
10255 || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_cv_search_waddstr="-l$ac_lib"
10268break
10269else
10270 echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
10273fi
10274rm -f conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 done
10277fi
10278LIBS=$ac_func_search_save_LIBS
10279fi
10280echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10281echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10282if test "$ac_cv_search_waddstr" != no; then
10283 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10284
10285fi
10286
10287
10288# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10289echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10290echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10291if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293else
10294 ac_func_search_save_LIBS=$LIBS
10295ac_cv_search_dlgetmodinfo=no
10296cat >conftest.$ac_ext <<_ACEOF
10297/* confdefs.h. */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h. */
10302
10303/* Override any gcc2 internal prototype to avoid an error. */
10304#ifdef __cplusplus
10305extern "C"
10306#endif
10307/* We use char because int might match the return type of a gcc2
10308 builtin and then its argument prototype would still apply. */
10309char dlgetmodinfo ();
10310int
10311main ()
10312{
10313dlgetmodinfo ();
10314 ;
10315 return 0;
10316}
10317_ACEOF
10318rm -f conftest.$ac_objext conftest$ac_exeext
10319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_search_dlgetmodinfo="none required"
10341else
10342 echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345fi
10346rm -f conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348if test "$ac_cv_search_dlgetmodinfo" = no; then
10349 for ac_lib in dl xpdl; do
10350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10351 cat >conftest.$ac_ext <<_ACEOF
10352/* confdefs.h. */
10353_ACEOF
10354cat confdefs.h >>conftest.$ac_ext
10355cat >>conftest.$ac_ext <<_ACEOF
10356/* end confdefs.h. */
10357
10358/* Override any gcc2 internal prototype to avoid an error. */
10359#ifdef __cplusplus
10360extern "C"
10361#endif
10362/* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10364char dlgetmodinfo ();
10365int
10366main ()
10367{
10368dlgetmodinfo ();
10369 ;
10370 return 0;
10371}
10372_ACEOF
10373rm -f conftest.$ac_objext conftest$ac_exeext
10374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag"
10383 || test ! -s conftest.err'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10396break
10397else
10398 echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
10401fi
10402rm -f conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 done
10405fi
10406LIBS=$ac_func_search_save_LIBS
10407fi
10408echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10409echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10410if test "$ac_cv_search_dlgetmodinfo" != no; then
10411 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10412
10413fi
10414
10415
10416# Since GDB uses Readline, we need termcap functionality. In many
10417# cases this will be provided by the curses library, but some systems
10418# have a seperate termcap library, or no curses library at all.
10419
10420case $host_os in
10421 cygwin*)
10422 if test -d $srcdir/libtermcap; then
10423 LIBS="../libtermcap/libtermcap.a $LIBS"
10424 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10425 fi ;;
10426 go32* | *djgpp*)
10427 ac_cv_search_tgetent="none required"
10428 ;;
10429 *mingw32*)
10430 ac_cv_search_tgetent="none required"
10431 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10432 ;;
10433esac
10434
10435# These are the libraries checked by Readline.
10436echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10437echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10438if test "${ac_cv_search_tgetent+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
10441 ac_func_search_save_LIBS=$LIBS
10442ac_cv_search_tgetent=no
10443cat >conftest.$ac_ext <<_ACEOF
10444/* confdefs.h. */
10445_ACEOF
10446cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h. */
10449
10450/* Override any gcc2 internal prototype to avoid an error. */
10451#ifdef __cplusplus
10452extern "C"
10453#endif
10454/* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10456char tgetent ();
10457int
10458main ()
10459{
10460tgetent ();
10461 ;
10462 return 0;
10463}
10464_ACEOF
10465rm -f conftest.$ac_objext conftest$ac_exeext
10466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467 (eval $ac_link) 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest$ac_exeext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_search_tgetent="none required"
10488else
10489 echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492fi
10493rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495if test "$ac_cv_search_tgetent" = no; then
10496 for ac_lib in termcap tinfo curses ncurses; do
10497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10498 cat >conftest.$ac_ext <<_ACEOF
10499/* confdefs.h. */
10500_ACEOF
10501cat confdefs.h >>conftest.$ac_ext
10502cat >>conftest.$ac_ext <<_ACEOF
10503/* end confdefs.h. */
10504
10505/* Override any gcc2 internal prototype to avoid an error. */
10506#ifdef __cplusplus
10507extern "C"
10508#endif
10509/* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10511char tgetent ();
10512int
10513main ()
10514{
10515tgetent ();
10516 ;
10517 return 0;
10518}
10519_ACEOF
10520rm -f conftest.$ac_objext conftest$ac_exeext
10521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10522 (eval $ac_link) 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -z "$ac_c_werror_flag"
10530 || test ! -s conftest.err'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; } &&
10536 { ac_try='test -s conftest$ac_exeext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_cv_search_tgetent="-l$ac_lib"
10543break
10544else
10545 echo "$as_me: failed program was:" >&5
10546sed 's/^/| /' conftest.$ac_ext >&5
10547
10548fi
10549rm -f conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551 done
10552fi
10553LIBS=$ac_func_search_save_LIBS
10554fi
10555echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10556echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10557if test "$ac_cv_search_tgetent" != no; then
10558 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10559
10560fi
10561
10562
10563if test "$ac_cv_search_tgetent" = no; then
10564 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10565echo "$as_me: error: no termcap library found" >&2;}
10566 { (exit 1); exit 1; }; }
10567fi
10568
10569
10570# Check whether --with-system-readline or --without-system-readline was given.
10571if test "${with_system_readline+set}" = set; then
10572 withval="$with_system_readline"
10573
10574fi;
10575
10576if test "$with_system_readline" = yes; then
10577 READLINE=-lreadline
10578 READLINE_DEPS=
10579 READLINE_CFLAGS=
10580else
10581 READLINE='$(READLINE_DIR)/libreadline.a'
10582 READLINE_DEPS='$(READLINE)'
10583 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10584fi
10585
10586
10587
10588
10589
10590# Check whether --with-expat or --without-expat was given.
10591if test "${with_expat+set}" = set; then
10592 withval="$with_expat"
10593
10594else
10595 with_expat=auto
10596fi;
10597echo "$as_me:$LINENO: checking whether to use expat" >&5
10598echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10599echo "$as_me:$LINENO: result: $with_expat" >&5
10600echo "${ECHO_T}$with_expat" >&6
10601
10602if test "${with_expat}" = no; then
10603 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10604echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10605 HAVE_LIBEXPAT=no
10606else
10607
10608 if test "X$prefix" = "XNONE"; then
10609 acl_final_prefix="$ac_default_prefix"
10610 else
10611 acl_final_prefix="$prefix"
10612 fi
10613 if test "X$exec_prefix" = "XNONE"; then
10614 acl_final_exec_prefix='${prefix}'
10615 else
10616 acl_final_exec_prefix="$exec_prefix"
10617 fi
10618 acl_save_prefix="$prefix"
10619 prefix="$acl_final_prefix"
10620 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10621 prefix="$acl_save_prefix"
10622
10623
10624# Check whether --with-gnu-ld or --without-gnu-ld was given.
10625if test "${with_gnu_ld+set}" = set; then
10626 withval="$with_gnu_ld"
10627 test "$withval" = no || with_gnu_ld=yes
10628else
10629 with_gnu_ld=no
10630fi;
10631# Prepare PATH_SEPARATOR.
10632# The user is always right.
10633if test "${PATH_SEPARATOR+set}" != set; then
10634 echo "#! /bin/sh" >conf$$.sh
10635 echo "exit 0" >>conf$$.sh
10636 chmod +x conf$$.sh
10637 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10638 PATH_SEPARATOR=';'
10639 else
10640 PATH_SEPARATOR=:
10641 fi
10642 rm -f conf$$.sh
10643fi
10644ac_prog=ld
10645if test "$GCC" = yes; then
10646 # Check if gcc -print-prog-name=ld gives a path.
10647 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10648echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10649 case $host in
10650 *-*-mingw*)
10651 # gcc leaves a trailing carriage return which upsets mingw
10652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10653 *)
10654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10655 esac
10656 case $ac_prog in
10657 # Accept absolute paths.
10658 [\\/]* | [A-Za-z]:[\\/]*)
10659 re_direlt='/[^/][^/]*/\.\./'
10660 # Canonicalize the path of ld
10661 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10662 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10663 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10664 done
10665 test -z "$LD" && LD="$ac_prog"
10666 ;;
10667 "")
10668 # If it fails, then pretend we aren't using GCC.
10669 ac_prog=ld
10670 ;;
10671 *)
10672 # If it is relative, then search for the first ld in PATH.
10673 with_gnu_ld=unknown
10674 ;;
10675 esac
10676elif test "$with_gnu_ld" = yes; then
10677 echo "$as_me:$LINENO: checking for GNU ld" >&5
10678echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10679else
10680 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10681echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10682fi
10683if test "${acl_cv_path_LD+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685else
10686 if test -z "$LD"; then
10687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10688 for ac_dir in $PATH; do
10689 test -z "$ac_dir" && ac_dir=.
10690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10691 acl_cv_path_LD="$ac_dir/$ac_prog"
10692 # Check to see if the program is GNU ld. I'd rather use --version,
10693 # but apparently some GNU ld's only accept -v.
10694 # Break only if it was the GNU/non-GNU ld that we prefer.
10695 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10696 test "$with_gnu_ld" != no && break
10697 else
10698 test "$with_gnu_ld" != yes && break
10699 fi
10700 fi
10701 done
10702 IFS="$ac_save_ifs"
10703else
10704 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10705fi
10706fi
10707
10708LD="$acl_cv_path_LD"
10709if test -n "$LD"; then
10710 echo "$as_me:$LINENO: result: $LD" >&5
10711echo "${ECHO_T}$LD" >&6
10712else
10713 echo "$as_me:$LINENO: result: no" >&5
10714echo "${ECHO_T}no" >&6
10715fi
10716test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10717echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10718 { (exit 1); exit 1; }; }
10719echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10720echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10721if test "${acl_cv_prog_gnu_ld+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10725if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10726 acl_cv_prog_gnu_ld=yes
10727else
10728 acl_cv_prog_gnu_ld=no
10729fi
10730fi
10731echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10732echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10733with_gnu_ld=$acl_cv_prog_gnu_ld
10734
10735
10736
10737 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10738echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10739if test "${acl_cv_rpath+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742
10743 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10744 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10745 . ./conftest.sh
10746 rm -f ./conftest.sh
10747 acl_cv_rpath=done
10748
10749fi
10750echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10751echo "${ECHO_T}$acl_cv_rpath" >&6
10752 wl="$acl_cv_wl"
10753 libext="$acl_cv_libext"
10754 shlibext="$acl_cv_shlibext"
10755 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10756 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10757 hardcode_direct="$acl_cv_hardcode_direct"
10758 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10759 # Check whether --enable-rpath or --disable-rpath was given.
10760if test "${enable_rpath+set}" = set; then
10761 enableval="$enable_rpath"
10762 :
10763else
10764 enable_rpath=yes
10765fi;
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775 use_additional=yes
10776
10777 acl_save_prefix="$prefix"
10778 prefix="$acl_final_prefix"
10779 acl_save_exec_prefix="$exec_prefix"
10780 exec_prefix="$acl_final_exec_prefix"
10781
10782 eval additional_includedir=\"$includedir\"
10783 eval additional_libdir=\"$libdir\"
10784
10785 exec_prefix="$acl_save_exec_prefix"
10786 prefix="$acl_save_prefix"
10787
10788
10789# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10790if test "${with_libexpat_prefix+set}" = set; then
10791 withval="$with_libexpat_prefix"
10792
10793 if test "X$withval" = "Xno"; then
10794 use_additional=no
10795 else
10796 if test "X$withval" = "X"; then
10797
10798 acl_save_prefix="$prefix"
10799 prefix="$acl_final_prefix"
10800 acl_save_exec_prefix="$exec_prefix"
10801 exec_prefix="$acl_final_exec_prefix"
10802
10803 eval additional_includedir=\"$includedir\"
10804 eval additional_libdir=\"$libdir\"
10805
10806 exec_prefix="$acl_save_exec_prefix"
10807 prefix="$acl_save_prefix"
10808
10809 else
10810 additional_includedir="$withval/include"
10811 additional_libdir="$withval/lib"
10812 fi
10813 fi
10814
10815fi;
10816 LIBEXPAT=
10817 LTLIBEXPAT=
10818 INCEXPAT=
10819 rpathdirs=
10820 ltrpathdirs=
10821 names_already_handled=
10822 names_next_round='expat '
10823 while test -n "$names_next_round"; do
10824 names_this_round="$names_next_round"
10825 names_next_round=
10826 for name in $names_this_round; do
10827 already_handled=
10828 for n in $names_already_handled; do
10829 if test "$n" = "$name"; then
10830 already_handled=yes
10831 break
10832 fi
10833 done
10834 if test -z "$already_handled"; then
10835 names_already_handled="$names_already_handled $name"
10836 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10837 eval value=\"\$HAVE_LIB$uppername\"
10838 if test -n "$value"; then
10839 if test "$value" = yes; then
10840 eval value=\"\$LIB$uppername\"
10841 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10842 eval value=\"\$LTLIB$uppername\"
10843 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10844 else
10845 :
10846 fi
10847 else
10848 found_dir=
10849 found_la=
10850 found_so=
10851 found_a=
10852 if test $use_additional = yes; then
10853 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10854 found_dir="$additional_libdir"
10855 found_so="$additional_libdir/lib$name.$shlibext"
10856 if test -f "$additional_libdir/lib$name.la"; then
10857 found_la="$additional_libdir/lib$name.la"
10858 fi
10859 else
10860 if test -f "$additional_libdir/lib$name.$libext"; then
10861 found_dir="$additional_libdir"
10862 found_a="$additional_libdir/lib$name.$libext"
10863 if test -f "$additional_libdir/lib$name.la"; then
10864 found_la="$additional_libdir/lib$name.la"
10865 fi
10866 fi
10867 fi
10868 fi
10869 if test "X$found_dir" = "X"; then
10870 for x in $LDFLAGS $LTLIBEXPAT; do
10871
10872 acl_save_prefix="$prefix"
10873 prefix="$acl_final_prefix"
10874 acl_save_exec_prefix="$exec_prefix"
10875 exec_prefix="$acl_final_exec_prefix"
10876 eval x=\"$x\"
10877 exec_prefix="$acl_save_exec_prefix"
10878 prefix="$acl_save_prefix"
10879
10880 case "$x" in
10881 -L*)
10882 dir=`echo "X$x" | sed -e 's/^X-L//'`
10883 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10884 found_dir="$dir"
10885 found_so="$dir/lib$name.$shlibext"
10886 if test -f "$dir/lib$name.la"; then
10887 found_la="$dir/lib$name.la"
10888 fi
10889 else
10890 if test -f "$dir/lib$name.$libext"; then
10891 found_dir="$dir"
10892 found_a="$dir/lib$name.$libext"
10893 if test -f "$dir/lib$name.la"; then
10894 found_la="$dir/lib$name.la"
10895 fi
10896 fi
10897 fi
10898 ;;
10899 esac
10900 if test "X$found_dir" != "X"; then
10901 break
10902 fi
10903 done
10904 fi
10905 if test "X$found_dir" != "X"; then
10906 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10907 if test "X$found_so" != "X"; then
10908 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10909 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10910 else
10911 haveit=
10912 for x in $ltrpathdirs; do
10913 if test "X$x" = "X$found_dir"; then
10914 haveit=yes
10915 break
10916 fi
10917 done
10918 if test -z "$haveit"; then
10919 ltrpathdirs="$ltrpathdirs $found_dir"
10920 fi
10921 if test "$hardcode_direct" = yes; then
10922 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10923 else
10924 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10925 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10926 haveit=
10927 for x in $rpathdirs; do
10928 if test "X$x" = "X$found_dir"; then
10929 haveit=yes
10930 break
10931 fi
10932 done
10933 if test -z "$haveit"; then
10934 rpathdirs="$rpathdirs $found_dir"
10935 fi
10936 else
10937 haveit=
10938 for x in $LDFLAGS $LIBEXPAT; do
10939
10940 acl_save_prefix="$prefix"
10941 prefix="$acl_final_prefix"
10942 acl_save_exec_prefix="$exec_prefix"
10943 exec_prefix="$acl_final_exec_prefix"
10944 eval x=\"$x\"
10945 exec_prefix="$acl_save_exec_prefix"
10946 prefix="$acl_save_prefix"
10947
10948 if test "X$x" = "X-L$found_dir"; then
10949 haveit=yes
10950 break
10951 fi
10952 done
10953 if test -z "$haveit"; then
10954 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10955 fi
10956 if test "$hardcode_minus_L" != no; then
10957 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10958 else
10959 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10960 fi
10961 fi
10962 fi
10963 fi
10964 else
10965 if test "X$found_a" != "X"; then
10966 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10967 else
10968 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10969 fi
10970 fi
10971 additional_includedir=
10972 case "$found_dir" in
10973 */lib | */lib/)
10974 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10975 additional_includedir="$basedir/include"
10976 ;;
10977 esac
10978 if test "X$additional_includedir" != "X"; then
10979 if test "X$additional_includedir" != "X/usr/include"; then
10980 haveit=
10981 if test "X$additional_includedir" = "X/usr/local/include"; then
10982 if test -n "$GCC"; then
10983 case $host_os in
10984 linux*) haveit=yes;;
10985 esac
10986 fi
10987 fi
10988 if test -z "$haveit"; then
10989 for x in $CPPFLAGS $INCEXPAT; do
10990
10991 acl_save_prefix="$prefix"
10992 prefix="$acl_final_prefix"
10993 acl_save_exec_prefix="$exec_prefix"
10994 exec_prefix="$acl_final_exec_prefix"
10995 eval x=\"$x\"
10996 exec_prefix="$acl_save_exec_prefix"
10997 prefix="$acl_save_prefix"
10998
10999 if test "X$x" = "X-I$additional_includedir"; then
11000 haveit=yes
11001 break
11002 fi
11003 done
11004 if test -z "$haveit"; then
11005 if test -d "$additional_includedir"; then
11006 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11007 fi
11008 fi
11009 fi
11010 fi
11011 fi
11012 if test -n "$found_la"; then
11013 save_libdir="$libdir"
11014 case "$found_la" in
11015 */* | *\\*) . "$found_la" ;;
11016 *) . "./$found_la" ;;
11017 esac
11018 libdir="$save_libdir"
11019 for dep in $dependency_libs; do
11020 case "$dep" in
11021 -L*)
11022 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11023 if test "X$additional_libdir" != "X/usr/lib"; then
11024 haveit=
11025 if test "X$additional_libdir" = "X/usr/local/lib"; then
11026 if test -n "$GCC"; then
11027 case $host_os in
11028 linux*) haveit=yes;;
11029 esac
11030 fi
11031 fi
11032 if test -z "$haveit"; then
11033 haveit=
11034 for x in $LDFLAGS $LIBEXPAT; do
11035
11036 acl_save_prefix="$prefix"
11037 prefix="$acl_final_prefix"
11038 acl_save_exec_prefix="$exec_prefix"
11039 exec_prefix="$acl_final_exec_prefix"
11040 eval x=\"$x\"
11041 exec_prefix="$acl_save_exec_prefix"
11042 prefix="$acl_save_prefix"
11043
11044 if test "X$x" = "X-L$additional_libdir"; then
11045 haveit=yes
11046 break
11047 fi
11048 done
11049 if test -z "$haveit"; then
11050 if test -d "$additional_libdir"; then
11051 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11052 fi
11053 fi
11054 haveit=
11055 for x in $LDFLAGS $LTLIBEXPAT; do
11056
11057 acl_save_prefix="$prefix"
11058 prefix="$acl_final_prefix"
11059 acl_save_exec_prefix="$exec_prefix"
11060 exec_prefix="$acl_final_exec_prefix"
11061 eval x=\"$x\"
11062 exec_prefix="$acl_save_exec_prefix"
11063 prefix="$acl_save_prefix"
11064
11065 if test "X$x" = "X-L$additional_libdir"; then
11066 haveit=yes
11067 break
11068 fi
11069 done
11070 if test -z "$haveit"; then
11071 if test -d "$additional_libdir"; then
11072 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11073 fi
11074 fi
11075 fi
11076 fi
11077 ;;
11078 -R*)
11079 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11080 if test "$enable_rpath" != no; then
11081 haveit=
11082 for x in $rpathdirs; do
11083 if test "X$x" = "X$dir"; then
11084 haveit=yes
11085 break
11086 fi
11087 done
11088 if test -z "$haveit"; then
11089 rpathdirs="$rpathdirs $dir"
11090 fi
11091 haveit=
11092 for x in $ltrpathdirs; do
11093 if test "X$x" = "X$dir"; then
11094 haveit=yes
11095 break
11096 fi
11097 done
11098 if test -z "$haveit"; then
11099 ltrpathdirs="$ltrpathdirs $dir"
11100 fi
11101 fi
11102 ;;
11103 -l*)
11104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11105 ;;
11106 *.la)
11107 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11108 ;;
11109 *)
11110 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11111 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11112 ;;
11113 esac
11114 done
11115 fi
11116 else
11117 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11118 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11119 fi
11120 fi
11121 fi
11122 done
11123 done
11124 if test "X$rpathdirs" != "X"; then
11125 if test -n "$hardcode_libdir_separator"; then
11126 alldirs=
11127 for found_dir in $rpathdirs; do
11128 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11129 done
11130 acl_save_libdir="$libdir"
11131 libdir="$alldirs"
11132 eval flag=\"$hardcode_libdir_flag_spec\"
11133 libdir="$acl_save_libdir"
11134 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11135 else
11136 for found_dir in $rpathdirs; do
11137 acl_save_libdir="$libdir"
11138 libdir="$found_dir"
11139 eval flag=\"$hardcode_libdir_flag_spec\"
11140 libdir="$acl_save_libdir"
11141 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11142 done
11143 fi
11144 fi
11145 if test "X$ltrpathdirs" != "X"; then
11146 for found_dir in $ltrpathdirs; do
11147 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11148 done
11149 fi
11150
11151
11152 ac_save_CPPFLAGS="$CPPFLAGS"
11153
11154 for element in $INCEXPAT; do
11155 haveit=
11156 for x in $CPPFLAGS; do
11157
11158 acl_save_prefix="$prefix"
11159 prefix="$acl_final_prefix"
11160 acl_save_exec_prefix="$exec_prefix"
11161 exec_prefix="$acl_final_exec_prefix"
11162 eval x=\"$x\"
11163 exec_prefix="$acl_save_exec_prefix"
11164 prefix="$acl_save_prefix"
11165
11166 if test "X$x" = "X$element"; then
11167 haveit=yes
11168 break
11169 fi
11170 done
11171 if test -z "$haveit"; then
11172 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11173 fi
11174 done
11175
11176
11177 echo "$as_me:$LINENO: checking for libexpat" >&5
11178echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11179if test "${ac_cv_libexpat+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11181else
11182
11183 ac_save_LIBS="$LIBS"
11184 LIBS="$LIBS $LIBEXPAT"
11185 cat >conftest.$ac_ext <<_ACEOF
11186/* confdefs.h. */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h. */
11191#include "expat.h"
11192int
11193main ()
11194{
11195XML_Parser p = XML_ParserCreate (0);
11196 ;
11197 return 0;
11198}
11199_ACEOF
11200rm -f conftest.$ac_objext conftest$ac_exeext
11201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11202 (eval $ac_link) 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_libexpat=yes
11223else
11224 echo "$as_me: failed program was:" >&5
11225sed 's/^/| /' conftest.$ac_ext >&5
11226
11227ac_cv_libexpat=no
11228fi
11229rm -f conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231 LIBS="$ac_save_LIBS"
11232
11233fi
11234echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11235echo "${ECHO_T}$ac_cv_libexpat" >&6
11236 if test "$ac_cv_libexpat" = yes; then
11237 HAVE_LIBEXPAT=yes
11238
11239cat >>confdefs.h <<\_ACEOF
11240#define HAVE_LIBEXPAT 1
11241_ACEOF
11242
11243 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11244echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11245 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11246echo "${ECHO_T}$LIBEXPAT" >&6
11247 else
11248 HAVE_LIBEXPAT=no
11249 CPPFLAGS="$ac_save_CPPFLAGS"
11250 LIBEXPAT=
11251 LTLIBEXPAT=
11252 fi
11253
11254
11255
11256
11257
11258
11259 if test "$HAVE_LIBEXPAT" != yes; then
11260 if test "$with_expat" = yes; then
11261 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11262echo "$as_me: error: expat is missing or unusable" >&2;}
11263 { (exit 1); exit 1; }; }
11264 else
11265 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11266echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11267 fi
11268 else
11269 save_LIBS=$LIBS
11270 LIBS="$LIBS $LIBEXPAT"
11271
11272for ac_func in XML_StopParser
11273do
11274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275echo "$as_me:$LINENO: checking for $ac_func" >&5
11276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11277if eval "test \"\${$as_ac_var+set}\" = set"; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 cat >conftest.$ac_ext <<_ACEOF
11281/* confdefs.h. */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h. */
11286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288#define $ac_func innocuous_$ac_func
11289
11290/* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11294
11295#ifdef __STDC__
11296# include <limits.h>
11297#else
11298# include <assert.h>
11299#endif
11300
11301#undef $ac_func
11302
11303/* Override any gcc2 internal prototype to avoid an error. */
11304#ifdef __cplusplus
11305extern "C"
11306{
11307#endif
11308/* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11310char $ac_func ();
11311/* The GNU C library defines this for functions which it implements
11312 to always fail with ENOSYS. Some functions are actually named
11313 something starting with __ and the normal name is an alias. */
11314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11315choke me
11316#else
11317char (*f) () = $ac_func;
11318#endif
11319#ifdef __cplusplus
11320}
11321#endif
11322
11323int
11324main ()
11325{
11326return f != $ac_func;
11327 ;
11328 return 0;
11329}
11330_ACEOF
11331rm -f conftest.$ac_objext conftest$ac_exeext
11332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333 (eval $ac_link) 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag"
11341 || test ! -s conftest.err'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try='test -s conftest$ac_exeext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 eval "$as_ac_var=yes"
11354else
11355 echo "$as_me: failed program was:" >&5
11356sed 's/^/| /' conftest.$ac_ext >&5
11357
11358eval "$as_ac_var=no"
11359fi
11360rm -f conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362fi
11363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11365if test `eval echo '${'$as_ac_var'}'` = yes; then
11366 cat >>confdefs.h <<_ACEOF
11367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11368_ACEOF
11369
11370fi
11371done
11372
11373 LIBS=$save_LIBS
11374 fi
11375fi
11376
11377# ------------------------- #
11378# Checks for header files. #
11379# ------------------------- #
11380
11381
11382
11383
11384
11385
11386ac_header_dirent=no
11387for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11388 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11389echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11390echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11391if eval "test \"\${$as_ac_Header+set}\" = set"; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394 cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400#include <sys/types.h>
11401#include <$ac_hdr>
11402
11403int
11404main ()
11405{
11406if ((DIR *) 0)
11407return 0;
11408 ;
11409 return 0;
11410}
11411_ACEOF
11412rm -f conftest.$ac_objext
11413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11414 (eval $ac_compile) 2>conftest.er1
11415 ac_status=$?
11416 grep -v '^ *+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -z "$ac_c_werror_flag"
11422 || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try='test -s conftest.$ac_objext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 eval "$as_ac_Header=yes"
11435else
11436 echo "$as_me: failed program was:" >&5
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
11439eval "$as_ac_Header=no"
11440fi
11441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11442fi
11443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11445if test `eval echo '${'$as_ac_Header'}'` = yes; then
11446 cat >>confdefs.h <<_ACEOF
11447#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11448_ACEOF
11449
11450ac_header_dirent=$ac_hdr; break
11451fi
11452
11453done
11454# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11455if test $ac_header_dirent = dirent.h; then
11456 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11457echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11458if test "${ac_cv_search_opendir+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461 ac_func_search_save_LIBS=$LIBS
11462ac_cv_search_opendir=no
11463cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
11469
11470/* Override any gcc2 internal prototype to avoid an error. */
11471#ifdef __cplusplus
11472extern "C"
11473#endif
11474/* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11476char opendir ();
11477int
11478main ()
11479{
11480opendir ();
11481 ;
11482 return 0;
11483}
11484_ACEOF
11485rm -f conftest.$ac_objext conftest$ac_exeext
11486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_c_werror_flag"
11495 || test ! -s conftest.err'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest$ac_exeext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_search_opendir="none required"
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512fi
11513rm -f conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515if test "$ac_cv_search_opendir" = no; then
11516 for ac_lib in dir; do
11517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524
11525/* Override any gcc2 internal prototype to avoid an error. */
11526#ifdef __cplusplus
11527extern "C"
11528#endif
11529/* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11531char opendir ();
11532int
11533main ()
11534{
11535opendir ();
11536 ;
11537 return 0;
11538}
11539_ACEOF
11540rm -f conftest.$ac_objext conftest$ac_exeext
11541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11542 (eval $ac_link) 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -z "$ac_c_werror_flag"
11550 || test ! -s conftest.err'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; } &&
11556 { ac_try='test -s conftest$ac_exeext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562 ac_cv_search_opendir="-l$ac_lib"
11563break
11564else
11565 echo "$as_me: failed program was:" >&5
11566sed 's/^/| /' conftest.$ac_ext >&5
11567
11568fi
11569rm -f conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 done
11572fi
11573LIBS=$ac_func_search_save_LIBS
11574fi
11575echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11576echo "${ECHO_T}$ac_cv_search_opendir" >&6
11577if test "$ac_cv_search_opendir" != no; then
11578 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11579
11580fi
11581
11582else
11583 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11584echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11585if test "${ac_cv_search_opendir+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588 ac_func_search_save_LIBS=$LIBS
11589ac_cv_search_opendir=no
11590cat >conftest.$ac_ext <<_ACEOF
11591/* confdefs.h. */
11592_ACEOF
11593cat confdefs.h >>conftest.$ac_ext
11594cat >>conftest.$ac_ext <<_ACEOF
11595/* end confdefs.h. */
11596
11597/* Override any gcc2 internal prototype to avoid an error. */
11598#ifdef __cplusplus
11599extern "C"
11600#endif
11601/* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603char opendir ();
11604int
11605main ()
11606{
11607opendir ();
11608 ;
11609 return 0;
11610}
11611_ACEOF
11612rm -f conftest.$ac_objext conftest$ac_exeext
11613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag"
11622 || test ! -s conftest.err'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; } &&
11628 { ac_try='test -s conftest$ac_exeext'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 ac_cv_search_opendir="none required"
11635else
11636 echo "$as_me: failed program was:" >&5
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
11639fi
11640rm -f conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642if test "$ac_cv_search_opendir" = no; then
11643 for ac_lib in x; do
11644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11645 cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
11651
11652/* Override any gcc2 internal prototype to avoid an error. */
11653#ifdef __cplusplus
11654extern "C"
11655#endif
11656/* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11658char opendir ();
11659int
11660main ()
11661{
11662opendir ();
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest$ac_exeext
11668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag"
11677 || test ! -s conftest.err'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest$ac_exeext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 ac_cv_search_opendir="-l$ac_lib"
11690break
11691else
11692 echo "$as_me: failed program was:" >&5
11693sed 's/^/| /' conftest.$ac_ext >&5
11694
11695fi
11696rm -f conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 done
11699fi
11700LIBS=$ac_func_search_save_LIBS
11701fi
11702echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11703echo "${ECHO_T}$ac_cv_search_opendir" >&6
11704if test "$ac_cv_search_opendir" != no; then
11705 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11706
11707fi
11708
11709fi
11710
11711echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11712echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11713if test "${ac_cv_header_stat_broken+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 cat >conftest.$ac_ext <<_ACEOF
11717/* confdefs.h. */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */
11722#include <sys/types.h>
11723#include <sys/stat.h>
11724
11725#if defined(S_ISBLK) && defined(S_IFDIR)
11726# if S_ISBLK (S_IFDIR)
11727You lose.
11728# endif
11729#endif
11730
11731#if defined(S_ISBLK) && defined(S_IFCHR)
11732# if S_ISBLK (S_IFCHR)
11733You lose.
11734# endif
11735#endif
11736
11737#if defined(S_ISLNK) && defined(S_IFREG)
11738# if S_ISLNK (S_IFREG)
11739You lose.
11740# endif
11741#endif
11742
11743#if defined(S_ISSOCK) && defined(S_IFREG)
11744# if S_ISSOCK (S_IFREG)
11745You lose.
11746# endif
11747#endif
11748
11749_ACEOF
11750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11751 $EGREP "You lose" >/dev/null 2>&1; then
11752 ac_cv_header_stat_broken=yes
11753else
11754 ac_cv_header_stat_broken=no
11755fi
11756rm -f conftest*
11757
11758fi
11759echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11760echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11761if test $ac_cv_header_stat_broken = yes; then
11762
11763cat >>confdefs.h <<\_ACEOF
11764#define STAT_MACROS_BROKEN 1
11765_ACEOF
11766
11767fi
11768
11769echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11770echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11771if test "${ac_cv_header_stdc+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774 cat >conftest.$ac_ext <<_ACEOF
11775/* confdefs.h. */
11776_ACEOF
11777cat confdefs.h >>conftest.$ac_ext
11778cat >>conftest.$ac_ext <<_ACEOF
11779/* end confdefs.h. */
11780#include <stdlib.h>
11781#include <stdarg.h>
11782#include <string.h>
11783#include <float.h>
11784
11785int
11786main ()
11787{
11788
11789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext
11794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag"
11803 || test ! -s conftest.err'
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); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 ac_cv_header_stdc=yes
11816else
11817 echo "$as_me: failed program was:" >&5
11818sed 's/^/| /' conftest.$ac_ext >&5
11819
11820ac_cv_header_stdc=no
11821fi
11822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11823
11824if test $ac_cv_header_stdc = yes; then
11825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11826 cat >conftest.$ac_ext <<_ACEOF
11827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
11832#include <string.h>
11833
11834_ACEOF
11835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11836 $EGREP "memchr" >/dev/null 2>&1; then
11837 :
11838else
11839 ac_cv_header_stdc=no
11840fi
11841rm -f conftest*
11842
11843fi
11844
11845if test $ac_cv_header_stdc = yes; then
11846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11847 cat >conftest.$ac_ext <<_ACEOF
11848/* confdefs.h. */
11849_ACEOF
11850cat confdefs.h >>conftest.$ac_ext
11851cat >>conftest.$ac_ext <<_ACEOF
11852/* end confdefs.h. */
11853#include <stdlib.h>
11854
11855_ACEOF
11856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11857 $EGREP "free" >/dev/null 2>&1; then
11858 :
11859else
11860 ac_cv_header_stdc=no
11861fi
11862rm -f conftest*
11863
11864fi
11865
11866if test $ac_cv_header_stdc = yes; then
11867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11868 if test "$cross_compiling" = yes; then
11869 :
11870else
11871 cat >conftest.$ac_ext <<_ACEOF
11872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
11877#include <ctype.h>
11878#if ((' ' & 0x0FF) == 0x020)
11879# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11880# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11881#else
11882# define ISLOWER(c) \
11883 (('a' <= (c) && (c) <= 'i') \
11884 || ('j' <= (c) && (c) <= 'r') \
11885 || ('s' <= (c) && (c) <= 'z'))
11886# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11887#endif
11888
11889#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11890int
11891main ()
11892{
11893 int i;
11894 for (i = 0; i < 256; i++)
11895 if (XOR (islower (i), ISLOWER (i))
11896 || toupper (i) != TOUPPER (i))
11897 exit(2);
11898 exit (0);
11899}
11900_ACEOF
11901rm -f conftest$ac_exeext
11902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 :
11913else
11914 echo "$as_me: program exited with status $ac_status" >&5
11915echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918( exit $ac_status )
11919ac_cv_header_stdc=no
11920fi
11921rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11922fi
11923fi
11924fi
11925echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11926echo "${ECHO_T}$ac_cv_header_stdc" >&6
11927if test $ac_cv_header_stdc = yes; then
11928
11929cat >>confdefs.h <<\_ACEOF
11930#define STDC_HEADERS 1
11931_ACEOF
11932
11933fi
11934
11935
11936for ac_header in nlist.h
11937do
11938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11939if eval "test \"\${$as_ac_Header+set}\" = set"; then
11940 echo "$as_me:$LINENO: checking for $ac_header" >&5
11941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11942if eval "test \"\${$as_ac_Header+set}\" = set"; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944fi
11945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11947else
11948 # Is the header compilable?
11949echo "$as_me:$LINENO: checking $ac_header usability" >&5
11950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11951cat >conftest.$ac_ext <<_ACEOF
11952/* confdefs.h. */
11953_ACEOF
11954cat confdefs.h >>conftest.$ac_ext
11955cat >>conftest.$ac_ext <<_ACEOF
11956/* end confdefs.h. */
11957$ac_includes_default
11958#include <$ac_header>
11959_ACEOF
11960rm -f conftest.$ac_objext
11961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag"
11970 || test ! -s conftest.err'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest.$ac_objext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_header_compiler=yes
11983else
11984 echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
11987ac_header_compiler=no
11988fi
11989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11991echo "${ECHO_T}$ac_header_compiler" >&6
11992
11993# Is the header present?
11994echo "$as_me:$LINENO: checking $ac_header presence" >&5
11995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11996cat >conftest.$ac_ext <<_ACEOF
11997/* confdefs.h. */
11998_ACEOF
11999cat confdefs.h >>conftest.$ac_ext
12000cat >>conftest.$ac_ext <<_ACEOF
12001/* end confdefs.h. */
12002#include <$ac_header>
12003_ACEOF
12004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } >/dev/null; then
12012 if test -s conftest.err; then
12013 ac_cpp_err=$ac_c_preproc_warn_flag
12014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12015 else
12016 ac_cpp_err=
12017 fi
12018else
12019 ac_cpp_err=yes
12020fi
12021if test -z "$ac_cpp_err"; then
12022 ac_header_preproc=yes
12023else
12024 echo "$as_me: failed program was:" >&5
12025sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 ac_header_preproc=no
12028fi
12029rm -f conftest.err conftest.$ac_ext
12030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12031echo "${ECHO_T}$ac_header_preproc" >&6
12032
12033# So? What about this header?
12034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12035 yes:no: )
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12040 ac_header_preproc=yes
12041 ;;
12042 no:yes:* )
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12055 (
12056 cat <<\_ASBOX
12057## ------------------------------------------ ##
12058## Report this to the AC_PACKAGE_NAME lists. ##
12059## ------------------------------------------ ##
12060_ASBOX
12061 ) |
12062 sed "s/^/$as_me: WARNING: /" >&2
12063 ;;
12064esac
12065echo "$as_me:$LINENO: checking for $ac_header" >&5
12066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12067if eval "test \"\${$as_ac_Header+set}\" = set"; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069else
12070 eval "$as_ac_Header=\$ac_header_preproc"
12071fi
12072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12074
12075fi
12076if test `eval echo '${'$as_ac_Header'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12079_ACEOF
12080
12081fi
12082
12083done
12084
12085
12086for ac_header in link.h
12087do
12088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12089echo "$as_me:$LINENO: checking for $ac_header" >&5
12090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12091if eval "test \"\${$as_ac_Header+set}\" = set"; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093else
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100#if HAVE_SYS_TYPES_H
12101# include <sys/types.h>
12102#endif
12103#if HAVE_NLIST_H
12104# include <nlist.h>
12105#endif
12106
12107
12108#include <$ac_header>
12109_ACEOF
12110rm -f conftest.$ac_objext
12111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12112 (eval $ac_compile) 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag"
12120 || test ! -s conftest.err'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest.$ac_objext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 eval "$as_ac_Header=yes"
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137eval "$as_ac_Header=no"
12138fi
12139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12140fi
12141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12143if test `eval echo '${'$as_ac_Header'}'` = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146_ACEOF
12147
12148fi
12149
12150done
12151
12152
12153for ac_header in machine/reg.h
12154do
12155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12156if eval "test \"\${$as_ac_Header+set}\" = set"; then
12157 echo "$as_me:$LINENO: checking for $ac_header" >&5
12158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12159if eval "test \"\${$as_ac_Header+set}\" = set"; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161fi
12162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12164else
12165 # Is the header compilable?
12166echo "$as_me:$LINENO: checking $ac_header usability" >&5
12167echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12168cat >conftest.$ac_ext <<_ACEOF
12169/* confdefs.h. */
12170_ACEOF
12171cat confdefs.h >>conftest.$ac_ext
12172cat >>conftest.$ac_ext <<_ACEOF
12173/* end confdefs.h. */
12174$ac_includes_default
12175#include <$ac_header>
12176_ACEOF
12177rm -f conftest.$ac_objext
12178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179 (eval $ac_compile) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag"
12187 || test ! -s conftest.err'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_header_compiler=yes
12200else
12201 echo "$as_me: failed program was:" >&5
12202sed 's/^/| /' conftest.$ac_ext >&5
12203
12204ac_header_compiler=no
12205fi
12206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12207echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12208echo "${ECHO_T}$ac_header_compiler" >&6
12209
12210# Is the header present?
12211echo "$as_me:$LINENO: checking $ac_header presence" >&5
12212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12213cat >conftest.$ac_ext <<_ACEOF
12214/* confdefs.h. */
12215_ACEOF
12216cat confdefs.h >>conftest.$ac_ext
12217cat >>conftest.$ac_ext <<_ACEOF
12218/* end confdefs.h. */
12219#include <$ac_header>
12220_ACEOF
12221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12223 ac_status=$?
12224 grep -v '^ *+' conftest.er1 >conftest.err
12225 rm -f conftest.er1
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } >/dev/null; then
12229 if test -s conftest.err; then
12230 ac_cpp_err=$ac_c_preproc_warn_flag
12231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12232 else
12233 ac_cpp_err=
12234 fi
12235else
12236 ac_cpp_err=yes
12237fi
12238if test -z "$ac_cpp_err"; then
12239 ac_header_preproc=yes
12240else
12241 echo "$as_me: failed program was:" >&5
12242sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_header_preproc=no
12245fi
12246rm -f conftest.err conftest.$ac_ext
12247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12248echo "${ECHO_T}$ac_header_preproc" >&6
12249
12250# So? What about this header?
12251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12252 yes:no: )
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12257 ac_header_preproc=yes
12258 ;;
12259 no:yes:* )
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12272 (
12273 cat <<\_ASBOX
12274## ------------------------------------------ ##
12275## Report this to the AC_PACKAGE_NAME lists. ##
12276## ------------------------------------------ ##
12277_ASBOX
12278 ) |
12279 sed "s/^/$as_me: WARNING: /" >&2
12280 ;;
12281esac
12282echo "$as_me:$LINENO: checking for $ac_header" >&5
12283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12284if eval "test \"\${$as_ac_Header+set}\" = set"; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286else
12287 eval "$as_ac_Header=\$ac_header_preproc"
12288fi
12289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12291
12292fi
12293if test `eval echo '${'$as_ac_Header'}'` = yes; then
12294 cat >>confdefs.h <<_ACEOF
12295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12296_ACEOF
12297
12298fi
12299
12300done
12301
12302
12303
12304for ac_header in poll.h sys/poll.h
12305do
12306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12307if eval "test \"\${$as_ac_Header+set}\" = set"; then
12308 echo "$as_me:$LINENO: checking for $ac_header" >&5
12309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12310if eval "test \"\${$as_ac_Header+set}\" = set"; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312fi
12313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12315else
12316 # Is the header compilable?
12317echo "$as_me:$LINENO: checking $ac_header usability" >&5
12318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12319cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h. */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
12324/* end confdefs.h. */
12325$ac_includes_default
12326#include <$ac_header>
12327_ACEOF
12328rm -f conftest.$ac_objext
12329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12330 (eval $ac_compile) 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest.$ac_objext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_header_compiler=yes
12351else
12352 echo "$as_me: failed program was:" >&5
12353sed 's/^/| /' conftest.$ac_ext >&5
12354
12355ac_header_compiler=no
12356fi
12357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12359echo "${ECHO_T}$ac_header_compiler" >&6
12360
12361# Is the header present?
12362echo "$as_me:$LINENO: checking $ac_header presence" >&5
12363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12364cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h. */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
12369/* end confdefs.h. */
12370#include <$ac_header>
12371_ACEOF
12372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } >/dev/null; then
12380 if test -s conftest.err; then
12381 ac_cpp_err=$ac_c_preproc_warn_flag
12382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12383 else
12384 ac_cpp_err=
12385 fi
12386else
12387 ac_cpp_err=yes
12388fi
12389if test -z "$ac_cpp_err"; then
12390 ac_header_preproc=yes
12391else
12392 echo "$as_me: failed program was:" >&5
12393sed 's/^/| /' conftest.$ac_ext >&5
12394
12395 ac_header_preproc=no
12396fi
12397rm -f conftest.err conftest.$ac_ext
12398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12399echo "${ECHO_T}$ac_header_preproc" >&6
12400
12401# So? What about this header?
12402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12403 yes:no: )
12404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12408 ac_header_preproc=yes
12409 ;;
12410 no:yes:* )
12411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12423 (
12424 cat <<\_ASBOX
12425## ------------------------------------------ ##
12426## Report this to the AC_PACKAGE_NAME lists. ##
12427## ------------------------------------------ ##
12428_ASBOX
12429 ) |
12430 sed "s/^/$as_me: WARNING: /" >&2
12431 ;;
12432esac
12433echo "$as_me:$LINENO: checking for $ac_header" >&5
12434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12435if eval "test \"\${$as_ac_Header+set}\" = set"; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438 eval "$as_ac_Header=\$ac_header_preproc"
12439fi
12440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12442
12443fi
12444if test `eval echo '${'$as_ac_Header'}'` = yes; then
12445 cat >>confdefs.h <<_ACEOF
12446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12447_ACEOF
12448
12449fi
12450
12451done
12452
12453
12454
12455
12456for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12457do
12458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12459if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo "$as_me:$LINENO: checking for $ac_header" >&5
12461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12462if eval "test \"\${$as_ac_Header+set}\" = set"; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464fi
12465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12467else
12468 # Is the header compilable?
12469echo "$as_me:$LINENO: checking $ac_header usability" >&5
12470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12471cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h. */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h. */
12477$ac_includes_default
12478#include <$ac_header>
12479_ACEOF
12480rm -f conftest.$ac_objext
12481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12482 (eval $ac_compile) 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_header_compiler=yes
12503else
12504 echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507ac_header_compiler=no
12508fi
12509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12511echo "${ECHO_T}$ac_header_compiler" >&6
12512
12513# Is the header present?
12514echo "$as_me:$LINENO: checking $ac_header presence" >&5
12515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12516cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522#include <$ac_header>
12523_ACEOF
12524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } >/dev/null; then
12532 if test -s conftest.err; then
12533 ac_cpp_err=$ac_c_preproc_warn_flag
12534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12535 else
12536 ac_cpp_err=
12537 fi
12538else
12539 ac_cpp_err=yes
12540fi
12541if test -z "$ac_cpp_err"; then
12542 ac_header_preproc=yes
12543else
12544 echo "$as_me: failed program was:" >&5
12545sed 's/^/| /' conftest.$ac_ext >&5
12546
12547 ac_header_preproc=no
12548fi
12549rm -f conftest.err conftest.$ac_ext
12550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12551echo "${ECHO_T}$ac_header_preproc" >&6
12552
12553# So? What about this header?
12554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12555 yes:no: )
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12560 ac_header_preproc=yes
12561 ;;
12562 no:yes:* )
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12575 (
12576 cat <<\_ASBOX
12577## ------------------------------------------ ##
12578## Report this to the AC_PACKAGE_NAME lists. ##
12579## ------------------------------------------ ##
12580_ASBOX
12581 ) |
12582 sed "s/^/$as_me: WARNING: /" >&2
12583 ;;
12584esac
12585echo "$as_me:$LINENO: checking for $ac_header" >&5
12586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12587if eval "test \"\${$as_ac_Header+set}\" = set"; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12589else
12590 eval "$as_ac_Header=\$ac_header_preproc"
12591fi
12592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12594
12595fi
12596if test `eval echo '${'$as_ac_Header'}'` = yes; then
12597 cat >>confdefs.h <<_ACEOF
12598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12599_ACEOF
12600
12601fi
12602
12603done
12604
12605
12606for ac_header in signal.h
12607do
12608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12609if eval "test \"\${$as_ac_Header+set}\" = set"; then
12610 echo "$as_me:$LINENO: checking for $ac_header" >&5
12611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12612if eval "test \"\${$as_ac_Header+set}\" = set"; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614fi
12615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12617else
12618 # Is the header compilable?
12619echo "$as_me:$LINENO: checking $ac_header usability" >&5
12620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12621cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
12627$ac_includes_default
12628#include <$ac_header>
12629_ACEOF
12630rm -f conftest.$ac_objext
12631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_header_compiler=yes
12653else
12654 echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
12656
12657ac_header_compiler=no
12658fi
12659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12661echo "${ECHO_T}$ac_header_compiler" >&6
12662
12663# Is the header present?
12664echo "$as_me:$LINENO: checking $ac_header presence" >&5
12665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12666cat >conftest.$ac_ext <<_ACEOF
12667/* confdefs.h. */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
12671/* end confdefs.h. */
12672#include <$ac_header>
12673_ACEOF
12674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12676 ac_status=$?
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } >/dev/null; then
12682 if test -s conftest.err; then
12683 ac_cpp_err=$ac_c_preproc_warn_flag
12684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12685 else
12686 ac_cpp_err=
12687 fi
12688else
12689 ac_cpp_err=yes
12690fi
12691if test -z "$ac_cpp_err"; then
12692 ac_header_preproc=yes
12693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 ac_header_preproc=no
12698fi
12699rm -f conftest.err conftest.$ac_ext
12700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12701echo "${ECHO_T}$ac_header_preproc" >&6
12702
12703# So? What about this header?
12704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12705 yes:no: )
12706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12710 ac_header_preproc=yes
12711 ;;
12712 no:yes:* )
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12725 (
12726 cat <<\_ASBOX
12727## ------------------------------------------ ##
12728## Report this to the AC_PACKAGE_NAME lists. ##
12729## ------------------------------------------ ##
12730_ASBOX
12731 ) |
12732 sed "s/^/$as_me: WARNING: /" >&2
12733 ;;
12734esac
12735echo "$as_me:$LINENO: checking for $ac_header" >&5
12736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12737if eval "test \"\${$as_ac_Header+set}\" = set"; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739else
12740 eval "$as_ac_Header=\$ac_header_preproc"
12741fi
12742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12744
12745fi
12746if test `eval echo '${'$as_ac_Header'}'` = yes; then
12747 cat >>confdefs.h <<_ACEOF
12748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12749_ACEOF
12750
12751fi
12752
12753done
12754
12755
12756for ac_header in stddef.h
12757do
12758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12759if eval "test \"\${$as_ac_Header+set}\" = set"; then
12760 echo "$as_me:$LINENO: checking for $ac_header" >&5
12761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12762if eval "test \"\${$as_ac_Header+set}\" = set"; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764fi
12765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12767else
12768 # Is the header compilable?
12769echo "$as_me:$LINENO: checking $ac_header usability" >&5
12770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12771cat >conftest.$ac_ext <<_ACEOF
12772/* confdefs.h. */
12773_ACEOF
12774cat confdefs.h >>conftest.$ac_ext
12775cat >>conftest.$ac_ext <<_ACEOF
12776/* end confdefs.h. */
12777$ac_includes_default
12778#include <$ac_header>
12779_ACEOF
12780rm -f conftest.$ac_objext
12781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag"
12790 || test ! -s conftest.err'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest.$ac_objext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_header_compiler=yes
12803else
12804 echo "$as_me: failed program was:" >&5
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
12807ac_header_compiler=no
12808fi
12809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12811echo "${ECHO_T}$ac_header_compiler" >&6
12812
12813# Is the header present?
12814echo "$as_me:$LINENO: checking $ac_header presence" >&5
12815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12816cat >conftest.$ac_ext <<_ACEOF
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822#include <$ac_header>
12823_ACEOF
12824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } >/dev/null; then
12832 if test -s conftest.err; then
12833 ac_cpp_err=$ac_c_preproc_warn_flag
12834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12835 else
12836 ac_cpp_err=
12837 fi
12838else
12839 ac_cpp_err=yes
12840fi
12841if test -z "$ac_cpp_err"; then
12842 ac_header_preproc=yes
12843else
12844 echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847 ac_header_preproc=no
12848fi
12849rm -f conftest.err conftest.$ac_ext
12850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12851echo "${ECHO_T}$ac_header_preproc" >&6
12852
12853# So? What about this header?
12854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12855 yes:no: )
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12860 ac_header_preproc=yes
12861 ;;
12862 no:yes:* )
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12875 (
12876 cat <<\_ASBOX
12877## ------------------------------------------ ##
12878## Report this to the AC_PACKAGE_NAME lists. ##
12879## ------------------------------------------ ##
12880_ASBOX
12881 ) |
12882 sed "s/^/$as_me: WARNING: /" >&2
12883 ;;
12884esac
12885echo "$as_me:$LINENO: checking for $ac_header" >&5
12886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12887if eval "test \"\${$as_ac_Header+set}\" = set"; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889else
12890 eval "$as_ac_Header=\$ac_header_preproc"
12891fi
12892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12894
12895fi
12896if test `eval echo '${'$as_ac_Header'}'` = yes; then
12897 cat >>confdefs.h <<_ACEOF
12898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12899_ACEOF
12900
12901fi
12902
12903done
12904
12905
12906for ac_header in stdlib.h
12907do
12908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12909if eval "test \"\${$as_ac_Header+set}\" = set"; then
12910 echo "$as_me:$LINENO: checking for $ac_header" >&5
12911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12912if eval "test \"\${$as_ac_Header+set}\" = set"; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914fi
12915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12917else
12918 # Is the header compilable?
12919echo "$as_me:$LINENO: checking $ac_header usability" >&5
12920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12921cat >conftest.$ac_ext <<_ACEOF
12922/* confdefs.h. */
12923_ACEOF
12924cat confdefs.h >>conftest.$ac_ext
12925cat >>conftest.$ac_ext <<_ACEOF
12926/* end confdefs.h. */
12927$ac_includes_default
12928#include <$ac_header>
12929_ACEOF
12930rm -f conftest.$ac_objext
12931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932 (eval $ac_compile) 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag"
12940 || test ! -s conftest.err'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } &&
12946 { ac_try='test -s conftest.$ac_objext'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_header_compiler=yes
12953else
12954 echo "$as_me: failed program was:" >&5
12955sed 's/^/| /' conftest.$ac_ext >&5
12956
12957ac_header_compiler=no
12958fi
12959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12961echo "${ECHO_T}$ac_header_compiler" >&6
12962
12963# Is the header present?
12964echo "$as_me:$LINENO: checking $ac_header presence" >&5
12965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12966cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972#include <$ac_header>
12973_ACEOF
12974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12976 ac_status=$?
12977 grep -v '^ *+' conftest.er1 >conftest.err
12978 rm -f conftest.er1
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } >/dev/null; then
12982 if test -s conftest.err; then
12983 ac_cpp_err=$ac_c_preproc_warn_flag
12984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12985 else
12986 ac_cpp_err=
12987 fi
12988else
12989 ac_cpp_err=yes
12990fi
12991if test -z "$ac_cpp_err"; then
12992 ac_header_preproc=yes
12993else
12994 echo "$as_me: failed program was:" >&5
12995sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 ac_header_preproc=no
12998fi
12999rm -f conftest.err conftest.$ac_ext
13000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13001echo "${ECHO_T}$ac_header_preproc" >&6
13002
13003# So? What about this header?
13004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13005 yes:no: )
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13010 ac_header_preproc=yes
13011 ;;
13012 no:yes:* )
13013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13025 (
13026 cat <<\_ASBOX
13027## ------------------------------------------ ##
13028## Report this to the AC_PACKAGE_NAME lists. ##
13029## ------------------------------------------ ##
13030_ASBOX
13031 ) |
13032 sed "s/^/$as_me: WARNING: /" >&2
13033 ;;
13034esac
13035echo "$as_me:$LINENO: checking for $ac_header" >&5
13036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13037if eval "test \"\${$as_ac_Header+set}\" = set"; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13039else
13040 eval "$as_ac_Header=\$ac_header_preproc"
13041fi
13042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13044
13045fi
13046if test `eval echo '${'$as_ac_Header'}'` = yes; then
13047 cat >>confdefs.h <<_ACEOF
13048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13049_ACEOF
13050
13051fi
13052
13053done
13054
13055
13056for ac_header in stdint.h
13057do
13058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13059if eval "test \"\${$as_ac_Header+set}\" = set"; then
13060 echo "$as_me:$LINENO: checking for $ac_header" >&5
13061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13062if eval "test \"\${$as_ac_Header+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064fi
13065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13067else
13068 # Is the header compilable?
13069echo "$as_me:$LINENO: checking $ac_header usability" >&5
13070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13071cat >conftest.$ac_ext <<_ACEOF
13072/* confdefs.h. */
13073_ACEOF
13074cat confdefs.h >>conftest.$ac_ext
13075cat >>conftest.$ac_ext <<_ACEOF
13076/* end confdefs.h. */
13077$ac_includes_default
13078#include <$ac_header>
13079_ACEOF
13080rm -f conftest.$ac_objext
13081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13082 (eval $ac_compile) 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -z "$ac_c_werror_flag"
13090 || test ! -s conftest.err'
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest.$ac_objext'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
13102 ac_header_compiler=yes
13103else
13104 echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107ac_header_compiler=no
13108fi
13109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13110echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13111echo "${ECHO_T}$ac_header_compiler" >&6
13112
13113# Is the header present?
13114echo "$as_me:$LINENO: checking $ac_header presence" >&5
13115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13116cat >conftest.$ac_ext <<_ACEOF
13117/* confdefs.h. */
13118_ACEOF
13119cat confdefs.h >>conftest.$ac_ext
13120cat >>conftest.$ac_ext <<_ACEOF
13121/* end confdefs.h. */
13122#include <$ac_header>
13123_ACEOF
13124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } >/dev/null; then
13132 if test -s conftest.err; then
13133 ac_cpp_err=$ac_c_preproc_warn_flag
13134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13135 else
13136 ac_cpp_err=
13137 fi
13138else
13139 ac_cpp_err=yes
13140fi
13141if test -z "$ac_cpp_err"; then
13142 ac_header_preproc=yes
13143else
13144 echo "$as_me: failed program was:" >&5
13145sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 ac_header_preproc=no
13148fi
13149rm -f conftest.err conftest.$ac_ext
13150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13151echo "${ECHO_T}$ac_header_preproc" >&6
13152
13153# So? What about this header?
13154case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13155 yes:no: )
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13159echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13160 ac_header_preproc=yes
13161 ;;
13162 no:yes:* )
13163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13168echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13170echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13172echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13174echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13175 (
13176 cat <<\_ASBOX
13177## ------------------------------------------ ##
13178## Report this to the AC_PACKAGE_NAME lists. ##
13179## ------------------------------------------ ##
13180_ASBOX
13181 ) |
13182 sed "s/^/$as_me: WARNING: /" >&2
13183 ;;
13184esac
13185echo "$as_me:$LINENO: checking for $ac_header" >&5
13186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13187if eval "test \"\${$as_ac_Header+set}\" = set"; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189else
13190 eval "$as_ac_Header=\$ac_header_preproc"
13191fi
13192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13194
13195fi
13196if test `eval echo '${'$as_ac_Header'}'` = yes; then
13197 cat >>confdefs.h <<_ACEOF
13198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13199_ACEOF
13200
13201fi
13202
13203done
13204
13205
13206
13207
13208for ac_header in string.h memory.h strings.h
13209do
13210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212 echo "$as_me:$LINENO: checking for $ac_header" >&5
13213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13214if eval "test \"\${$as_ac_Header+set}\" = set"; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13216fi
13217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13219else
13220 # Is the header compilable?
13221echo "$as_me:$LINENO: checking $ac_header usability" >&5
13222echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13223cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
13229$ac_includes_default
13230#include <$ac_header>
13231_ACEOF
13232rm -f conftest.$ac_objext
13233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try='test -z "$ac_c_werror_flag"
13242 || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_header_compiler=yes
13255else
13256 echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259ac_header_compiler=no
13260fi
13261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13263echo "${ECHO_T}$ac_header_compiler" >&6
13264
13265# Is the header present?
13266echo "$as_me:$LINENO: checking $ac_header presence" >&5
13267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13268cat >conftest.$ac_ext <<_ACEOF
13269/* confdefs.h. */
13270_ACEOF
13271cat confdefs.h >>conftest.$ac_ext
13272cat >>conftest.$ac_ext <<_ACEOF
13273/* end confdefs.h. */
13274#include <$ac_header>
13275_ACEOF
13276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } >/dev/null; then
13284 if test -s conftest.err; then
13285 ac_cpp_err=$ac_c_preproc_warn_flag
13286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13287 else
13288 ac_cpp_err=
13289 fi
13290else
13291 ac_cpp_err=yes
13292fi
13293if test -z "$ac_cpp_err"; then
13294 ac_header_preproc=yes
13295else
13296 echo "$as_me: failed program was:" >&5
13297sed 's/^/| /' conftest.$ac_ext >&5
13298
13299 ac_header_preproc=no
13300fi
13301rm -f conftest.err conftest.$ac_ext
13302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303echo "${ECHO_T}$ac_header_preproc" >&6
13304
13305# So? What about this header?
13306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13307 yes:no: )
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13312 ac_header_preproc=yes
13313 ;;
13314 no:yes:* )
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13327 (
13328 cat <<\_ASBOX
13329## ------------------------------------------ ##
13330## Report this to the AC_PACKAGE_NAME lists. ##
13331## ------------------------------------------ ##
13332_ASBOX
13333 ) |
13334 sed "s/^/$as_me: WARNING: /" >&2
13335 ;;
13336esac
13337echo "$as_me:$LINENO: checking for $ac_header" >&5
13338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13339if eval "test \"\${$as_ac_Header+set}\" = set"; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341else
13342 eval "$as_ac_Header=\$ac_header_preproc"
13343fi
13344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13346
13347fi
13348if test `eval echo '${'$as_ac_Header'}'` = yes; then
13349 cat >>confdefs.h <<_ACEOF
13350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13351_ACEOF
13352
13353fi
13354
13355done
13356
13357
13358for ac_header in sys/fault.h
13359do
13360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13361if eval "test \"\${$as_ac_Header+set}\" = set"; then
13362 echo "$as_me:$LINENO: checking for $ac_header" >&5
13363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13364if eval "test \"\${$as_ac_Header+set}\" = set"; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366fi
13367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13369else
13370 # Is the header compilable?
13371echo "$as_me:$LINENO: checking $ac_header usability" >&5
13372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13373cat >conftest.$ac_ext <<_ACEOF
13374/* confdefs.h. */
13375_ACEOF
13376cat confdefs.h >>conftest.$ac_ext
13377cat >>conftest.$ac_ext <<_ACEOF
13378/* end confdefs.h. */
13379$ac_includes_default
13380#include <$ac_header>
13381_ACEOF
13382rm -f conftest.$ac_objext
13383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13384 (eval $ac_compile) 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -z "$ac_c_werror_flag"
13392 || test ! -s conftest.err'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest.$ac_objext'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 ac_header_compiler=yes
13405else
13406 echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
13409ac_header_compiler=no
13410fi
13411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13412echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13413echo "${ECHO_T}$ac_header_compiler" >&6
13414
13415# Is the header present?
13416echo "$as_me:$LINENO: checking $ac_header presence" >&5
13417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13418cat >conftest.$ac_ext <<_ACEOF
13419/* confdefs.h. */
13420_ACEOF
13421cat confdefs.h >>conftest.$ac_ext
13422cat >>conftest.$ac_ext <<_ACEOF
13423/* end confdefs.h. */
13424#include <$ac_header>
13425_ACEOF
13426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } >/dev/null; then
13434 if test -s conftest.err; then
13435 ac_cpp_err=$ac_c_preproc_warn_flag
13436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13437 else
13438 ac_cpp_err=
13439 fi
13440else
13441 ac_cpp_err=yes
13442fi
13443if test -z "$ac_cpp_err"; then
13444 ac_header_preproc=yes
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449 ac_header_preproc=no
13450fi
13451rm -f conftest.err conftest.$ac_ext
13452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13453echo "${ECHO_T}$ac_header_preproc" >&6
13454
13455# So? What about this header?
13456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13457 yes:no: )
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13462 ac_header_preproc=yes
13463 ;;
13464 no:yes:* )
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13468echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13472echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13477 (
13478 cat <<\_ASBOX
13479## ------------------------------------------ ##
13480## Report this to the AC_PACKAGE_NAME lists. ##
13481## ------------------------------------------ ##
13482_ASBOX
13483 ) |
13484 sed "s/^/$as_me: WARNING: /" >&2
13485 ;;
13486esac
13487echo "$as_me:$LINENO: checking for $ac_header" >&5
13488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13489if eval "test \"\${$as_ac_Header+set}\" = set"; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491else
13492 eval "$as_ac_Header=\$ac_header_preproc"
13493fi
13494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13496
13497fi
13498if test `eval echo '${'$as_ac_Header'}'` = yes; then
13499 cat >>confdefs.h <<_ACEOF
13500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13501_ACEOF
13502
13503fi
13504
13505done
13506
13507
13508for ac_header in sys/file.h
13509do
13510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13511if eval "test \"\${$as_ac_Header+set}\" = set"; then
13512 echo "$as_me:$LINENO: checking for $ac_header" >&5
13513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13514if eval "test \"\${$as_ac_Header+set}\" = set"; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516fi
13517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13519else
13520 # Is the header compilable?
13521echo "$as_me:$LINENO: checking $ac_header usability" >&5
13522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13523cat >conftest.$ac_ext <<_ACEOF
13524/* confdefs.h. */
13525_ACEOF
13526cat confdefs.h >>conftest.$ac_ext
13527cat >>conftest.$ac_ext <<_ACEOF
13528/* end confdefs.h. */
13529$ac_includes_default
13530#include <$ac_header>
13531_ACEOF
13532rm -f conftest.$ac_objext
13533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_header_compiler=yes
13555else
13556 echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
13559ac_header_compiler=no
13560fi
13561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13563echo "${ECHO_T}$ac_header_compiler" >&6
13564
13565# Is the header present?
13566echo "$as_me:$LINENO: checking $ac_header presence" >&5
13567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13568cat >conftest.$ac_ext <<_ACEOF
13569/* confdefs.h. */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h. */
13574#include <$ac_header>
13575_ACEOF
13576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } >/dev/null; then
13584 if test -s conftest.err; then
13585 ac_cpp_err=$ac_c_preproc_warn_flag
13586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13587 else
13588 ac_cpp_err=
13589 fi
13590else
13591 ac_cpp_err=yes
13592fi
13593if test -z "$ac_cpp_err"; then
13594 ac_header_preproc=yes
13595else
13596 echo "$as_me: failed program was:" >&5
13597sed 's/^/| /' conftest.$ac_ext >&5
13598
13599 ac_header_preproc=no
13600fi
13601rm -f conftest.err conftest.$ac_ext
13602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13603echo "${ECHO_T}$ac_header_preproc" >&6
13604
13605# So? What about this header?
13606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13607 yes:no: )
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13612 ac_header_preproc=yes
13613 ;;
13614 no:yes:* )
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13627 (
13628 cat <<\_ASBOX
13629## ------------------------------------------ ##
13630## Report this to the AC_PACKAGE_NAME lists. ##
13631## ------------------------------------------ ##
13632_ASBOX
13633 ) |
13634 sed "s/^/$as_me: WARNING: /" >&2
13635 ;;
13636esac
13637echo "$as_me:$LINENO: checking for $ac_header" >&5
13638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13639if eval "test \"\${$as_ac_Header+set}\" = set"; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641else
13642 eval "$as_ac_Header=\$ac_header_preproc"
13643fi
13644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13646
13647fi
13648if test `eval echo '${'$as_ac_Header'}'` = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13651_ACEOF
13652
13653fi
13654
13655done
13656
13657
13658for ac_header in sys/filio.h
13659do
13660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13661if eval "test \"\${$as_ac_Header+set}\" = set"; then
13662 echo "$as_me:$LINENO: checking for $ac_header" >&5
13663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13664if eval "test \"\${$as_ac_Header+set}\" = set"; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666fi
13667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13669else
13670 # Is the header compilable?
13671echo "$as_me:$LINENO: checking $ac_header usability" >&5
13672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13673cat >conftest.$ac_ext <<_ACEOF
13674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
13678/* end confdefs.h. */
13679$ac_includes_default
13680#include <$ac_header>
13681_ACEOF
13682rm -f conftest.$ac_objext
13683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13684 (eval $ac_compile) 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag"
13692 || test ! -s conftest.err'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_header_compiler=yes
13705else
13706 echo "$as_me: failed program was:" >&5
13707sed 's/^/| /' conftest.$ac_ext >&5
13708
13709ac_header_compiler=no
13710fi
13711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13713echo "${ECHO_T}$ac_header_compiler" >&6
13714
13715# Is the header present?
13716echo "$as_me:$LINENO: checking $ac_header presence" >&5
13717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13718cat >conftest.$ac_ext <<_ACEOF
13719/* confdefs.h. */
13720_ACEOF
13721cat confdefs.h >>conftest.$ac_ext
13722cat >>conftest.$ac_ext <<_ACEOF
13723/* end confdefs.h. */
13724#include <$ac_header>
13725_ACEOF
13726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } >/dev/null; then
13734 if test -s conftest.err; then
13735 ac_cpp_err=$ac_c_preproc_warn_flag
13736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13737 else
13738 ac_cpp_err=
13739 fi
13740else
13741 ac_cpp_err=yes
13742fi
13743if test -z "$ac_cpp_err"; then
13744 ac_header_preproc=yes
13745else
13746 echo "$as_me: failed program was:" >&5
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
13749 ac_header_preproc=no
13750fi
13751rm -f conftest.err conftest.$ac_ext
13752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13753echo "${ECHO_T}$ac_header_preproc" >&6
13754
13755# So? What about this header?
13756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13757 yes:no: )
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13762 ac_header_preproc=yes
13763 ;;
13764 no:yes:* )
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13777 (
13778 cat <<\_ASBOX
13779## ------------------------------------------ ##
13780## Report this to the AC_PACKAGE_NAME lists. ##
13781## ------------------------------------------ ##
13782_ASBOX
13783 ) |
13784 sed "s/^/$as_me: WARNING: /" >&2
13785 ;;
13786esac
13787echo "$as_me:$LINENO: checking for $ac_header" >&5
13788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13789if eval "test \"\${$as_ac_Header+set}\" = set"; then
13790 echo $ECHO_N "(cached) $ECHO_C" >&6
13791else
13792 eval "$as_ac_Header=\$ac_header_preproc"
13793fi
13794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13796
13797fi
13798if test `eval echo '${'$as_ac_Header'}'` = yes; then
13799 cat >>confdefs.h <<_ACEOF
13800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13801_ACEOF
13802
13803fi
13804
13805done
13806
13807
13808for ac_header in sys/ioctl.h
13809do
13810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13811if eval "test \"\${$as_ac_Header+set}\" = set"; then
13812 echo "$as_me:$LINENO: checking for $ac_header" >&5
13813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13814if eval "test \"\${$as_ac_Header+set}\" = set"; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816fi
13817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13819else
13820 # Is the header compilable?
13821echo "$as_me:$LINENO: checking $ac_header usability" >&5
13822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13823cat >conftest.$ac_ext <<_ACEOF
13824/* confdefs.h. */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
13828/* end confdefs.h. */
13829$ac_includes_default
13830#include <$ac_header>
13831_ACEOF
13832rm -f conftest.$ac_objext
13833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_header_compiler=yes
13855else
13856 echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
13859ac_header_compiler=no
13860fi
13861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13862echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13863echo "${ECHO_T}$ac_header_compiler" >&6
13864
13865# Is the header present?
13866echo "$as_me:$LINENO: checking $ac_header presence" >&5
13867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13868cat >conftest.$ac_ext <<_ACEOF
13869/* confdefs.h. */
13870_ACEOF
13871cat confdefs.h >>conftest.$ac_ext
13872cat >>conftest.$ac_ext <<_ACEOF
13873/* end confdefs.h. */
13874#include <$ac_header>
13875_ACEOF
13876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } >/dev/null; then
13884 if test -s conftest.err; then
13885 ac_cpp_err=$ac_c_preproc_warn_flag
13886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13887 else
13888 ac_cpp_err=
13889 fi
13890else
13891 ac_cpp_err=yes
13892fi
13893if test -z "$ac_cpp_err"; then
13894 ac_header_preproc=yes
13895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 ac_header_preproc=no
13900fi
13901rm -f conftest.err conftest.$ac_ext
13902echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13903echo "${ECHO_T}$ac_header_preproc" >&6
13904
13905# So? What about this header?
13906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13907 yes:no: )
13908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13911echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13912 ac_header_preproc=yes
13913 ;;
13914 no:yes:* )
13915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13920echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13922echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13926echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13927 (
13928 cat <<\_ASBOX
13929## ------------------------------------------ ##
13930## Report this to the AC_PACKAGE_NAME lists. ##
13931## ------------------------------------------ ##
13932_ASBOX
13933 ) |
13934 sed "s/^/$as_me: WARNING: /" >&2
13935 ;;
13936esac
13937echo "$as_me:$LINENO: checking for $ac_header" >&5
13938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13939if eval "test \"\${$as_ac_Header+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941else
13942 eval "$as_ac_Header=\$ac_header_preproc"
13943fi
13944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13946
13947fi
13948if test `eval echo '${'$as_ac_Header'}'` = yes; then
13949 cat >>confdefs.h <<_ACEOF
13950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13951_ACEOF
13952
13953fi
13954
13955done
13956
13957
13958for ac_header in sys/param.h
13959do
13960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13961if eval "test \"\${$as_ac_Header+set}\" = set"; then
13962 echo "$as_me:$LINENO: checking for $ac_header" >&5
13963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13964if eval "test \"\${$as_ac_Header+set}\" = set"; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966fi
13967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13969else
13970 # Is the header compilable?
13971echo "$as_me:$LINENO: checking $ac_header usability" >&5
13972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13973cat >conftest.$ac_ext <<_ACEOF
13974/* confdefs.h. */
13975_ACEOF
13976cat confdefs.h >>conftest.$ac_ext
13977cat >>conftest.$ac_ext <<_ACEOF
13978/* end confdefs.h. */
13979$ac_includes_default
13980#include <$ac_header>
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_header_compiler=yes
14005else
14006 echo "$as_me: failed program was:" >&5
14007sed 's/^/| /' conftest.$ac_ext >&5
14008
14009ac_header_compiler=no
14010fi
14011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14013echo "${ECHO_T}$ac_header_compiler" >&6
14014
14015# Is the header present?
14016echo "$as_me:$LINENO: checking $ac_header presence" >&5
14017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14018cat >conftest.$ac_ext <<_ACEOF
14019/* confdefs.h. */
14020_ACEOF
14021cat confdefs.h >>conftest.$ac_ext
14022cat >>conftest.$ac_ext <<_ACEOF
14023/* end confdefs.h. */
14024#include <$ac_header>
14025_ACEOF
14026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14028 ac_status=$?
14029 grep -v '^ *+' conftest.er1 >conftest.err
14030 rm -f conftest.er1
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } >/dev/null; then
14034 if test -s conftest.err; then
14035 ac_cpp_err=$ac_c_preproc_warn_flag
14036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14037 else
14038 ac_cpp_err=
14039 fi
14040else
14041 ac_cpp_err=yes
14042fi
14043if test -z "$ac_cpp_err"; then
14044 ac_header_preproc=yes
14045else
14046 echo "$as_me: failed program was:" >&5
14047sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_header_preproc=no
14050fi
14051rm -f conftest.err conftest.$ac_ext
14052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14053echo "${ECHO_T}$ac_header_preproc" >&6
14054
14055# So? What about this header?
14056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14057 yes:no: )
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14059echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14061echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14062 ac_header_preproc=yes
14063 ;;
14064 no:yes:* )
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14066echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14068echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14070echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14072echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14076echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14077 (
14078 cat <<\_ASBOX
14079## ------------------------------------------ ##
14080## Report this to the AC_PACKAGE_NAME lists. ##
14081## ------------------------------------------ ##
14082_ASBOX
14083 ) |
14084 sed "s/^/$as_me: WARNING: /" >&2
14085 ;;
14086esac
14087echo "$as_me:$LINENO: checking for $ac_header" >&5
14088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14089if eval "test \"\${$as_ac_Header+set}\" = set"; then
14090 echo $ECHO_N "(cached) $ECHO_C" >&6
14091else
14092 eval "$as_ac_Header=\$ac_header_preproc"
14093fi
14094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14096
14097fi
14098if test `eval echo '${'$as_ac_Header'}'` = yes; then
14099 cat >>confdefs.h <<_ACEOF
14100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14101_ACEOF
14102
14103fi
14104
14105done
14106
14107
14108for ac_header in sys/resource.h
14109do
14110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14111if eval "test \"\${$as_ac_Header+set}\" = set"; then
14112 echo "$as_me:$LINENO: checking for $ac_header" >&5
14113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14114if eval "test \"\${$as_ac_Header+set}\" = set"; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116fi
14117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14119else
14120 # Is the header compilable?
14121echo "$as_me:$LINENO: checking $ac_header usability" >&5
14122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14123cat >conftest.$ac_ext <<_ACEOF
14124/* confdefs.h. */
14125_ACEOF
14126cat confdefs.h >>conftest.$ac_ext
14127cat >>conftest.$ac_ext <<_ACEOF
14128/* end confdefs.h. */
14129$ac_includes_default
14130#include <$ac_header>
14131_ACEOF
14132rm -f conftest.$ac_objext
14133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134 (eval $ac_compile) 2>conftest.er1
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag"
14142 || test ! -s conftest.err'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest.$ac_objext'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 ac_header_compiler=yes
14155else
14156 echo "$as_me: failed program was:" >&5
14157sed 's/^/| /' conftest.$ac_ext >&5
14158
14159ac_header_compiler=no
14160fi
14161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14162echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14163echo "${ECHO_T}$ac_header_compiler" >&6
14164
14165# Is the header present?
14166echo "$as_me:$LINENO: checking $ac_header presence" >&5
14167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14168cat >conftest.$ac_ext <<_ACEOF
14169/* confdefs.h. */
14170_ACEOF
14171cat confdefs.h >>conftest.$ac_ext
14172cat >>conftest.$ac_ext <<_ACEOF
14173/* end confdefs.h. */
14174#include <$ac_header>
14175_ACEOF
14176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14178 ac_status=$?
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } >/dev/null; then
14184 if test -s conftest.err; then
14185 ac_cpp_err=$ac_c_preproc_warn_flag
14186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14187 else
14188 ac_cpp_err=
14189 fi
14190else
14191 ac_cpp_err=yes
14192fi
14193if test -z "$ac_cpp_err"; then
14194 ac_header_preproc=yes
14195else
14196 echo "$as_me: failed program was:" >&5
14197sed 's/^/| /' conftest.$ac_ext >&5
14198
14199 ac_header_preproc=no
14200fi
14201rm -f conftest.err conftest.$ac_ext
14202echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14203echo "${ECHO_T}$ac_header_preproc" >&6
14204
14205# So? What about this header?
14206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14207 yes:no: )
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14212 ac_header_preproc=yes
14213 ;;
14214 no:yes:* )
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14218echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14222echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14227 (
14228 cat <<\_ASBOX
14229## ------------------------------------------ ##
14230## Report this to the AC_PACKAGE_NAME lists. ##
14231## ------------------------------------------ ##
14232_ASBOX
14233 ) |
14234 sed "s/^/$as_me: WARNING: /" >&2
14235 ;;
14236esac
14237echo "$as_me:$LINENO: checking for $ac_header" >&5
14238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14239if eval "test \"\${$as_ac_Header+set}\" = set"; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14241else
14242 eval "$as_ac_Header=\$ac_header_preproc"
14243fi
14244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14246
14247fi
14248if test `eval echo '${'$as_ac_Header'}'` = yes; then
14249 cat >>confdefs.h <<_ACEOF
14250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14251_ACEOF
14252
14253fi
14254
14255done
14256
14257
14258for ac_header in sys/proc.h
14259do
14260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14261echo "$as_me:$LINENO: checking for $ac_header" >&5
14262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14263if eval "test \"\${$as_ac_Header+set}\" = set"; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
14266 cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h. */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
14271/* end confdefs.h. */
14272#if HAVE_SYS_PARAM_H
14273# include <sys/param.h>
14274#endif
14275
14276
14277#include <$ac_header>
14278_ACEOF
14279rm -f conftest.$ac_objext
14280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281 (eval $ac_compile) 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
14288 { ac_try='test -z "$ac_c_werror_flag"
14289 || test ! -s conftest.err'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 eval "$as_ac_Header=yes"
14302else
14303 echo "$as_me: failed program was:" >&5
14304sed 's/^/| /' conftest.$ac_ext >&5
14305
14306eval "$as_ac_Header=no"
14307fi
14308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309fi
14310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14312if test `eval echo '${'$as_ac_Header'}'` = yes; then
14313 cat >>confdefs.h <<_ACEOF
14314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14315_ACEOF
14316
14317fi
14318
14319done
14320
14321
14322for ac_header in sys/procfs.h
14323do
14324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14325if eval "test \"\${$as_ac_Header+set}\" = set"; then
14326 echo "$as_me:$LINENO: checking for $ac_header" >&5
14327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14328if eval "test \"\${$as_ac_Header+set}\" = set"; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330fi
14331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14333else
14334 # Is the header compilable?
14335echo "$as_me:$LINENO: checking $ac_header usability" >&5
14336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14337cat >conftest.$ac_ext <<_ACEOF
14338/* confdefs.h. */
14339_ACEOF
14340cat confdefs.h >>conftest.$ac_ext
14341cat >>conftest.$ac_ext <<_ACEOF
14342/* end confdefs.h. */
14343$ac_includes_default
14344#include <$ac_header>
14345_ACEOF
14346rm -f conftest.$ac_objext
14347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348 (eval $ac_compile) 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -z "$ac_c_werror_flag"
14356 || test ! -s conftest.err'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try='test -s conftest.$ac_objext'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_header_compiler=yes
14369else
14370 echo "$as_me: failed program was:" >&5
14371sed 's/^/| /' conftest.$ac_ext >&5
14372
14373ac_header_compiler=no
14374fi
14375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14376echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14377echo "${ECHO_T}$ac_header_compiler" >&6
14378
14379# Is the header present?
14380echo "$as_me:$LINENO: checking $ac_header presence" >&5
14381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14382cat >conftest.$ac_ext <<_ACEOF
14383/* confdefs.h. */
14384_ACEOF
14385cat confdefs.h >>conftest.$ac_ext
14386cat >>conftest.$ac_ext <<_ACEOF
14387/* end confdefs.h. */
14388#include <$ac_header>
14389_ACEOF
14390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14392 ac_status=$?
14393 grep -v '^ *+' conftest.er1 >conftest.err
14394 rm -f conftest.er1
14395 cat conftest.err >&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } >/dev/null; then
14398 if test -s conftest.err; then
14399 ac_cpp_err=$ac_c_preproc_warn_flag
14400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14401 else
14402 ac_cpp_err=
14403 fi
14404else
14405 ac_cpp_err=yes
14406fi
14407if test -z "$ac_cpp_err"; then
14408 ac_header_preproc=yes
14409else
14410 echo "$as_me: failed program was:" >&5
14411sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_header_preproc=no
14414fi
14415rm -f conftest.err conftest.$ac_ext
14416echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417echo "${ECHO_T}$ac_header_preproc" >&6
14418
14419# So? What about this header?
14420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14421 yes:no: )
14422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14426 ac_header_preproc=yes
14427 ;;
14428 no:yes:* )
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14441 (
14442 cat <<\_ASBOX
14443## ------------------------------------------ ##
14444## Report this to the AC_PACKAGE_NAME lists. ##
14445## ------------------------------------------ ##
14446_ASBOX
14447 ) |
14448 sed "s/^/$as_me: WARNING: /" >&2
14449 ;;
14450esac
14451echo "$as_me:$LINENO: checking for $ac_header" >&5
14452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14453if eval "test \"\${$as_ac_Header+set}\" = set"; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14455else
14456 eval "$as_ac_Header=\$ac_header_preproc"
14457fi
14458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14460
14461fi
14462if test `eval echo '${'$as_ac_Header'}'` = yes; then
14463 cat >>confdefs.h <<_ACEOF
14464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14465_ACEOF
14466
14467fi
14468
14469done
14470
14471
14472
14473for ac_header in sys/ptrace.h ptrace.h
14474do
14475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14476if eval "test \"\${$as_ac_Header+set}\" = set"; then
14477 echo "$as_me:$LINENO: checking for $ac_header" >&5
14478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14479if eval "test \"\${$as_ac_Header+set}\" = set"; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481fi
14482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14484else
14485 # Is the header compilable?
14486echo "$as_me:$LINENO: checking $ac_header usability" >&5
14487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14488cat >conftest.$ac_ext <<_ACEOF
14489/* confdefs.h. */
14490_ACEOF
14491cat confdefs.h >>conftest.$ac_ext
14492cat >>conftest.$ac_ext <<_ACEOF
14493/* end confdefs.h. */
14494$ac_includes_default
14495#include <$ac_header>
14496_ACEOF
14497rm -f conftest.$ac_objext
14498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499 (eval $ac_compile) 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -z "$ac_c_werror_flag"
14507 || test ! -s conftest.err'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest.$ac_objext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14519 ac_header_compiler=yes
14520else
14521 echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524ac_header_compiler=no
14525fi
14526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14528echo "${ECHO_T}$ac_header_compiler" >&6
14529
14530# Is the header present?
14531echo "$as_me:$LINENO: checking $ac_header presence" >&5
14532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14533cat >conftest.$ac_ext <<_ACEOF
14534/* confdefs.h. */
14535_ACEOF
14536cat confdefs.h >>conftest.$ac_ext
14537cat >>conftest.$ac_ext <<_ACEOF
14538/* end confdefs.h. */
14539#include <$ac_header>
14540_ACEOF
14541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } >/dev/null; then
14549 if test -s conftest.err; then
14550 ac_cpp_err=$ac_c_preproc_warn_flag
14551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14552 else
14553 ac_cpp_err=
14554 fi
14555else
14556 ac_cpp_err=yes
14557fi
14558if test -z "$ac_cpp_err"; then
14559 ac_header_preproc=yes
14560else
14561 echo "$as_me: failed program was:" >&5
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
14564 ac_header_preproc=no
14565fi
14566rm -f conftest.err conftest.$ac_ext
14567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14568echo "${ECHO_T}$ac_header_preproc" >&6
14569
14570# So? What about this header?
14571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14572 yes:no: )
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14576echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14577 ac_header_preproc=yes
14578 ;;
14579 no:yes:* )
14580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14581echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14583echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14585echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14587echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14591echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14592 (
14593 cat <<\_ASBOX
14594## ------------------------------------------ ##
14595## Report this to the AC_PACKAGE_NAME lists. ##
14596## ------------------------------------------ ##
14597_ASBOX
14598 ) |
14599 sed "s/^/$as_me: WARNING: /" >&2
14600 ;;
14601esac
14602echo "$as_me:$LINENO: checking for $ac_header" >&5
14603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14604if eval "test \"\${$as_ac_Header+set}\" = set"; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606else
14607 eval "$as_ac_Header=\$ac_header_preproc"
14608fi
14609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14611
14612fi
14613if test `eval echo '${'$as_ac_Header'}'` = yes; then
14614 cat >>confdefs.h <<_ACEOF
14615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14616_ACEOF
14617
14618fi
14619
14620done
14621
14622
14623
14624for ac_header in sys/reg.h sys/debugreg.h
14625do
14626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14627if eval "test \"\${$as_ac_Header+set}\" = set"; then
14628 echo "$as_me:$LINENO: checking for $ac_header" >&5
14629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14630if eval "test \"\${$as_ac_Header+set}\" = set"; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632fi
14633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14635else
14636 # Is the header compilable?
14637echo "$as_me:$LINENO: checking $ac_header usability" >&5
14638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14639cat >conftest.$ac_ext <<_ACEOF
14640/* confdefs.h. */
14641_ACEOF
14642cat confdefs.h >>conftest.$ac_ext
14643cat >>conftest.$ac_ext <<_ACEOF
14644/* end confdefs.h. */
14645$ac_includes_default
14646#include <$ac_header>
14647_ACEOF
14648rm -f conftest.$ac_objext
14649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650 (eval $ac_compile) 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag"
14658 || test ! -s conftest.err'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 ac_header_compiler=yes
14671else
14672 echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
14675ac_header_compiler=no
14676fi
14677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14678echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14679echo "${ECHO_T}$ac_header_compiler" >&6
14680
14681# Is the header present?
14682echo "$as_me:$LINENO: checking $ac_header presence" >&5
14683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14684cat >conftest.$ac_ext <<_ACEOF
14685/* confdefs.h. */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
14689/* end confdefs.h. */
14690#include <$ac_header>
14691_ACEOF
14692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14694 ac_status=$?
14695 grep -v '^ *+' conftest.er1 >conftest.err
14696 rm -f conftest.er1
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } >/dev/null; then
14700 if test -s conftest.err; then
14701 ac_cpp_err=$ac_c_preproc_warn_flag
14702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14703 else
14704 ac_cpp_err=
14705 fi
14706else
14707 ac_cpp_err=yes
14708fi
14709if test -z "$ac_cpp_err"; then
14710 ac_header_preproc=yes
14711else
14712 echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 ac_header_preproc=no
14716fi
14717rm -f conftest.err conftest.$ac_ext
14718echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14719echo "${ECHO_T}$ac_header_preproc" >&6
14720
14721# So? What about this header?
14722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14723 yes:no: )
14724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14728 ac_header_preproc=yes
14729 ;;
14730 no:yes:* )
14731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14743 (
14744 cat <<\_ASBOX
14745## ------------------------------------------ ##
14746## Report this to the AC_PACKAGE_NAME lists. ##
14747## ------------------------------------------ ##
14748_ASBOX
14749 ) |
14750 sed "s/^/$as_me: WARNING: /" >&2
14751 ;;
14752esac
14753echo "$as_me:$LINENO: checking for $ac_header" >&5
14754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14755if eval "test \"\${$as_ac_Header+set}\" = set"; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757else
14758 eval "$as_ac_Header=\$ac_header_preproc"
14759fi
14760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14762
14763fi
14764if test `eval echo '${'$as_ac_Header'}'` = yes; then
14765 cat >>confdefs.h <<_ACEOF
14766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14767_ACEOF
14768
14769fi
14770
14771done
14772
14773
14774for ac_header in sys/select.h
14775do
14776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14777if eval "test \"\${$as_ac_Header+set}\" = set"; then
14778 echo "$as_me:$LINENO: checking for $ac_header" >&5
14779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14780if eval "test \"\${$as_ac_Header+set}\" = set"; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782fi
14783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14785else
14786 # Is the header compilable?
14787echo "$as_me:$LINENO: checking $ac_header usability" >&5
14788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14789cat >conftest.$ac_ext <<_ACEOF
14790/* confdefs.h. */
14791_ACEOF
14792cat confdefs.h >>conftest.$ac_ext
14793cat >>conftest.$ac_ext <<_ACEOF
14794/* end confdefs.h. */
14795$ac_includes_default
14796#include <$ac_header>
14797_ACEOF
14798rm -f conftest.$ac_objext
14799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
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); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_header_compiler=yes
14821else
14822 echo "$as_me: failed program was:" >&5
14823sed 's/^/| /' conftest.$ac_ext >&5
14824
14825ac_header_compiler=no
14826fi
14827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14828echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14829echo "${ECHO_T}$ac_header_compiler" >&6
14830
14831# Is the header present?
14832echo "$as_me:$LINENO: checking $ac_header presence" >&5
14833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14834cat >conftest.$ac_ext <<_ACEOF
14835/* confdefs.h. */
14836_ACEOF
14837cat confdefs.h >>conftest.$ac_ext
14838cat >>conftest.$ac_ext <<_ACEOF
14839/* end confdefs.h. */
14840#include <$ac_header>
14841_ACEOF
14842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } >/dev/null; then
14850 if test -s conftest.err; then
14851 ac_cpp_err=$ac_c_preproc_warn_flag
14852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14853 else
14854 ac_cpp_err=
14855 fi
14856else
14857 ac_cpp_err=yes
14858fi
14859if test -z "$ac_cpp_err"; then
14860 ac_header_preproc=yes
14861else
14862 echo "$as_me: failed program was:" >&5
14863sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 ac_header_preproc=no
14866fi
14867rm -f conftest.err conftest.$ac_ext
14868echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14869echo "${ECHO_T}$ac_header_preproc" >&6
14870
14871# So? What about this header?
14872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14873 yes:no: )
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14875echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14877echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14878 ac_header_preproc=yes
14879 ;;
14880 no:yes:* )
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14886echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14888echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14892echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14893 (
14894 cat <<\_ASBOX
14895## ------------------------------------------ ##
14896## Report this to the AC_PACKAGE_NAME lists. ##
14897## ------------------------------------------ ##
14898_ASBOX
14899 ) |
14900 sed "s/^/$as_me: WARNING: /" >&2
14901 ;;
14902esac
14903echo "$as_me:$LINENO: checking for $ac_header" >&5
14904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14905if eval "test \"\${$as_ac_Header+set}\" = set"; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14907else
14908 eval "$as_ac_Header=\$ac_header_preproc"
14909fi
14910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14912
14913fi
14914if test `eval echo '${'$as_ac_Header'}'` = yes; then
14915 cat >>confdefs.h <<_ACEOF
14916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14917_ACEOF
14918
14919fi
14920
14921done
14922
14923
14924for ac_header in sys/syscall.h
14925do
14926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14927if eval "test \"\${$as_ac_Header+set}\" = set"; then
14928 echo "$as_me:$LINENO: checking for $ac_header" >&5
14929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14930if eval "test \"\${$as_ac_Header+set}\" = set"; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932fi
14933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14935else
14936 # Is the header compilable?
14937echo "$as_me:$LINENO: checking $ac_header usability" >&5
14938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14939cat >conftest.$ac_ext <<_ACEOF
14940/* confdefs.h. */
14941_ACEOF
14942cat confdefs.h >>conftest.$ac_ext
14943cat >>conftest.$ac_ext <<_ACEOF
14944/* end confdefs.h. */
14945$ac_includes_default
14946#include <$ac_header>
14947_ACEOF
14948rm -f conftest.$ac_objext
14949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14950 (eval $ac_compile) 2>conftest.er1
14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -z "$ac_c_werror_flag"
14958 || test ! -s conftest.err'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14970 ac_header_compiler=yes
14971else
14972 echo "$as_me: failed program was:" >&5
14973sed 's/^/| /' conftest.$ac_ext >&5
14974
14975ac_header_compiler=no
14976fi
14977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14979echo "${ECHO_T}$ac_header_compiler" >&6
14980
14981# Is the header present?
14982echo "$as_me:$LINENO: checking $ac_header presence" >&5
14983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14984cat >conftest.$ac_ext <<_ACEOF
14985/* confdefs.h. */
14986_ACEOF
14987cat confdefs.h >>conftest.$ac_ext
14988cat >>conftest.$ac_ext <<_ACEOF
14989/* end confdefs.h. */
14990#include <$ac_header>
14991_ACEOF
14992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } >/dev/null; then
15000 if test -s conftest.err; then
15001 ac_cpp_err=$ac_c_preproc_warn_flag
15002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15003 else
15004 ac_cpp_err=
15005 fi
15006else
15007 ac_cpp_err=yes
15008fi
15009if test -z "$ac_cpp_err"; then
15010 ac_header_preproc=yes
15011else
15012 echo "$as_me: failed program was:" >&5
15013sed 's/^/| /' conftest.$ac_ext >&5
15014
15015 ac_header_preproc=no
15016fi
15017rm -f conftest.err conftest.$ac_ext
15018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15019echo "${ECHO_T}$ac_header_preproc" >&6
15020
15021# So? What about this header?
15022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15023 yes:no: )
15024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15028 ac_header_preproc=yes
15029 ;;
15030 no:yes:* )
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15038echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15043 (
15044 cat <<\_ASBOX
15045## ------------------------------------------ ##
15046## Report this to the AC_PACKAGE_NAME lists. ##
15047## ------------------------------------------ ##
15048_ASBOX
15049 ) |
15050 sed "s/^/$as_me: WARNING: /" >&2
15051 ;;
15052esac
15053echo "$as_me:$LINENO: checking for $ac_header" >&5
15054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15055if eval "test \"\${$as_ac_Header+set}\" = set"; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15057else
15058 eval "$as_ac_Header=\$ac_header_preproc"
15059fi
15060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15062
15063fi
15064if test `eval echo '${'$as_ac_Header'}'` = yes; then
15065 cat >>confdefs.h <<_ACEOF
15066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15067_ACEOF
15068
15069fi
15070
15071done
15072
15073
15074for ac_header in sys/types.h
15075do
15076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15077if eval "test \"\${$as_ac_Header+set}\" = set"; then
15078 echo "$as_me:$LINENO: checking for $ac_header" >&5
15079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15080if eval "test \"\${$as_ac_Header+set}\" = set"; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082fi
15083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15085else
15086 # Is the header compilable?
15087echo "$as_me:$LINENO: checking $ac_header usability" >&5
15088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15089cat >conftest.$ac_ext <<_ACEOF
15090/* confdefs.h. */
15091_ACEOF
15092cat confdefs.h >>conftest.$ac_ext
15093cat >>conftest.$ac_ext <<_ACEOF
15094/* end confdefs.h. */
15095$ac_includes_default
15096#include <$ac_header>
15097_ACEOF
15098rm -f conftest.$ac_objext
15099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100 (eval $ac_compile) 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag"
15108 || test ! -s conftest.err'
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); }; } &&
15114 { ac_try='test -s conftest.$ac_objext'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_header_compiler=yes
15121else
15122 echo "$as_me: failed program was:" >&5
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125ac_header_compiler=no
15126fi
15127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15129echo "${ECHO_T}$ac_header_compiler" >&6
15130
15131# Is the header present?
15132echo "$as_me:$LINENO: checking $ac_header presence" >&5
15133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15134cat >conftest.$ac_ext <<_ACEOF
15135/* confdefs.h. */
15136_ACEOF
15137cat confdefs.h >>conftest.$ac_ext
15138cat >>conftest.$ac_ext <<_ACEOF
15139/* end confdefs.h. */
15140#include <$ac_header>
15141_ACEOF
15142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15144 ac_status=$?
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } >/dev/null; then
15150 if test -s conftest.err; then
15151 ac_cpp_err=$ac_c_preproc_warn_flag
15152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15153 else
15154 ac_cpp_err=
15155 fi
15156else
15157 ac_cpp_err=yes
15158fi
15159if test -z "$ac_cpp_err"; then
15160 ac_header_preproc=yes
15161else
15162 echo "$as_me: failed program was:" >&5
15163sed 's/^/| /' conftest.$ac_ext >&5
15164
15165 ac_header_preproc=no
15166fi
15167rm -f conftest.err conftest.$ac_ext
15168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15169echo "${ECHO_T}$ac_header_preproc" >&6
15170
15171# So? What about this header?
15172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15173 yes:no: )
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15178 ac_header_preproc=yes
15179 ;;
15180 no:yes:* )
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15193 (
15194 cat <<\_ASBOX
15195## ------------------------------------------ ##
15196## Report this to the AC_PACKAGE_NAME lists. ##
15197## ------------------------------------------ ##
15198_ASBOX
15199 ) |
15200 sed "s/^/$as_me: WARNING: /" >&2
15201 ;;
15202esac
15203echo "$as_me:$LINENO: checking for $ac_header" >&5
15204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15205if eval "test \"\${$as_ac_Header+set}\" = set"; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15207else
15208 eval "$as_ac_Header=\$ac_header_preproc"
15209fi
15210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15212
15213fi
15214if test `eval echo '${'$as_ac_Header'}'` = yes; then
15215 cat >>confdefs.h <<_ACEOF
15216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15217_ACEOF
15218
15219fi
15220
15221done
15222
15223
15224for ac_header in sys/user.h
15225do
15226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15227echo "$as_me:$LINENO: checking for $ac_header" >&5
15228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15229if eval "test \"\${$as_ac_Header+set}\" = set"; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231else
15232 cat >conftest.$ac_ext <<_ACEOF
15233/* confdefs.h. */
15234_ACEOF
15235cat confdefs.h >>conftest.$ac_ext
15236cat >>conftest.$ac_ext <<_ACEOF
15237/* end confdefs.h. */
15238#if HAVE_SYS_PARAM_H
15239# include <sys/param.h>
15240#endif
15241
15242
15243#include <$ac_header>
15244_ACEOF
15245rm -f conftest.$ac_objext
15246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15247 (eval $ac_compile) 2>conftest.er1
15248 ac_status=$?
15249 grep -v '^ *+' conftest.er1 >conftest.err
15250 rm -f conftest.er1
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag"
15255 || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest.$ac_objext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 eval "$as_ac_Header=yes"
15268else
15269 echo "$as_me: failed program was:" >&5
15270sed 's/^/| /' conftest.$ac_ext >&5
15271
15272eval "$as_ac_Header=no"
15273fi
15274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15275fi
15276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15278if test `eval echo '${'$as_ac_Header'}'` = yes; then
15279 cat >>confdefs.h <<_ACEOF
15280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15281_ACEOF
15282
15283fi
15284
15285done
15286
15287
15288
15289for ac_header in sys/wait.h wait.h
15290do
15291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15292if eval "test \"\${$as_ac_Header+set}\" = set"; then
15293 echo "$as_me:$LINENO: checking for $ac_header" >&5
15294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15295if eval "test \"\${$as_ac_Header+set}\" = set"; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297fi
15298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15300else
15301 # Is the header compilable?
15302echo "$as_me:$LINENO: checking $ac_header usability" >&5
15303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15304cat >conftest.$ac_ext <<_ACEOF
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310$ac_includes_default
15311#include <$ac_header>
15312_ACEOF
15313rm -f conftest.$ac_objext
15314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15315 (eval $ac_compile) 2>conftest.er1
15316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -z "$ac_c_werror_flag"
15323 || test ! -s conftest.err'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest.$ac_objext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_header_compiler=yes
15336else
15337 echo "$as_me: failed program was:" >&5
15338sed 's/^/| /' conftest.$ac_ext >&5
15339
15340ac_header_compiler=no
15341fi
15342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15344echo "${ECHO_T}$ac_header_compiler" >&6
15345
15346# Is the header present?
15347echo "$as_me:$LINENO: checking $ac_header presence" >&5
15348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15349cat >conftest.$ac_ext <<_ACEOF
15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
15354/* end confdefs.h. */
15355#include <$ac_header>
15356_ACEOF
15357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } >/dev/null; then
15365 if test -s conftest.err; then
15366 ac_cpp_err=$ac_c_preproc_warn_flag
15367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15368 else
15369 ac_cpp_err=
15370 fi
15371else
15372 ac_cpp_err=yes
15373fi
15374if test -z "$ac_cpp_err"; then
15375 ac_header_preproc=yes
15376else
15377 echo "$as_me: failed program was:" >&5
15378sed 's/^/| /' conftest.$ac_ext >&5
15379
15380 ac_header_preproc=no
15381fi
15382rm -f conftest.err conftest.$ac_ext
15383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15384echo "${ECHO_T}$ac_header_preproc" >&6
15385
15386# So? What about this header?
15387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15388 yes:no: )
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15393 ac_header_preproc=yes
15394 ;;
15395 no:yes:* )
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15399echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15403echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15408 (
15409 cat <<\_ASBOX
15410## ------------------------------------------ ##
15411## Report this to the AC_PACKAGE_NAME lists. ##
15412## ------------------------------------------ ##
15413_ASBOX
15414 ) |
15415 sed "s/^/$as_me: WARNING: /" >&2
15416 ;;
15417esac
15418echo "$as_me:$LINENO: checking for $ac_header" >&5
15419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15420if eval "test \"\${$as_ac_Header+set}\" = set"; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422else
15423 eval "$as_ac_Header=\$ac_header_preproc"
15424fi
15425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15427
15428fi
15429if test `eval echo '${'$as_ac_Header'}'` = yes; then
15430 cat >>confdefs.h <<_ACEOF
15431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15432_ACEOF
15433
15434fi
15435
15436done
15437
15438
15439
15440
15441for ac_header in termios.h termio.h sgtty.h
15442do
15443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444if eval "test \"\${$as_ac_Header+set}\" = set"; then
15445 echo "$as_me:$LINENO: checking for $ac_header" >&5
15446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15447if eval "test \"\${$as_ac_Header+set}\" = set"; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449fi
15450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15452else
15453 # Is the header compilable?
15454echo "$as_me:$LINENO: checking $ac_header usability" >&5
15455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15456cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463#include <$ac_header>
15464_ACEOF
15465rm -f conftest.$ac_objext
15466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15467 (eval $ac_compile) 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try='test -z "$ac_c_werror_flag"
15475 || test ! -s conftest.err'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; } &&
15481 { ac_try='test -s conftest.$ac_objext'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15487 ac_header_compiler=yes
15488else
15489 echo "$as_me: failed program was:" >&5
15490sed 's/^/| /' conftest.$ac_ext >&5
15491
15492ac_header_compiler=no
15493fi
15494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15496echo "${ECHO_T}$ac_header_compiler" >&6
15497
15498# Is the header present?
15499echo "$as_me:$LINENO: checking $ac_header presence" >&5
15500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15501cat >conftest.$ac_ext <<_ACEOF
15502/* confdefs.h. */
15503_ACEOF
15504cat confdefs.h >>conftest.$ac_ext
15505cat >>conftest.$ac_ext <<_ACEOF
15506/* end confdefs.h. */
15507#include <$ac_header>
15508_ACEOF
15509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15511 ac_status=$?
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } >/dev/null; then
15517 if test -s conftest.err; then
15518 ac_cpp_err=$ac_c_preproc_warn_flag
15519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15520 else
15521 ac_cpp_err=
15522 fi
15523else
15524 ac_cpp_err=yes
15525fi
15526if test -z "$ac_cpp_err"; then
15527 ac_header_preproc=yes
15528else
15529 echo "$as_me: failed program was:" >&5
15530sed 's/^/| /' conftest.$ac_ext >&5
15531
15532 ac_header_preproc=no
15533fi
15534rm -f conftest.err conftest.$ac_ext
15535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15536echo "${ECHO_T}$ac_header_preproc" >&6
15537
15538# So? What about this header?
15539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15540 yes:no: )
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15545 ac_header_preproc=yes
15546 ;;
15547 no:yes:* )
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15560 (
15561 cat <<\_ASBOX
15562## ------------------------------------------ ##
15563## Report this to the AC_PACKAGE_NAME lists. ##
15564## ------------------------------------------ ##
15565_ASBOX
15566 ) |
15567 sed "s/^/$as_me: WARNING: /" >&2
15568 ;;
15569esac
15570echo "$as_me:$LINENO: checking for $ac_header" >&5
15571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15572if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574else
15575 eval "$as_ac_Header=\$ac_header_preproc"
15576fi
15577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15579
15580fi
15581if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582 cat >>confdefs.h <<_ACEOF
15583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584_ACEOF
15585
15586fi
15587
15588done
15589
15590
15591for ac_header in unistd.h
15592do
15593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15594if eval "test \"\${$as_ac_Header+set}\" = set"; then
15595 echo "$as_me:$LINENO: checking for $ac_header" >&5
15596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15597if eval "test \"\${$as_ac_Header+set}\" = set"; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599fi
15600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15602else
15603 # Is the header compilable?
15604echo "$as_me:$LINENO: checking $ac_header usability" >&5
15605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15606cat >conftest.$ac_ext <<_ACEOF
15607/* confdefs.h. */
15608_ACEOF
15609cat confdefs.h >>conftest.$ac_ext
15610cat >>conftest.$ac_ext <<_ACEOF
15611/* end confdefs.h. */
15612$ac_includes_default
15613#include <$ac_header>
15614_ACEOF
15615rm -f conftest.$ac_objext
15616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617 (eval $ac_compile) 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag"
15625 || test ! -s conftest.err'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 ac_header_compiler=yes
15638else
15639 echo "$as_me: failed program was:" >&5
15640sed 's/^/| /' conftest.$ac_ext >&5
15641
15642ac_header_compiler=no
15643fi
15644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15646echo "${ECHO_T}$ac_header_compiler" >&6
15647
15648# Is the header present?
15649echo "$as_me:$LINENO: checking $ac_header presence" >&5
15650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15651cat >conftest.$ac_ext <<_ACEOF
15652/* confdefs.h. */
15653_ACEOF
15654cat confdefs.h >>conftest.$ac_ext
15655cat >>conftest.$ac_ext <<_ACEOF
15656/* end confdefs.h. */
15657#include <$ac_header>
15658_ACEOF
15659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15661 ac_status=$?
15662 grep -v '^ *+' conftest.er1 >conftest.err
15663 rm -f conftest.er1
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } >/dev/null; then
15667 if test -s conftest.err; then
15668 ac_cpp_err=$ac_c_preproc_warn_flag
15669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15670 else
15671 ac_cpp_err=
15672 fi
15673else
15674 ac_cpp_err=yes
15675fi
15676if test -z "$ac_cpp_err"; then
15677 ac_header_preproc=yes
15678else
15679 echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_header_preproc=no
15683fi
15684rm -f conftest.err conftest.$ac_ext
15685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15686echo "${ECHO_T}$ac_header_preproc" >&6
15687
15688# So? What about this header?
15689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15690 yes:no: )
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15695 ac_header_preproc=yes
15696 ;;
15697 no:yes:* )
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15710 (
15711 cat <<\_ASBOX
15712## ------------------------------------------ ##
15713## Report this to the AC_PACKAGE_NAME lists. ##
15714## ------------------------------------------ ##
15715_ASBOX
15716 ) |
15717 sed "s/^/$as_me: WARNING: /" >&2
15718 ;;
15719esac
15720echo "$as_me:$LINENO: checking for $ac_header" >&5
15721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15722if eval "test \"\${$as_ac_Header+set}\" = set"; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15724else
15725 eval "$as_ac_Header=\$ac_header_preproc"
15726fi
15727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15729
15730fi
15731if test `eval echo '${'$as_ac_Header'}'` = yes; then
15732 cat >>confdefs.h <<_ACEOF
15733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15734_ACEOF
15735
15736fi
15737
15738done
15739
15740
15741# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15742# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15743# think that we don't have <curses.h> if we're using GCC.
15744case $host_os in
15745 solaris2.[789])
15746 if test "$GCC" = yes; then
15747
15748cat >>confdefs.h <<\_ACEOF
15749#define _MSE_INT_H 1
15750_ACEOF
15751
15752 fi ;;
15753esac
15754
15755
15756
15757
15758for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15759do
15760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15761if eval "test \"\${$as_ac_Header+set}\" = set"; then
15762 echo "$as_me:$LINENO: checking for $ac_header" >&5
15763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15764if eval "test \"\${$as_ac_Header+set}\" = set"; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15766fi
15767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15769else
15770 # Is the header compilable?
15771echo "$as_me:$LINENO: checking $ac_header usability" >&5
15772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15773cat >conftest.$ac_ext <<_ACEOF
15774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
15779$ac_includes_default
15780#include <$ac_header>
15781_ACEOF
15782rm -f conftest.$ac_objext
15783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15784 (eval $ac_compile) 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_c_werror_flag"
15792 || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler=yes
15805else
15806 echo "$as_me: failed program was:" >&5
15807sed 's/^/| /' conftest.$ac_ext >&5
15808
15809ac_header_compiler=no
15810fi
15811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15813echo "${ECHO_T}$ac_header_compiler" >&6
15814
15815# Is the header present?
15816echo "$as_me:$LINENO: checking $ac_header presence" >&5
15817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15818cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824#include <$ac_header>
15825_ACEOF
15826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev/null; then
15834 if test -s conftest.err; then
15835 ac_cpp_err=$ac_c_preproc_warn_flag
15836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837 else
15838 ac_cpp_err=
15839 fi
15840else
15841 ac_cpp_err=yes
15842fi
15843if test -z "$ac_cpp_err"; then
15844 ac_header_preproc=yes
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ac_header_preproc=no
15850fi
15851rm -f conftest.err conftest.$ac_ext
15852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853echo "${ECHO_T}$ac_header_preproc" >&6
15854
15855# So? What about this header?
15856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15857 yes:no: )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc=yes
15863 ;;
15864 no:yes:* )
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15872echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15877 (
15878 cat <<\_ASBOX
15879## ------------------------------------------ ##
15880## Report this to the AC_PACKAGE_NAME lists. ##
15881## ------------------------------------------ ##
15882_ASBOX
15883 ) |
15884 sed "s/^/$as_me: WARNING: /" >&2
15885 ;;
15886esac
15887echo "$as_me:$LINENO: checking for $ac_header" >&5
15888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15889if eval "test \"\${$as_ac_Header+set}\" = set"; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891else
15892 eval "$as_ac_Header=\$ac_header_preproc"
15893fi
15894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15896
15897fi
15898if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901_ACEOF
15902
15903fi
15904
15905done
15906
15907
15908for ac_header in ncurses/term.h
15909do
15910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15911if eval "test \"\${$as_ac_Header+set}\" = set"; then
15912 echo "$as_me:$LINENO: checking for $ac_header" >&5
15913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15914if eval "test \"\${$as_ac_Header+set}\" = set"; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15916fi
15917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15919else
15920 # Is the header compilable?
15921echo "$as_me:$LINENO: checking $ac_header usability" >&5
15922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15923cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h. */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h. */
15929$ac_includes_default
15930#include <$ac_header>
15931_ACEOF
15932rm -f conftest.$ac_objext
15933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934 (eval $ac_compile) 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_header_compiler=yes
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959ac_header_compiler=no
15960fi
15961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15963echo "${ECHO_T}$ac_header_compiler" >&6
15964
15965# Is the header present?
15966echo "$as_me:$LINENO: checking $ac_header presence" >&5
15967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15968cat >conftest.$ac_ext <<_ACEOF
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974#include <$ac_header>
15975_ACEOF
15976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } >/dev/null; then
15984 if test -s conftest.err; then
15985 ac_cpp_err=$ac_c_preproc_warn_flag
15986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15987 else
15988 ac_cpp_err=
15989 fi
15990else
15991 ac_cpp_err=yes
15992fi
15993if test -z "$ac_cpp_err"; then
15994 ac_header_preproc=yes
15995else
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 ac_header_preproc=no
16000fi
16001rm -f conftest.err conftest.$ac_ext
16002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16003echo "${ECHO_T}$ac_header_preproc" >&6
16004
16005# So? What about this header?
16006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16007 yes:no: )
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16012 ac_header_preproc=yes
16013 ;;
16014 no:yes:* )
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16018echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16022echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16027 (
16028 cat <<\_ASBOX
16029## ------------------------------------------ ##
16030## Report this to the AC_PACKAGE_NAME lists. ##
16031## ------------------------------------------ ##
16032_ASBOX
16033 ) |
16034 sed "s/^/$as_me: WARNING: /" >&2
16035 ;;
16036esac
16037echo "$as_me:$LINENO: checking for $ac_header" >&5
16038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16039if eval "test \"\${$as_ac_Header+set}\" = set"; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041else
16042 eval "$as_ac_Header=\$ac_header_preproc"
16043fi
16044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16046
16047fi
16048if test `eval echo '${'$as_ac_Header'}'` = yes; then
16049 cat >>confdefs.h <<_ACEOF
16050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16051_ACEOF
16052
16053fi
16054
16055done
16056
16057
16058for ac_header in term.h
16059do
16060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16061echo "$as_me:$LINENO: checking for $ac_header" >&5
16062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16063if eval "test \"\${$as_ac_Header+set}\" = set"; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16065else
16066 cat >conftest.$ac_ext <<_ACEOF
16067/* confdefs.h. */
16068_ACEOF
16069cat confdefs.h >>conftest.$ac_ext
16070cat >>conftest.$ac_ext <<_ACEOF
16071/* end confdefs.h. */
16072#if HAVE_CURSES_H
16073# include <curses.h>
16074#endif
16075
16076
16077#include <$ac_header>
16078_ACEOF
16079rm -f conftest.$ac_objext
16080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16081 (eval $ac_compile) 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag"
16089 || test ! -s conftest.err'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; } &&
16095 { ac_try='test -s conftest.$ac_objext'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 eval "$as_ac_Header=yes"
16102else
16103 echo "$as_me: failed program was:" >&5
16104sed 's/^/| /' conftest.$ac_ext >&5
16105
16106eval "$as_ac_Header=no"
16107fi
16108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16109fi
16110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16112if test `eval echo '${'$as_ac_Header'}'` = yes; then
16113 cat >>confdefs.h <<_ACEOF
16114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16115_ACEOF
16116
16117fi
16118
16119done
16120
16121
16122# Check for HP/UX 64-bit shared library support
16123
16124for ac_header in elf_hp.h
16125do
16126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16127if eval "test \"\${$as_ac_Header+set}\" = set"; then
16128 echo "$as_me:$LINENO: checking for $ac_header" >&5
16129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16130if eval "test \"\${$as_ac_Header+set}\" = set"; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132fi
16133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16135else
16136 # Is the header compilable?
16137echo "$as_me:$LINENO: checking $ac_header usability" >&5
16138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16139cat >conftest.$ac_ext <<_ACEOF
16140/* confdefs.h. */
16141_ACEOF
16142cat confdefs.h >>conftest.$ac_ext
16143cat >>conftest.$ac_ext <<_ACEOF
16144/* end confdefs.h. */
16145$ac_includes_default
16146#include <$ac_header>
16147_ACEOF
16148rm -f conftest.$ac_objext
16149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 ac_header_compiler=yes
16171else
16172 echo "$as_me: failed program was:" >&5
16173sed 's/^/| /' conftest.$ac_ext >&5
16174
16175ac_header_compiler=no
16176fi
16177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16179echo "${ECHO_T}$ac_header_compiler" >&6
16180
16181# Is the header present?
16182echo "$as_me:$LINENO: checking $ac_header presence" >&5
16183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16184cat >conftest.$ac_ext <<_ACEOF
16185/* confdefs.h. */
16186_ACEOF
16187cat confdefs.h >>conftest.$ac_ext
16188cat >>conftest.$ac_ext <<_ACEOF
16189/* end confdefs.h. */
16190#include <$ac_header>
16191_ACEOF
16192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } >/dev/null; then
16200 if test -s conftest.err; then
16201 ac_cpp_err=$ac_c_preproc_warn_flag
16202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16203 else
16204 ac_cpp_err=
16205 fi
16206else
16207 ac_cpp_err=yes
16208fi
16209if test -z "$ac_cpp_err"; then
16210 ac_header_preproc=yes
16211else
16212 echo "$as_me: failed program was:" >&5
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 ac_header_preproc=no
16216fi
16217rm -f conftest.err conftest.$ac_ext
16218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16219echo "${ECHO_T}$ac_header_preproc" >&6
16220
16221# So? What about this header?
16222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16223 yes:no: )
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16228 ac_header_preproc=yes
16229 ;;
16230 no:yes:* )
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16243 (
16244 cat <<\_ASBOX
16245## ------------------------------------------ ##
16246## Report this to the AC_PACKAGE_NAME lists. ##
16247## ------------------------------------------ ##
16248_ASBOX
16249 ) |
16250 sed "s/^/$as_me: WARNING: /" >&2
16251 ;;
16252esac
16253echo "$as_me:$LINENO: checking for $ac_header" >&5
16254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16255if eval "test \"\${$as_ac_Header+set}\" = set"; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257else
16258 eval "$as_ac_Header=\$ac_header_preproc"
16259fi
16260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16262
16263fi
16264if test `eval echo '${'$as_ac_Header'}'` = yes; then
16265 cat >>confdefs.h <<_ACEOF
16266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16267_ACEOF
16268
16269fi
16270
16271done
16272
16273
16274# FIXME: kettenis/20030102: In most cases we include these
16275# unconditionally, so what's the point in checking these?
16276
16277
16278for ac_header in ctype.h time.h
16279do
16280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16281if eval "test \"\${$as_ac_Header+set}\" = set"; then
16282 echo "$as_me:$LINENO: checking for $ac_header" >&5
16283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16284if eval "test \"\${$as_ac_Header+set}\" = set"; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16286fi
16287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16289else
16290 # Is the header compilable?
16291echo "$as_me:$LINENO: checking $ac_header usability" >&5
16292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16293cat >conftest.$ac_ext <<_ACEOF
16294/* confdefs.h. */
16295_ACEOF
16296cat confdefs.h >>conftest.$ac_ext
16297cat >>conftest.$ac_ext <<_ACEOF
16298/* end confdefs.h. */
16299$ac_includes_default
16300#include <$ac_header>
16301_ACEOF
16302rm -f conftest.$ac_objext
16303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16304 (eval $ac_compile) 2>conftest.er1
16305 ac_status=$?
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } &&
16311 { ac_try='test -z "$ac_c_werror_flag"
16312 || test ! -s conftest.err'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; } &&
16318 { ac_try='test -s conftest.$ac_objext'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_header_compiler=yes
16325else
16326 echo "$as_me: failed program was:" >&5
16327sed 's/^/| /' conftest.$ac_ext >&5
16328
16329ac_header_compiler=no
16330fi
16331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16333echo "${ECHO_T}$ac_header_compiler" >&6
16334
16335# Is the header present?
16336echo "$as_me:$LINENO: checking $ac_header presence" >&5
16337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16338cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344#include <$ac_header>
16345_ACEOF
16346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16348 ac_status=$?
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } >/dev/null; then
16354 if test -s conftest.err; then
16355 ac_cpp_err=$ac_c_preproc_warn_flag
16356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16357 else
16358 ac_cpp_err=
16359 fi
16360else
16361 ac_cpp_err=yes
16362fi
16363if test -z "$ac_cpp_err"; then
16364 ac_header_preproc=yes
16365else
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
16369 ac_header_preproc=no
16370fi
16371rm -f conftest.err conftest.$ac_ext
16372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16373echo "${ECHO_T}$ac_header_preproc" >&6
16374
16375# So? What about this header?
16376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16377 yes:no: )
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16382 ac_header_preproc=yes
16383 ;;
16384 no:yes:* )
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16397 (
16398 cat <<\_ASBOX
16399## ------------------------------------------ ##
16400## Report this to the AC_PACKAGE_NAME lists. ##
16401## ------------------------------------------ ##
16402_ASBOX
16403 ) |
16404 sed "s/^/$as_me: WARNING: /" >&2
16405 ;;
16406esac
16407echo "$as_me:$LINENO: checking for $ac_header" >&5
16408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16409if eval "test \"\${$as_ac_Header+set}\" = set"; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 eval "$as_ac_Header=\$ac_header_preproc"
16413fi
16414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16416
16417fi
16418if test `eval echo '${'$as_ac_Header'}'` = yes; then
16419 cat >>confdefs.h <<_ACEOF
16420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16421_ACEOF
16422
16423fi
16424
16425done
16426
16427
16428# Create a header we can use portably to get the standard integer types.
16429
16430
16431inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16432
16433acx_cv_header_stdint=stddef.h
16434acx_cv_header_stdint_kind="(already complete)"
16435for i in stdint.h $inttype_headers; do
16436 unset ac_cv_type_uintptr_t
16437 unset ac_cv_type_uintmax_t
16438 unset ac_cv_type_int_least32_t
16439 unset ac_cv_type_int_fast32_t
16440 unset ac_cv_type_uint64_t
16441 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
16442 echo "$as_me:$LINENO: checking for uintmax_t" >&5
16443echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
16444if test "${ac_cv_type_uintmax_t+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446else
16447 cat >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 <sys/types.h>
16454#include <$i>
16455
16456int
16457main ()
16458{
16459if ((uintmax_t *) 0)
16460 return 0;
16461if (sizeof (uintmax_t))
16462 return 0;
16463 ;
16464 return 0;
16465}
16466_ACEOF
16467rm -f conftest.$ac_objext
16468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16469 (eval $ac_compile) 2>conftest.er1
16470 ac_status=$?
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } &&
16476 { ac_try='test -z "$ac_c_werror_flag"
16477 || test ! -s conftest.err'
16478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479 (eval $ac_try) 2>&5
16480 ac_status=$?
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; } &&
16483 { ac_try='test -s conftest.$ac_objext'
16484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485 (eval $ac_try) 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; }; then
16489 ac_cv_type_uintmax_t=yes
16490else
16491 echo "$as_me: failed program was:" >&5
16492sed 's/^/| /' conftest.$ac_ext >&5
16493
16494ac_cv_type_uintmax_t=no
16495fi
16496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16497fi
16498echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
16499echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
16500if test $ac_cv_type_uintmax_t = yes; then
16501 acx_cv_header_stdint=$i
16502else
16503 continue
16504fi
16505
16506 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16507echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16508if test "${ac_cv_type_uintptr_t+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510else
16511 cat >conftest.$ac_ext <<_ACEOF
16512/* confdefs.h. */
16513_ACEOF
16514cat confdefs.h >>conftest.$ac_ext
16515cat >>conftest.$ac_ext <<_ACEOF
16516/* end confdefs.h. */
16517#include <sys/types.h>
16518#include <$i>
16519
16520int
16521main ()
16522{
16523if ((uintptr_t *) 0)
16524 return 0;
16525if (sizeof (uintptr_t))
16526 return 0;
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16533 (eval $ac_compile) 2>conftest.er1
16534 ac_status=$?
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
16540 { ac_try='test -z "$ac_c_werror_flag"
16541 || test ! -s conftest.err'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; } &&
16547 { ac_try='test -s conftest.$ac_objext'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_type_uintptr_t=yes
16554else
16555 echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558ac_cv_type_uintptr_t=no
16559fi
16560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16561fi
16562echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16563echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16564if test $ac_cv_type_uintptr_t = yes; then
16565 :
16566else
16567 acx_cv_header_stdint_kind="(mostly complete)"
16568fi
16569
16570 echo "$as_me:$LINENO: checking for int_least32_t" >&5
16571echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
16572if test "${ac_cv_type_int_least32_t+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
16575 cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581#include <sys/types.h>
16582#include <$i>
16583
16584int
16585main ()
16586{
16587if ((int_least32_t *) 0)
16588 return 0;
16589if (sizeof (int_least32_t))
16590 return 0;
16591 ;
16592 return 0;
16593}
16594_ACEOF
16595rm -f conftest.$ac_objext
16596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16597 (eval $ac_compile) 2>conftest.er1
16598 ac_status=$?
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -z "$ac_c_werror_flag"
16605 || test ! -s conftest.err'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest.$ac_objext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_type_int_least32_t=yes
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622ac_cv_type_int_least32_t=no
16623fi
16624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16625fi
16626echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
16627echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
16628if test $ac_cv_type_int_least32_t = yes; then
16629 :
16630else
16631 acx_cv_header_stdint_kind="(mostly complete)"
16632fi
16633
16634 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
16635echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
16636if test "${ac_cv_type_int_fast32_t+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16638else
16639 cat >conftest.$ac_ext <<_ACEOF
16640/* confdefs.h. */
16641_ACEOF
16642cat confdefs.h >>conftest.$ac_ext
16643cat >>conftest.$ac_ext <<_ACEOF
16644/* end confdefs.h. */
16645#include <sys/types.h>
16646#include <$i>
16647
16648int
16649main ()
16650{
16651if ((int_fast32_t *) 0)
16652 return 0;
16653if (sizeof (int_fast32_t))
16654 return 0;
16655 ;
16656 return 0;
16657}
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16661 (eval $ac_compile) 2>conftest.er1
16662 ac_status=$?
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -z "$ac_c_werror_flag"
16669 || test ! -s conftest.err'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest.$ac_objext'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 ac_cv_type_int_fast32_t=yes
16682else
16683 echo "$as_me: failed program was:" >&5
16684sed 's/^/| /' conftest.$ac_ext >&5
16685
16686ac_cv_type_int_fast32_t=no
16687fi
16688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16689fi
16690echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
16691echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
16692if test $ac_cv_type_int_fast32_t = yes; then
16693 :
16694else
16695 acx_cv_header_stdint_kind="(mostly complete)"
16696fi
16697
16698 echo "$as_me:$LINENO: checking for uint64_t" >&5
16699echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16700if test "${ac_cv_type_uint64_t+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702else
16703 cat >conftest.$ac_ext <<_ACEOF
16704/* confdefs.h. */
16705_ACEOF
16706cat confdefs.h >>conftest.$ac_ext
16707cat >>conftest.$ac_ext <<_ACEOF
16708/* end confdefs.h. */
16709#include <sys/types.h>
16710#include <$i>
16711
16712int
16713main ()
16714{
16715if ((uint64_t *) 0)
16716 return 0;
16717if (sizeof (uint64_t))
16718 return 0;
16719 ;
16720 return 0;
16721}
16722_ACEOF
16723rm -f conftest.$ac_objext
16724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16725 (eval $ac_compile) 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -z "$ac_c_werror_flag"
16733 || test ! -s conftest.err'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest.$ac_objext'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16745 ac_cv_type_uint64_t=yes
16746else
16747 echo "$as_me: failed program was:" >&5
16748sed 's/^/| /' conftest.$ac_ext >&5
16749
16750ac_cv_type_uint64_t=no
16751fi
16752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16753fi
16754echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16755echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16756if test $ac_cv_type_uint64_t = yes; then
16757 :
16758else
16759 acx_cv_header_stdint_kind="(lacks uint64_t)"
16760fi
16761
16762 break
16763done
16764if test "$acx_cv_header_stdint" = stddef.h; then
16765 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16766 for i in stdint.h $inttype_headers; do
16767 unset ac_cv_type_uintptr_t
16768 unset ac_cv_type_uint32_t
16769 unset ac_cv_type_uint64_t
16770 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
16771 echo "$as_me:$LINENO: checking for uint32_t" >&5
16772echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
16773if test "${ac_cv_type_uint32_t+set}" = set; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16775else
16776 cat >conftest.$ac_ext <<_ACEOF
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
16782#include <sys/types.h>
16783#include <$i>
16784
16785int
16786main ()
16787{
16788if ((uint32_t *) 0)
16789 return 0;
16790if (sizeof (uint32_t))
16791 return 0;
16792 ;
16793 return 0;
16794}
16795_ACEOF
16796rm -f conftest.$ac_objext
16797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798 (eval $ac_compile) 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_cv_type_uint32_t=yes
16819else
16820 echo "$as_me: failed program was:" >&5
16821sed 's/^/| /' conftest.$ac_ext >&5
16822
16823ac_cv_type_uint32_t=no
16824fi
16825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16826fi
16827echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16828echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
16829if test $ac_cv_type_uint32_t = yes; then
16830 acx_cv_header_stdint=$i
16831else
16832 continue
16833fi
16834
16835 echo "$as_me:$LINENO: checking for uint64_t" >&5
16836echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16837if test "${ac_cv_type_uint64_t+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 cat >conftest.$ac_ext <<_ACEOF
16841/* confdefs.h. */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h. */
16846#include <sys/types.h>
16847#include <$i>
16848
16849int
16850main ()
16851{
16852if ((uint64_t *) 0)
16853 return 0;
16854if (sizeof (uint64_t))
16855 return 0;
16856 ;
16857 return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext
16861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16862 (eval $ac_compile) 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -z "$ac_c_werror_flag"
16870 || test ! -s conftest.err'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882 ac_cv_type_uint64_t=yes
16883else
16884 echo "$as_me: failed program was:" >&5
16885sed 's/^/| /' conftest.$ac_ext >&5
16886
16887ac_cv_type_uint64_t=no
16888fi
16889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16890fi
16891echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16892echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16893
16894 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16895echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16896if test "${ac_cv_type_uintptr_t+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16898else
16899 cat >conftest.$ac_ext <<_ACEOF
16900/* confdefs.h. */
16901_ACEOF
16902cat confdefs.h >>conftest.$ac_ext
16903cat >>conftest.$ac_ext <<_ACEOF
16904/* end confdefs.h. */
16905#include <sys/types.h>
16906#include <$i>
16907
16908int
16909main ()
16910{
16911if ((uintptr_t *) 0)
16912 return 0;
16913if (sizeof (uintptr_t))
16914 return 0;
16915 ;
16916 return 0;
16917}
16918_ACEOF
16919rm -f conftest.$ac_objext
16920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag"
16929 || test ! -s conftest.err'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; } &&
16935 { ac_try='test -s conftest.$ac_objext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_type_uintptr_t=yes
16942else
16943 echo "$as_me: failed program was:" >&5
16944sed 's/^/| /' conftest.$ac_ext >&5
16945
16946ac_cv_type_uintptr_t=no
16947fi
16948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16949fi
16950echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16951echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16952
16953 break
16954 done
16955fi
16956if test "$acx_cv_header_stdint" = stddef.h; then
16957 acx_cv_header_stdint_kind="(u_intXX_t style)"
16958 for i in sys/types.h $inttype_headers; do
16959 unset ac_cv_type_u_int32_t
16960 unset ac_cv_type_u_int64_t
16961 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
16962 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16963echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
16964if test "${ac_cv_type_u_int32_t+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16966else
16967 cat >conftest.$ac_ext <<_ACEOF
16968/* confdefs.h. */
16969_ACEOF
16970cat confdefs.h >>conftest.$ac_ext
16971cat >>conftest.$ac_ext <<_ACEOF
16972/* end confdefs.h. */
16973#include <sys/types.h>
16974#include <$i>
16975
16976int
16977main ()
16978{
16979if ((u_int32_t *) 0)
16980 return 0;
16981if (sizeof (u_int32_t))
16982 return 0;
16983 ;
16984 return 0;
16985}
16986_ACEOF
16987rm -f conftest.$ac_objext
16988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16989 (eval $ac_compile) 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag"
16997 || test ! -s conftest.err'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest.$ac_objext'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_cv_type_u_int32_t=yes
17010else
17011 echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014ac_cv_type_u_int32_t=no
17015fi
17016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17017fi
17018echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
17019echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
17020if test $ac_cv_type_u_int32_t = yes; then
17021 acx_cv_header_stdint=$i
17022else
17023 continue
17024fi
17025
17026 echo "$as_me:$LINENO: checking for u_int64_t" >&5
17027echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
17028if test "${ac_cv_type_u_int64_t+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037#include <sys/types.h>
17038#include <$i>
17039
17040int
17041main ()
17042{
17043if ((u_int64_t *) 0)
17044 return 0;
17045if (sizeof (u_int64_t))
17046 return 0;
17047 ;
17048 return 0;
17049}
17050_ACEOF
17051rm -f conftest.$ac_objext
17052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>conftest.er1
17054 ac_status=$?
17055 grep -v '^ *+' conftest.er1 >conftest.err
17056 rm -f conftest.er1
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -z "$ac_c_werror_flag"
17061 || test ! -s conftest.err'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest.$ac_objext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_cv_type_u_int64_t=yes
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078ac_cv_type_u_int64_t=no
17079fi
17080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081fi
17082echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17083echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
17084
17085 break
17086 done
17087fi
17088if test "$acx_cv_header_stdint" = stddef.h; then
17089 acx_cv_header_stdint_kind="(using manual detection)"
17090fi
17091
17092test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
17093test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
17094test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
17095test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
17096test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
17097
17098# ----------------- Summarize what we found so far
17099
17100echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
17101echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
17102
17103case `$as_basename gdb_stdint.h ||
17104$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
17105 Xgdb_stdint.h : 'X\(//\)$' \| \
17106 Xgdb_stdint.h : 'X\(/\)$' \| \
17107 . : '\(.\)' 2>/dev/null ||
17108echo X/gdb_stdint.h |
17109 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17110 /^X\/\(\/\/\)$/{ s//\1/; q; }
17111 /^X\/\(\/\).*/{ s//\1/; q; }
17112 s/.*/./; q'` in
17113 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
17114echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
17115 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
17116echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
17117 *) ;;
17118esac
17119
17120echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
17121echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
17122
17123# ----------------- done included file, check C basic types --------
17124
17125# Lacking an uintptr_t? Test size of void *
17126case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
17127 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
17128echo $ECHO_N "checking for void *... $ECHO_C" >&6
17129if test "${ac_cv_type_void_p+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131else
17132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
17137/* end confdefs.h. */
17138$ac_includes_default
17139int
17140main ()
17141{
17142if ((void * *) 0)
17143 return 0;
17144if (sizeof (void *))
17145 return 0;
17146 ;
17147 return 0;
17148}
17149_ACEOF
17150rm -f conftest.$ac_objext
17151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17152 (eval $ac_compile) 2>conftest.er1
17153 ac_status=$?
17154 grep -v '^ *+' conftest.er1 >conftest.err
17155 rm -f conftest.er1
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
17159 { ac_try='test -z "$ac_c_werror_flag"
17160 || test ! -s conftest.err'
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest.$ac_objext'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_cv_type_void_p=yes
17173else
17174 echo "$as_me: failed program was:" >&5
17175sed 's/^/| /' conftest.$ac_ext >&5
17176
17177ac_cv_type_void_p=no
17178fi
17179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17180fi
17181echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17182echo "${ECHO_T}$ac_cv_type_void_p" >&6
17183
17184echo "$as_me:$LINENO: checking size of void *" >&5
17185echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17186if test "${ac_cv_sizeof_void_p+set}" = set; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17188else
17189 if test "$ac_cv_type_void_p" = yes; then
17190 # The cast to unsigned long works around a bug in the HP C Compiler
17191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17193 # This bug is HP SR number 8606223364.
17194 if test "$cross_compiling" = yes; then
17195 # Depending upon the size, compute the lo and hi bounds.
17196cat >conftest.$ac_ext <<_ACEOF
17197/* confdefs.h. */
17198_ACEOF
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
17202$ac_includes_default
17203int
17204main ()
17205{
17206static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17207test_array [0] = 0
17208
17209 ;
17210 return 0;
17211}
17212_ACEOF
17213rm -f conftest.$ac_objext
17214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215 (eval $ac_compile) 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag"
17223 || test ! -s conftest.err'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; } &&
17229 { ac_try='test -s conftest.$ac_objext'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_lo=0 ac_mid=0
17236 while :; do
17237 cat >conftest.$ac_ext <<_ACEOF
17238/* confdefs.h. */
17239_ACEOF
17240cat confdefs.h >>conftest.$ac_ext
17241cat >>conftest.$ac_ext <<_ACEOF
17242/* end confdefs.h. */
17243$ac_includes_default
17244int
17245main ()
17246{
17247static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17248test_array [0] = 0
17249
17250 ;
17251 return 0;
17252}
17253_ACEOF
17254rm -f conftest.$ac_objext
17255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17256 (eval $ac_compile) 2>conftest.er1
17257 ac_status=$?
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } &&
17263 { ac_try='test -z "$ac_c_werror_flag"
17264 || test ! -s conftest.err'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; } &&
17270 { ac_try='test -s conftest.$ac_objext'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_hi=$ac_mid; break
17277else
17278 echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281ac_lo=`expr $ac_mid + 1`
17282 if test $ac_lo -le $ac_mid; then
17283 ac_lo= ac_hi=
17284 break
17285 fi
17286 ac_mid=`expr 2 '*' $ac_mid + 1`
17287fi
17288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17289 done
17290else
17291 echo "$as_me: failed program was:" >&5
17292sed 's/^/| /' conftest.$ac_ext >&5
17293
17294cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300$ac_includes_default
17301int
17302main ()
17303{
17304static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17305test_array [0] = 0
17306
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext
17312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_hi=-1 ac_mid=-1
17334 while :; do
17335 cat >conftest.$ac_ext <<_ACEOF
17336/* confdefs.h. */
17337_ACEOF
17338cat confdefs.h >>conftest.$ac_ext
17339cat >>conftest.$ac_ext <<_ACEOF
17340/* end confdefs.h. */
17341$ac_includes_default
17342int
17343main ()
17344{
17345static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17346test_array [0] = 0
17347
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext
17353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354 (eval $ac_compile) 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_lo=$ac_mid; break
17375else
17376 echo "$as_me: failed program was:" >&5
17377sed 's/^/| /' conftest.$ac_ext >&5
17378
17379ac_hi=`expr '(' $ac_mid ')' - 1`
17380 if test $ac_mid -le $ac_hi; then
17381 ac_lo= ac_hi=
17382 break
17383 fi
17384 ac_mid=`expr 2 '*' $ac_mid`
17385fi
17386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17387 done
17388else
17389 echo "$as_me: failed program was:" >&5
17390sed 's/^/| /' conftest.$ac_ext >&5
17391
17392ac_lo= ac_hi=
17393fi
17394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17395fi
17396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17397# Binary search between lo and hi bounds.
17398while test "x$ac_lo" != "x$ac_hi"; do
17399 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17400 cat >conftest.$ac_ext <<_ACEOF
17401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
17406$ac_includes_default
17407int
17408main ()
17409{
17410static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17411test_array [0] = 0
17412
17413 ;
17414 return 0;
17415}
17416_ACEOF
17417rm -f conftest.$ac_objext
17418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419 (eval $ac_compile) 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -z "$ac_c_werror_flag"
17427 || test ! -s conftest.err'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest.$ac_objext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_hi=$ac_mid
17440else
17441 echo "$as_me: failed program was:" >&5
17442sed 's/^/| /' conftest.$ac_ext >&5
17443
17444ac_lo=`expr '(' $ac_mid ')' + 1`
17445fi
17446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17447done
17448case $ac_lo in
17449?*) ac_cv_sizeof_void_p=$ac_lo;;
17450'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17451See \`config.log' for more details." >&5
17452echo "$as_me: error: cannot compute sizeof (void *), 77
17453See \`config.log' for more details." >&2;}
17454 { (exit 1); exit 1; }; } ;;
17455esac
17456else
17457 if test "$cross_compiling" = yes; then
17458 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17459See \`config.log' for more details." >&5
17460echo "$as_me: error: cannot run test program while cross compiling
17461See \`config.log' for more details." >&2;}
17462 { (exit 1); exit 1; }; }
17463else
17464 cat >conftest.$ac_ext <<_ACEOF
17465/* confdefs.h. */
17466_ACEOF
17467cat confdefs.h >>conftest.$ac_ext
17468cat >>conftest.$ac_ext <<_ACEOF
17469/* end confdefs.h. */
17470$ac_includes_default
17471long longval () { return (long) (sizeof (void *)); }
17472unsigned long ulongval () { return (long) (sizeof (void *)); }
17473#include <stdio.h>
17474#include <stdlib.h>
17475int
17476main ()
17477{
17478
17479 FILE *f = fopen ("conftest.val", "w");
17480 if (! f)
17481 exit (1);
17482 if (((long) (sizeof (void *))) < 0)
17483 {
17484 long i = longval ();
17485 if (i != ((long) (sizeof (void *))))
17486 exit (1);
17487 fprintf (f, "%ld\n", i);
17488 }
17489 else
17490 {
17491 unsigned long i = ulongval ();
17492 if (i != ((long) (sizeof (void *))))
17493 exit (1);
17494 fprintf (f, "%lu\n", i);
17495 }
17496 exit (ferror (f) || fclose (f) != 0);
17497
17498 ;
17499 return 0;
17500}
17501_ACEOF
17502rm -f conftest$ac_exeext
17503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17504 (eval $ac_link) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_cv_sizeof_void_p=`cat conftest.val`
17514else
17515 echo "$as_me: program exited with status $ac_status" >&5
17516echo "$as_me: failed program was:" >&5
17517sed 's/^/| /' conftest.$ac_ext >&5
17518
17519( exit $ac_status )
17520{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17521See \`config.log' for more details." >&5
17522echo "$as_me: error: cannot compute sizeof (void *), 77
17523See \`config.log' for more details." >&2;}
17524 { (exit 1); exit 1; }; }
17525fi
17526rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17527fi
17528fi
17529rm -f conftest.val
17530else
17531 ac_cv_sizeof_void_p=0
17532fi
17533fi
17534echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17535echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17536cat >>confdefs.h <<_ACEOF
17537#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17538_ACEOF
17539
17540 ;;
17541esac
17542
17543# Lacking an uint64_t? Test size of long
17544case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
17545 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
17546echo $ECHO_N "checking for long... $ECHO_C" >&6
17547if test "${ac_cv_type_long+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17549else
17550 cat >conftest.$ac_ext <<_ACEOF
17551/* confdefs.h. */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h. */
17556$ac_includes_default
17557int
17558main ()
17559{
17560if ((long *) 0)
17561 return 0;
17562if (sizeof (long))
17563 return 0;
17564 ;
17565 return 0;
17566}
17567_ACEOF
17568rm -f conftest.$ac_objext
17569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17570 (eval $ac_compile) 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag"
17578 || test ! -s conftest.err'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; } &&
17584 { ac_try='test -s conftest.$ac_objext'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; }; then
17590 ac_cv_type_long=yes
17591else
17592 echo "$as_me: failed program was:" >&5
17593sed 's/^/| /' conftest.$ac_ext >&5
17594
17595ac_cv_type_long=no
17596fi
17597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17598fi
17599echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17600echo "${ECHO_T}$ac_cv_type_long" >&6
17601
17602echo "$as_me:$LINENO: checking size of long" >&5
17603echo $ECHO_N "checking size of long... $ECHO_C" >&6
17604if test "${ac_cv_sizeof_long+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606else
17607 if test "$ac_cv_type_long" = yes; then
17608 # The cast to unsigned long works around a bug in the HP C Compiler
17609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17611 # This bug is HP SR number 8606223364.
17612 if test "$cross_compiling" = yes; then
17613 # Depending upon the size, compute the lo and hi bounds.
17614cat >conftest.$ac_ext <<_ACEOF
17615/* confdefs.h. */
17616_ACEOF
17617cat confdefs.h >>conftest.$ac_ext
17618cat >>conftest.$ac_ext <<_ACEOF
17619/* end confdefs.h. */
17620$ac_includes_default
17621int
17622main ()
17623{
17624static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17625test_array [0] = 0
17626
17627 ;
17628 return 0;
17629}
17630_ACEOF
17631rm -f conftest.$ac_objext
17632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17633 (eval $ac_compile) 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try='test -z "$ac_c_werror_flag"
17641 || test ! -s conftest.err'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest.$ac_objext'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_lo=0 ac_mid=0
17654 while :; do
17655 cat >conftest.$ac_ext <<_ACEOF
17656/* confdefs.h. */
17657_ACEOF
17658cat confdefs.h >>conftest.$ac_ext
17659cat >>conftest.$ac_ext <<_ACEOF
17660/* end confdefs.h. */
17661$ac_includes_default
17662int
17663main ()
17664{
17665static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17666test_array [0] = 0
17667
17668 ;
17669 return 0;
17670}
17671_ACEOF
17672rm -f conftest.$ac_objext
17673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17674 (eval $ac_compile) 2>conftest.er1
17675 ac_status=$?
17676 grep -v '^ *+' conftest.er1 >conftest.err
17677 rm -f conftest.er1
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -z "$ac_c_werror_flag"
17682 || test ! -s conftest.err'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; } &&
17688 { ac_try='test -s conftest.$ac_objext'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; }; then
17694 ac_hi=$ac_mid; break
17695else
17696 echo "$as_me: failed program was:" >&5
17697sed 's/^/| /' conftest.$ac_ext >&5
17698
17699ac_lo=`expr $ac_mid + 1`
17700 if test $ac_lo -le $ac_mid; then
17701 ac_lo= ac_hi=
17702 break
17703 fi
17704 ac_mid=`expr 2 '*' $ac_mid + 1`
17705fi
17706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17707 done
17708else
17709 echo "$as_me: failed program was:" >&5
17710sed 's/^/| /' conftest.$ac_ext >&5
17711
17712cat >conftest.$ac_ext <<_ACEOF
17713/* confdefs.h. */
17714_ACEOF
17715cat confdefs.h >>conftest.$ac_ext
17716cat >>conftest.$ac_ext <<_ACEOF
17717/* end confdefs.h. */
17718$ac_includes_default
17719int
17720main ()
17721{
17722static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17723test_array [0] = 0
17724
17725 ;
17726 return 0;
17727}
17728_ACEOF
17729rm -f conftest.$ac_objext
17730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17731 (eval $ac_compile) 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag"
17739 || test ! -s conftest.err'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; } &&
17745 { ac_try='test -s conftest.$ac_objext'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17751 ac_hi=-1 ac_mid=-1
17752 while :; do
17753 cat >conftest.$ac_ext <<_ACEOF
17754/* confdefs.h. */
17755_ACEOF
17756cat confdefs.h >>conftest.$ac_ext
17757cat >>conftest.$ac_ext <<_ACEOF
17758/* end confdefs.h. */
17759$ac_includes_default
17760int
17761main ()
17762{
17763static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17764test_array [0] = 0
17765
17766 ;
17767 return 0;
17768}
17769_ACEOF
17770rm -f conftest.$ac_objext
17771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17772 (eval $ac_compile) 2>conftest.er1
17773 ac_status=$?
17774 grep -v '^ *+' conftest.er1 >conftest.err
17775 rm -f conftest.er1
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag"
17780 || test ! -s conftest.err'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest.$ac_objext'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ac_lo=$ac_mid; break
17793else
17794 echo "$as_me: failed program was:" >&5
17795sed 's/^/| /' conftest.$ac_ext >&5
17796
17797ac_hi=`expr '(' $ac_mid ')' - 1`
17798 if test $ac_mid -le $ac_hi; then
17799 ac_lo= ac_hi=
17800 break
17801 fi
17802 ac_mid=`expr 2 '*' $ac_mid`
17803fi
17804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17805 done
17806else
17807 echo "$as_me: failed program was:" >&5
17808sed 's/^/| /' conftest.$ac_ext >&5
17809
17810ac_lo= ac_hi=
17811fi
17812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17813fi
17814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17815# Binary search between lo and hi bounds.
17816while test "x$ac_lo" != "x$ac_hi"; do
17817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17818 cat >conftest.$ac_ext <<_ACEOF
17819/* confdefs.h. */
17820_ACEOF
17821cat confdefs.h >>conftest.$ac_ext
17822cat >>conftest.$ac_ext <<_ACEOF
17823/* end confdefs.h. */
17824$ac_includes_default
17825int
17826main ()
17827{
17828static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17829test_array [0] = 0
17830
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext
17836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17837 (eval $ac_compile) 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -z "$ac_c_werror_flag"
17845 || test ! -s conftest.err'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest.$ac_objext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_hi=$ac_mid
17858else
17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862ac_lo=`expr '(' $ac_mid ')' + 1`
17863fi
17864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17865done
17866case $ac_lo in
17867?*) ac_cv_sizeof_long=$ac_lo;;
17868'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17869See \`config.log' for more details." >&5
17870echo "$as_me: error: cannot compute sizeof (long), 77
17871See \`config.log' for more details." >&2;}
17872 { (exit 1); exit 1; }; } ;;
17873esac
17874else
17875 if test "$cross_compiling" = yes; then
17876 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17877See \`config.log' for more details." >&5
17878echo "$as_me: error: cannot run test program while cross compiling
17879See \`config.log' for more details." >&2;}
17880 { (exit 1); exit 1; }; }
17881else
17882 cat >conftest.$ac_ext <<_ACEOF
17883/* confdefs.h. */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h. */
17888$ac_includes_default
17889long longval () { return (long) (sizeof (long)); }
17890unsigned long ulongval () { return (long) (sizeof (long)); }
17891#include <stdio.h>
17892#include <stdlib.h>
17893int
17894main ()
17895{
17896
17897 FILE *f = fopen ("conftest.val", "w");
17898 if (! f)
17899 exit (1);
17900 if (((long) (sizeof (long))) < 0)
17901 {
17902 long i = longval ();
17903 if (i != ((long) (sizeof (long))))
17904 exit (1);
17905 fprintf (f, "%ld\n", i);
17906 }
17907 else
17908 {
17909 unsigned long i = ulongval ();
17910 if (i != ((long) (sizeof (long))))
17911 exit (1);
17912 fprintf (f, "%lu\n", i);
17913 }
17914 exit (ferror (f) || fclose (f) != 0);
17915
17916 ;
17917 return 0;
17918}
17919_ACEOF
17920rm -f conftest$ac_exeext
17921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17922 (eval $ac_link) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 ac_cv_sizeof_long=`cat conftest.val`
17932else
17933 echo "$as_me: program exited with status $ac_status" >&5
17934echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937( exit $ac_status )
17938{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17939See \`config.log' for more details." >&5
17940echo "$as_me: error: cannot compute sizeof (long), 77
17941See \`config.log' for more details." >&2;}
17942 { (exit 1); exit 1; }; }
17943fi
17944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17945fi
17946fi
17947rm -f conftest.val
17948else
17949 ac_cv_sizeof_long=0
17950fi
17951fi
17952echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17953echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17954cat >>confdefs.h <<_ACEOF
17955#define SIZEOF_LONG $ac_cv_sizeof_long
17956_ACEOF
17957
17958 ;;
17959esac
17960
17961if test $acx_cv_header_stdint = stddef.h; then
17962 # Lacking a good header? Test size of everything and deduce all types.
17963 echo "$as_me:$LINENO: checking for int" >&5
17964echo $ECHO_N "checking for int... $ECHO_C" >&6
17965if test "${ac_cv_type_int+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17967else
17968 cat >conftest.$ac_ext <<_ACEOF
17969/* confdefs.h. */
17970_ACEOF
17971cat confdefs.h >>conftest.$ac_ext
17972cat >>conftest.$ac_ext <<_ACEOF
17973/* end confdefs.h. */
17974$ac_includes_default
17975int
17976main ()
17977{
17978if ((int *) 0)
17979 return 0;
17980if (sizeof (int))
17981 return 0;
17982 ;
17983 return 0;
17984}
17985_ACEOF
17986rm -f conftest.$ac_objext
17987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17988 (eval $ac_compile) 2>conftest.er1
17989 ac_status=$?
17990 grep -v '^ *+' conftest.er1 >conftest.err
17991 rm -f conftest.er1
17992 cat conftest.err >&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -z "$ac_c_werror_flag"
17996 || test ! -s conftest.err'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_cv_type_int=yes
18009else
18010 echo "$as_me: failed program was:" >&5
18011sed 's/^/| /' conftest.$ac_ext >&5
18012
18013ac_cv_type_int=no
18014fi
18015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18016fi
18017echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18018echo "${ECHO_T}$ac_cv_type_int" >&6
18019
18020echo "$as_me:$LINENO: checking size of int" >&5
18021echo $ECHO_N "checking size of int... $ECHO_C" >&6
18022if test "${ac_cv_sizeof_int+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18024else
18025 if test "$ac_cv_type_int" = yes; then
18026 # The cast to unsigned long works around a bug in the HP C Compiler
18027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18029 # This bug is HP SR number 8606223364.
18030 if test "$cross_compiling" = yes; then
18031 # Depending upon the size, compute the lo and hi bounds.
18032cat >conftest.$ac_ext <<_ACEOF
18033/* confdefs.h. */
18034_ACEOF
18035cat confdefs.h >>conftest.$ac_ext
18036cat >>conftest.$ac_ext <<_ACEOF
18037/* end confdefs.h. */
18038$ac_includes_default
18039int
18040main ()
18041{
18042static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18043test_array [0] = 0
18044
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049rm -f conftest.$ac_objext
18050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18051 (eval $ac_compile) 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -z "$ac_c_werror_flag"
18059 || test ! -s conftest.err'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; } &&
18065 { ac_try='test -s conftest.$ac_objext'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_lo=0 ac_mid=0
18072 while :; do
18073 cat >conftest.$ac_ext <<_ACEOF
18074/* confdefs.h. */
18075_ACEOF
18076cat confdefs.h >>conftest.$ac_ext
18077cat >>conftest.$ac_ext <<_ACEOF
18078/* end confdefs.h. */
18079$ac_includes_default
18080int
18081main ()
18082{
18083static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18084test_array [0] = 0
18085
18086 ;
18087 return 0;
18088}
18089_ACEOF
18090rm -f conftest.$ac_objext
18091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18092 (eval $ac_compile) 2>conftest.er1
18093 ac_status=$?
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_c_werror_flag"
18100 || test ! -s conftest.err'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest.$ac_objext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_hi=$ac_mid; break
18113else
18114 echo "$as_me: failed program was:" >&5
18115sed 's/^/| /' conftest.$ac_ext >&5
18116
18117ac_lo=`expr $ac_mid + 1`
18118 if test $ac_lo -le $ac_mid; then
18119 ac_lo= ac_hi=
18120 break
18121 fi
18122 ac_mid=`expr 2 '*' $ac_mid + 1`
18123fi
18124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18125 done
18126else
18127 echo "$as_me: failed program was:" >&5
18128sed 's/^/| /' conftest.$ac_ext >&5
18129
18130cat >conftest.$ac_ext <<_ACEOF
18131/* confdefs.h. */
18132_ACEOF
18133cat confdefs.h >>conftest.$ac_ext
18134cat >>conftest.$ac_ext <<_ACEOF
18135/* end confdefs.h. */
18136$ac_includes_default
18137int
18138main ()
18139{
18140static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18141test_array [0] = 0
18142
18143 ;
18144 return 0;
18145}
18146_ACEOF
18147rm -f conftest.$ac_objext
18148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag"
18157 || test ! -s conftest.err'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest.$ac_objext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_hi=-1 ac_mid=-1
18170 while :; do
18171 cat >conftest.$ac_ext <<_ACEOF
18172/* confdefs.h. */
18173_ACEOF
18174cat confdefs.h >>conftest.$ac_ext
18175cat >>conftest.$ac_ext <<_ACEOF
18176/* end confdefs.h. */
18177$ac_includes_default
18178int
18179main ()
18180{
18181static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18182test_array [0] = 0
18183
18184 ;
18185 return 0;
18186}
18187_ACEOF
18188rm -f conftest.$ac_objext
18189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18190 (eval $ac_compile) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest.$ac_objext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_lo=$ac_mid; break
18211else
18212 echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
18215ac_hi=`expr '(' $ac_mid ')' - 1`
18216 if test $ac_mid -le $ac_hi; then
18217 ac_lo= ac_hi=
18218 break
18219 fi
18220 ac_mid=`expr 2 '*' $ac_mid`
18221fi
18222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18223 done
18224else
18225 echo "$as_me: failed program was:" >&5
18226sed 's/^/| /' conftest.$ac_ext >&5
18227
18228ac_lo= ac_hi=
18229fi
18230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18231fi
18232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18233# Binary search between lo and hi bounds.
18234while test "x$ac_lo" != "x$ac_hi"; do
18235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18236 cat >conftest.$ac_ext <<_ACEOF
18237/* confdefs.h. */
18238_ACEOF
18239cat confdefs.h >>conftest.$ac_ext
18240cat >>conftest.$ac_ext <<_ACEOF
18241/* end confdefs.h. */
18242$ac_includes_default
18243int
18244main ()
18245{
18246static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18247test_array [0] = 0
18248
18249 ;
18250 return 0;
18251}
18252_ACEOF
18253rm -f conftest.$ac_objext
18254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18255 (eval $ac_compile) 2>conftest.er1
18256 ac_status=$?
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } &&
18262 { ac_try='test -z "$ac_c_werror_flag"
18263 || test ! -s conftest.err'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; } &&
18269 { ac_try='test -s conftest.$ac_objext'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
18275 ac_hi=$ac_mid
18276else
18277 echo "$as_me: failed program was:" >&5
18278sed 's/^/| /' conftest.$ac_ext >&5
18279
18280ac_lo=`expr '(' $ac_mid ')' + 1`
18281fi
18282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18283done
18284case $ac_lo in
18285?*) ac_cv_sizeof_int=$ac_lo;;
18286'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18287See \`config.log' for more details." >&5
18288echo "$as_me: error: cannot compute sizeof (int), 77
18289See \`config.log' for more details." >&2;}
18290 { (exit 1); exit 1; }; } ;;
18291esac
18292else
18293 if test "$cross_compiling" = yes; then
18294 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18295See \`config.log' for more details." >&5
18296echo "$as_me: error: cannot run test program while cross compiling
18297See \`config.log' for more details." >&2;}
18298 { (exit 1); exit 1; }; }
18299else
18300 cat >conftest.$ac_ext <<_ACEOF
18301/* confdefs.h. */
18302_ACEOF
18303cat confdefs.h >>conftest.$ac_ext
18304cat >>conftest.$ac_ext <<_ACEOF
18305/* end confdefs.h. */
18306$ac_includes_default
18307long longval () { return (long) (sizeof (int)); }
18308unsigned long ulongval () { return (long) (sizeof (int)); }
18309#include <stdio.h>
18310#include <stdlib.h>
18311int
18312main ()
18313{
18314
18315 FILE *f = fopen ("conftest.val", "w");
18316 if (! f)
18317 exit (1);
18318 if (((long) (sizeof (int))) < 0)
18319 {
18320 long i = longval ();
18321 if (i != ((long) (sizeof (int))))
18322 exit (1);
18323 fprintf (f, "%ld\n", i);
18324 }
18325 else
18326 {
18327 unsigned long i = ulongval ();
18328 if (i != ((long) (sizeof (int))))
18329 exit (1);
18330 fprintf (f, "%lu\n", i);
18331 }
18332 exit (ferror (f) || fclose (f) != 0);
18333
18334 ;
18335 return 0;
18336}
18337_ACEOF
18338rm -f conftest$ac_exeext
18339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340 (eval $ac_link) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_sizeof_int=`cat conftest.val`
18350else
18351 echo "$as_me: program exited with status $ac_status" >&5
18352echo "$as_me: failed program was:" >&5
18353sed 's/^/| /' conftest.$ac_ext >&5
18354
18355( exit $ac_status )
18356{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18357See \`config.log' for more details." >&5
18358echo "$as_me: error: cannot compute sizeof (int), 77
18359See \`config.log' for more details." >&2;}
18360 { (exit 1); exit 1; }; }
18361fi
18362rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18363fi
18364fi
18365rm -f conftest.val
18366else
18367 ac_cv_sizeof_int=0
18368fi
18369fi
18370echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18371echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18372cat >>confdefs.h <<_ACEOF
18373#define SIZEOF_INT $ac_cv_sizeof_int
18374_ACEOF
18375
18376
18377 echo "$as_me:$LINENO: checking for short" >&5
18378echo $ECHO_N "checking for short... $ECHO_C" >&6
18379if test "${ac_cv_type_short+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381else
18382 cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
18388$ac_includes_default
18389int
18390main ()
18391{
18392if ((short *) 0)
18393 return 0;
18394if (sizeof (short))
18395 return 0;
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext
18401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18402 (eval $ac_compile) 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag"
18410 || test ! -s conftest.err'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest.$ac_objext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_cv_type_short=yes
18423else
18424 echo "$as_me: failed program was:" >&5
18425sed 's/^/| /' conftest.$ac_ext >&5
18426
18427ac_cv_type_short=no
18428fi
18429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18430fi
18431echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18432echo "${ECHO_T}$ac_cv_type_short" >&6
18433
18434echo "$as_me:$LINENO: checking size of short" >&5
18435echo $ECHO_N "checking size of short... $ECHO_C" >&6
18436if test "${ac_cv_sizeof_short+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438else
18439 if test "$ac_cv_type_short" = yes; then
18440 # The cast to unsigned long works around a bug in the HP C Compiler
18441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18443 # This bug is HP SR number 8606223364.
18444 if test "$cross_compiling" = yes; then
18445 # Depending upon the size, compute the lo and hi bounds.
18446cat >conftest.$ac_ext <<_ACEOF
18447/* confdefs.h. */
18448_ACEOF
18449cat confdefs.h >>conftest.$ac_ext
18450cat >>conftest.$ac_ext <<_ACEOF
18451/* end confdefs.h. */
18452$ac_includes_default
18453int
18454main ()
18455{
18456static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18457test_array [0] = 0
18458
18459 ;
18460 return 0;
18461}
18462_ACEOF
18463rm -f conftest.$ac_objext
18464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18465 (eval $ac_compile) 2>conftest.er1
18466 ac_status=$?
18467 grep -v '^ *+' conftest.er1 >conftest.err
18468 rm -f conftest.er1
18469 cat conftest.err >&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } &&
18472 { ac_try='test -z "$ac_c_werror_flag"
18473 || test ! -s conftest.err'
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; } &&
18479 { ac_try='test -s conftest.$ac_objext'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
18485 ac_lo=0 ac_mid=0
18486 while :; do
18487 cat >conftest.$ac_ext <<_ACEOF
18488/* confdefs.h. */
18489_ACEOF
18490cat confdefs.h >>conftest.$ac_ext
18491cat >>conftest.$ac_ext <<_ACEOF
18492/* end confdefs.h. */
18493$ac_includes_default
18494int
18495main ()
18496{
18497static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18498test_array [0] = 0
18499
18500 ;
18501 return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext
18505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18506 (eval $ac_compile) 2>conftest.er1
18507 ac_status=$?
18508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -z "$ac_c_werror_flag"
18514 || test ! -s conftest.err'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest.$ac_objext'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18526 ac_hi=$ac_mid; break
18527else
18528 echo "$as_me: failed program was:" >&5
18529sed 's/^/| /' conftest.$ac_ext >&5
18530
18531ac_lo=`expr $ac_mid + 1`
18532 if test $ac_lo -le $ac_mid; then
18533 ac_lo= ac_hi=
18534 break
18535 fi
18536 ac_mid=`expr 2 '*' $ac_mid + 1`
18537fi
18538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18539 done
18540else
18541 echo "$as_me: failed program was:" >&5
18542sed 's/^/| /' conftest.$ac_ext >&5
18543
18544cat >conftest.$ac_ext <<_ACEOF
18545/* confdefs.h. */
18546_ACEOF
18547cat confdefs.h >>conftest.$ac_ext
18548cat >>conftest.$ac_ext <<_ACEOF
18549/* end confdefs.h. */
18550$ac_includes_default
18551int
18552main ()
18553{
18554static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18555test_array [0] = 0
18556
18557 ;
18558 return 0;
18559}
18560_ACEOF
18561rm -f conftest.$ac_objext
18562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18563 (eval $ac_compile) 2>conftest.er1
18564 ac_status=$?
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag"
18571 || test ! -s conftest.err'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest.$ac_objext'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_hi=-1 ac_mid=-1
18584 while :; do
18585 cat >conftest.$ac_ext <<_ACEOF
18586/* confdefs.h. */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h. */
18591$ac_includes_default
18592int
18593main ()
18594{
18595static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18596test_array [0] = 0
18597
18598 ;
18599 return 0;
18600}
18601_ACEOF
18602rm -f conftest.$ac_objext
18603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604 (eval $ac_compile) 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag"
18612 || test ! -s conftest.err'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_lo=$ac_mid; break
18625else
18626 echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629ac_hi=`expr '(' $ac_mid ')' - 1`
18630 if test $ac_mid -le $ac_hi; then
18631 ac_lo= ac_hi=
18632 break
18633 fi
18634 ac_mid=`expr 2 '*' $ac_mid`
18635fi
18636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18637 done
18638else
18639 echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642ac_lo= ac_hi=
18643fi
18644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18645fi
18646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18647# Binary search between lo and hi bounds.
18648while test "x$ac_lo" != "x$ac_hi"; do
18649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18650 cat >conftest.$ac_ext <<_ACEOF
18651/* confdefs.h. */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h. */
18656$ac_includes_default
18657int
18658main ()
18659{
18660static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18661test_array [0] = 0
18662
18663 ;
18664 return 0;
18665}
18666_ACEOF
18667rm -f conftest.$ac_objext
18668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18669 (eval $ac_compile) 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
18676 { ac_try='test -z "$ac_c_werror_flag"
18677 || test ! -s conftest.err'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest.$ac_objext'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 ac_hi=$ac_mid
18690else
18691 echo "$as_me: failed program was:" >&5
18692sed 's/^/| /' conftest.$ac_ext >&5
18693
18694ac_lo=`expr '(' $ac_mid ')' + 1`
18695fi
18696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18697done
18698case $ac_lo in
18699?*) ac_cv_sizeof_short=$ac_lo;;
18700'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18701See \`config.log' for more details." >&5
18702echo "$as_me: error: cannot compute sizeof (short), 77
18703See \`config.log' for more details." >&2;}
18704 { (exit 1); exit 1; }; } ;;
18705esac
18706else
18707 if test "$cross_compiling" = yes; then
18708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18709See \`config.log' for more details." >&5
18710echo "$as_me: error: cannot run test program while cross compiling
18711See \`config.log' for more details." >&2;}
18712 { (exit 1); exit 1; }; }
18713else
18714 cat >conftest.$ac_ext <<_ACEOF
18715/* confdefs.h. */
18716_ACEOF
18717cat confdefs.h >>conftest.$ac_ext
18718cat >>conftest.$ac_ext <<_ACEOF
18719/* end confdefs.h. */
18720$ac_includes_default
18721long longval () { return (long) (sizeof (short)); }
18722unsigned long ulongval () { return (long) (sizeof (short)); }
18723#include <stdio.h>
18724#include <stdlib.h>
18725int
18726main ()
18727{
18728
18729 FILE *f = fopen ("conftest.val", "w");
18730 if (! f)
18731 exit (1);
18732 if (((long) (sizeof (short))) < 0)
18733 {
18734 long i = longval ();
18735 if (i != ((long) (sizeof (short))))
18736 exit (1);
18737 fprintf (f, "%ld\n", i);
18738 }
18739 else
18740 {
18741 unsigned long i = ulongval ();
18742 if (i != ((long) (sizeof (short))))
18743 exit (1);
18744 fprintf (f, "%lu\n", i);
18745 }
18746 exit (ferror (f) || fclose (f) != 0);
18747
18748 ;
18749 return 0;
18750}
18751_ACEOF
18752rm -f conftest$ac_exeext
18753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754 (eval $ac_link) 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18763 ac_cv_sizeof_short=`cat conftest.val`
18764else
18765 echo "$as_me: program exited with status $ac_status" >&5
18766echo "$as_me: failed program was:" >&5
18767sed 's/^/| /' conftest.$ac_ext >&5
18768
18769( exit $ac_status )
18770{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18771See \`config.log' for more details." >&5
18772echo "$as_me: error: cannot compute sizeof (short), 77
18773See \`config.log' for more details." >&2;}
18774 { (exit 1); exit 1; }; }
18775fi
18776rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18777fi
18778fi
18779rm -f conftest.val
18780else
18781 ac_cv_sizeof_short=0
18782fi
18783fi
18784echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18785echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18786cat >>confdefs.h <<_ACEOF
18787#define SIZEOF_SHORT $ac_cv_sizeof_short
18788_ACEOF
18789
18790
18791 echo "$as_me:$LINENO: checking for char" >&5
18792echo $ECHO_N "checking for char... $ECHO_C" >&6
18793if test "${ac_cv_type_char+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795else
18796 cat >conftest.$ac_ext <<_ACEOF
18797/* confdefs.h. */
18798_ACEOF
18799cat confdefs.h >>conftest.$ac_ext
18800cat >>conftest.$ac_ext <<_ACEOF
18801/* end confdefs.h. */
18802$ac_includes_default
18803int
18804main ()
18805{
18806if ((char *) 0)
18807 return 0;
18808if (sizeof (char))
18809 return 0;
18810 ;
18811 return 0;
18812}
18813_ACEOF
18814rm -f conftest.$ac_objext
18815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18816 (eval $ac_compile) 2>conftest.er1
18817 ac_status=$?
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } &&
18823 { ac_try='test -z "$ac_c_werror_flag"
18824 || test ! -s conftest.err'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } &&
18830 { ac_try='test -s conftest.$ac_objext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_type_char=yes
18837else
18838 echo "$as_me: failed program was:" >&5
18839sed 's/^/| /' conftest.$ac_ext >&5
18840
18841ac_cv_type_char=no
18842fi
18843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18844fi
18845echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18846echo "${ECHO_T}$ac_cv_type_char" >&6
18847
18848echo "$as_me:$LINENO: checking size of char" >&5
18849echo $ECHO_N "checking size of char... $ECHO_C" >&6
18850if test "${ac_cv_sizeof_char+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
18853 if test "$ac_cv_type_char" = yes; then
18854 # The cast to unsigned long works around a bug in the HP C Compiler
18855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18857 # This bug is HP SR number 8606223364.
18858 if test "$cross_compiling" = yes; then
18859 # Depending upon the size, compute the lo and hi bounds.
18860cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866$ac_includes_default
18867int
18868main ()
18869{
18870static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18871test_array [0] = 0
18872
18873 ;
18874 return 0;
18875}
18876_ACEOF
18877rm -f conftest.$ac_objext
18878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest.$ac_objext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_lo=0 ac_mid=0
18900 while :; do
18901 cat >conftest.$ac_ext <<_ACEOF
18902/* confdefs.h. */
18903_ACEOF
18904cat confdefs.h >>conftest.$ac_ext
18905cat >>conftest.$ac_ext <<_ACEOF
18906/* end confdefs.h. */
18907$ac_includes_default
18908int
18909main ()
18910{
18911static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18912test_array [0] = 0
18913
18914 ;
18915 return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext
18919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18920 (eval $ac_compile) 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag"
18928 || test ! -s conftest.err'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; } &&
18934 { ac_try='test -s conftest.$ac_objext'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18940 ac_hi=$ac_mid; break
18941else
18942 echo "$as_me: failed program was:" >&5
18943sed 's/^/| /' conftest.$ac_ext >&5
18944
18945ac_lo=`expr $ac_mid + 1`
18946 if test $ac_lo -le $ac_mid; then
18947 ac_lo= ac_hi=
18948 break
18949 fi
18950 ac_mid=`expr 2 '*' $ac_mid + 1`
18951fi
18952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18953 done
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
18958cat >conftest.$ac_ext <<_ACEOF
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
18963/* end confdefs.h. */
18964$ac_includes_default
18965int
18966main ()
18967{
18968static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18969test_array [0] = 0
18970
18971 ;
18972 return 0;
18973}
18974_ACEOF
18975rm -f conftest.$ac_objext
18976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977 (eval $ac_compile) 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag"
18985 || test ! -s conftest.err'
18986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987 (eval $ac_try) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 ac_hi=-1 ac_mid=-1
18998 while :; do
18999 cat >conftest.$ac_ext <<_ACEOF
19000/* confdefs.h. */
19001_ACEOF
19002cat confdefs.h >>conftest.$ac_ext
19003cat >>conftest.$ac_ext <<_ACEOF
19004/* end confdefs.h. */
19005$ac_includes_default
19006int
19007main ()
19008{
19009static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
19010test_array [0] = 0
19011
19012 ;
19013 return 0;
19014}
19015_ACEOF
19016rm -f conftest.$ac_objext
19017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19018 (eval $ac_compile) 2>conftest.er1
19019 ac_status=$?
19020 grep -v '^ *+' conftest.er1 >conftest.err
19021 rm -f conftest.er1
19022 cat conftest.err >&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } &&
19025 { ac_try='test -z "$ac_c_werror_flag"
19026 || test ! -s conftest.err'
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19029 ac_status=$?
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; } &&
19032 { ac_try='test -s conftest.$ac_objext'
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_lo=$ac_mid; break
19039else
19040 echo "$as_me: failed program was:" >&5
19041sed 's/^/| /' conftest.$ac_ext >&5
19042
19043ac_hi=`expr '(' $ac_mid ')' - 1`
19044 if test $ac_mid -le $ac_hi; then
19045 ac_lo= ac_hi=
19046 break
19047 fi
19048 ac_mid=`expr 2 '*' $ac_mid`
19049fi
19050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19051 done
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056ac_lo= ac_hi=
19057fi
19058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19059fi
19060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19061# Binary search between lo and hi bounds.
19062while test "x$ac_lo" != "x$ac_hi"; do
19063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19064 cat >conftest.$ac_ext <<_ACEOF
19065/* confdefs.h. */
19066_ACEOF
19067cat confdefs.h >>conftest.$ac_ext
19068cat >>conftest.$ac_ext <<_ACEOF
19069/* end confdefs.h. */
19070$ac_includes_default
19071int
19072main ()
19073{
19074static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
19075test_array [0] = 0
19076
19077 ;
19078 return 0;
19079}
19080_ACEOF
19081rm -f conftest.$ac_objext
19082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19083 (eval $ac_compile) 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -z "$ac_c_werror_flag"
19091 || test ! -s conftest.err'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; } &&
19097 { ac_try='test -s conftest.$ac_objext'
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103 ac_hi=$ac_mid
19104else
19105 echo "$as_me: failed program was:" >&5
19106sed 's/^/| /' conftest.$ac_ext >&5
19107
19108ac_lo=`expr '(' $ac_mid ')' + 1`
19109fi
19110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19111done
19112case $ac_lo in
19113?*) ac_cv_sizeof_char=$ac_lo;;
19114'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
19115See \`config.log' for more details." >&5
19116echo "$as_me: error: cannot compute sizeof (char), 77
19117See \`config.log' for more details." >&2;}
19118 { (exit 1); exit 1; }; } ;;
19119esac
19120else
19121 if test "$cross_compiling" = yes; then
19122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19123See \`config.log' for more details." >&5
19124echo "$as_me: error: cannot run test program while cross compiling
19125See \`config.log' for more details." >&2;}
19126 { (exit 1); exit 1; }; }
19127else
19128 cat >conftest.$ac_ext <<_ACEOF
19129/* confdefs.h. */
19130_ACEOF
19131cat confdefs.h >>conftest.$ac_ext
19132cat >>conftest.$ac_ext <<_ACEOF
19133/* end confdefs.h. */
19134$ac_includes_default
19135long longval () { return (long) (sizeof (char)); }
19136unsigned long ulongval () { return (long) (sizeof (char)); }
19137#include <stdio.h>
19138#include <stdlib.h>
19139int
19140main ()
19141{
19142
19143 FILE *f = fopen ("conftest.val", "w");
19144 if (! f)
19145 exit (1);
19146 if (((long) (sizeof (char))) < 0)
19147 {
19148 long i = longval ();
19149 if (i != ((long) (sizeof (char))))
19150 exit (1);
19151 fprintf (f, "%ld\n", i);
19152 }
19153 else
19154 {
19155 unsigned long i = ulongval ();
19156 if (i != ((long) (sizeof (char))))
19157 exit (1);
19158 fprintf (f, "%lu\n", i);
19159 }
19160 exit (ferror (f) || fclose (f) != 0);
19161
19162 ;
19163 return 0;
19164}
19165_ACEOF
19166rm -f conftest$ac_exeext
19167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
19177 ac_cv_sizeof_char=`cat conftest.val`
19178else
19179 echo "$as_me: program exited with status $ac_status" >&5
19180echo "$as_me: failed program was:" >&5
19181sed 's/^/| /' conftest.$ac_ext >&5
19182
19183( exit $ac_status )
19184{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
19185See \`config.log' for more details." >&5
19186echo "$as_me: error: cannot compute sizeof (char), 77
19187See \`config.log' for more details." >&2;}
19188 { (exit 1); exit 1; }; }
19189fi
19190rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19191fi
19192fi
19193rm -f conftest.val
19194else
19195 ac_cv_sizeof_char=0
19196fi
19197fi
19198echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
19199echo "${ECHO_T}$ac_cv_sizeof_char" >&6
19200cat >>confdefs.h <<_ACEOF
19201#define SIZEOF_CHAR $ac_cv_sizeof_char
19202_ACEOF
19203
19204
19205
19206 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
19207echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
19208 case "$ac_cv_sizeof_char" in
19209 1) acx_cv_type_int8_t=char ;;
19210 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
19211echo "$as_me: error: no 8-bit type" >&2;}
19212 { (exit please report a bug); exit please report a bug; }; }
19213 esac
19214 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
19215echo "${ECHO_T}$acx_cv_type_int8_t" >&6
19216
19217 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
19218echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
19219 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
19220 2:*) acx_cv_type_int16_t=int ;;
19221 *:2) acx_cv_type_int16_t=short ;;
19222 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
19223echo "$as_me: error: no 16-bit type" >&2;}
19224 { (exit please report a bug); exit please report a bug; }; }
19225 esac
19226 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
19227echo "${ECHO_T}$acx_cv_type_int16_t" >&6
19228
19229 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
19230echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
19231 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
19232 4:*) acx_cv_type_int32_t=int ;;
19233 *:4) acx_cv_type_int32_t=long ;;
19234 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
19235echo "$as_me: error: no 32-bit type" >&2;}
19236 { (exit please report a bug); exit please report a bug; }; }
19237 esac
19238 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
19239echo "${ECHO_T}$acx_cv_type_int32_t" >&6
19240fi
19241
19242# These tests are here to make the output prettier
19243
19244if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
19245 case "$ac_cv_sizeof_long" in
19246 8) acx_cv_type_int64_t=long ;;
19247 esac
19248 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
19249echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
19250 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
19251echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
19252fi
19253
19254# Now we can use the above types
19255
19256if test "$ac_cv_type_uintptr_t" != yes; then
19257 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
19258echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
19259 case $ac_cv_sizeof_void_p in
19260 2) acx_cv_type_intptr_t=int16_t ;;
19261 4) acx_cv_type_intptr_t=int32_t ;;
19262 8) acx_cv_type_intptr_t=int64_t ;;
19263 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
19264echo "$as_me: error: no equivalent for intptr_t" >&2;}
19265 { (exit please report a bug); exit please report a bug; }; }
19266 esac
19267 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
19268echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
19269fi
19270
19271# ----------------- done all checks, emit header -------------
19272 ac_config_commands="$ac_config_commands gdb_stdint.h"
19273
19274
19275
19276
19277# ------------------------- #
19278# Checks for declarations. #
19279# ------------------------- #
19280
19281echo "$as_me:$LINENO: checking whether free is declared" >&5
19282echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
19283if test "${ac_cv_have_decl_free+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19285else
19286 cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292$ac_includes_default
19293int
19294main ()
19295{
19296#ifndef free
19297 char *p = (char *) free;
19298#endif
19299
19300 ;
19301 return 0;
19302}
19303_ACEOF
19304rm -f conftest.$ac_objext
19305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19306 (eval $ac_compile) 2>conftest.er1
19307 ac_status=$?
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -f conftest.er1
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try='test -z "$ac_c_werror_flag"
19314 || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest.$ac_objext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 ac_cv_have_decl_free=yes
19327else
19328 echo "$as_me: failed program was:" >&5
19329sed 's/^/| /' conftest.$ac_ext >&5
19330
19331ac_cv_have_decl_free=no
19332fi
19333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19334fi
19335echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
19336echo "${ECHO_T}$ac_cv_have_decl_free" >&6
19337if test $ac_cv_have_decl_free = yes; then
19338
19339cat >>confdefs.h <<_ACEOF
19340#define HAVE_DECL_FREE 1
19341_ACEOF
19342
19343
19344else
19345 cat >>confdefs.h <<_ACEOF
19346#define HAVE_DECL_FREE 0
19347_ACEOF
19348
19349
19350fi
19351echo "$as_me:$LINENO: checking whether malloc is declared" >&5
19352echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
19353if test "${ac_cv_have_decl_malloc+set}" = set; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19355else
19356 cat >conftest.$ac_ext <<_ACEOF
19357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
19362$ac_includes_default
19363int
19364main ()
19365{
19366#ifndef malloc
19367 char *p = (char *) malloc;
19368#endif
19369
19370 ;
19371 return 0;
19372}
19373_ACEOF
19374rm -f conftest.$ac_objext
19375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag"
19384 || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_have_decl_malloc=yes
19397else
19398 echo "$as_me: failed program was:" >&5
19399sed 's/^/| /' conftest.$ac_ext >&5
19400
19401ac_cv_have_decl_malloc=no
19402fi
19403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404fi
19405echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
19406echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
19407if test $ac_cv_have_decl_malloc = yes; then
19408
19409cat >>confdefs.h <<_ACEOF
19410#define HAVE_DECL_MALLOC 1
19411_ACEOF
19412
19413
19414else
19415 cat >>confdefs.h <<_ACEOF
19416#define HAVE_DECL_MALLOC 0
19417_ACEOF
19418
19419
19420fi
19421echo "$as_me:$LINENO: checking whether realloc is declared" >&5
19422echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
19423if test "${ac_cv_have_decl_realloc+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19425else
19426 cat >conftest.$ac_ext <<_ACEOF
19427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h. */
19432$ac_includes_default
19433int
19434main ()
19435{
19436#ifndef realloc
19437 char *p = (char *) realloc;
19438#endif
19439
19440 ;
19441 return 0;
19442}
19443_ACEOF
19444rm -f conftest.$ac_objext
19445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446 (eval $ac_compile) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest.$ac_objext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_have_decl_realloc=yes
19467else
19468 echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
19471ac_cv_have_decl_realloc=no
19472fi
19473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19474fi
19475echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
19476echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
19477if test $ac_cv_have_decl_realloc = yes; then
19478
19479cat >>confdefs.h <<_ACEOF
19480#define HAVE_DECL_REALLOC 1
19481_ACEOF
19482
19483
19484else
19485 cat >>confdefs.h <<_ACEOF
19486#define HAVE_DECL_REALLOC 0
19487_ACEOF
19488
19489
19490fi
19491
19492
19493echo "$as_me:$LINENO: checking whether strerror is declared" >&5
19494echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
19495if test "${ac_cv_have_decl_strerror+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19497else
19498 cat >conftest.$ac_ext <<_ACEOF
19499/* confdefs.h. */
19500_ACEOF
19501cat confdefs.h >>conftest.$ac_ext
19502cat >>conftest.$ac_ext <<_ACEOF
19503/* end confdefs.h. */
19504$ac_includes_default
19505int
19506main ()
19507{
19508#ifndef strerror
19509 char *p = (char *) strerror;
19510#endif
19511
19512 ;
19513 return 0;
19514}
19515_ACEOF
19516rm -f conftest.$ac_objext
19517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>conftest.er1
19519 ac_status=$?
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag"
19526 || test ! -s conftest.err'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest.$ac_objext'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_have_decl_strerror=yes
19539else
19540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543ac_cv_have_decl_strerror=no
19544fi
19545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19546fi
19547echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
19548echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
19549if test $ac_cv_have_decl_strerror = yes; then
19550
19551cat >>confdefs.h <<_ACEOF
19552#define HAVE_DECL_STRERROR 1
19553_ACEOF
19554
19555
19556else
19557 cat >>confdefs.h <<_ACEOF
19558#define HAVE_DECL_STRERROR 0
19559_ACEOF
19560
19561
19562fi
19563echo "$as_me:$LINENO: checking whether strstr is declared" >&5
19564echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
19565if test "${ac_cv_have_decl_strstr+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567else
19568 cat >conftest.$ac_ext <<_ACEOF
19569/* confdefs.h. */
19570_ACEOF
19571cat confdefs.h >>conftest.$ac_ext
19572cat >>conftest.$ac_ext <<_ACEOF
19573/* end confdefs.h. */
19574$ac_includes_default
19575int
19576main ()
19577{
19578#ifndef strstr
19579 char *p = (char *) strstr;
19580#endif
19581
19582 ;
19583 return 0;
19584}
19585_ACEOF
19586rm -f conftest.$ac_objext
19587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19588 (eval $ac_compile) 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
19595 { ac_try='test -z "$ac_c_werror_flag"
19596 || test ! -s conftest.err'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_cv_have_decl_strstr=yes
19609else
19610 echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
19613ac_cv_have_decl_strstr=no
19614fi
19615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19616fi
19617echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
19618echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
19619if test $ac_cv_have_decl_strstr = yes; then
19620
19621cat >>confdefs.h <<_ACEOF
19622#define HAVE_DECL_STRSTR 1
19623_ACEOF
19624
19625
19626else
19627 cat >>confdefs.h <<_ACEOF
19628#define HAVE_DECL_STRSTR 0
19629_ACEOF
19630
19631
19632fi
19633
19634
19635echo "$as_me:$LINENO: checking whether getopt is declared" >&5
19636echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
19637if test "${ac_cv_have_decl_getopt+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639else
19640 cat >conftest.$ac_ext <<_ACEOF
19641/* confdefs.h. */
19642_ACEOF
19643cat confdefs.h >>conftest.$ac_ext
19644cat >>conftest.$ac_ext <<_ACEOF
19645/* end confdefs.h. */
19646$ac_includes_default
19647int
19648main ()
19649{
19650#ifndef getopt
19651 char *p = (char *) getopt;
19652#endif
19653
19654 ;
19655 return 0;
19656}
19657_ACEOF
19658rm -f conftest.$ac_objext
19659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19660 (eval $ac_compile) 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest.$ac_objext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_cv_have_decl_getopt=yes
19681else
19682 echo "$as_me: failed program was:" >&5
19683sed 's/^/| /' conftest.$ac_ext >&5
19684
19685ac_cv_have_decl_getopt=no
19686fi
19687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19688fi
19689echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
19690echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
19691if test $ac_cv_have_decl_getopt = yes; then
19692
19693cat >>confdefs.h <<_ACEOF
19694#define HAVE_DECL_GETOPT 1
19695_ACEOF
19696
19697
19698else
19699 cat >>confdefs.h <<_ACEOF
19700#define HAVE_DECL_GETOPT 0
19701_ACEOF
19702
19703
19704fi
19705echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19706echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
19707if test "${ac_cv_have_decl_snprintf+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19709else
19710 cat >conftest.$ac_ext <<_ACEOF
19711/* confdefs.h. */
19712_ACEOF
19713cat confdefs.h >>conftest.$ac_ext
19714cat >>conftest.$ac_ext <<_ACEOF
19715/* end confdefs.h. */
19716$ac_includes_default
19717int
19718main ()
19719{
19720#ifndef snprintf
19721 char *p = (char *) snprintf;
19722#endif
19723
19724 ;
19725 return 0;
19726}
19727_ACEOF
19728rm -f conftest.$ac_objext
19729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>conftest.er1
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } &&
19737 { ac_try='test -z "$ac_c_werror_flag"
19738 || test ! -s conftest.err'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } &&
19744 { ac_try='test -s conftest.$ac_objext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_cv_have_decl_snprintf=yes
19751else
19752 echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755ac_cv_have_decl_snprintf=no
19756fi
19757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19758fi
19759echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19760echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
19761if test $ac_cv_have_decl_snprintf = yes; then
19762
19763cat >>confdefs.h <<_ACEOF
19764#define HAVE_DECL_SNPRINTF 1
19765_ACEOF
19766
19767
19768else
19769 cat >>confdefs.h <<_ACEOF
19770#define HAVE_DECL_SNPRINTF 0
19771_ACEOF
19772
19773
19774fi
19775echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19776echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
19777if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779else
19780 cat >conftest.$ac_ext <<_ACEOF
19781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
19785/* end confdefs.h. */
19786$ac_includes_default
19787int
19788main ()
19789{
19790#ifndef vsnprintf
19791 char *p = (char *) vsnprintf;
19792#endif
19793
19794 ;
19795 return 0;
19796}
19797_ACEOF
19798rm -f conftest.$ac_objext
19799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19800 (eval $ac_compile) 2>conftest.er1
19801 ac_status=$?
19802 grep -v '^ *+' conftest.er1 >conftest.err
19803 rm -f conftest.er1
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_c_werror_flag"
19808 || test ! -s conftest.err'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_cv_have_decl_vsnprintf=yes
19821else
19822 echo "$as_me: failed program was:" >&5
19823sed 's/^/| /' conftest.$ac_ext >&5
19824
19825ac_cv_have_decl_vsnprintf=no
19826fi
19827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19828fi
19829echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19830echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
19831if test $ac_cv_have_decl_vsnprintf = yes; then
19832
19833cat >>confdefs.h <<_ACEOF
19834#define HAVE_DECL_VSNPRINTF 1
19835_ACEOF
19836
19837
19838else
19839 cat >>confdefs.h <<_ACEOF
19840#define HAVE_DECL_VSNPRINTF 0
19841_ACEOF
19842
19843
19844fi
19845
19846
19847
19848# ----------------------- #
19849# Checks for structures. #
19850# ----------------------- #
19851
19852echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19853echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19854if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856else
19857 cat >conftest.$ac_ext <<_ACEOF
19858/* confdefs.h. */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h. */
19863$ac_includes_default
19864int
19865main ()
19866{
19867static struct stat ac_aggr;
19868if (ac_aggr.st_blocks)
19869return 0;
19870 ;
19871 return 0;
19872}
19873_ACEOF
19874rm -f conftest.$ac_objext
19875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876 (eval $ac_compile) 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_c_werror_flag"
19884 || test ! -s conftest.err'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; } &&
19890 { ac_try='test -s conftest.$ac_objext'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 ac_cv_member_struct_stat_st_blocks=yes
19897else
19898 echo "$as_me: failed program was:" >&5
19899sed 's/^/| /' conftest.$ac_ext >&5
19900
19901cat >conftest.$ac_ext <<_ACEOF
19902/* confdefs.h. */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h. */
19907$ac_includes_default
19908int
19909main ()
19910{
19911static struct stat ac_aggr;
19912if (sizeof ac_aggr.st_blocks)
19913return 0;
19914 ;
19915 return 0;
19916}
19917_ACEOF
19918rm -f conftest.$ac_objext
19919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19920 (eval $ac_compile) 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
19927 { ac_try='test -z "$ac_c_werror_flag"
19928 || test ! -s conftest.err'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; } &&
19934 { ac_try='test -s conftest.$ac_objext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_member_struct_stat_st_blocks=yes
19941else
19942 echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
19945ac_cv_member_struct_stat_st_blocks=no
19946fi
19947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19948fi
19949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19950fi
19951echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19952echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19953if test $ac_cv_member_struct_stat_st_blocks = yes; then
19954
19955cat >>confdefs.h <<_ACEOF
19956#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19957_ACEOF
19958
19959
19960fi
19961
19962echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19963echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
19964if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966else
19967 cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
19973$ac_includes_default
19974int
19975main ()
19976{
19977static struct stat ac_aggr;
19978if (ac_aggr.st_blksize)
19979return 0;
19980 ;
19981 return 0;
19982}
19983_ACEOF
19984rm -f conftest.$ac_objext
19985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19986 (eval $ac_compile) 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_cv_member_struct_stat_st_blksize=yes
20007else
20008 echo "$as_me: failed program was:" >&5
20009sed 's/^/| /' conftest.$ac_ext >&5
20010
20011cat >conftest.$ac_ext <<_ACEOF
20012/* confdefs.h. */
20013_ACEOF
20014cat confdefs.h >>conftest.$ac_ext
20015cat >>conftest.$ac_ext <<_ACEOF
20016/* end confdefs.h. */
20017$ac_includes_default
20018int
20019main ()
20020{
20021static struct stat ac_aggr;
20022if (sizeof ac_aggr.st_blksize)
20023return 0;
20024 ;
20025 return 0;
20026}
20027_ACEOF
20028rm -f conftest.$ac_objext
20029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20030 (eval $ac_compile) 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_c_werror_flag"
20038 || test ! -s conftest.err'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; } &&
20044 { ac_try='test -s conftest.$ac_objext'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_cv_member_struct_stat_st_blksize=yes
20051else
20052 echo "$as_me: failed program was:" >&5
20053sed 's/^/| /' conftest.$ac_ext >&5
20054
20055ac_cv_member_struct_stat_st_blksize=no
20056fi
20057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20058fi
20059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20060fi
20061echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20062echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20063if test $ac_cv_member_struct_stat_st_blksize = yes; then
20064
20065cat >>confdefs.h <<_ACEOF
20066#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20067_ACEOF
20068
20069
20070fi
20071
20072
20073# ------------------ #
20074# Checks for types. #
20075# ------------------ #
20076
20077echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20078echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20079if test "${ac_cv_type_signal+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081else
20082 cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
20088#include <sys/types.h>
20089#include <signal.h>
20090#ifdef signal
20091# undef signal
20092#endif
20093#ifdef __cplusplus
20094extern "C" void (*signal (int, void (*)(int)))(int);
20095#else
20096void (*signal ()) ();
20097#endif
20098
20099int
20100main ()
20101{
20102int i;
20103 ;
20104 return 0;
20105}
20106_ACEOF
20107rm -f conftest.$ac_objext
20108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
20116 { ac_try='test -z "$ac_c_werror_flag"
20117 || test ! -s conftest.err'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; } &&
20123 { ac_try='test -s conftest.$ac_objext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 ac_cv_type_signal=void
20130else
20131 echo "$as_me: failed program was:" >&5
20132sed 's/^/| /' conftest.$ac_ext >&5
20133
20134ac_cv_type_signal=int
20135fi
20136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20137fi
20138echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20139echo "${ECHO_T}$ac_cv_type_signal" >&6
20140
20141cat >>confdefs.h <<_ACEOF
20142#define RETSIGTYPE $ac_cv_type_signal
20143_ACEOF
20144
20145
20146echo "$as_me:$LINENO: checking for socklen_t" >&5
20147echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20148if test "${ac_cv_type_socklen_t+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150else
20151 cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h. */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h. */
20157#include <sys/types.h>
20158#include <sys/socket.h>
20159
20160
20161int
20162main ()
20163{
20164if ((socklen_t *) 0)
20165 return 0;
20166if (sizeof (socklen_t))
20167 return 0;
20168 ;
20169 return 0;
20170}
20171_ACEOF
20172rm -f conftest.$ac_objext
20173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174 (eval $ac_compile) 2>conftest.er1
20175 ac_status=$?
20176 grep -v '^ *+' conftest.er1 >conftest.err
20177 rm -f conftest.er1
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_c_werror_flag"
20182 || test ! -s conftest.err'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } &&
20188 { ac_try='test -s conftest.$ac_objext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 ac_cv_type_socklen_t=yes
20195else
20196 echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199ac_cv_type_socklen_t=no
20200fi
20201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20202fi
20203echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20204echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
20205if test $ac_cv_type_socklen_t = yes; then
20206
20207cat >>confdefs.h <<_ACEOF
20208#define HAVE_SOCKLEN_T 1
20209_ACEOF
20210
20211
20212fi
20213
20214echo "$as_me:$LINENO: checking for uintptr_t" >&5
20215echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
20216if test "${ac_cv_type_uintptr_t+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218else
20219 cat >conftest.$ac_ext <<_ACEOF
20220/* confdefs.h. */
20221_ACEOF
20222cat confdefs.h >>conftest.$ac_ext
20223cat >>conftest.$ac_ext <<_ACEOF
20224/* end confdefs.h. */
20225#include <stdint.h>
20226
20227int
20228main ()
20229{
20230if ((uintptr_t *) 0)
20231 return 0;
20232if (sizeof (uintptr_t))
20233 return 0;
20234 ;
20235 return 0;
20236}
20237_ACEOF
20238rm -f conftest.$ac_objext
20239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20240 (eval $ac_compile) 2>conftest.er1
20241 ac_status=$?
20242 grep -v '^ *+' conftest.er1 >conftest.err
20243 rm -f conftest.er1
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } &&
20247 { ac_try='test -z "$ac_c_werror_flag"
20248 || test ! -s conftest.err'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_type_uintptr_t=yes
20261else
20262 echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
20265ac_cv_type_uintptr_t=no
20266fi
20267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20268fi
20269echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
20270echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
20271if test $ac_cv_type_uintptr_t = yes; then
20272
20273cat >>confdefs.h <<_ACEOF
20274#define HAVE_UINTPTR_T 1
20275_ACEOF
20276
20277
20278fi
20279
20280
20281# ------------------------------------- #
20282# Checks for compiler characteristics. #
20283# ------------------------------------- #
20284
20285echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20286echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20287if test "${ac_cv_c_const+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289else
20290 cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h. */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
20295/* end confdefs.h. */
20296
20297int
20298main ()
20299{
20300/* FIXME: Include the comments suggested by Paul. */
20301#ifndef __cplusplus
20302 /* Ultrix mips cc rejects this. */
20303 typedef int charset[2];
20304 const charset x;
20305 /* SunOS 4.1.1 cc rejects this. */
20306 char const *const *ccp;
20307 char **p;
20308 /* NEC SVR4.0.2 mips cc rejects this. */
20309 struct point {int x, y;};
20310 static struct point const zero = {0,0};
20311 /* AIX XL C 1.02.0.0 rejects this.
20312 It does not let you subtract one const X* pointer from another in
20313 an arm of an if-expression whose if-part is not a constant
20314 expression */
20315 const char *g = "string";
20316 ccp = &g + (g ? g-g : 0);
20317 /* HPUX 7.0 cc rejects these. */
20318 ++ccp;
20319 p = (char**) ccp;
20320 ccp = (char const *const *) p;
20321 { /* SCO 3.2v4 cc rejects this. */
20322 char *t;
20323 char const *s = 0 ? (char *) 0 : (char const *) 0;
20324
20325 *t++ = 0;
20326 }
20327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20328 int x[] = {25, 17};
20329 const int *foo = &x[0];
20330 ++foo;
20331 }
20332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20333 typedef const int *iptr;
20334 iptr p = 0;
20335 ++p;
20336 }
20337 { /* AIX XL C 1.02.0.0 rejects this saying
20338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20339 struct s { int j; const int *ap[3]; };
20340 struct s *b; b->j = 5;
20341 }
20342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20343 const int foo = 10;
20344 }
20345#endif
20346
20347 ;
20348 return 0;
20349}
20350_ACEOF
20351rm -f conftest.$ac_objext
20352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20353 (eval $ac_compile) 2>conftest.er1
20354 ac_status=$?
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -z "$ac_c_werror_flag"
20361 || test ! -s conftest.err'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; } &&
20367 { ac_try='test -s conftest.$ac_objext'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_cv_c_const=yes
20374else
20375 echo "$as_me: failed program was:" >&5
20376sed 's/^/| /' conftest.$ac_ext >&5
20377
20378ac_cv_c_const=no
20379fi
20380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20381fi
20382echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20383echo "${ECHO_T}$ac_cv_c_const" >&6
20384if test $ac_cv_c_const = no; then
20385
20386cat >>confdefs.h <<\_ACEOF
20387#define const
20388_ACEOF
20389
20390fi
20391
20392echo "$as_me:$LINENO: checking for inline" >&5
20393echo $ECHO_N "checking for inline... $ECHO_C" >&6
20394if test "${ac_cv_c_inline+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396else
20397 ac_cv_c_inline=no
20398for ac_kw in inline __inline__ __inline; do
20399 cat >conftest.$ac_ext <<_ACEOF
20400/* confdefs.h. */
20401_ACEOF
20402cat confdefs.h >>conftest.$ac_ext
20403cat >>conftest.$ac_ext <<_ACEOF
20404/* end confdefs.h. */
20405#ifndef __cplusplus
20406typedef int foo_t;
20407static $ac_kw foo_t static_foo () {return 0; }
20408$ac_kw foo_t foo () {return 0; }
20409#endif
20410
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414 (eval $ac_compile) 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
20421 { ac_try='test -z "$ac_c_werror_flag"
20422 || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest.$ac_objext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_cv_c_inline=$ac_kw; break
20435else
20436 echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
20438
20439fi
20440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20441done
20442
20443fi
20444echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20445echo "${ECHO_T}$ac_cv_c_inline" >&6
20446
20447
20448case $ac_cv_c_inline in
20449 inline | yes) ;;
20450 *)
20451 case $ac_cv_c_inline in
20452 no) ac_val=;;
20453 *) ac_val=$ac_cv_c_inline;;
20454 esac
20455 cat >>confdefs.h <<_ACEOF
20456#ifndef __cplusplus
20457#define inline $ac_val
20458#endif
20459_ACEOF
20460 ;;
20461esac
20462
20463echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20464echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20465if test "${ac_cv_c_bigendian+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467else
20468 # See if sys/param.h defines the BYTE_ORDER macro.
20469cat >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 <sys/types.h>
20476#include <sys/param.h>
20477
20478int
20479main ()
20480{
20481#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20482 bogus endian macros
20483#endif
20484
20485 ;
20486 return 0;
20487}
20488_ACEOF
20489rm -f conftest.$ac_objext
20490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20491 (eval $ac_compile) 2>conftest.er1
20492 ac_status=$?
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_c_werror_flag"
20499 || test ! -s conftest.err'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; } &&
20505 { ac_try='test -s conftest.$ac_objext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 # It does; now see whether it defined to BIG_ENDIAN or not.
20512cat >conftest.$ac_ext <<_ACEOF
20513/* confdefs.h. */
20514_ACEOF
20515cat confdefs.h >>conftest.$ac_ext
20516cat >>conftest.$ac_ext <<_ACEOF
20517/* end confdefs.h. */
20518#include <sys/types.h>
20519#include <sys/param.h>
20520
20521int
20522main ()
20523{
20524#if BYTE_ORDER != BIG_ENDIAN
20525 not big endian
20526#endif
20527
20528 ;
20529 return 0;
20530}
20531_ACEOF
20532rm -f conftest.$ac_objext
20533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534 (eval $ac_compile) 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -z "$ac_c_werror_flag"
20542 || test ! -s conftest.err'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_c_bigendian=yes
20555else
20556 echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
20559ac_cv_c_bigendian=no
20560fi
20561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20562else
20563 echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566# It does not; compile a test program.
20567if test "$cross_compiling" = yes; then
20568 # try to guess the endianness by grepping values into an object file
20569 ac_cv_c_bigendian=unknown
20570 cat >conftest.$ac_ext <<_ACEOF
20571/* confdefs.h. */
20572_ACEOF
20573cat confdefs.h >>conftest.$ac_ext
20574cat >>conftest.$ac_ext <<_ACEOF
20575/* end confdefs.h. */
20576short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20577short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20578void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20579short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20580short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20581void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20582int
20583main ()
20584{
20585 _ascii (); _ebcdic ();
20586 ;
20587 return 0;
20588}
20589_ACEOF
20590rm -f conftest.$ac_objext
20591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20592 (eval $ac_compile) 2>conftest.er1
20593 ac_status=$?
20594 grep -v '^ *+' conftest.er1 >conftest.err
20595 rm -f conftest.er1
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } &&
20599 { ac_try='test -z "$ac_c_werror_flag"
20600 || test ! -s conftest.err'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; } &&
20606 { ac_try='test -s conftest.$ac_objext'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
20612 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20613 ac_cv_c_bigendian=yes
20614fi
20615if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20616 if test "$ac_cv_c_bigendian" = unknown; then
20617 ac_cv_c_bigendian=no
20618 else
20619 # finding both strings is unlikely to happen, but who knows?
20620 ac_cv_c_bigendian=unknown
20621 fi
20622fi
20623else
20624 echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627fi
20628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20629else
20630 cat >conftest.$ac_ext <<_ACEOF
20631/* confdefs.h. */
20632_ACEOF
20633cat confdefs.h >>conftest.$ac_ext
20634cat >>conftest.$ac_ext <<_ACEOF
20635/* end confdefs.h. */
20636int
20637main ()
20638{
20639 /* Are we little or big endian? From Harbison&Steele. */
20640 union
20641 {
20642 long l;
20643 char c[sizeof (long)];
20644 } u;
20645 u.l = 1;
20646 exit (u.c[sizeof (long) - 1] == 1);
20647}
20648_ACEOF
20649rm -f conftest$ac_exeext
20650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20651 (eval $ac_link) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 ac_cv_c_bigendian=no
20661else
20662 echo "$as_me: program exited with status $ac_status" >&5
20663echo "$as_me: failed program was:" >&5
20664sed 's/^/| /' conftest.$ac_ext >&5
20665
20666( exit $ac_status )
20667ac_cv_c_bigendian=yes
20668fi
20669rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20670fi
20671fi
20672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20673fi
20674echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20675echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20676case $ac_cv_c_bigendian in
20677 yes)
20678
20679cat >>confdefs.h <<\_ACEOF
20680#define WORDS_BIGENDIAN 1
20681_ACEOF
20682 ;;
20683 no)
20684 ;;
20685 *)
20686 { { echo "$as_me:$LINENO: error: unknown endianness
20687presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20688echo "$as_me: error: unknown endianness
20689presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20690 { (exit 1); exit 1; }; } ;;
20691esac
20692
20693
20694# ------------------------------ #
20695# Checks for library functions. #
20696# ------------------------------ #
20697
20698# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20699# for constant arguments. Useless!
20700echo "$as_me:$LINENO: checking for working alloca.h" >&5
20701echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20702if test "${ac_cv_working_alloca_h+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704else
20705 cat >conftest.$ac_ext <<_ACEOF
20706/* confdefs.h. */
20707_ACEOF
20708cat confdefs.h >>conftest.$ac_ext
20709cat >>conftest.$ac_ext <<_ACEOF
20710/* end confdefs.h. */
20711#include <alloca.h>
20712int
20713main ()
20714{
20715char *p = (char *) alloca (2 * sizeof (int));
20716 ;
20717 return 0;
20718}
20719_ACEOF
20720rm -f conftest.$ac_objext conftest$ac_exeext
20721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722 (eval $ac_link) 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest$ac_exeext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_working_alloca_h=yes
20743else
20744 echo "$as_me: failed program was:" >&5
20745sed 's/^/| /' conftest.$ac_ext >&5
20746
20747ac_cv_working_alloca_h=no
20748fi
20749rm -f conftest.err conftest.$ac_objext \
20750 conftest$ac_exeext conftest.$ac_ext
20751fi
20752echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20753echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20754if test $ac_cv_working_alloca_h = yes; then
20755
20756cat >>confdefs.h <<\_ACEOF
20757#define HAVE_ALLOCA_H 1
20758_ACEOF
20759
20760fi
20761
20762echo "$as_me:$LINENO: checking for alloca" >&5
20763echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20764if test "${ac_cv_func_alloca_works+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766else
20767 cat >conftest.$ac_ext <<_ACEOF
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
20773#ifdef __GNUC__
20774# define alloca __builtin_alloca
20775#else
20776# ifdef _MSC_VER
20777# include <malloc.h>
20778# define alloca _alloca
20779# else
20780# if HAVE_ALLOCA_H
20781# include <alloca.h>
20782# else
20783# ifdef _AIX
20784 #pragma alloca
20785# else
20786# ifndef alloca /* predefined by HP cc +Olibcalls */
20787char *alloca ();
20788# endif
20789# endif
20790# endif
20791# endif
20792#endif
20793
20794int
20795main ()
20796{
20797char *p = (char *) alloca (1);
20798 ;
20799 return 0;
20800}
20801_ACEOF
20802rm -f conftest.$ac_objext conftest$ac_exeext
20803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20804 (eval $ac_link) 2>conftest.er1
20805 ac_status=$?
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } &&
20811 { ac_try='test -z "$ac_c_werror_flag"
20812 || test ! -s conftest.err'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest$ac_exeext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_cv_func_alloca_works=yes
20825else
20826 echo "$as_me: failed program was:" >&5
20827sed 's/^/| /' conftest.$ac_ext >&5
20828
20829ac_cv_func_alloca_works=no
20830fi
20831rm -f conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext conftest.$ac_ext
20833fi
20834echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20835echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20836
20837if test $ac_cv_func_alloca_works = yes; then
20838
20839cat >>confdefs.h <<\_ACEOF
20840#define HAVE_ALLOCA 1
20841_ACEOF
20842
20843else
20844 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20845# that cause trouble. Some versions do not even contain alloca or
20846# contain a buggy version. If you still want to use their alloca,
20847# use ar to extract alloca.o from them instead of compiling alloca.c.
20848
20849ALLOCA=alloca.$ac_objext
20850
20851cat >>confdefs.h <<\_ACEOF
20852#define C_ALLOCA 1
20853_ACEOF
20854
20855
20856echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20857echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20858if test "${ac_cv_os_cray+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860else
20861 cat >conftest.$ac_ext <<_ACEOF
20862/* confdefs.h. */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h. */
20867#if defined(CRAY) && ! defined(CRAY2)
20868webecray
20869#else
20870wenotbecray
20871#endif
20872
20873_ACEOF
20874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20875 $EGREP "webecray" >/dev/null 2>&1; then
20876 ac_cv_os_cray=yes
20877else
20878 ac_cv_os_cray=no
20879fi
20880rm -f conftest*
20881
20882fi
20883echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20884echo "${ECHO_T}$ac_cv_os_cray" >&6
20885if test $ac_cv_os_cray = yes; then
20886 for ac_func in _getb67 GETB67 getb67; do
20887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20888echo "$as_me:$LINENO: checking for $ac_func" >&5
20889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20890if eval "test \"\${$as_ac_var+set}\" = set"; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20892else
20893 cat >conftest.$ac_ext <<_ACEOF
20894/* confdefs.h. */
20895_ACEOF
20896cat confdefs.h >>conftest.$ac_ext
20897cat >>conftest.$ac_ext <<_ACEOF
20898/* end confdefs.h. */
20899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20901#define $ac_func innocuous_$ac_func
20902
20903/* System header to define __stub macros and hopefully few prototypes,
20904 which can conflict with char $ac_func (); below.
20905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20906 <limits.h> exists even on freestanding compilers. */
20907
20908#ifdef __STDC__
20909# include <limits.h>
20910#else
20911# include <assert.h>
20912#endif
20913
20914#undef $ac_func
20915
20916/* Override any gcc2 internal prototype to avoid an error. */
20917#ifdef __cplusplus
20918extern "C"
20919{
20920#endif
20921/* We use char because int might match the return type of a gcc2
20922 builtin and then its argument prototype would still apply. */
20923char $ac_func ();
20924/* The GNU C library defines this for functions which it implements
20925 to always fail with ENOSYS. Some functions are actually named
20926 something starting with __ and the normal name is an alias. */
20927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20928choke me
20929#else
20930char (*f) () = $ac_func;
20931#endif
20932#ifdef __cplusplus
20933}
20934#endif
20935
20936int
20937main ()
20938{
20939return f != $ac_func;
20940 ;
20941 return 0;
20942}
20943_ACEOF
20944rm -f conftest.$ac_objext conftest$ac_exeext
20945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20946 (eval $ac_link) 2>conftest.er1
20947 ac_status=$?
20948 grep -v '^ *+' conftest.er1 >conftest.err
20949 rm -f conftest.er1
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
20953 { ac_try='test -z "$ac_c_werror_flag"
20954 || test ! -s conftest.err'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; } &&
20960 { ac_try='test -s conftest$ac_exeext'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 eval "$as_ac_var=yes"
20967else
20968 echo "$as_me: failed program was:" >&5
20969sed 's/^/| /' conftest.$ac_ext >&5
20970
20971eval "$as_ac_var=no"
20972fi
20973rm -f conftest.err conftest.$ac_objext \
20974 conftest$ac_exeext conftest.$ac_ext
20975fi
20976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20978if test `eval echo '${'$as_ac_var'}'` = yes; then
20979
20980cat >>confdefs.h <<_ACEOF
20981#define CRAY_STACKSEG_END $ac_func
20982_ACEOF
20983
20984 break
20985fi
20986
20987 done
20988fi
20989
20990echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20991echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20992if test "${ac_cv_c_stack_direction+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20994else
20995 if test "$cross_compiling" = yes; then
20996 ac_cv_c_stack_direction=0
20997else
20998 cat >conftest.$ac_ext <<_ACEOF
20999/* confdefs.h. */
21000_ACEOF
21001cat confdefs.h >>conftest.$ac_ext
21002cat >>conftest.$ac_ext <<_ACEOF
21003/* end confdefs.h. */
21004int
21005find_stack_direction ()
21006{
21007 static char *addr = 0;
21008 auto char dummy;
21009 if (addr == 0)
21010 {
21011 addr = &dummy;
21012 return find_stack_direction ();
21013 }
21014 else
21015 return (&dummy > addr) ? 1 : -1;
21016}
21017
21018int
21019main ()
21020{
21021 exit (find_stack_direction () < 0);
21022}
21023_ACEOF
21024rm -f conftest$ac_exeext
21025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026 (eval $ac_link) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_c_stack_direction=1
21036else
21037 echo "$as_me: program exited with status $ac_status" >&5
21038echo "$as_me: failed program was:" >&5
21039sed 's/^/| /' conftest.$ac_ext >&5
21040
21041( exit $ac_status )
21042ac_cv_c_stack_direction=-1
21043fi
21044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21045fi
21046fi
21047echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21048echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21049
21050cat >>confdefs.h <<_ACEOF
21051#define STACK_DIRECTION $ac_cv_c_stack_direction
21052_ACEOF
21053
21054
21055fi
21056
21057
21058
21059for ac_header in stdlib.h unistd.h
21060do
21061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21062if eval "test \"\${$as_ac_Header+set}\" = set"; then
21063 echo "$as_me:$LINENO: checking for $ac_header" >&5
21064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21065if eval "test \"\${$as_ac_Header+set}\" = set"; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067fi
21068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21070else
21071 # Is the header compilable?
21072echo "$as_me:$LINENO: checking $ac_header usability" >&5
21073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21074cat >conftest.$ac_ext <<_ACEOF
21075/* confdefs.h. */
21076_ACEOF
21077cat confdefs.h >>conftest.$ac_ext
21078cat >>conftest.$ac_ext <<_ACEOF
21079/* end confdefs.h. */
21080$ac_includes_default
21081#include <$ac_header>
21082_ACEOF
21083rm -f conftest.$ac_objext
21084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21085 (eval $ac_compile) 2>conftest.er1
21086 ac_status=$?
21087 grep -v '^ *+' conftest.er1 >conftest.err
21088 rm -f conftest.er1
21089 cat conftest.err >&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
21092 { ac_try='test -z "$ac_c_werror_flag"
21093 || test ! -s conftest.err'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } &&
21099 { ac_try='test -s conftest.$ac_objext'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 ac_header_compiler=yes
21106else
21107 echo "$as_me: failed program was:" >&5
21108sed 's/^/| /' conftest.$ac_ext >&5
21109
21110ac_header_compiler=no
21111fi
21112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21114echo "${ECHO_T}$ac_header_compiler" >&6
21115
21116# Is the header present?
21117echo "$as_me:$LINENO: checking $ac_header presence" >&5
21118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21119cat >conftest.$ac_ext <<_ACEOF
21120/* confdefs.h. */
21121_ACEOF
21122cat confdefs.h >>conftest.$ac_ext
21123cat >>conftest.$ac_ext <<_ACEOF
21124/* end confdefs.h. */
21125#include <$ac_header>
21126_ACEOF
21127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } >/dev/null; then
21135 if test -s conftest.err; then
21136 ac_cpp_err=$ac_c_preproc_warn_flag
21137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21138 else
21139 ac_cpp_err=
21140 fi
21141else
21142 ac_cpp_err=yes
21143fi
21144if test -z "$ac_cpp_err"; then
21145 ac_header_preproc=yes
21146else
21147 echo "$as_me: failed program was:" >&5
21148sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 ac_header_preproc=no
21151fi
21152rm -f conftest.err conftest.$ac_ext
21153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21154echo "${ECHO_T}$ac_header_preproc" >&6
21155
21156# So? What about this header?
21157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21158 yes:no: )
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21163 ac_header_preproc=yes
21164 ;;
21165 no:yes:* )
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21178 (
21179 cat <<\_ASBOX
21180## ------------------------------------------ ##
21181## Report this to the AC_PACKAGE_NAME lists. ##
21182## ------------------------------------------ ##
21183_ASBOX
21184 ) |
21185 sed "s/^/$as_me: WARNING: /" >&2
21186 ;;
21187esac
21188echo "$as_me:$LINENO: checking for $ac_header" >&5
21189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21190if eval "test \"\${$as_ac_Header+set}\" = set"; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21192else
21193 eval "$as_ac_Header=\$ac_header_preproc"
21194fi
21195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21197
21198fi
21199if test `eval echo '${'$as_ac_Header'}'` = yes; then
21200 cat >>confdefs.h <<_ACEOF
21201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21202_ACEOF
21203
21204fi
21205
21206done
21207
21208
21209for ac_func in getpagesize
21210do
21211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21212echo "$as_me:$LINENO: checking for $ac_func" >&5
21213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21214if eval "test \"\${$as_ac_var+set}\" = set"; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216else
21217 cat >conftest.$ac_ext <<_ACEOF
21218/* confdefs.h. */
21219_ACEOF
21220cat confdefs.h >>conftest.$ac_ext
21221cat >>conftest.$ac_ext <<_ACEOF
21222/* end confdefs.h. */
21223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21225#define $ac_func innocuous_$ac_func
21226
21227/* System header to define __stub macros and hopefully few prototypes,
21228 which can conflict with char $ac_func (); below.
21229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21230 <limits.h> exists even on freestanding compilers. */
21231
21232#ifdef __STDC__
21233# include <limits.h>
21234#else
21235# include <assert.h>
21236#endif
21237
21238#undef $ac_func
21239
21240/* Override any gcc2 internal prototype to avoid an error. */
21241#ifdef __cplusplus
21242extern "C"
21243{
21244#endif
21245/* We use char because int might match the return type of a gcc2
21246 builtin and then its argument prototype would still apply. */
21247char $ac_func ();
21248/* The GNU C library defines this for functions which it implements
21249 to always fail with ENOSYS. Some functions are actually named
21250 something starting with __ and the normal name is an alias. */
21251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21252choke me
21253#else
21254char (*f) () = $ac_func;
21255#endif
21256#ifdef __cplusplus
21257}
21258#endif
21259
21260int
21261main ()
21262{
21263return f != $ac_func;
21264 ;
21265 return 0;
21266}
21267_ACEOF
21268rm -f conftest.$ac_objext conftest$ac_exeext
21269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21270 (eval $ac_link) 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
21277 { ac_try='test -z "$ac_c_werror_flag"
21278 || test ! -s conftest.err'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; } &&
21284 { ac_try='test -s conftest$ac_exeext'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 eval "$as_ac_var=yes"
21291else
21292 echo "$as_me: failed program was:" >&5
21293sed 's/^/| /' conftest.$ac_ext >&5
21294
21295eval "$as_ac_var=no"
21296fi
21297rm -f conftest.err conftest.$ac_objext \
21298 conftest$ac_exeext conftest.$ac_ext
21299fi
21300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21302if test `eval echo '${'$as_ac_var'}'` = yes; then
21303 cat >>confdefs.h <<_ACEOF
21304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21305_ACEOF
21306
21307fi
21308done
21309
21310echo "$as_me:$LINENO: checking for working mmap" >&5
21311echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21312if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21314else
21315 if test "$cross_compiling" = yes; then
21316 ac_cv_func_mmap_fixed_mapped=no
21317else
21318 cat >conftest.$ac_ext <<_ACEOF
21319/* confdefs.h. */
21320_ACEOF
21321cat confdefs.h >>conftest.$ac_ext
21322cat >>conftest.$ac_ext <<_ACEOF
21323/* end confdefs.h. */
21324$ac_includes_default
21325/* malloc might have been renamed as rpl_malloc. */
21326#undef malloc
21327
21328/* Thanks to Mike Haertel and Jim Avera for this test.
21329 Here is a matrix of mmap possibilities:
21330 mmap private not fixed
21331 mmap private fixed at somewhere currently unmapped
21332 mmap private fixed at somewhere already mapped
21333 mmap shared not fixed
21334 mmap shared fixed at somewhere currently unmapped
21335 mmap shared fixed at somewhere already mapped
21336 For private mappings, we should verify that changes cannot be read()
21337 back from the file, nor mmap's back from the file at a different
21338 address. (There have been systems where private was not correctly
21339 implemented like the infamous i386 svr4.0, and systems where the
21340 VM page cache was not coherent with the file system buffer cache
21341 like early versions of FreeBSD and possibly contemporary NetBSD.)
21342 For shared mappings, we should conversely verify that changes get
21343 propagated back to all the places they're supposed to be.
21344
21345 Grep wants private fixed already mapped.
21346 The main things grep needs to know about mmap are:
21347 * does it exist and is it safe to write into the mmap'd area
21348 * how to use it (BSD variants) */
21349
21350#include <fcntl.h>
21351#include <sys/mman.h>
21352
21353#if !STDC_HEADERS && !HAVE_STDLIB_H
21354char *malloc ();
21355#endif
21356
21357/* This mess was copied from the GNU getpagesize.h. */
21358#if !HAVE_GETPAGESIZE
21359/* Assume that all systems that can run configure have sys/param.h. */
21360# if !HAVE_SYS_PARAM_H
21361# define HAVE_SYS_PARAM_H 1
21362# endif
21363
21364# ifdef _SC_PAGESIZE
21365# define getpagesize() sysconf(_SC_PAGESIZE)
21366# else /* no _SC_PAGESIZE */
21367# if HAVE_SYS_PARAM_H
21368# include <sys/param.h>
21369# ifdef EXEC_PAGESIZE
21370# define getpagesize() EXEC_PAGESIZE
21371# else /* no EXEC_PAGESIZE */
21372# ifdef NBPG
21373# define getpagesize() NBPG * CLSIZE
21374# ifndef CLSIZE
21375# define CLSIZE 1
21376# endif /* no CLSIZE */
21377# else /* no NBPG */
21378# ifdef NBPC
21379# define getpagesize() NBPC
21380# else /* no NBPC */
21381# ifdef PAGESIZE
21382# define getpagesize() PAGESIZE
21383# endif /* PAGESIZE */
21384# endif /* no NBPC */
21385# endif /* no NBPG */
21386# endif /* no EXEC_PAGESIZE */
21387# else /* no HAVE_SYS_PARAM_H */
21388# define getpagesize() 8192 /* punt totally */
21389# endif /* no HAVE_SYS_PARAM_H */
21390# endif /* no _SC_PAGESIZE */
21391
21392#endif /* no HAVE_GETPAGESIZE */
21393
21394int
21395main ()
21396{
21397 char *data, *data2, *data3;
21398 int i, pagesize;
21399 int fd;
21400
21401 pagesize = getpagesize ();
21402
21403 /* First, make a file with some known garbage in it. */
21404 data = (char *) malloc (pagesize);
21405 if (!data)
21406 exit (1);
21407 for (i = 0; i < pagesize; ++i)
21408 *(data + i) = rand ();
21409 umask (0);
21410 fd = creat ("conftest.mmap", 0600);
21411 if (fd < 0)
21412 exit (1);
21413 if (write (fd, data, pagesize) != pagesize)
21414 exit (1);
21415 close (fd);
21416
21417 /* Next, try to mmap the file at a fixed address which already has
21418 something else allocated at it. If we can, also make sure that
21419 we see the same garbage. */
21420 fd = open ("conftest.mmap", O_RDWR);
21421 if (fd < 0)
21422 exit (1);
21423 data2 = (char *) malloc (2 * pagesize);
21424 if (!data2)
21425 exit (1);
21426 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21427 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21428 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21429 exit (1);
21430 for (i = 0; i < pagesize; ++i)
21431 if (*(data + i) != *(data2 + i))
21432 exit (1);
21433
21434 /* Finally, make sure that changes to the mapped area do not
21435 percolate back to the file as seen by read(). (This is a bug on
21436 some variants of i386 svr4.0.) */
21437 for (i = 0; i < pagesize; ++i)
21438 *(data2 + i) = *(data2 + i) + 1;
21439 data3 = (char *) malloc (pagesize);
21440 if (!data3)
21441 exit (1);
21442 if (read (fd, data3, pagesize) != pagesize)
21443 exit (1);
21444 for (i = 0; i < pagesize; ++i)
21445 if (*(data + i) != *(data3 + i))
21446 exit (1);
21447 close (fd);
21448 exit (0);
21449}
21450_ACEOF
21451rm -f conftest$ac_exeext
21452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21453 (eval $ac_link) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; }; then
21462 ac_cv_func_mmap_fixed_mapped=yes
21463else
21464 echo "$as_me: program exited with status $ac_status" >&5
21465echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
21467
21468( exit $ac_status )
21469ac_cv_func_mmap_fixed_mapped=no
21470fi
21471rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21472fi
21473fi
21474echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21475echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21476if test $ac_cv_func_mmap_fixed_mapped = yes; then
21477
21478cat >>confdefs.h <<\_ACEOF
21479#define HAVE_MMAP 1
21480_ACEOF
21481
21482fi
21483rm -f conftest.mmap
21484
21485echo "$as_me:$LINENO: checking for pid_t" >&5
21486echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21487if test "${ac_cv_type_pid_t+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21489else
21490 cat >conftest.$ac_ext <<_ACEOF
21491/* confdefs.h. */
21492_ACEOF
21493cat confdefs.h >>conftest.$ac_ext
21494cat >>conftest.$ac_ext <<_ACEOF
21495/* end confdefs.h. */
21496$ac_includes_default
21497int
21498main ()
21499{
21500if ((pid_t *) 0)
21501 return 0;
21502if (sizeof (pid_t))
21503 return 0;
21504 ;
21505 return 0;
21506}
21507_ACEOF
21508rm -f conftest.$ac_objext
21509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510 (eval $ac_compile) 2>conftest.er1
21511 ac_status=$?
21512 grep -v '^ *+' conftest.er1 >conftest.err
21513 rm -f conftest.er1
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
21517 { ac_try='test -z "$ac_c_werror_flag"
21518 || test ! -s conftest.err'
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); }; } &&
21524 { ac_try='test -s conftest.$ac_objext'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21530 ac_cv_type_pid_t=yes
21531else
21532 echo "$as_me: failed program was:" >&5
21533sed 's/^/| /' conftest.$ac_ext >&5
21534
21535ac_cv_type_pid_t=no
21536fi
21537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21538fi
21539echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21540echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21541if test $ac_cv_type_pid_t = yes; then
21542 :
21543else
21544
21545cat >>confdefs.h <<_ACEOF
21546#define pid_t int
21547_ACEOF
21548
21549fi
21550
21551
21552
21553for ac_header in unistd.h vfork.h
21554do
21555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21556if eval "test \"\${$as_ac_Header+set}\" = set"; then
21557 echo "$as_me:$LINENO: checking for $ac_header" >&5
21558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21559if eval "test \"\${$as_ac_Header+set}\" = set"; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21561fi
21562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21564else
21565 # Is the header compilable?
21566echo "$as_me:$LINENO: checking $ac_header usability" >&5
21567echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21568cat >conftest.$ac_ext <<_ACEOF
21569/* confdefs.h. */
21570_ACEOF
21571cat confdefs.h >>conftest.$ac_ext
21572cat >>conftest.$ac_ext <<_ACEOF
21573/* end confdefs.h. */
21574$ac_includes_default
21575#include <$ac_header>
21576_ACEOF
21577rm -f conftest.$ac_objext
21578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21579 (eval $ac_compile) 2>conftest.er1
21580 ac_status=$?
21581 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
21586 { ac_try='test -z "$ac_c_werror_flag"
21587 || test ! -s conftest.err'
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; } &&
21593 { ac_try='test -s conftest.$ac_objext'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
21599 ac_header_compiler=yes
21600else
21601 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
21604ac_header_compiler=no
21605fi
21606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21608echo "${ECHO_T}$ac_header_compiler" >&6
21609
21610# Is the header present?
21611echo "$as_me:$LINENO: checking $ac_header presence" >&5
21612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21613cat >conftest.$ac_ext <<_ACEOF
21614/* confdefs.h. */
21615_ACEOF
21616cat confdefs.h >>conftest.$ac_ext
21617cat >>conftest.$ac_ext <<_ACEOF
21618/* end confdefs.h. */
21619#include <$ac_header>
21620_ACEOF
21621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21623 ac_status=$?
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } >/dev/null; then
21629 if test -s conftest.err; then
21630 ac_cpp_err=$ac_c_preproc_warn_flag
21631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21632 else
21633 ac_cpp_err=
21634 fi
21635else
21636 ac_cpp_err=yes
21637fi
21638if test -z "$ac_cpp_err"; then
21639 ac_header_preproc=yes
21640else
21641 echo "$as_me: failed program was:" >&5
21642sed 's/^/| /' conftest.$ac_ext >&5
21643
21644 ac_header_preproc=no
21645fi
21646rm -f conftest.err conftest.$ac_ext
21647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21648echo "${ECHO_T}$ac_header_preproc" >&6
21649
21650# So? What about this header?
21651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21652 yes:no: )
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21657 ac_header_preproc=yes
21658 ;;
21659 no:yes:* )
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21672 (
21673 cat <<\_ASBOX
21674## ------------------------------------------ ##
21675## Report this to the AC_PACKAGE_NAME lists. ##
21676## ------------------------------------------ ##
21677_ASBOX
21678 ) |
21679 sed "s/^/$as_me: WARNING: /" >&2
21680 ;;
21681esac
21682echo "$as_me:$LINENO: checking for $ac_header" >&5
21683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21684if eval "test \"\${$as_ac_Header+set}\" = set"; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21686else
21687 eval "$as_ac_Header=\$ac_header_preproc"
21688fi
21689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21691
21692fi
21693if test `eval echo '${'$as_ac_Header'}'` = yes; then
21694 cat >>confdefs.h <<_ACEOF
21695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21696_ACEOF
21697
21698fi
21699
21700done
21701
21702
21703
21704for ac_func in fork vfork
21705do
21706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21707echo "$as_me:$LINENO: checking for $ac_func" >&5
21708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21709if eval "test \"\${$as_ac_var+set}\" = set"; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711else
21712 cat >conftest.$ac_ext <<_ACEOF
21713/* confdefs.h. */
21714_ACEOF
21715cat confdefs.h >>conftest.$ac_ext
21716cat >>conftest.$ac_ext <<_ACEOF
21717/* end confdefs.h. */
21718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21720#define $ac_func innocuous_$ac_func
21721
21722/* System header to define __stub macros and hopefully few prototypes,
21723 which can conflict with char $ac_func (); below.
21724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21725 <limits.h> exists even on freestanding compilers. */
21726
21727#ifdef __STDC__
21728# include <limits.h>
21729#else
21730# include <assert.h>
21731#endif
21732
21733#undef $ac_func
21734
21735/* Override any gcc2 internal prototype to avoid an error. */
21736#ifdef __cplusplus
21737extern "C"
21738{
21739#endif
21740/* We use char because int might match the return type of a gcc2
21741 builtin and then its argument prototype would still apply. */
21742char $ac_func ();
21743/* The GNU C library defines this for functions which it implements
21744 to always fail with ENOSYS. Some functions are actually named
21745 something starting with __ and the normal name is an alias. */
21746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21747choke me
21748#else
21749char (*f) () = $ac_func;
21750#endif
21751#ifdef __cplusplus
21752}
21753#endif
21754
21755int
21756main ()
21757{
21758return f != $ac_func;
21759 ;
21760 return 0;
21761}
21762_ACEOF
21763rm -f conftest.$ac_objext conftest$ac_exeext
21764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21765 (eval $ac_link) 2>conftest.er1
21766 ac_status=$?
21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
21772 { ac_try='test -z "$ac_c_werror_flag"
21773 || test ! -s conftest.err'
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest$ac_exeext'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; }; then
21785 eval "$as_ac_var=yes"
21786else
21787 echo "$as_me: failed program was:" >&5
21788sed 's/^/| /' conftest.$ac_ext >&5
21789
21790eval "$as_ac_var=no"
21791fi
21792rm -f conftest.err conftest.$ac_objext \
21793 conftest$ac_exeext conftest.$ac_ext
21794fi
21795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21797if test `eval echo '${'$as_ac_var'}'` = yes; then
21798 cat >>confdefs.h <<_ACEOF
21799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21800_ACEOF
21801
21802fi
21803done
21804
21805if test "x$ac_cv_func_fork" = xyes; then
21806 echo "$as_me:$LINENO: checking for working fork" >&5
21807echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21808if test "${ac_cv_func_fork_works+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21810else
21811 if test "$cross_compiling" = yes; then
21812 ac_cv_func_fork_works=cross
21813else
21814 cat >conftest.$ac_ext <<_ACEOF
21815/* By Ruediger Kuhlmann. */
21816 #include <sys/types.h>
21817 #if HAVE_UNISTD_H
21818 # include <unistd.h>
21819 #endif
21820 /* Some systems only have a dummy stub for fork() */
21821 int main ()
21822 {
21823 if (fork() < 0)
21824 exit (1);
21825 exit (0);
21826 }
21827_ACEOF
21828rm -f conftest$ac_exeext
21829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830 (eval $ac_link) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_cv_func_fork_works=yes
21840else
21841 echo "$as_me: program exited with status $ac_status" >&5
21842echo "$as_me: failed program was:" >&5
21843sed 's/^/| /' conftest.$ac_ext >&5
21844
21845( exit $ac_status )
21846ac_cv_func_fork_works=no
21847fi
21848rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21849fi
21850fi
21851echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21852echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21853
21854else
21855 ac_cv_func_fork_works=$ac_cv_func_fork
21856fi
21857if test "x$ac_cv_func_fork_works" = xcross; then
21858 case $host in
21859 *-*-amigaos* | *-*-msdosdjgpp*)
21860 # Override, as these systems have only a dummy fork() stub
21861 ac_cv_func_fork_works=no
21862 ;;
21863 *)
21864 ac_cv_func_fork_works=yes
21865 ;;
21866 esac
21867 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21868echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21869fi
21870ac_cv_func_vfork_works=$ac_cv_func_vfork
21871if test "x$ac_cv_func_vfork" = xyes; then
21872 echo "$as_me:$LINENO: checking for working vfork" >&5
21873echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21874if test "${ac_cv_func_vfork_works+set}" = set; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21876else
21877 if test "$cross_compiling" = yes; then
21878 ac_cv_func_vfork_works=cross
21879else
21880 cat >conftest.$ac_ext <<_ACEOF
21881/* confdefs.h. */
21882_ACEOF
21883cat confdefs.h >>conftest.$ac_ext
21884cat >>conftest.$ac_ext <<_ACEOF
21885/* end confdefs.h. */
21886/* Thanks to Paul Eggert for this test. */
21887#include <stdio.h>
21888#include <stdlib.h>
21889#include <sys/types.h>
21890#include <sys/stat.h>
21891#include <sys/wait.h>
21892#if HAVE_UNISTD_H
21893# include <unistd.h>
21894#endif
21895#if HAVE_VFORK_H
21896# include <vfork.h>
21897#endif
21898/* On some sparc systems, changes by the child to local and incoming
21899 argument registers are propagated back to the parent. The compiler
21900 is told about this with #include <vfork.h>, but some compilers
21901 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21902 static variable whose address is put into a register that is
21903 clobbered by the vfork. */
21904static void
21905#ifdef __cplusplus
21906sparc_address_test (int arg)
21907# else
21908sparc_address_test (arg) int arg;
21909#endif
21910{
21911 static pid_t child;
21912 if (!child) {
21913 child = vfork ();
21914 if (child < 0) {
21915 perror ("vfork");
21916 _exit(2);
21917 }
21918 if (!child) {
21919 arg = getpid();
21920 write(-1, "", 0);
21921 _exit (arg);
21922 }
21923 }
21924}
21925
21926int
21927main ()
21928{
21929 pid_t parent = getpid ();
21930 pid_t child;
21931
21932 sparc_address_test (0);
21933
21934 child = vfork ();
21935
21936 if (child == 0) {
21937 /* Here is another test for sparc vfork register problems. This
21938 test uses lots of local variables, at least as many local
21939 variables as main has allocated so far including compiler
21940 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21941 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21942 reuse the register of parent for one of the local variables,
21943 since it will think that parent can't possibly be used any more
21944 in this routine. Assigning to the local variable will thus
21945 munge parent in the parent process. */
21946 pid_t
21947 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21948 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21949 /* Convince the compiler that p..p7 are live; otherwise, it might
21950 use the same hardware register for all 8 local variables. */
21951 if (p != p1 || p != p2 || p != p3 || p != p4
21952 || p != p5 || p != p6 || p != p7)
21953 _exit(1);
21954
21955 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21956 from child file descriptors. If the child closes a descriptor
21957 before it execs or exits, this munges the parent's descriptor
21958 as well. Test for this by closing stdout in the child. */
21959 _exit(close(fileno(stdout)) != 0);
21960 } else {
21961 int status;
21962 struct stat st;
21963
21964 while (wait(&status) != child)
21965 ;
21966 exit(
21967 /* Was there some problem with vforking? */
21968 child < 0
21969
21970 /* Did the child fail? (This shouldn't happen.) */
21971 || status
21972
21973 /* Did the vfork/compiler bug occur? */
21974 || parent != getpid()
21975
21976 /* Did the file descriptor bug occur? */
21977 || fstat(fileno(stdout), &st) != 0
21978 );
21979 }
21980}
21981_ACEOF
21982rm -f conftest$ac_exeext
21983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21984 (eval $ac_link) 2>&5
21985 ac_status=$?
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21990 ac_status=$?
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; }; then
21993 ac_cv_func_vfork_works=yes
21994else
21995 echo "$as_me: program exited with status $ac_status" >&5
21996echo "$as_me: failed program was:" >&5
21997sed 's/^/| /' conftest.$ac_ext >&5
21998
21999( exit $ac_status )
22000ac_cv_func_vfork_works=no
22001fi
22002rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22003fi
22004fi
22005echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22006echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22007
22008fi;
22009if test "x$ac_cv_func_fork_works" = xcross; then
22010 ac_cv_func_vfork_works=$ac_cv_func_vfork
22011 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22012echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22013fi
22014
22015if test "x$ac_cv_func_vfork_works" = xyes; then
22016
22017cat >>confdefs.h <<\_ACEOF
22018#define HAVE_WORKING_VFORK 1
22019_ACEOF
22020
22021else
22022
22023cat >>confdefs.h <<\_ACEOF
22024#define vfork fork
22025_ACEOF
22026
22027fi
22028if test "x$ac_cv_func_fork_works" = xyes; then
22029
22030cat >>confdefs.h <<\_ACEOF
22031#define HAVE_WORKING_FORK 1
22032_ACEOF
22033
22034fi
22035
22036
22037
22038for ac_func in canonicalize_file_name realpath
22039do
22040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22041echo "$as_me:$LINENO: checking for $ac_func" >&5
22042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22043if eval "test \"\${$as_ac_var+set}\" = set"; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22045else
22046 cat >conftest.$ac_ext <<_ACEOF
22047/* confdefs.h. */
22048_ACEOF
22049cat confdefs.h >>conftest.$ac_ext
22050cat >>conftest.$ac_ext <<_ACEOF
22051/* end confdefs.h. */
22052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22054#define $ac_func innocuous_$ac_func
22055
22056/* System header to define __stub macros and hopefully few prototypes,
22057 which can conflict with char $ac_func (); below.
22058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22059 <limits.h> exists even on freestanding compilers. */
22060
22061#ifdef __STDC__
22062# include <limits.h>
22063#else
22064# include <assert.h>
22065#endif
22066
22067#undef $ac_func
22068
22069/* Override any gcc2 internal prototype to avoid an error. */
22070#ifdef __cplusplus
22071extern "C"
22072{
22073#endif
22074/* We use char because int might match the return type of a gcc2
22075 builtin and then its argument prototype would still apply. */
22076char $ac_func ();
22077/* The GNU C library defines this for functions which it implements
22078 to always fail with ENOSYS. Some functions are actually named
22079 something starting with __ and the normal name is an alias. */
22080#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22081choke me
22082#else
22083char (*f) () = $ac_func;
22084#endif
22085#ifdef __cplusplus
22086}
22087#endif
22088
22089int
22090main ()
22091{
22092return f != $ac_func;
22093 ;
22094 return 0;
22095}
22096_ACEOF
22097rm -f conftest.$ac_objext conftest$ac_exeext
22098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22099 (eval $ac_link) 2>conftest.er1
22100 ac_status=$?
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
22106 { ac_try='test -z "$ac_c_werror_flag"
22107 || test ! -s conftest.err'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; } &&
22113 { ac_try='test -s conftest$ac_exeext'
22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115 (eval $ac_try) 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
22119 eval "$as_ac_var=yes"
22120else
22121 echo "$as_me: failed program was:" >&5
22122sed 's/^/| /' conftest.$ac_ext >&5
22123
22124eval "$as_ac_var=no"
22125fi
22126rm -f conftest.err conftest.$ac_objext \
22127 conftest$ac_exeext conftest.$ac_ext
22128fi
22129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22131if test `eval echo '${'$as_ac_var'}'` = yes; then
22132 cat >>confdefs.h <<_ACEOF
22133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22134_ACEOF
22135
22136fi
22137done
22138
22139
22140for ac_func in getrusage
22141do
22142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22143echo "$as_me:$LINENO: checking for $ac_func" >&5
22144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22145if eval "test \"\${$as_ac_var+set}\" = set"; then
22146 echo $ECHO_N "(cached) $ECHO_C" >&6
22147else
22148 cat >conftest.$ac_ext <<_ACEOF
22149/* confdefs.h. */
22150_ACEOF
22151cat confdefs.h >>conftest.$ac_ext
22152cat >>conftest.$ac_ext <<_ACEOF
22153/* end confdefs.h. */
22154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22156#define $ac_func innocuous_$ac_func
22157
22158/* System header to define __stub macros and hopefully few prototypes,
22159 which can conflict with char $ac_func (); below.
22160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22161 <limits.h> exists even on freestanding compilers. */
22162
22163#ifdef __STDC__
22164# include <limits.h>
22165#else
22166# include <assert.h>
22167#endif
22168
22169#undef $ac_func
22170
22171/* Override any gcc2 internal prototype to avoid an error. */
22172#ifdef __cplusplus
22173extern "C"
22174{
22175#endif
22176/* We use char because int might match the return type of a gcc2
22177 builtin and then its argument prototype would still apply. */
22178char $ac_func ();
22179/* The GNU C library defines this for functions which it implements
22180 to always fail with ENOSYS. Some functions are actually named
22181 something starting with __ and the normal name is an alias. */
22182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22183choke me
22184#else
22185char (*f) () = $ac_func;
22186#endif
22187#ifdef __cplusplus
22188}
22189#endif
22190
22191int
22192main ()
22193{
22194return f != $ac_func;
22195 ;
22196 return 0;
22197}
22198_ACEOF
22199rm -f conftest.$ac_objext conftest$ac_exeext
22200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22201 (eval $ac_link) 2>conftest.er1
22202 ac_status=$?
22203 grep -v '^ *+' conftest.er1 >conftest.err
22204 rm -f conftest.er1
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } &&
22208 { ac_try='test -z "$ac_c_werror_flag"
22209 || test ! -s conftest.err'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; } &&
22215 { ac_try='test -s conftest$ac_exeext'
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }; then
22221 eval "$as_ac_var=yes"
22222else
22223 echo "$as_me: failed program was:" >&5
22224sed 's/^/| /' conftest.$ac_ext >&5
22225
22226eval "$as_ac_var=no"
22227fi
22228rm -f conftest.err conftest.$ac_objext \
22229 conftest$ac_exeext conftest.$ac_ext
22230fi
22231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22232echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22233if test `eval echo '${'$as_ac_var'}'` = yes; then
22234 cat >>confdefs.h <<_ACEOF
22235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22236_ACEOF
22237
22238fi
22239done
22240
22241
22242
22243for ac_func in getuid getgid
22244do
22245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22246echo "$as_me:$LINENO: checking for $ac_func" >&5
22247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22248if eval "test \"\${$as_ac_var+set}\" = set"; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22250else
22251 cat >conftest.$ac_ext <<_ACEOF
22252/* confdefs.h. */
22253_ACEOF
22254cat confdefs.h >>conftest.$ac_ext
22255cat >>conftest.$ac_ext <<_ACEOF
22256/* end confdefs.h. */
22257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22259#define $ac_func innocuous_$ac_func
22260
22261/* System header to define __stub macros and hopefully few prototypes,
22262 which can conflict with char $ac_func (); below.
22263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22264 <limits.h> exists even on freestanding compilers. */
22265
22266#ifdef __STDC__
22267# include <limits.h>
22268#else
22269# include <assert.h>
22270#endif
22271
22272#undef $ac_func
22273
22274/* Override any gcc2 internal prototype to avoid an error. */
22275#ifdef __cplusplus
22276extern "C"
22277{
22278#endif
22279/* We use char because int might match the return type of a gcc2
22280 builtin and then its argument prototype would still apply. */
22281char $ac_func ();
22282/* The GNU C library defines this for functions which it implements
22283 to always fail with ENOSYS. Some functions are actually named
22284 something starting with __ and the normal name is an alias. */
22285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22286choke me
22287#else
22288char (*f) () = $ac_func;
22289#endif
22290#ifdef __cplusplus
22291}
22292#endif
22293
22294int
22295main ()
22296{
22297return f != $ac_func;
22298 ;
22299 return 0;
22300}
22301_ACEOF
22302rm -f conftest.$ac_objext conftest$ac_exeext
22303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22304 (eval $ac_link) 2>conftest.er1
22305 ac_status=$?
22306 grep -v '^ *+' conftest.er1 >conftest.err
22307 rm -f conftest.er1
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } &&
22311 { ac_try='test -z "$ac_c_werror_flag"
22312 || test ! -s conftest.err'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest$ac_exeext'
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; }; then
22324 eval "$as_ac_var=yes"
22325else
22326 echo "$as_me: failed program was:" >&5
22327sed 's/^/| /' conftest.$ac_ext >&5
22328
22329eval "$as_ac_var=no"
22330fi
22331rm -f conftest.err conftest.$ac_objext \
22332 conftest$ac_exeext conftest.$ac_ext
22333fi
22334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22336if test `eval echo '${'$as_ac_var'}'` = yes; then
22337 cat >>confdefs.h <<_ACEOF
22338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22339_ACEOF
22340
22341fi
22342done
22343
22344
22345for ac_func in poll
22346do
22347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22348echo "$as_me:$LINENO: checking for $ac_func" >&5
22349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22350if eval "test \"\${$as_ac_var+set}\" = set"; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22352else
22353 cat >conftest.$ac_ext <<_ACEOF
22354/* confdefs.h. */
22355_ACEOF
22356cat confdefs.h >>conftest.$ac_ext
22357cat >>conftest.$ac_ext <<_ACEOF
22358/* end confdefs.h. */
22359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22361#define $ac_func innocuous_$ac_func
22362
22363/* System header to define __stub macros and hopefully few prototypes,
22364 which can conflict with char $ac_func (); below.
22365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22366 <limits.h> exists even on freestanding compilers. */
22367
22368#ifdef __STDC__
22369# include <limits.h>
22370#else
22371# include <assert.h>
22372#endif
22373
22374#undef $ac_func
22375
22376/* Override any gcc2 internal prototype to avoid an error. */
22377#ifdef __cplusplus
22378extern "C"
22379{
22380#endif
22381/* We use char because int might match the return type of a gcc2
22382 builtin and then its argument prototype would still apply. */
22383char $ac_func ();
22384/* The GNU C library defines this for functions which it implements
22385 to always fail with ENOSYS. Some functions are actually named
22386 something starting with __ and the normal name is an alias. */
22387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22388choke me
22389#else
22390char (*f) () = $ac_func;
22391#endif
22392#ifdef __cplusplus
22393}
22394#endif
22395
22396int
22397main ()
22398{
22399return f != $ac_func;
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404rm -f conftest.$ac_objext conftest$ac_exeext
22405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22406 (eval $ac_link) 2>conftest.er1
22407 ac_status=$?
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } &&
22413 { ac_try='test -z "$ac_c_werror_flag"
22414 || test ! -s conftest.err'
22415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 (eval $ac_try) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; } &&
22420 { ac_try='test -s conftest$ac_exeext'
22421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 (eval $ac_try) 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; }; then
22426 eval "$as_ac_var=yes"
22427else
22428 echo "$as_me: failed program was:" >&5
22429sed 's/^/| /' conftest.$ac_ext >&5
22430
22431eval "$as_ac_var=no"
22432fi
22433rm -f conftest.err conftest.$ac_objext \
22434 conftest$ac_exeext conftest.$ac_ext
22435fi
22436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22437echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22438if test `eval echo '${'$as_ac_var'}'` = yes; then
22439 cat >>confdefs.h <<_ACEOF
22440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22441_ACEOF
22442
22443fi
22444done
22445
22446
22447for ac_func in pread64
22448do
22449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22450echo "$as_me:$LINENO: checking for $ac_func" >&5
22451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22452if eval "test \"\${$as_ac_var+set}\" = set"; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454else
22455 cat >conftest.$ac_ext <<_ACEOF
22456/* confdefs.h. */
22457_ACEOF
22458cat confdefs.h >>conftest.$ac_ext
22459cat >>conftest.$ac_ext <<_ACEOF
22460/* end confdefs.h. */
22461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22463#define $ac_func innocuous_$ac_func
22464
22465/* System header to define __stub macros and hopefully few prototypes,
22466 which can conflict with char $ac_func (); below.
22467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22468 <limits.h> exists even on freestanding compilers. */
22469
22470#ifdef __STDC__
22471# include <limits.h>
22472#else
22473# include <assert.h>
22474#endif
22475
22476#undef $ac_func
22477
22478/* Override any gcc2 internal prototype to avoid an error. */
22479#ifdef __cplusplus
22480extern "C"
22481{
22482#endif
22483/* We use char because int might match the return type of a gcc2
22484 builtin and then its argument prototype would still apply. */
22485char $ac_func ();
22486/* The GNU C library defines this for functions which it implements
22487 to always fail with ENOSYS. Some functions are actually named
22488 something starting with __ and the normal name is an alias. */
22489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22490choke me
22491#else
22492char (*f) () = $ac_func;
22493#endif
22494#ifdef __cplusplus
22495}
22496#endif
22497
22498int
22499main ()
22500{
22501return f != $ac_func;
22502 ;
22503 return 0;
22504}
22505_ACEOF
22506rm -f conftest.$ac_objext conftest$ac_exeext
22507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22508 (eval $ac_link) 2>conftest.er1
22509 ac_status=$?
22510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
22515 { ac_try='test -z "$ac_c_werror_flag"
22516 || test ! -s conftest.err'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; } &&
22522 { ac_try='test -s conftest$ac_exeext'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 eval "$as_ac_var=yes"
22529else
22530 echo "$as_me: failed program was:" >&5
22531sed 's/^/| /' conftest.$ac_ext >&5
22532
22533eval "$as_ac_var=no"
22534fi
22535rm -f conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
22537fi
22538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22540if test `eval echo '${'$as_ac_var'}'` = yes; then
22541 cat >>confdefs.h <<_ACEOF
22542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22543_ACEOF
22544
22545fi
22546done
22547
22548
22549for ac_func in sbrk
22550do
22551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22552echo "$as_me:$LINENO: checking for $ac_func" >&5
22553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22554if eval "test \"\${$as_ac_var+set}\" = set"; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22556else
22557 cat >conftest.$ac_ext <<_ACEOF
22558/* confdefs.h. */
22559_ACEOF
22560cat confdefs.h >>conftest.$ac_ext
22561cat >>conftest.$ac_ext <<_ACEOF
22562/* end confdefs.h. */
22563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22565#define $ac_func innocuous_$ac_func
22566
22567/* System header to define __stub macros and hopefully few prototypes,
22568 which can conflict with char $ac_func (); below.
22569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22570 <limits.h> exists even on freestanding compilers. */
22571
22572#ifdef __STDC__
22573# include <limits.h>
22574#else
22575# include <assert.h>
22576#endif
22577
22578#undef $ac_func
22579
22580/* Override any gcc2 internal prototype to avoid an error. */
22581#ifdef __cplusplus
22582extern "C"
22583{
22584#endif
22585/* We use char because int might match the return type of a gcc2
22586 builtin and then its argument prototype would still apply. */
22587char $ac_func ();
22588/* The GNU C library defines this for functions which it implements
22589 to always fail with ENOSYS. Some functions are actually named
22590 something starting with __ and the normal name is an alias. */
22591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22592choke me
22593#else
22594char (*f) () = $ac_func;
22595#endif
22596#ifdef __cplusplus
22597}
22598#endif
22599
22600int
22601main ()
22602{
22603return f != $ac_func;
22604 ;
22605 return 0;
22606}
22607_ACEOF
22608rm -f conftest.$ac_objext conftest$ac_exeext
22609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22610 (eval $ac_link) 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
22617 { ac_try='test -z "$ac_c_werror_flag"
22618 || test ! -s conftest.err'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22621 ac_status=$?
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; } &&
22624 { ac_try='test -s conftest$ac_exeext'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 eval "$as_ac_var=yes"
22631else
22632 echo "$as_me: failed program was:" >&5
22633sed 's/^/| /' conftest.$ac_ext >&5
22634
22635eval "$as_ac_var=no"
22636fi
22637rm -f conftest.err conftest.$ac_objext \
22638 conftest$ac_exeext conftest.$ac_ext
22639fi
22640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22642if test `eval echo '${'$as_ac_var'}'` = yes; then
22643 cat >>confdefs.h <<_ACEOF
22644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22645_ACEOF
22646
22647fi
22648done
22649
22650
22651
22652
22653for ac_func in setpgid setpgrp setsid
22654do
22655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22656echo "$as_me:$LINENO: checking for $ac_func" >&5
22657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22658if eval "test \"\${$as_ac_var+set}\" = set"; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660else
22661 cat >conftest.$ac_ext <<_ACEOF
22662/* confdefs.h. */
22663_ACEOF
22664cat confdefs.h >>conftest.$ac_ext
22665cat >>conftest.$ac_ext <<_ACEOF
22666/* end confdefs.h. */
22667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22669#define $ac_func innocuous_$ac_func
22670
22671/* System header to define __stub macros and hopefully few prototypes,
22672 which can conflict with char $ac_func (); below.
22673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22674 <limits.h> exists even on freestanding compilers. */
22675
22676#ifdef __STDC__
22677# include <limits.h>
22678#else
22679# include <assert.h>
22680#endif
22681
22682#undef $ac_func
22683
22684/* Override any gcc2 internal prototype to avoid an error. */
22685#ifdef __cplusplus
22686extern "C"
22687{
22688#endif
22689/* We use char because int might match the return type of a gcc2
22690 builtin and then its argument prototype would still apply. */
22691char $ac_func ();
22692/* The GNU C library defines this for functions which it implements
22693 to always fail with ENOSYS. Some functions are actually named
22694 something starting with __ and the normal name is an alias. */
22695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22696choke me
22697#else
22698char (*f) () = $ac_func;
22699#endif
22700#ifdef __cplusplus
22701}
22702#endif
22703
22704int
22705main ()
22706{
22707return f != $ac_func;
22708 ;
22709 return 0;
22710}
22711_ACEOF
22712rm -f conftest.$ac_objext conftest$ac_exeext
22713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22714 (eval $ac_link) 2>conftest.er1
22715 ac_status=$?
22716 grep -v '^ *+' conftest.er1 >conftest.err
22717 rm -f conftest.er1
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } &&
22721 { ac_try='test -z "$ac_c_werror_flag"
22722 || test ! -s conftest.err'
22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22725 ac_status=$?
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; } &&
22728 { ac_try='test -s conftest$ac_exeext'
22729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730 (eval $ac_try) 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; }; then
22734 eval "$as_ac_var=yes"
22735else
22736 echo "$as_me: failed program was:" >&5
22737sed 's/^/| /' conftest.$ac_ext >&5
22738
22739eval "$as_ac_var=no"
22740fi
22741rm -f conftest.err conftest.$ac_objext \
22742 conftest$ac_exeext conftest.$ac_ext
22743fi
22744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22746if test `eval echo '${'$as_ac_var'}'` = yes; then
22747 cat >>confdefs.h <<_ACEOF
22748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22749_ACEOF
22750
22751fi
22752done
22753
22754
22755
22756
22757for ac_func in sigaction sigprocmask sigsetmask
22758do
22759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22760echo "$as_me:$LINENO: checking for $ac_func" >&5
22761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22762if eval "test \"\${$as_ac_var+set}\" = set"; then
22763 echo $ECHO_N "(cached) $ECHO_C" >&6
22764else
22765 cat >conftest.$ac_ext <<_ACEOF
22766/* confdefs.h. */
22767_ACEOF
22768cat confdefs.h >>conftest.$ac_ext
22769cat >>conftest.$ac_ext <<_ACEOF
22770/* end confdefs.h. */
22771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22773#define $ac_func innocuous_$ac_func
22774
22775/* System header to define __stub macros and hopefully few prototypes,
22776 which can conflict with char $ac_func (); below.
22777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22778 <limits.h> exists even on freestanding compilers. */
22779
22780#ifdef __STDC__
22781# include <limits.h>
22782#else
22783# include <assert.h>
22784#endif
22785
22786#undef $ac_func
22787
22788/* Override any gcc2 internal prototype to avoid an error. */
22789#ifdef __cplusplus
22790extern "C"
22791{
22792#endif
22793/* We use char because int might match the return type of a gcc2
22794 builtin and then its argument prototype would still apply. */
22795char $ac_func ();
22796/* The GNU C library defines this for functions which it implements
22797 to always fail with ENOSYS. Some functions are actually named
22798 something starting with __ and the normal name is an alias. */
22799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22800choke me
22801#else
22802char (*f) () = $ac_func;
22803#endif
22804#ifdef __cplusplus
22805}
22806#endif
22807
22808int
22809main ()
22810{
22811return f != $ac_func;
22812 ;
22813 return 0;
22814}
22815_ACEOF
22816rm -f conftest.$ac_objext conftest$ac_exeext
22817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22818 (eval $ac_link) 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } &&
22825 { ac_try='test -z "$ac_c_werror_flag"
22826 || test ! -s conftest.err'
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; } &&
22832 { ac_try='test -s conftest$ac_exeext'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22835 ac_status=$?
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; }; then
22838 eval "$as_ac_var=yes"
22839else
22840 echo "$as_me: failed program was:" >&5
22841sed 's/^/| /' conftest.$ac_ext >&5
22842
22843eval "$as_ac_var=no"
22844fi
22845rm -f conftest.err conftest.$ac_objext \
22846 conftest$ac_exeext conftest.$ac_ext
22847fi
22848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22849echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22850if test `eval echo '${'$as_ac_var'}'` = yes; then
22851 cat >>confdefs.h <<_ACEOF
22852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22853_ACEOF
22854
22855fi
22856done
22857
22858
22859for ac_func in socketpair
22860do
22861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22862echo "$as_me:$LINENO: checking for $ac_func" >&5
22863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22864if eval "test \"\${$as_ac_var+set}\" = set"; then
22865 echo $ECHO_N "(cached) $ECHO_C" >&6
22866else
22867 cat >conftest.$ac_ext <<_ACEOF
22868/* confdefs.h. */
22869_ACEOF
22870cat confdefs.h >>conftest.$ac_ext
22871cat >>conftest.$ac_ext <<_ACEOF
22872/* end confdefs.h. */
22873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22875#define $ac_func innocuous_$ac_func
22876
22877/* System header to define __stub macros and hopefully few prototypes,
22878 which can conflict with char $ac_func (); below.
22879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22880 <limits.h> exists even on freestanding compilers. */
22881
22882#ifdef __STDC__
22883# include <limits.h>
22884#else
22885# include <assert.h>
22886#endif
22887
22888#undef $ac_func
22889
22890/* Override any gcc2 internal prototype to avoid an error. */
22891#ifdef __cplusplus
22892extern "C"
22893{
22894#endif
22895/* We use char because int might match the return type of a gcc2
22896 builtin and then its argument prototype would still apply. */
22897char $ac_func ();
22898/* The GNU C library defines this for functions which it implements
22899 to always fail with ENOSYS. Some functions are actually named
22900 something starting with __ and the normal name is an alias. */
22901#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22902choke me
22903#else
22904char (*f) () = $ac_func;
22905#endif
22906#ifdef __cplusplus
22907}
22908#endif
22909
22910int
22911main ()
22912{
22913return f != $ac_func;
22914 ;
22915 return 0;
22916}
22917_ACEOF
22918rm -f conftest.$ac_objext conftest$ac_exeext
22919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22920 (eval $ac_link) 2>conftest.er1
22921 ac_status=$?
22922 grep -v '^ *+' conftest.er1 >conftest.err
22923 rm -f conftest.er1
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } &&
22927 { ac_try='test -z "$ac_c_werror_flag"
22928 || test ! -s conftest.err'
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22931 ac_status=$?
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; } &&
22934 { ac_try='test -s conftest$ac_exeext'
22935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22937 ac_status=$?
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); }; }; then
22940 eval "$as_ac_var=yes"
22941else
22942 echo "$as_me: failed program was:" >&5
22943sed 's/^/| /' conftest.$ac_ext >&5
22944
22945eval "$as_ac_var=no"
22946fi
22947rm -f conftest.err conftest.$ac_objext \
22948 conftest$ac_exeext conftest.$ac_ext
22949fi
22950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22952if test `eval echo '${'$as_ac_var'}'` = yes; then
22953 cat >>confdefs.h <<_ACEOF
22954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22955_ACEOF
22956
22957fi
22958done
22959
22960
22961for ac_func in syscall
22962do
22963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22964echo "$as_me:$LINENO: checking for $ac_func" >&5
22965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22966if eval "test \"\${$as_ac_var+set}\" = set"; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22968else
22969 cat >conftest.$ac_ext <<_ACEOF
22970/* confdefs.h. */
22971_ACEOF
22972cat confdefs.h >>conftest.$ac_ext
22973cat >>conftest.$ac_ext <<_ACEOF
22974/* end confdefs.h. */
22975/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22977#define $ac_func innocuous_$ac_func
22978
22979/* System header to define __stub macros and hopefully few prototypes,
22980 which can conflict with char $ac_func (); below.
22981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22982 <limits.h> exists even on freestanding compilers. */
22983
22984#ifdef __STDC__
22985# include <limits.h>
22986#else
22987# include <assert.h>
22988#endif
22989
22990#undef $ac_func
22991
22992/* Override any gcc2 internal prototype to avoid an error. */
22993#ifdef __cplusplus
22994extern "C"
22995{
22996#endif
22997/* We use char because int might match the return type of a gcc2
22998 builtin and then its argument prototype would still apply. */
22999char $ac_func ();
23000/* The GNU C library defines this for functions which it implements
23001 to always fail with ENOSYS. Some functions are actually named
23002 something starting with __ and the normal name is an alias. */
23003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23004choke me
23005#else
23006char (*f) () = $ac_func;
23007#endif
23008#ifdef __cplusplus
23009}
23010#endif
23011
23012int
23013main ()
23014{
23015return f != $ac_func;
23016 ;
23017 return 0;
23018}
23019_ACEOF
23020rm -f conftest.$ac_objext conftest$ac_exeext
23021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23022 (eval $ac_link) 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } &&
23029 { ac_try='test -z "$ac_c_werror_flag"
23030 || test ! -s conftest.err'
23031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032 (eval $ac_try) 2>&5
23033 ac_status=$?
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; } &&
23036 { ac_try='test -s conftest$ac_exeext'
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
23042 eval "$as_ac_var=yes"
23043else
23044 echo "$as_me: failed program was:" >&5
23045sed 's/^/| /' conftest.$ac_ext >&5
23046
23047eval "$as_ac_var=no"
23048fi
23049rm -f conftest.err conftest.$ac_objext \
23050 conftest$ac_exeext conftest.$ac_ext
23051fi
23052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23054if test `eval echo '${'$as_ac_var'}'` = yes; then
23055 cat >>confdefs.h <<_ACEOF
23056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23057_ACEOF
23058
23059fi
23060done
23061
23062
23063for ac_func in ttrace
23064do
23065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23066echo "$as_me:$LINENO: checking for $ac_func" >&5
23067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23068if eval "test \"\${$as_ac_var+set}\" = set"; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23070else
23071 cat >conftest.$ac_ext <<_ACEOF
23072/* confdefs.h. */
23073_ACEOF
23074cat confdefs.h >>conftest.$ac_ext
23075cat >>conftest.$ac_ext <<_ACEOF
23076/* end confdefs.h. */
23077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23079#define $ac_func innocuous_$ac_func
23080
23081/* System header to define __stub macros and hopefully few prototypes,
23082 which can conflict with char $ac_func (); below.
23083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23084 <limits.h> exists even on freestanding compilers. */
23085
23086#ifdef __STDC__
23087# include <limits.h>
23088#else
23089# include <assert.h>
23090#endif
23091
23092#undef $ac_func
23093
23094/* Override any gcc2 internal prototype to avoid an error. */
23095#ifdef __cplusplus
23096extern "C"
23097{
23098#endif
23099/* We use char because int might match the return type of a gcc2
23100 builtin and then its argument prototype would still apply. */
23101char $ac_func ();
23102/* The GNU C library defines this for functions which it implements
23103 to always fail with ENOSYS. Some functions are actually named
23104 something starting with __ and the normal name is an alias. */
23105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23106choke me
23107#else
23108char (*f) () = $ac_func;
23109#endif
23110#ifdef __cplusplus
23111}
23112#endif
23113
23114int
23115main ()
23116{
23117return f != $ac_func;
23118 ;
23119 return 0;
23120}
23121_ACEOF
23122rm -f conftest.$ac_objext conftest$ac_exeext
23123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23124 (eval $ac_link) 2>conftest.er1
23125 ac_status=$?
23126 grep -v '^ *+' conftest.er1 >conftest.err
23127 rm -f conftest.er1
23128 cat conftest.err >&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } &&
23131 { ac_try='test -z "$ac_c_werror_flag"
23132 || test ! -s conftest.err'
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; } &&
23138 { ac_try='test -s conftest$ac_exeext'
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 eval "$as_ac_var=yes"
23145else
23146 echo "$as_me: failed program was:" >&5
23147sed 's/^/| /' conftest.$ac_ext >&5
23148
23149eval "$as_ac_var=no"
23150fi
23151rm -f conftest.err conftest.$ac_objext \
23152 conftest$ac_exeext conftest.$ac_ext
23153fi
23154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23156if test `eval echo '${'$as_ac_var'}'` = yes; then
23157 cat >>confdefs.h <<_ACEOF
23158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23159_ACEOF
23160
23161fi
23162done
23163
23164
23165for ac_func in wborder
23166do
23167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23168echo "$as_me:$LINENO: checking for $ac_func" >&5
23169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23170if eval "test \"\${$as_ac_var+set}\" = set"; then
23171 echo $ECHO_N "(cached) $ECHO_C" >&6
23172else
23173 cat >conftest.$ac_ext <<_ACEOF
23174/* confdefs.h. */
23175_ACEOF
23176cat confdefs.h >>conftest.$ac_ext
23177cat >>conftest.$ac_ext <<_ACEOF
23178/* end confdefs.h. */
23179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23181#define $ac_func innocuous_$ac_func
23182
23183/* System header to define __stub macros and hopefully few prototypes,
23184 which can conflict with char $ac_func (); below.
23185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23186 <limits.h> exists even on freestanding compilers. */
23187
23188#ifdef __STDC__
23189# include <limits.h>
23190#else
23191# include <assert.h>
23192#endif
23193
23194#undef $ac_func
23195
23196/* Override any gcc2 internal prototype to avoid an error. */
23197#ifdef __cplusplus
23198extern "C"
23199{
23200#endif
23201/* We use char because int might match the return type of a gcc2
23202 builtin and then its argument prototype would still apply. */
23203char $ac_func ();
23204/* The GNU C library defines this for functions which it implements
23205 to always fail with ENOSYS. Some functions are actually named
23206 something starting with __ and the normal name is an alias. */
23207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23208choke me
23209#else
23210char (*f) () = $ac_func;
23211#endif
23212#ifdef __cplusplus
23213}
23214#endif
23215
23216int
23217main ()
23218{
23219return f != $ac_func;
23220 ;
23221 return 0;
23222}
23223_ACEOF
23224rm -f conftest.$ac_objext conftest$ac_exeext
23225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23226 (eval $ac_link) 2>conftest.er1
23227 ac_status=$?
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } &&
23233 { ac_try='test -z "$ac_c_werror_flag"
23234 || test ! -s conftest.err'
23235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236 (eval $ac_try) 2>&5
23237 ac_status=$?
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); }; } &&
23240 { ac_try='test -s conftest$ac_exeext'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23243 ac_status=$?
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; }; then
23246 eval "$as_ac_var=yes"
23247else
23248 echo "$as_me: failed program was:" >&5
23249sed 's/^/| /' conftest.$ac_ext >&5
23250
23251eval "$as_ac_var=no"
23252fi
23253rm -f conftest.err conftest.$ac_objext \
23254 conftest$ac_exeext conftest.$ac_ext
23255fi
23256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23258if test `eval echo '${'$as_ac_var'}'` = yes; then
23259 cat >>confdefs.h <<_ACEOF
23260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23261_ACEOF
23262
23263fi
23264done
23265
23266
23267# Check the return and argument types of ptrace. No canned test for
23268# this, so roll our own.
23269gdb_ptrace_headers='
23270#if HAVE_SYS_TYPES_H
23271# include <sys/types.h>
23272#endif
23273#if HAVE_SYS_PTRACE_H
23274# include <sys/ptrace.h>
23275#endif
23276#if HAVE_UNISTD_H
23277# include <unistd.h>
23278#endif
23279'
23280# There is no point in checking if we don't have a prototype.
23281echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
23282echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
23283if test "${ac_cv_have_decl_ptrace+set}" = set; then
23284 echo $ECHO_N "(cached) $ECHO_C" >&6
23285else
23286 cat >conftest.$ac_ext <<_ACEOF
23287/* confdefs.h. */
23288_ACEOF
23289cat confdefs.h >>conftest.$ac_ext
23290cat >>conftest.$ac_ext <<_ACEOF
23291/* end confdefs.h. */
23292$gdb_ptrace_headers
23293
23294int
23295main ()
23296{
23297#ifndef ptrace
23298 char *p = (char *) ptrace;
23299#endif
23300
23301 ;
23302 return 0;
23303}
23304_ACEOF
23305rm -f conftest.$ac_objext
23306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23307 (eval $ac_compile) 2>conftest.er1
23308 ac_status=$?
23309 grep -v '^ *+' conftest.er1 >conftest.err
23310 rm -f conftest.er1
23311 cat conftest.err >&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
23314 { ac_try='test -z "$ac_c_werror_flag"
23315 || test ! -s conftest.err'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try='test -s conftest.$ac_objext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 ac_cv_have_decl_ptrace=yes
23328else
23329 echo "$as_me: failed program was:" >&5
23330sed 's/^/| /' conftest.$ac_ext >&5
23331
23332ac_cv_have_decl_ptrace=no
23333fi
23334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23335fi
23336echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
23337echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
23338if test $ac_cv_have_decl_ptrace = yes; then
23339
23340cat >>confdefs.h <<_ACEOF
23341#define HAVE_DECL_PTRACE 1
23342_ACEOF
23343
23344
23345else
23346 cat >>confdefs.h <<_ACEOF
23347#define HAVE_DECL_PTRACE 0
23348_ACEOF
23349
23350
23351 : ${gdb_cv_func_ptrace_ret='int'}
23352 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
23353
23354fi
23355
23356
23357# Check return type.
23358echo "$as_me:$LINENO: checking return type of ptrace" >&5
23359echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
23360if test "${gdb_cv_func_ptrace_ret+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23362else
23363 cat >conftest.$ac_ext <<_ACEOF
23364/* confdefs.h. */
23365_ACEOF
23366cat confdefs.h >>conftest.$ac_ext
23367cat >>conftest.$ac_ext <<_ACEOF
23368/* end confdefs.h. */
23369$gdb_ptrace_headers
23370int
23371main ()
23372{
23373extern int ptrace ();
23374 ;
23375 return 0;
23376}
23377_ACEOF
23378rm -f conftest.$ac_objext
23379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23380 (eval $ac_compile) 2>conftest.er1
23381 ac_status=$?
23382 grep -v '^ *+' conftest.er1 >conftest.err
23383 rm -f conftest.er1
23384 cat conftest.err >&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } &&
23387 { ac_try='test -z "$ac_c_werror_flag"
23388 || test ! -s conftest.err'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; } &&
23394 { ac_try='test -s conftest.$ac_objext'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
23400 gdb_cv_func_ptrace_ret='int'
23401else
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
23405gdb_cv_func_ptrace_ret='long'
23406fi
23407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23408fi
23409echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
23410echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
23411
23412cat >>confdefs.h <<_ACEOF
23413#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
23414_ACEOF
23415
23416# Check argument types.
23417echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
23418echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
23419if test "${gdb_cv_func_ptrace_args+set}" = set; then
23420 echo $ECHO_N "(cached) $ECHO_C" >&6
23421else
23422
23423for gdb_arg1 in 'int' 'long'; do
23424 for gdb_arg2 in 'pid_t' 'int' 'long'; do
23425 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
23426 for gdb_arg4 in 'int' 'long'; do
23427 cat >conftest.$ac_ext <<_ACEOF
23428/* confdefs.h. */
23429_ACEOF
23430cat confdefs.h >>conftest.$ac_ext
23431cat >>conftest.$ac_ext <<_ACEOF
23432/* end confdefs.h. */
23433$gdb_ptrace_headers
23434int
23435main ()
23436{
23437
23438extern $gdb_cv_func_ptrace_ret
23439 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
23440
23441 ;
23442 return 0;
23443}
23444_ACEOF
23445rm -f conftest.$ac_objext
23446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23447 (eval $ac_compile) 2>conftest.er1
23448 ac_status=$?
23449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } &&
23454 { ac_try='test -z "$ac_c_werror_flag"
23455 || test ! -s conftest.err'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest.$ac_objext'
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
23468 break 4;
23469else
23470 echo "$as_me: failed program was:" >&5
23471sed 's/^/| /' conftest.$ac_ext >&5
23472
23473fi
23474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23475 for gdb_arg5 in 'int *' 'int' 'long'; do
23476 cat >conftest.$ac_ext <<_ACEOF
23477/* confdefs.h. */
23478_ACEOF
23479cat confdefs.h >>conftest.$ac_ext
23480cat >>conftest.$ac_ext <<_ACEOF
23481/* end confdefs.h. */
23482$gdb_ptrace_headers
23483int
23484main ()
23485{
23486
23487extern $gdb_cv_func_ptrace_ret
23488 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
23489
23490 ;
23491 return 0;
23492}
23493_ACEOF
23494rm -f conftest.$ac_objext
23495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23496 (eval $ac_compile) 2>conftest.er1
23497 ac_status=$?
23498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } &&
23503 { ac_try='test -z "$ac_c_werror_flag"
23504 || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest.$ac_objext'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516
23517gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
23518 break 5;
23519else
23520 echo "$as_me: failed program was:" >&5
23521sed 's/^/| /' conftest.$ac_ext >&5
23522
23523fi
23524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23525 done
23526 done
23527 done
23528 done
23529done
23530# Provide a safe default value.
23531: ${gdb_cv_func_ptrace_args='int,int,long,long'}
23532
23533fi
23534echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
23535echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
23536ac_save_IFS=$IFS; IFS=','
23537set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
23538IFS=$ac_save_IFS
23539shift
23540
23541cat >>confdefs.h <<_ACEOF
23542#define PTRACE_TYPE_ARG3 $3
23543_ACEOF
23544
23545if test -n "$5"; then
23546
23547cat >>confdefs.h <<_ACEOF
23548#define PTRACE_TYPE_ARG5 $5
23549_ACEOF
23550
23551fi
23552
23553if test "$cross_compiling" = no; then
23554 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23555echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23556if test "${ac_cv_func_setpgrp_void+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23558else
23559 if test "$cross_compiling" = yes; then
23560 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
23561echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
23562 { (exit 1); exit 1; }; }
23563else
23564 cat >conftest.$ac_ext <<_ACEOF
23565/* confdefs.h. */
23566_ACEOF
23567cat confdefs.h >>conftest.$ac_ext
23568cat >>conftest.$ac_ext <<_ACEOF
23569/* end confdefs.h. */
23570#if HAVE_UNISTD_H
23571# include <unistd.h>
23572#endif
23573
23574int
23575main ()
23576{
23577/* If this system has a BSD-style setpgrp which takes arguments,
23578 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23579 exit successfully. */
23580 exit (setpgrp (1,1) == -1 ? 0 : 1);
23581 ;
23582 return 0;
23583}
23584_ACEOF
23585rm -f conftest$ac_exeext
23586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23587 (eval $ac_link) 2>&5
23588 ac_status=$?
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 ac_cv_func_setpgrp_void=no
23597else
23598 echo "$as_me: program exited with status $ac_status" >&5
23599echo "$as_me: failed program was:" >&5
23600sed 's/^/| /' conftest.$ac_ext >&5
23601
23602( exit $ac_status )
23603ac_cv_func_setpgrp_void=yes
23604fi
23605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23606fi
23607fi
23608echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23609echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23610if test $ac_cv_func_setpgrp_void = yes; then
23611
23612cat >>confdefs.h <<\_ACEOF
23613#define SETPGRP_VOID 1
23614_ACEOF
23615
23616fi
23617
23618else
23619 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23620echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23621if test "${ac_cv_func_setpgrp_void+set}" = set; then
23622 echo $ECHO_N "(cached) $ECHO_C" >&6
23623else
23624 cat >conftest.$ac_ext <<_ACEOF
23625/* confdefs.h. */
23626_ACEOF
23627cat confdefs.h >>conftest.$ac_ext
23628cat >>conftest.$ac_ext <<_ACEOF
23629/* end confdefs.h. */
23630
23631#include <unistd.h>
23632
23633int
23634main ()
23635{
23636
23637 if (setpgrp(1,1) == -1)
23638 exit (0);
23639 else
23640 exit (1);
23641
23642 ;
23643 return 0;
23644}
23645_ACEOF
23646rm -f conftest.$ac_objext
23647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23648 (eval $ac_compile) 2>conftest.er1
23649 ac_status=$?
23650 grep -v '^ *+' conftest.er1 >conftest.err
23651 rm -f conftest.er1
23652 cat conftest.err >&5
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); } &&
23655 { ac_try='test -z "$ac_c_werror_flag"
23656 || test ! -s conftest.err'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; } &&
23662 { ac_try='test -s conftest.$ac_objext'
23663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23664 (eval $ac_try) 2>&5
23665 ac_status=$?
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); }; }; then
23668 ac_cv_func_setpgrp_void=no
23669else
23670 echo "$as_me: failed program was:" >&5
23671sed 's/^/| /' conftest.$ac_ext >&5
23672
23673ac_cv_func_setpgrp_void=yes
23674fi
23675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23676fi
23677echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23678echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23679if test $ac_cv_func_setpgrp_void = yes; then
23680 cat >>confdefs.h <<\_ACEOF
23681#define SETPGRP_VOID 1
23682_ACEOF
23683
23684fi
23685fi
23686
23687# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
23688# since sigsetjmp might only be defined as a macro.
23689echo "$as_me:$LINENO: checking for sigsetjmp" >&5
23690echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
23691if test "${gdb_cv_func_sigsetjmp+set}" = set; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
23693else
23694 cat >conftest.$ac_ext <<_ACEOF
23695/* confdefs.h. */
23696_ACEOF
23697cat confdefs.h >>conftest.$ac_ext
23698cat >>conftest.$ac_ext <<_ACEOF
23699/* end confdefs.h. */
23700
23701#include <setjmp.h>
23702
23703int
23704main ()
23705{
23706sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23707 ;
23708 return 0;
23709}
23710_ACEOF
23711rm -f conftest.$ac_objext
23712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23713 (eval $ac_compile) 2>conftest.er1
23714 ac_status=$?
23715 grep -v '^ *+' conftest.er1 >conftest.err
23716 rm -f conftest.er1
23717 cat conftest.err >&5
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); } &&
23720 { ac_try='test -z "$ac_c_werror_flag"
23721 || test ! -s conftest.err'
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; } &&
23727 { ac_try='test -s conftest.$ac_objext'
23728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); }; }; then
23733 gdb_cv_func_sigsetjmp=yes
23734else
23735 echo "$as_me: failed program was:" >&5
23736sed 's/^/| /' conftest.$ac_ext >&5
23737
23738gdb_cv_func_sigsetjmp=no
23739fi
23740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23741fi
23742echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
23743echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
23744if test $gdb_cv_func_sigsetjmp = yes; then
23745
23746cat >>confdefs.h <<\_ACEOF
23747#define HAVE_SIGSETJMP 1
23748_ACEOF
23749
23750fi
23751
23752# Assume we'll default to using the included libiberty regex.
23753gdb_use_included_regex=yes
23754
23755# However, if the system regex is GNU regex, then default to *not*
23756# using the included regex.
23757echo "$as_me:$LINENO: checking for GNU regex" >&5
23758echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
23759if test "${gdb_cv_have_gnu_regex+set}" = set; then
23760 echo $ECHO_N "(cached) $ECHO_C" >&6
23761else
23762 cat >conftest.$ac_ext <<_ACEOF
23763/* confdefs.h. */
23764_ACEOF
23765cat confdefs.h >>conftest.$ac_ext
23766cat >>conftest.$ac_ext <<_ACEOF
23767/* end confdefs.h. */
23768#include <gnu-versions.h>
23769int
23770main ()
23771{
23772#define REGEX_INTERFACE_VERSION 1
23773#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
23774# error "Version mismatch"
23775#endif
23776 ;
23777 return 0;
23778}
23779_ACEOF
23780rm -f conftest.$ac_objext
23781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23782 (eval $ac_compile) 2>conftest.er1
23783 ac_status=$?
23784 grep -v '^ *+' conftest.er1 >conftest.err
23785 rm -f conftest.er1
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } &&
23789 { ac_try='test -z "$ac_c_werror_flag"
23790 || test ! -s conftest.err'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; } &&
23796 { ac_try='test -s conftest.$ac_objext'
23797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798 (eval $ac_try) 2>&5
23799 ac_status=$?
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; }; then
23802 gdb_cv_have_gnu_regex=yes
23803else
23804 echo "$as_me: failed program was:" >&5
23805sed 's/^/| /' conftest.$ac_ext >&5
23806
23807gdb_cv_have_gnu_regex=no
23808fi
23809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23810fi
23811echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
23812echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
23813if test $gdb_cv_have_gnu_regex = yes; then
23814 gdb_use_included_regex=no
23815fi
23816
23817
23818# Check whether --with-included-regex or --without-included-regex was given.
23819if test "${with_included_regex+set}" = set; then
23820 withval="$with_included_regex"
23821 gdb_with_regex=$withval
23822else
23823 gdb_with_regex=$gdb_use_included_regex
23824fi;
23825if test "$gdb_with_regex" = yes; then
23826
23827cat >>confdefs.h <<\_ACEOF
23828#define USE_INCLUDED_REGEX 1
23829_ACEOF
23830
23831fi
23832
23833# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
23834echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
23835echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
23836if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
23837 echo $ECHO_N "(cached) $ECHO_C" >&6
23838else
23839 cat >conftest.$ac_ext <<_ACEOF
23840/* confdefs.h. */
23841_ACEOF
23842cat confdefs.h >>conftest.$ac_ext
23843cat >>conftest.$ac_ext <<_ACEOF
23844/* end confdefs.h. */
23845#include <sys/param.h>
23846#include <sys/proc.h>
23847
23848
23849int
23850main ()
23851{
23852static struct thread ac_aggr;
23853if (ac_aggr.td_pcb)
23854return 0;
23855 ;
23856 return 0;
23857}
23858_ACEOF
23859rm -f conftest.$ac_objext
23860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23861 (eval $ac_compile) 2>conftest.er1
23862 ac_status=$?
23863 grep -v '^ *+' conftest.er1 >conftest.err
23864 rm -f conftest.er1
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } &&
23868 { ac_try='test -z "$ac_c_werror_flag"
23869 || test ! -s conftest.err'
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; } &&
23875 { ac_try='test -s conftest.$ac_objext'
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; }; then
23881 ac_cv_member_struct_thread_td_pcb=yes
23882else
23883 echo "$as_me: failed program was:" >&5
23884sed 's/^/| /' conftest.$ac_ext >&5
23885
23886cat >conftest.$ac_ext <<_ACEOF
23887/* confdefs.h. */
23888_ACEOF
23889cat confdefs.h >>conftest.$ac_ext
23890cat >>conftest.$ac_ext <<_ACEOF
23891/* end confdefs.h. */
23892#include <sys/param.h>
23893#include <sys/proc.h>
23894
23895
23896int
23897main ()
23898{
23899static struct thread ac_aggr;
23900if (sizeof ac_aggr.td_pcb)
23901return 0;
23902 ;
23903 return 0;
23904}
23905_ACEOF
23906rm -f conftest.$ac_objext
23907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23908 (eval $ac_compile) 2>conftest.er1
23909 ac_status=$?
23910 grep -v '^ *+' conftest.er1 >conftest.err
23911 rm -f conftest.er1
23912 cat conftest.err >&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } &&
23915 { ac_try='test -z "$ac_c_werror_flag"
23916 || test ! -s conftest.err'
23917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918 (eval $ac_try) 2>&5
23919 ac_status=$?
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); }; } &&
23922 { ac_try='test -s conftest.$ac_objext'
23923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23924 (eval $ac_try) 2>&5
23925 ac_status=$?
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); }; }; then
23928 ac_cv_member_struct_thread_td_pcb=yes
23929else
23930 echo "$as_me: failed program was:" >&5
23931sed 's/^/| /' conftest.$ac_ext >&5
23932
23933ac_cv_member_struct_thread_td_pcb=no
23934fi
23935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23936fi
23937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23938fi
23939echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
23940echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
23941if test $ac_cv_member_struct_thread_td_pcb = yes; then
23942
23943cat >>confdefs.h <<_ACEOF
23944#define HAVE_STRUCT_THREAD_TD_PCB 1
23945_ACEOF
23946
23947
23948fi
23949
23950
23951# See if <sys/lwp.h> defines `struct lwp`.
23952echo "$as_me:$LINENO: checking for struct lwp" >&5
23953echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
23954if test "${gdb_cv_struct_lwp+set}" = set; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23956else
23957 cat >conftest.$ac_ext <<_ACEOF
23958/* confdefs.h. */
23959_ACEOF
23960cat confdefs.h >>conftest.$ac_ext
23961cat >>conftest.$ac_ext <<_ACEOF
23962/* end confdefs.h. */
23963#include <sys/param.h>
23964#include <sys/lwp.h>
23965int
23966main ()
23967{
23968struct lwp l;
23969 ;
23970 return 0;
23971}
23972_ACEOF
23973rm -f conftest.$ac_objext
23974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23975 (eval $ac_compile) 2>conftest.er1
23976 ac_status=$?
23977 grep -v '^ *+' conftest.er1 >conftest.err
23978 rm -f conftest.er1
23979 cat conftest.err >&5
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); } &&
23982 { ac_try='test -z "$ac_c_werror_flag"
23983 || test ! -s conftest.err'
23984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23985 (eval $ac_try) 2>&5
23986 ac_status=$?
23987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988 (exit $ac_status); }; } &&
23989 { ac_try='test -s conftest.$ac_objext'
23990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23991 (eval $ac_try) 2>&5
23992 ac_status=$?
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; }; then
23995 gdb_cv_struct_lwp=yes
23996else
23997 echo "$as_me: failed program was:" >&5
23998sed 's/^/| /' conftest.$ac_ext >&5
23999
24000gdb_cv_struct_lwp=no
24001fi
24002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24003fi
24004echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
24005echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
24006if test $gdb_cv_struct_lwp = yes; then
24007
24008cat >>confdefs.h <<\_ACEOF
24009#define HAVE_STRUCT_LWP 1
24010_ACEOF
24011
24012fi
24013
24014# See if <machine/reg.h> degines `struct reg'.
24015echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
24016echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
24017if test "${gdb_cv_struct_reg+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24019else
24020 cat >conftest.$ac_ext <<_ACEOF
24021/* confdefs.h. */
24022_ACEOF
24023cat confdefs.h >>conftest.$ac_ext
24024cat >>conftest.$ac_ext <<_ACEOF
24025/* end confdefs.h. */
24026#include <sys/types.h>
24027#include <machine/reg.h>
24028int
24029main ()
24030{
24031struct reg r;
24032 ;
24033 return 0;
24034}
24035_ACEOF
24036rm -f conftest.$ac_objext
24037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24038 (eval $ac_compile) 2>conftest.er1
24039 ac_status=$?
24040 grep -v '^ *+' conftest.er1 >conftest.err
24041 rm -f conftest.er1
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } &&
24045 { ac_try='test -z "$ac_c_werror_flag"
24046 || test ! -s conftest.err'
24047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24048 (eval $ac_try) 2>&5
24049 ac_status=$?
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); }; } &&
24052 { ac_try='test -s conftest.$ac_objext'
24053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054 (eval $ac_try) 2>&5
24055 ac_status=$?
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; }; then
24058 gdb_cv_struct_reg=yes
24059else
24060 echo "$as_me: failed program was:" >&5
24061sed 's/^/| /' conftest.$ac_ext >&5
24062
24063gdb_cv_struct_reg=no
24064fi
24065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24066fi
24067echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
24068echo "${ECHO_T}$gdb_cv_struct_reg" >&6
24069if test $gdb_cv_struct_reg = yes; then
24070
24071cat >>confdefs.h <<\_ACEOF
24072#define HAVE_STRUCT_REG 1
24073_ACEOF
24074
24075fi
24076
24077# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
24078# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
24079echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
24080echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
24081if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
24082 echo $ECHO_N "(cached) $ECHO_C" >&6
24083else
24084 cat >conftest.$ac_ext <<_ACEOF
24085/* confdefs.h. */
24086_ACEOF
24087cat confdefs.h >>conftest.$ac_ext
24088cat >>conftest.$ac_ext <<_ACEOF
24089/* end confdefs.h. */
24090#include <machine/reg.h>
24091
24092int
24093main ()
24094{
24095static struct reg ac_aggr;
24096if (ac_aggr.r_fs)
24097return 0;
24098 ;
24099 return 0;
24100}
24101_ACEOF
24102rm -f conftest.$ac_objext
24103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24104 (eval $ac_compile) 2>conftest.er1
24105 ac_status=$?
24106 grep -v '^ *+' conftest.er1 >conftest.err
24107 rm -f conftest.er1
24108 cat conftest.err >&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } &&
24111 { ac_try='test -z "$ac_c_werror_flag"
24112 || test ! -s conftest.err'
24113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114 (eval $ac_try) 2>&5
24115 ac_status=$?
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); }; } &&
24118 { ac_try='test -s conftest.$ac_objext'
24119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }; }; then
24124 ac_cv_member_struct_reg_r_fs=yes
24125else
24126 echo "$as_me: failed program was:" >&5
24127sed 's/^/| /' conftest.$ac_ext >&5
24128
24129cat >conftest.$ac_ext <<_ACEOF
24130/* confdefs.h. */
24131_ACEOF
24132cat confdefs.h >>conftest.$ac_ext
24133cat >>conftest.$ac_ext <<_ACEOF
24134/* end confdefs.h. */
24135#include <machine/reg.h>
24136
24137int
24138main ()
24139{
24140static struct reg ac_aggr;
24141if (sizeof ac_aggr.r_fs)
24142return 0;
24143 ;
24144 return 0;
24145}
24146_ACEOF
24147rm -f conftest.$ac_objext
24148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24149 (eval $ac_compile) 2>conftest.er1
24150 ac_status=$?
24151 grep -v '^ *+' conftest.er1 >conftest.err
24152 rm -f conftest.er1
24153 cat conftest.err >&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); } &&
24156 { ac_try='test -z "$ac_c_werror_flag"
24157 || test ! -s conftest.err'
24158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159 (eval $ac_try) 2>&5
24160 ac_status=$?
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); }; } &&
24163 { ac_try='test -s conftest.$ac_objext'
24164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165 (eval $ac_try) 2>&5
24166 ac_status=$?
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); }; }; then
24169 ac_cv_member_struct_reg_r_fs=yes
24170else
24171 echo "$as_me: failed program was:" >&5
24172sed 's/^/| /' conftest.$ac_ext >&5
24173
24174ac_cv_member_struct_reg_r_fs=no
24175fi
24176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24177fi
24178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24179fi
24180echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
24181echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
24182if test $ac_cv_member_struct_reg_r_fs = yes; then
24183
24184cat >>confdefs.h <<_ACEOF
24185#define HAVE_STRUCT_REG_R_FS 1
24186_ACEOF
24187
24188
24189fi
24190echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
24191echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
24192if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
24193 echo $ECHO_N "(cached) $ECHO_C" >&6
24194else
24195 cat >conftest.$ac_ext <<_ACEOF
24196/* confdefs.h. */
24197_ACEOF
24198cat confdefs.h >>conftest.$ac_ext
24199cat >>conftest.$ac_ext <<_ACEOF
24200/* end confdefs.h. */
24201#include <machine/reg.h>
24202
24203int
24204main ()
24205{
24206static struct reg ac_aggr;
24207if (ac_aggr.r_gs)
24208return 0;
24209 ;
24210 return 0;
24211}
24212_ACEOF
24213rm -f conftest.$ac_objext
24214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24215 (eval $ac_compile) 2>conftest.er1
24216 ac_status=$?
24217 grep -v '^ *+' conftest.er1 >conftest.err
24218 rm -f conftest.er1
24219 cat conftest.err >&5
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); } &&
24222 { ac_try='test -z "$ac_c_werror_flag"
24223 || test ! -s conftest.err'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; } &&
24229 { ac_try='test -s conftest.$ac_objext'
24230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231 (eval $ac_try) 2>&5
24232 ac_status=$?
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); }; }; then
24235 ac_cv_member_struct_reg_r_gs=yes
24236else
24237 echo "$as_me: failed program was:" >&5
24238sed 's/^/| /' conftest.$ac_ext >&5
24239
24240cat >conftest.$ac_ext <<_ACEOF
24241/* confdefs.h. */
24242_ACEOF
24243cat confdefs.h >>conftest.$ac_ext
24244cat >>conftest.$ac_ext <<_ACEOF
24245/* end confdefs.h. */
24246#include <machine/reg.h>
24247
24248int
24249main ()
24250{
24251static struct reg ac_aggr;
24252if (sizeof ac_aggr.r_gs)
24253return 0;
24254 ;
24255 return 0;
24256}
24257_ACEOF
24258rm -f conftest.$ac_objext
24259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24260 (eval $ac_compile) 2>conftest.er1
24261 ac_status=$?
24262 grep -v '^ *+' conftest.er1 >conftest.err
24263 rm -f conftest.er1
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } &&
24267 { ac_try='test -z "$ac_c_werror_flag"
24268 || test ! -s conftest.err'
24269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24270 (eval $ac_try) 2>&5
24271 ac_status=$?
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; } &&
24274 { ac_try='test -s conftest.$ac_objext'
24275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276 (eval $ac_try) 2>&5
24277 ac_status=$?
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; }; then
24280 ac_cv_member_struct_reg_r_gs=yes
24281else
24282 echo "$as_me: failed program was:" >&5
24283sed 's/^/| /' conftest.$ac_ext >&5
24284
24285ac_cv_member_struct_reg_r_gs=no
24286fi
24287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24288fi
24289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24290fi
24291echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
24292echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
24293if test $ac_cv_member_struct_reg_r_gs = yes; then
24294
24295cat >>confdefs.h <<_ACEOF
24296#define HAVE_STRUCT_REG_R_GS 1
24297_ACEOF
24298
24299
24300fi
24301
24302
24303# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
24304echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
24305echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
24306if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
24308else
24309 cat >conftest.$ac_ext <<_ACEOF
24310/* confdefs.h. */
24311_ACEOF
24312cat confdefs.h >>conftest.$ac_ext
24313cat >>conftest.$ac_ext <<_ACEOF
24314/* end confdefs.h. */
24315#include <sys/ptrace.h>
24316int
24317main ()
24318{
24319PTRACE_GETREGS;
24320 ;
24321 return 0;
24322}
24323_ACEOF
24324rm -f conftest.$ac_objext
24325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24326 (eval $ac_compile) 2>conftest.er1
24327 ac_status=$?
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } &&
24333 { ac_try='test -z "$ac_c_werror_flag"
24334 || test ! -s conftest.err'
24335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; } &&
24340 { ac_try='test -s conftest.$ac_objext'
24341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24343 ac_status=$?
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; }; then
24346 gdb_cv_have_ptrace_getregs=yes
24347else
24348 echo "$as_me: failed program was:" >&5
24349sed 's/^/| /' conftest.$ac_ext >&5
24350
24351gdb_cv_have_ptrace_getregs=no
24352fi
24353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24354fi
24355
24356echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
24357echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
24358if test $gdb_cv_have_ptrace_getregs = yes; then
24359
24360cat >>confdefs.h <<\_ACEOF
24361#define HAVE_PTRACE_GETREGS 1
24362_ACEOF
24363
24364fi
24365
24366# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
24367echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
24368echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
24369if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
24370 echo $ECHO_N "(cached) $ECHO_C" >&6
24371else
24372 cat >conftest.$ac_ext <<_ACEOF
24373/* confdefs.h. */
24374_ACEOF
24375cat confdefs.h >>conftest.$ac_ext
24376cat >>conftest.$ac_ext <<_ACEOF
24377/* end confdefs.h. */
24378#include <sys/ptrace.h>
24379int
24380main ()
24381{
24382PTRACE_GETFPXREGS;
24383 ;
24384 return 0;
24385}
24386_ACEOF
24387rm -f conftest.$ac_objext
24388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24389 (eval $ac_compile) 2>conftest.er1
24390 ac_status=$?
24391 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1
24393 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
24396 { ac_try='test -z "$ac_c_werror_flag"
24397 || test ! -s conftest.err'
24398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399 (eval $ac_try) 2>&5
24400 ac_status=$?
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); }; } &&
24403 { ac_try='test -s conftest.$ac_objext'
24404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24405 (eval $ac_try) 2>&5
24406 ac_status=$?
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); }; }; then
24409 gdb_cv_have_ptrace_getfpxregs=yes
24410else
24411 echo "$as_me: failed program was:" >&5
24412sed 's/^/| /' conftest.$ac_ext >&5
24413
24414gdb_cv_have_ptrace_getfpxregs=no
24415fi
24416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24417fi
24418
24419echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
24420echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
24421if test $gdb_cv_have_ptrace_getfpxregs = yes; then
24422
24423cat >>confdefs.h <<\_ACEOF
24424#define HAVE_PTRACE_GETFPXREGS 1
24425_ACEOF
24426
24427fi
24428
24429# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
24430echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
24431echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
24432if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24434else
24435 cat >conftest.$ac_ext <<_ACEOF
24436/* confdefs.h. */
24437_ACEOF
24438cat confdefs.h >>conftest.$ac_ext
24439cat >>conftest.$ac_ext <<_ACEOF
24440/* end confdefs.h. */
24441#include <sys/types.h>
24442#include <sys/ptrace.h>
24443int
24444main ()
24445{
24446PT_GETDBREGS;
24447 ;
24448 return 0;
24449}
24450_ACEOF
24451rm -f conftest.$ac_objext
24452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24453 (eval $ac_compile) 2>conftest.er1
24454 ac_status=$?
24455 grep -v '^ *+' conftest.er1 >conftest.err
24456 rm -f conftest.er1
24457 cat conftest.err >&5
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); } &&
24460 { ac_try='test -z "$ac_c_werror_flag"
24461 || test ! -s conftest.err'
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24464 ac_status=$?
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; } &&
24467 { ac_try='test -s conftest.$ac_objext'
24468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; }; then
24473 gdb_cv_have_pt_getdbregs=yes
24474else
24475 echo "$as_me: failed program was:" >&5
24476sed 's/^/| /' conftest.$ac_ext >&5
24477
24478gdb_cv_have_pt_getdbregs=no
24479fi
24480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24481fi
24482
24483echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
24484echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
24485if test $gdb_cv_have_pt_getdbregs = yes; then
24486
24487cat >>confdefs.h <<\_ACEOF
24488#define HAVE_PT_GETDBREGS 1
24489_ACEOF
24490
24491fi
24492
24493# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
24494echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
24495echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
24496if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
24497 echo $ECHO_N "(cached) $ECHO_C" >&6
24498else
24499 cat >conftest.$ac_ext <<_ACEOF
24500/* confdefs.h. */
24501_ACEOF
24502cat confdefs.h >>conftest.$ac_ext
24503cat >>conftest.$ac_ext <<_ACEOF
24504/* end confdefs.h. */
24505#include <sys/types.h>
24506#include <sys/ptrace.h>
24507int
24508main ()
24509{
24510PT_GETXMMREGS;
24511 ;
24512 return 0;
24513}
24514_ACEOF
24515rm -f conftest.$ac_objext
24516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24517 (eval $ac_compile) 2>conftest.er1
24518 ac_status=$?
24519 grep -v '^ *+' conftest.er1 >conftest.err
24520 rm -f conftest.er1
24521 cat conftest.err >&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); } &&
24524 { ac_try='test -z "$ac_c_werror_flag"
24525 || test ! -s conftest.err'
24526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24527 (eval $ac_try) 2>&5
24528 ac_status=$?
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); }; } &&
24531 { ac_try='test -s conftest.$ac_objext'
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; }; then
24537 gdb_cv_have_pt_getxmmregs=yes
24538else
24539 echo "$as_me: failed program was:" >&5
24540sed 's/^/| /' conftest.$ac_ext >&5
24541
24542gdb_cv_have_pt_getxmmregs=no
24543fi
24544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24545fi
24546
24547echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
24548echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
24549if test $gdb_cv_have_pt_getxmmregs = yes; then
24550
24551cat >>confdefs.h <<\_ACEOF
24552#define HAVE_PT_GETXMMREGS 1
24553_ACEOF
24554
24555fi
24556
24557# Detect which type of /proc is in use, such as for Unixware or Solaris.
24558
24559if test "${target}" = "${host}"; then
24560 case "${host}" in
24561 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
24562
24563cat >>confdefs.h <<\_ACEOF
24564#define NEW_PROC_API 1
24565_ACEOF
24566
24567 ;;
24568 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
24569
24570cat >>confdefs.h <<\_ACEOF
24571#define NEW_PROC_API 1
24572_ACEOF
24573
24574 ;;
24575 mips-sgi-irix5*)
24576 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
24577
24578cat >>confdefs.h <<\_ACEOF
24579#define _KMEMUSER 1
24580_ACEOF
24581
24582 ;;
24583 esac
24584fi
24585
24586if test "$ac_cv_header_sys_procfs_h" = yes; then
24587 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
24588echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
24589 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
24590 echo $ECHO_N "(cached) $ECHO_C" >&6
24591else
24592 cat >conftest.$ac_ext <<_ACEOF
24593/* confdefs.h. */
24594_ACEOF
24595cat confdefs.h >>conftest.$ac_ext
24596cat >>conftest.$ac_ext <<_ACEOF
24597/* end confdefs.h. */
24598
24599#define _SYSCALL32
24600#include <sys/procfs.h>
24601int
24602main ()
24603{
24604pstatus_t avar
24605 ;
24606 return 0;
24607}
24608_ACEOF
24609rm -f conftest.$ac_objext
24610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24611 (eval $ac_compile) 2>conftest.er1
24612 ac_status=$?
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } &&
24618 { ac_try='test -z "$ac_c_werror_flag"
24619 || test ! -s conftest.err'
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; } &&
24625 { ac_try='test -s conftest.$ac_objext'
24626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); }; }; then
24631 bfd_cv_have_sys_procfs_type_pstatus_t=yes
24632else
24633 echo "$as_me: failed program was:" >&5
24634sed 's/^/| /' conftest.$ac_ext >&5
24635
24636bfd_cv_have_sys_procfs_type_pstatus_t=no
24637
24638fi
24639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24640fi
24641
24642 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
24643
24644cat >>confdefs.h <<\_ACEOF
24645#define HAVE_PSTATUS_T 1
24646_ACEOF
24647
24648 fi
24649 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
24650echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
24651
24652 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
24653echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
24654 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24656else
24657 cat >conftest.$ac_ext <<_ACEOF
24658/* confdefs.h. */
24659_ACEOF
24660cat confdefs.h >>conftest.$ac_ext
24661cat >>conftest.$ac_ext <<_ACEOF
24662/* end confdefs.h. */
24663
24664#define _SYSCALL32
24665#include <sys/procfs.h>
24666int
24667main ()
24668{
24669prrun_t avar
24670 ;
24671 return 0;
24672}
24673_ACEOF
24674rm -f conftest.$ac_objext
24675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24676 (eval $ac_compile) 2>conftest.er1
24677 ac_status=$?
24678 grep -v '^ *+' conftest.er1 >conftest.err
24679 rm -f conftest.er1
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } &&
24683 { ac_try='test -z "$ac_c_werror_flag"
24684 || test ! -s conftest.err'
24685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; } &&
24690 { ac_try='test -s conftest.$ac_objext'
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; }; then
24696 bfd_cv_have_sys_procfs_type_prrun_t=yes
24697else
24698 echo "$as_me: failed program was:" >&5
24699sed 's/^/| /' conftest.$ac_ext >&5
24700
24701bfd_cv_have_sys_procfs_type_prrun_t=no
24702
24703fi
24704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24705fi
24706
24707 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
24708
24709cat >>confdefs.h <<\_ACEOF
24710#define HAVE_PRRUN_T 1
24711_ACEOF
24712
24713 fi
24714 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
24715echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
24716
24717 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
24718echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
24719 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24721else
24722 cat >conftest.$ac_ext <<_ACEOF
24723/* confdefs.h. */
24724_ACEOF
24725cat confdefs.h >>conftest.$ac_ext
24726cat >>conftest.$ac_ext <<_ACEOF
24727/* end confdefs.h. */
24728
24729#define _SYSCALL32
24730#include <sys/procfs.h>
24731int
24732main ()
24733{
24734gregset_t avar
24735 ;
24736 return 0;
24737}
24738_ACEOF
24739rm -f conftest.$ac_objext
24740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24741 (eval $ac_compile) 2>conftest.er1
24742 ac_status=$?
24743 grep -v '^ *+' conftest.er1 >conftest.err
24744 rm -f conftest.er1
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } &&
24748 { ac_try='test -z "$ac_c_werror_flag"
24749 || test ! -s conftest.err'
24750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751 (eval $ac_try) 2>&5
24752 ac_status=$?
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); }; } &&
24755 { ac_try='test -s conftest.$ac_objext'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24758 ac_status=$?
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; }; then
24761 bfd_cv_have_sys_procfs_type_gregset_t=yes
24762else
24763 echo "$as_me: failed program was:" >&5
24764sed 's/^/| /' conftest.$ac_ext >&5
24765
24766bfd_cv_have_sys_procfs_type_gregset_t=no
24767
24768fi
24769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24770fi
24771
24772 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
24773
24774cat >>confdefs.h <<\_ACEOF
24775#define HAVE_GREGSET_T 1
24776_ACEOF
24777
24778 fi
24779 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
24780echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
24781
24782 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
24783echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
24784 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
24785 echo $ECHO_N "(cached) $ECHO_C" >&6
24786else
24787 cat >conftest.$ac_ext <<_ACEOF
24788/* confdefs.h. */
24789_ACEOF
24790cat confdefs.h >>conftest.$ac_ext
24791cat >>conftest.$ac_ext <<_ACEOF
24792/* end confdefs.h. */
24793
24794#define _SYSCALL32
24795#include <sys/procfs.h>
24796int
24797main ()
24798{
24799fpregset_t avar
24800 ;
24801 return 0;
24802}
24803_ACEOF
24804rm -f conftest.$ac_objext
24805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24806 (eval $ac_compile) 2>conftest.er1
24807 ac_status=$?
24808 grep -v '^ *+' conftest.er1 >conftest.err
24809 rm -f conftest.er1
24810 cat conftest.err >&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } &&
24813 { ac_try='test -z "$ac_c_werror_flag"
24814 || test ! -s conftest.err'
24815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; } &&
24820 { ac_try='test -s conftest.$ac_objext'
24821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822 (eval $ac_try) 2>&5
24823 ac_status=$?
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); }; }; then
24826 bfd_cv_have_sys_procfs_type_fpregset_t=yes
24827else
24828 echo "$as_me: failed program was:" >&5
24829sed 's/^/| /' conftest.$ac_ext >&5
24830
24831bfd_cv_have_sys_procfs_type_fpregset_t=no
24832
24833fi
24834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24835fi
24836
24837 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
24838
24839cat >>confdefs.h <<\_ACEOF
24840#define HAVE_FPREGSET_T 1
24841_ACEOF
24842
24843 fi
24844 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
24845echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
24846
24847 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
24848echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
24849 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
24850 echo $ECHO_N "(cached) $ECHO_C" >&6
24851else
24852 cat >conftest.$ac_ext <<_ACEOF
24853/* confdefs.h. */
24854_ACEOF
24855cat confdefs.h >>conftest.$ac_ext
24856cat >>conftest.$ac_ext <<_ACEOF
24857/* end confdefs.h. */
24858
24859#define _SYSCALL32
24860#include <sys/procfs.h>
24861int
24862main ()
24863{
24864prgregset_t avar
24865 ;
24866 return 0;
24867}
24868_ACEOF
24869rm -f conftest.$ac_objext
24870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24871 (eval $ac_compile) 2>conftest.er1
24872 ac_status=$?
24873 grep -v '^ *+' conftest.er1 >conftest.err
24874 rm -f conftest.er1
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } &&
24878 { ac_try='test -z "$ac_c_werror_flag"
24879 || test ! -s conftest.err'
24880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881 (eval $ac_try) 2>&5
24882 ac_status=$?
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; } &&
24885 { ac_try='test -s conftest.$ac_objext'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; }; then
24891 bfd_cv_have_sys_procfs_type_prgregset_t=yes
24892else
24893 echo "$as_me: failed program was:" >&5
24894sed 's/^/| /' conftest.$ac_ext >&5
24895
24896bfd_cv_have_sys_procfs_type_prgregset_t=no
24897
24898fi
24899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24900fi
24901
24902 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
24903
24904cat >>confdefs.h <<\_ACEOF
24905#define HAVE_PRGREGSET_T 1
24906_ACEOF
24907
24908 fi
24909 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
24910echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
24911
24912 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
24913echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
24914 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
24915 echo $ECHO_N "(cached) $ECHO_C" >&6
24916else
24917 cat >conftest.$ac_ext <<_ACEOF
24918/* confdefs.h. */
24919_ACEOF
24920cat confdefs.h >>conftest.$ac_ext
24921cat >>conftest.$ac_ext <<_ACEOF
24922/* end confdefs.h. */
24923
24924#define _SYSCALL32
24925#include <sys/procfs.h>
24926int
24927main ()
24928{
24929prfpregset_t avar
24930 ;
24931 return 0;
24932}
24933_ACEOF
24934rm -f conftest.$ac_objext
24935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24936 (eval $ac_compile) 2>conftest.er1
24937 ac_status=$?
24938 grep -v '^ *+' conftest.er1 >conftest.err
24939 rm -f conftest.er1
24940 cat conftest.err >&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } &&
24943 { ac_try='test -z "$ac_c_werror_flag"
24944 || test ! -s conftest.err'
24945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946 (eval $ac_try) 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; } &&
24950 { ac_try='test -s conftest.$ac_objext'
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
24956 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
24957else
24958 echo "$as_me: failed program was:" >&5
24959sed 's/^/| /' conftest.$ac_ext >&5
24960
24961bfd_cv_have_sys_procfs_type_prfpregset_t=no
24962
24963fi
24964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24965fi
24966
24967 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
24968
24969cat >>confdefs.h <<\_ACEOF
24970#define HAVE_PRFPREGSET_T 1
24971_ACEOF
24972
24973 fi
24974 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
24975echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
24976
24977 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
24978echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
24979 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
24980 echo $ECHO_N "(cached) $ECHO_C" >&6
24981else
24982 cat >conftest.$ac_ext <<_ACEOF
24983/* confdefs.h. */
24984_ACEOF
24985cat confdefs.h >>conftest.$ac_ext
24986cat >>conftest.$ac_ext <<_ACEOF
24987/* end confdefs.h. */
24988
24989#define _SYSCALL32
24990#include <sys/procfs.h>
24991int
24992main ()
24993{
24994prgregset32_t avar
24995 ;
24996 return 0;
24997}
24998_ACEOF
24999rm -f conftest.$ac_objext
25000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25001 (eval $ac_compile) 2>conftest.er1
25002 ac_status=$?
25003 grep -v '^ *+' conftest.er1 >conftest.err
25004 rm -f conftest.er1
25005 cat conftest.err >&5
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } &&
25008 { ac_try='test -z "$ac_c_werror_flag"
25009 || test ! -s conftest.err'
25010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011 (eval $ac_try) 2>&5
25012 ac_status=$?
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; } &&
25015 { ac_try='test -s conftest.$ac_objext'
25016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017 (eval $ac_try) 2>&5
25018 ac_status=$?
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; }; then
25021 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
25022else
25023 echo "$as_me: failed program was:" >&5
25024sed 's/^/| /' conftest.$ac_ext >&5
25025
25026bfd_cv_have_sys_procfs_type_prgregset32_t=no
25027
25028fi
25029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25030fi
25031
25032 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
25033
25034cat >>confdefs.h <<\_ACEOF
25035#define HAVE_PRGREGSET32_T 1
25036_ACEOF
25037
25038 fi
25039 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
25040echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
25041
25042 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
25043echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
25044 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
25045 echo $ECHO_N "(cached) $ECHO_C" >&6
25046else
25047 cat >conftest.$ac_ext <<_ACEOF
25048/* confdefs.h. */
25049_ACEOF
25050cat confdefs.h >>conftest.$ac_ext
25051cat >>conftest.$ac_ext <<_ACEOF
25052/* end confdefs.h. */
25053
25054#define _SYSCALL32
25055#include <sys/procfs.h>
25056int
25057main ()
25058{
25059prfpregset32_t avar
25060 ;
25061 return 0;
25062}
25063_ACEOF
25064rm -f conftest.$ac_objext
25065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25066 (eval $ac_compile) 2>conftest.er1
25067 ac_status=$?
25068 grep -v '^ *+' conftest.er1 >conftest.err
25069 rm -f conftest.er1
25070 cat conftest.err >&5
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); } &&
25073 { ac_try='test -z "$ac_c_werror_flag"
25074 || test ! -s conftest.err'
25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; } &&
25080 { ac_try='test -s conftest.$ac_objext'
25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; }; then
25086 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
25087else
25088 echo "$as_me: failed program was:" >&5
25089sed 's/^/| /' conftest.$ac_ext >&5
25090
25091bfd_cv_have_sys_procfs_type_prfpregset32_t=no
25092
25093fi
25094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25095fi
25096
25097 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
25098
25099cat >>confdefs.h <<\_ACEOF
25100#define HAVE_PRFPREGSET32_T 1
25101_ACEOF
25102
25103 fi
25104 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
25105echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
25106
25107 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
25108echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
25109 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
25110 echo $ECHO_N "(cached) $ECHO_C" >&6
25111else
25112 cat >conftest.$ac_ext <<_ACEOF
25113/* confdefs.h. */
25114_ACEOF
25115cat confdefs.h >>conftest.$ac_ext
25116cat >>conftest.$ac_ext <<_ACEOF
25117/* end confdefs.h. */
25118
25119#define _SYSCALL32
25120#include <sys/procfs.h>
25121int
25122main ()
25123{
25124lwpid_t avar
25125 ;
25126 return 0;
25127}
25128_ACEOF
25129rm -f conftest.$ac_objext
25130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25131 (eval $ac_compile) 2>conftest.er1
25132 ac_status=$?
25133 grep -v '^ *+' conftest.er1 >conftest.err
25134 rm -f conftest.er1
25135 cat conftest.err >&5
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); } &&
25138 { ac_try='test -z "$ac_c_werror_flag"
25139 || test ! -s conftest.err'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; } &&
25145 { ac_try='test -s conftest.$ac_objext'
25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147 (eval $ac_try) 2>&5
25148 ac_status=$?
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25151 bfd_cv_have_sys_procfs_type_lwpid_t=yes
25152else
25153 echo "$as_me: failed program was:" >&5
25154sed 's/^/| /' conftest.$ac_ext >&5
25155
25156bfd_cv_have_sys_procfs_type_lwpid_t=no
25157
25158fi
25159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25160fi
25161
25162 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
25163
25164cat >>confdefs.h <<\_ACEOF
25165#define HAVE_LWPID_T 1
25166_ACEOF
25167
25168 fi
25169 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
25170echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
25171
25172 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
25173echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
25174 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25176else
25177 cat >conftest.$ac_ext <<_ACEOF
25178/* confdefs.h. */
25179_ACEOF
25180cat confdefs.h >>conftest.$ac_ext
25181cat >>conftest.$ac_ext <<_ACEOF
25182/* end confdefs.h. */
25183
25184#define _SYSCALL32
25185#include <sys/procfs.h>
25186int
25187main ()
25188{
25189psaddr_t avar
25190 ;
25191 return 0;
25192}
25193_ACEOF
25194rm -f conftest.$ac_objext
25195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25196 (eval $ac_compile) 2>conftest.er1
25197 ac_status=$?
25198 grep -v '^ *+' conftest.er1 >conftest.err
25199 rm -f conftest.er1
25200 cat conftest.err >&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } &&
25203 { ac_try='test -z "$ac_c_werror_flag"
25204 || test ! -s conftest.err'
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; } &&
25210 { ac_try='test -s conftest.$ac_objext'
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; }; then
25216 bfd_cv_have_sys_procfs_type_psaddr_t=yes
25217else
25218 echo "$as_me: failed program was:" >&5
25219sed 's/^/| /' conftest.$ac_ext >&5
25220
25221bfd_cv_have_sys_procfs_type_psaddr_t=no
25222
25223fi
25224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25225fi
25226
25227 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
25228
25229cat >>confdefs.h <<\_ACEOF
25230#define HAVE_PSADDR_T 1
25231_ACEOF
25232
25233 fi
25234 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
25235echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
25236
25237 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
25238echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
25239 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
25240 echo $ECHO_N "(cached) $ECHO_C" >&6
25241else
25242 cat >conftest.$ac_ext <<_ACEOF
25243/* confdefs.h. */
25244_ACEOF
25245cat confdefs.h >>conftest.$ac_ext
25246cat >>conftest.$ac_ext <<_ACEOF
25247/* end confdefs.h. */
25248
25249#define _SYSCALL32
25250#include <sys/procfs.h>
25251int
25252main ()
25253{
25254prsysent_t avar
25255 ;
25256 return 0;
25257}
25258_ACEOF
25259rm -f conftest.$ac_objext
25260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25261 (eval $ac_compile) 2>conftest.er1
25262 ac_status=$?
25263 grep -v '^ *+' conftest.er1 >conftest.err
25264 rm -f conftest.er1
25265 cat conftest.err >&5
25266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); } &&
25268 { ac_try='test -z "$ac_c_werror_flag"
25269 || test ! -s conftest.err'
25270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25271 (eval $ac_try) 2>&5
25272 ac_status=$?
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); }; } &&
25275 { ac_try='test -s conftest.$ac_objext'
25276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277 (eval $ac_try) 2>&5
25278 ac_status=$?
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); }; }; then
25281 bfd_cv_have_sys_procfs_type_prsysent_t=yes
25282else
25283 echo "$as_me: failed program was:" >&5
25284sed 's/^/| /' conftest.$ac_ext >&5
25285
25286bfd_cv_have_sys_procfs_type_prsysent_t=no
25287
25288fi
25289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25290fi
25291
25292 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
25293
25294cat >>confdefs.h <<\_ACEOF
25295#define HAVE_PRSYSENT_T 1
25296_ACEOF
25297
25298 fi
25299 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
25300echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
25301
25302 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
25303echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
25304 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
25305 echo $ECHO_N "(cached) $ECHO_C" >&6
25306else
25307 cat >conftest.$ac_ext <<_ACEOF
25308/* confdefs.h. */
25309_ACEOF
25310cat confdefs.h >>conftest.$ac_ext
25311cat >>conftest.$ac_ext <<_ACEOF
25312/* end confdefs.h. */
25313
25314#define _SYSCALL32
25315#include <sys/procfs.h>
25316int
25317main ()
25318{
25319pr_sigset_t avar
25320 ;
25321 return 0;
25322}
25323_ACEOF
25324rm -f conftest.$ac_objext
25325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25326 (eval $ac_compile) 2>conftest.er1
25327 ac_status=$?
25328 grep -v '^ *+' conftest.er1 >conftest.err
25329 rm -f conftest.er1
25330 cat conftest.err >&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } &&
25333 { ac_try='test -z "$ac_c_werror_flag"
25334 || test ! -s conftest.err'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; } &&
25340 { ac_try='test -s conftest.$ac_objext'
25341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); }; }; then
25346 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
25347else
25348 echo "$as_me: failed program was:" >&5
25349sed 's/^/| /' conftest.$ac_ext >&5
25350
25351bfd_cv_have_sys_procfs_type_pr_sigset_t=no
25352
25353fi
25354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25355fi
25356
25357 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
25358
25359cat >>confdefs.h <<\_ACEOF
25360#define HAVE_PR_SIGSET_T 1
25361_ACEOF
25362
25363 fi
25364 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
25365echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
25366
25367 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
25368echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
25369 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
25370 echo $ECHO_N "(cached) $ECHO_C" >&6
25371else
25372 cat >conftest.$ac_ext <<_ACEOF
25373/* confdefs.h. */
25374_ACEOF
25375cat confdefs.h >>conftest.$ac_ext
25376cat >>conftest.$ac_ext <<_ACEOF
25377/* end confdefs.h. */
25378
25379#define _SYSCALL32
25380#include <sys/procfs.h>
25381int
25382main ()
25383{
25384pr_sigaction64_t avar
25385 ;
25386 return 0;
25387}
25388_ACEOF
25389rm -f conftest.$ac_objext
25390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25391 (eval $ac_compile) 2>conftest.er1
25392 ac_status=$?
25393 grep -v '^ *+' conftest.er1 >conftest.err
25394 rm -f conftest.er1
25395 cat conftest.err >&5
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } &&
25398 { ac_try='test -z "$ac_c_werror_flag"
25399 || test ! -s conftest.err'
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; } &&
25405 { ac_try='test -s conftest.$ac_objext'
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25408 ac_status=$?
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
25412else
25413 echo "$as_me: failed program was:" >&5
25414sed 's/^/| /' conftest.$ac_ext >&5
25415
25416bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
25417
25418fi
25419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25420fi
25421
25422 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
25423
25424cat >>confdefs.h <<\_ACEOF
25425#define HAVE_PR_SIGACTION64_T 1
25426_ACEOF
25427
25428 fi
25429 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
25430echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
25431
25432 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
25433echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
25434 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25436else
25437 cat >conftest.$ac_ext <<_ACEOF
25438/* confdefs.h. */
25439_ACEOF
25440cat confdefs.h >>conftest.$ac_ext
25441cat >>conftest.$ac_ext <<_ACEOF
25442/* end confdefs.h. */
25443
25444#define _SYSCALL32
25445#include <sys/procfs.h>
25446int
25447main ()
25448{
25449pr_siginfo64_t avar
25450 ;
25451 return 0;
25452}
25453_ACEOF
25454rm -f conftest.$ac_objext
25455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25456 (eval $ac_compile) 2>conftest.er1
25457 ac_status=$?
25458 grep -v '^ *+' conftest.er1 >conftest.err
25459 rm -f conftest.er1
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_c_werror_flag"
25464 || test ! -s conftest.err'
25465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; } &&
25470 { ac_try='test -s conftest.$ac_objext'
25471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); }; }; then
25476 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
25477else
25478 echo "$as_me: failed program was:" >&5
25479sed 's/^/| /' conftest.$ac_ext >&5
25480
25481bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
25482
25483fi
25484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25485fi
25486
25487 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
25488
25489cat >>confdefs.h <<\_ACEOF
25490#define HAVE_PR_SIGINFO64_T 1
25491_ACEOF
25492
25493 fi
25494 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
25495echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
25496
25497
25498
25499
25500
25501 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
25502 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
25503echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
25504 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
25506else
25507 if test "$cross_compiling" = yes; then
25508 gdb_cv_prfpregset_t_broken=yes
25509else
25510 cat >conftest.$ac_ext <<_ACEOF
25511/* confdefs.h. */
25512_ACEOF
25513cat confdefs.h >>conftest.$ac_ext
25514cat >>conftest.$ac_ext <<_ACEOF
25515/* end confdefs.h. */
25516#include <sys/procfs.h>
25517 int main ()
25518 {
25519 if (sizeof (prfpregset_t) == sizeof (void *))
25520 return 1;
25521 return 0;
25522 }
25523_ACEOF
25524rm -f conftest$ac_exeext
25525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526 (eval $ac_link) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25531 (eval $ac_try) 2>&5
25532 ac_status=$?
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); }; }; then
25535 gdb_cv_prfpregset_t_broken=no
25536else
25537 echo "$as_me: program exited with status $ac_status" >&5
25538echo "$as_me: failed program was:" >&5
25539sed 's/^/| /' conftest.$ac_ext >&5
25540
25541( exit $ac_status )
25542gdb_cv_prfpregset_t_broken=yes
25543fi
25544rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25545fi
25546fi
25547
25548 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
25549echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
25550 if test $gdb_cv_prfpregset_t_broken = yes; then
25551
25552cat >>confdefs.h <<\_ACEOF
25553#define PRFPREGSET_T_BROKEN 1
25554_ACEOF
25555
25556 fi
25557 fi
25558
25559
25560 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
25561echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
25562 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25564else
25565 cat >conftest.$ac_ext <<_ACEOF
25566/* confdefs.h. */
25567_ACEOF
25568cat confdefs.h >>conftest.$ac_ext
25569cat >>conftest.$ac_ext <<_ACEOF
25570/* end confdefs.h. */
25571#include <unistd.h>
25572#include <sys/types.h>
25573#include <sys/procfs.h>
25574
25575int
25576main ()
25577{
25578
25579 int dummy;;
25580 dummy = ioctl(0, PIOCSET, &dummy);
25581
25582 ;
25583 return 0;
25584}
25585_ACEOF
25586rm -f conftest.$ac_objext
25587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25588 (eval $ac_compile) 2>conftest.er1
25589 ac_status=$?
25590 grep -v '^ *+' conftest.er1 >conftest.err
25591 rm -f conftest.er1
25592 cat conftest.err >&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } &&
25595 { ac_try='test -z "$ac_c_werror_flag"
25596 || test ! -s conftest.err'
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; } &&
25602 { ac_try='test -s conftest.$ac_objext'
25603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25604 (eval $ac_try) 2>&5
25605 ac_status=$?
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); }; }; then
25608 gdb_cv_have_procfs_piocset=yes
25609else
25610 echo "$as_me: failed program was:" >&5
25611sed 's/^/| /' conftest.$ac_ext >&5
25612
25613gdb_cv_have_procfs_piocset=no
25614fi
25615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25616fi
25617
25618 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
25619echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
25620 if test $gdb_cv_have_procfs_piocset = yes; then
25621
25622cat >>confdefs.h <<\_ACEOF
25623#define HAVE_PROCFS_PIOCSET 1
25624_ACEOF
25625
25626 fi
25627fi
25628
25629if test ${host} = ${target} ; then
25630
25631 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
25632echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
25633 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
25634 echo $ECHO_N "(cached) $ECHO_C" >&6
25635else
25636 cat >conftest.$ac_ext <<_ACEOF
25637/* confdefs.h. */
25638_ACEOF
25639cat confdefs.h >>conftest.$ac_ext
25640cat >>conftest.$ac_ext <<_ACEOF
25641/* end confdefs.h. */
25642#include <link.h>
25643int
25644main ()
25645{
25646struct link_map lm; (void) lm.l_addr;
25647 ;
25648 return 0;
25649}
25650_ACEOF
25651rm -f conftest.$ac_objext
25652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25653 (eval $ac_compile) 2>conftest.er1
25654 ac_status=$?
25655 grep -v '^ *+' conftest.er1 >conftest.err
25656 rm -f conftest.er1
25657 cat conftest.err >&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); } &&
25660 { ac_try='test -z "$ac_c_werror_flag"
25661 || test ! -s conftest.err'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } &&
25667 { ac_try='test -s conftest.$ac_objext'
25668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; }; then
25673 gdb_cv_have_struct_link_map_with_l_members=yes
25674else
25675 echo "$as_me: failed program was:" >&5
25676sed 's/^/| /' conftest.$ac_ext >&5
25677
25678gdb_cv_have_struct_link_map_with_l_members=no
25679fi
25680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25681fi
25682
25683 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
25684echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
25685 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
25686
25687cat >>confdefs.h <<\_ACEOF
25688#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
25689_ACEOF
25690
25691 fi
25692
25693
25694 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
25695echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
25696 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
25697 echo $ECHO_N "(cached) $ECHO_C" >&6
25698else
25699 cat >conftest.$ac_ext <<_ACEOF
25700/* confdefs.h. */
25701_ACEOF
25702cat confdefs.h >>conftest.$ac_ext
25703cat >>conftest.$ac_ext <<_ACEOF
25704/* end confdefs.h. */
25705#include <sys/types.h>
25706#include <link.h>
25707int
25708main ()
25709{
25710struct link_map lm; (void) lm.lm_addr;
25711 ;
25712 return 0;
25713}
25714_ACEOF
25715rm -f conftest.$ac_objext
25716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25717 (eval $ac_compile) 2>conftest.er1
25718 ac_status=$?
25719 grep -v '^ *+' conftest.er1 >conftest.err
25720 rm -f conftest.er1
25721 cat conftest.err >&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } &&
25724 { ac_try='test -z "$ac_c_werror_flag"
25725 || test ! -s conftest.err'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; } &&
25731 { ac_try='test -s conftest.$ac_objext'
25732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); }; }; then
25737 gdb_cv_have_struct_link_map_with_lm_members=yes
25738else
25739 echo "$as_me: failed program was:" >&5
25740sed 's/^/| /' conftest.$ac_ext >&5
25741
25742gdb_cv_have_struct_link_map_with_lm_members=no
25743fi
25744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25745fi
25746
25747 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
25748echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
25749 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
25750
25751cat >>confdefs.h <<\_ACEOF
25752#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
25753_ACEOF
25754
25755 fi
25756
25757
25758 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
25759echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
25760 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25762else
25763 cat >conftest.$ac_ext <<_ACEOF
25764/* confdefs.h. */
25765_ACEOF
25766cat confdefs.h >>conftest.$ac_ext
25767cat >>conftest.$ac_ext <<_ACEOF
25768/* end confdefs.h. */
25769#include <sys/types.h>
25770#ifdef HAVE_NLIST_H
25771#include <nlist.h>
25772#endif
25773#include <link.h>
25774int
25775main ()
25776{
25777struct so_map lm; (void) lm.som_addr;
25778 ;
25779 return 0;
25780}
25781_ACEOF
25782rm -f conftest.$ac_objext
25783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25784 (eval $ac_compile) 2>conftest.er1
25785 ac_status=$?
25786 grep -v '^ *+' conftest.er1 >conftest.err
25787 rm -f conftest.er1
25788 cat conftest.err >&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); } &&
25791 { ac_try='test -z "$ac_c_werror_flag"
25792 || test ! -s conftest.err'
25793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; } &&
25798 { ac_try='test -s conftest.$ac_objext'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; }; then
25804 gdb_cv_have_struct_so_map_with_som_members=yes
25805else
25806 echo "$as_me: failed program was:" >&5
25807sed 's/^/| /' conftest.$ac_ext >&5
25808
25809gdb_cv_have_struct_so_map_with_som_members=no
25810fi
25811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25812fi
25813
25814 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
25815echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
25816 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
25817
25818cat >>confdefs.h <<\_ACEOF
25819#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
25820_ACEOF
25821
25822 fi
25823
25824
25825 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
25826echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
25827 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
25828 echo $ECHO_N "(cached) $ECHO_C" >&6
25829else
25830 cat >conftest.$ac_ext <<_ACEOF
25831/* confdefs.h. */
25832_ACEOF
25833cat confdefs.h >>conftest.$ac_ext
25834cat >>conftest.$ac_ext <<_ACEOF
25835/* end confdefs.h. */
25836#define _SYSCALL32
25837#include <sys/link.h>
25838int
25839main ()
25840{
25841struct link_map32 l;
25842 ;
25843 return 0;
25844}
25845_ACEOF
25846rm -f conftest.$ac_objext
25847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25848 (eval $ac_compile) 2>conftest.er1
25849 ac_status=$?
25850 grep -v '^ *+' conftest.er1 >conftest.err
25851 rm -f conftest.er1
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } &&
25855 { ac_try='test -z "$ac_c_werror_flag"
25856 || test ! -s conftest.err'
25857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858 (eval $ac_try) 2>&5
25859 ac_status=$?
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; } &&
25862 { ac_try='test -s conftest.$ac_objext'
25863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25864 (eval $ac_try) 2>&5
25865 ac_status=$?
25866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); }; }; then
25868 gdb_cv_have_struct_link_map32=yes
25869else
25870 echo "$as_me: failed program was:" >&5
25871sed 's/^/| /' conftest.$ac_ext >&5
25872
25873gdb_cv_have_struct_link_map32=no
25874fi
25875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25876fi
25877
25878 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
25879echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
25880 if test $gdb_cv_have_struct_link_map32 = yes; then
25881
25882cat >>confdefs.h <<\_ACEOF
25883#define HAVE_STRUCT_LINK_MAP32 1
25884_ACEOF
25885
25886
25887cat >>confdefs.h <<\_ACEOF
25888#define _SYSCALL32 1
25889_ACEOF
25890
25891 fi
25892fi
25893
25894# Check if the compiler supports the `long long' type.
25895
25896echo "$as_me:$LINENO: checking for long long support in compiler" >&5
25897echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
25898if test "${gdb_cv_c_long_long+set}" = set; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25900else
25901 cat >conftest.$ac_ext <<_ACEOF
25902/* confdefs.h. */
25903_ACEOF
25904cat confdefs.h >>conftest.$ac_ext
25905cat >>conftest.$ac_ext <<_ACEOF
25906/* end confdefs.h. */
25907extern long long foo;
25908int
25909main ()
25910{
25911switch (foo & 2) { case 0: return 1; }
25912 ;
25913 return 0;
25914}
25915_ACEOF
25916rm -f conftest.$ac_objext
25917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25918 (eval $ac_compile) 2>conftest.er1
25919 ac_status=$?
25920 grep -v '^ *+' conftest.er1 >conftest.err
25921 rm -f conftest.er1
25922 cat conftest.err >&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); } &&
25925 { ac_try='test -z "$ac_c_werror_flag"
25926 || test ! -s conftest.err'
25927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928 (eval $ac_try) 2>&5
25929 ac_status=$?
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); }; } &&
25932 { ac_try='test -s conftest.$ac_objext'
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; }; then
25938 gdb_cv_c_long_long=yes
25939else
25940 echo "$as_me: failed program was:" >&5
25941sed 's/^/| /' conftest.$ac_ext >&5
25942
25943gdb_cv_c_long_long=no
25944fi
25945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25946fi
25947echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
25948echo "${ECHO_T}$gdb_cv_c_long_long" >&6
25949if test $gdb_cv_c_long_long = yes; then
25950
25951cat >>confdefs.h <<\_ACEOF
25952#define CC_HAS_LONG_LONG 1
25953_ACEOF
25954
25955fi
25956
25957# Check if the compiler and runtime support printing long longs.
25958
25959echo "$as_me:$LINENO: checking for long long support in printf" >&5
25960echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
25961if test "${gdb_cv_printf_has_long_long+set}" = set; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
25963else
25964 if test "$cross_compiling" = yes; then
25965 gdb_cv_printf_has_long_long=no
25966else
25967 cat >conftest.$ac_ext <<_ACEOF
25968/* confdefs.h. */
25969_ACEOF
25970cat confdefs.h >>conftest.$ac_ext
25971cat >>conftest.$ac_ext <<_ACEOF
25972/* end confdefs.h. */
25973$ac_includes_default
25974int
25975main ()
25976{
25977char buf[32];
25978 long long l = 0;
25979 l = (l << 16) + 0x0123;
25980 l = (l << 16) + 0x4567;
25981 l = (l << 16) + 0x89ab;
25982 l = (l << 16) + 0xcdef;
25983 sprintf (buf, "0x%016llx", l);
25984 return (strcmp ("0x0123456789abcdef", buf));
25985 ;
25986 return 0;
25987}
25988_ACEOF
25989rm -f conftest$ac_exeext
25990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25991 (eval $ac_link) 2>&5
25992 ac_status=$?
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25996 (eval $ac_try) 2>&5
25997 ac_status=$?
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); }; }; then
26000 gdb_cv_printf_has_long_long=yes
26001else
26002 echo "$as_me: program exited with status $ac_status" >&5
26003echo "$as_me: failed program was:" >&5
26004sed 's/^/| /' conftest.$ac_ext >&5
26005
26006( exit $ac_status )
26007gdb_cv_printf_has_long_long=no
26008fi
26009rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26010fi
26011fi
26012echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
26013echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
26014if test $gdb_cv_printf_has_long_long = yes; then
26015
26016cat >>confdefs.h <<\_ACEOF
26017#define PRINTF_HAS_LONG_LONG 1
26018_ACEOF
26019
26020fi
26021
26022# Check if the compiler and runtime support printing decfloats.
26023
26024echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
26025echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
26026if test "${gdb_cv_printf_has_decfloat+set}" = set; then
26027 echo $ECHO_N "(cached) $ECHO_C" >&6
26028else
26029 if test "$cross_compiling" = yes; then
26030 gdb_cv_printf_has_decfloat=no
26031else
26032 cat >conftest.$ac_ext <<_ACEOF
26033/* confdefs.h. */
26034_ACEOF
26035cat confdefs.h >>conftest.$ac_ext
26036cat >>conftest.$ac_ext <<_ACEOF
26037/* end confdefs.h. */
26038$ac_includes_default
26039int
26040main ()
26041{
26042char buf[64];
26043 _Decimal32 d32 = 1.2345df;
26044 _Decimal64 d64 = 1.2345dd;
26045 _Decimal128 d128 = 1.2345dl;
26046 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
26047 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
26048 ;
26049 return 0;
26050}
26051_ACEOF
26052rm -f conftest$ac_exeext
26053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26054 (eval $ac_link) 2>&5
26055 ac_status=$?
26056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26059 (eval $ac_try) 2>&5
26060 ac_status=$?
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); }; }; then
26063 gdb_cv_printf_has_decfloat=yes
26064else
26065 echo "$as_me: program exited with status $ac_status" >&5
26066echo "$as_me: failed program was:" >&5
26067sed 's/^/| /' conftest.$ac_ext >&5
26068
26069( exit $ac_status )
26070gdb_cv_printf_has_decfloat=no
26071fi
26072rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26073fi
26074fi
26075echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
26076echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
26077if test $gdb_cv_printf_has_decfloat = yes; then
26078
26079cat >>confdefs.h <<\_ACEOF
26080#define PRINTF_HAS_DECFLOAT 1
26081_ACEOF
26082
26083fi
26084
26085# Check if the compiler supports the `long double' type. We can't use
26086# AC_C_LONG_DOUBLE because that one does additional checks on the
26087# constants defined in <float.h> that fail on some systems,
26088# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
26089
26090echo "$as_me:$LINENO: checking for long double support in compiler" >&5
26091echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
26092if test "${gdb_cv_c_long_double+set}" = set; then
26093 echo $ECHO_N "(cached) $ECHO_C" >&6
26094else
26095 cat >conftest.$ac_ext <<_ACEOF
26096/* confdefs.h. */
26097_ACEOF
26098cat confdefs.h >>conftest.$ac_ext
26099cat >>conftest.$ac_ext <<_ACEOF
26100/* end confdefs.h. */
26101long double foo;
26102_ACEOF
26103rm -f conftest.$ac_objext
26104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26105 (eval $ac_compile) 2>conftest.er1
26106 ac_status=$?
26107 grep -v '^ *+' conftest.er1 >conftest.err
26108 rm -f conftest.er1
26109 cat conftest.err >&5
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } &&
26112 { ac_try='test -z "$ac_c_werror_flag"
26113 || test ! -s conftest.err'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; } &&
26119 { ac_try='test -s conftest.$ac_objext'
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; }; then
26125 gdb_cv_c_long_double=yes
26126else
26127 echo "$as_me: failed program was:" >&5
26128sed 's/^/| /' conftest.$ac_ext >&5
26129
26130gdb_cv_c_long_double=no
26131fi
26132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26133fi
26134echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
26135echo "${ECHO_T}$gdb_cv_c_long_double" >&6
26136if test $gdb_cv_c_long_double = yes; then
26137
26138cat >>confdefs.h <<\_ACEOF
26139#define HAVE_LONG_DOUBLE 1
26140_ACEOF
26141
26142fi
26143
26144# Check if the compiler and runtime support printing long doubles.
26145
26146echo "$as_me:$LINENO: checking for long double support in printf" >&5
26147echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
26148if test "${gdb_cv_printf_has_long_double+set}" = set; then
26149 echo $ECHO_N "(cached) $ECHO_C" >&6
26150else
26151 if test "$cross_compiling" = yes; then
26152 gdb_cv_printf_has_long_double=no
26153else
26154 cat >conftest.$ac_ext <<_ACEOF
26155/* confdefs.h. */
26156_ACEOF
26157cat confdefs.h >>conftest.$ac_ext
26158cat >>conftest.$ac_ext <<_ACEOF
26159/* end confdefs.h. */
26160$ac_includes_default
26161int
26162main ()
26163{
26164char buf[16];
26165 long double f = 3.141592653;
26166 sprintf (buf, "%Lg", f);
26167 return (strncmp ("3.14159", buf, 7));
26168 ;
26169 return 0;
26170}
26171_ACEOF
26172rm -f conftest$ac_exeext
26173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26174 (eval $ac_link) 2>&5
26175 ac_status=$?
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26180 ac_status=$?
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; }; then
26183 gdb_cv_printf_has_long_double=yes
26184else
26185 echo "$as_me: program exited with status $ac_status" >&5
26186echo "$as_me: failed program was:" >&5
26187sed 's/^/| /' conftest.$ac_ext >&5
26188
26189( exit $ac_status )
26190gdb_cv_printf_has_long_double=no
26191fi
26192rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26193fi
26194fi
26195echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
26196echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
26197if test $gdb_cv_printf_has_long_double = yes; then
26198
26199cat >>confdefs.h <<\_ACEOF
26200#define PRINTF_HAS_LONG_DOUBLE 1
26201_ACEOF
26202
26203fi
26204
26205# Check if the compiler and runtime support scanning long doubles.
26206
26207echo "$as_me:$LINENO: checking for long double support in scanf" >&5
26208echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
26209if test "${gdb_cv_scanf_has_long_double+set}" = set; then
26210 echo $ECHO_N "(cached) $ECHO_C" >&6
26211else
26212 if test "$cross_compiling" = yes; then
26213 gdb_cv_scanf_has_long_double=no
26214else
26215 cat >conftest.$ac_ext <<_ACEOF
26216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
26221#include <stdio.h>
26222int
26223main ()
26224{
26225char *buf = "3.141592653";
26226 long double f = 0;
26227 sscanf (buf, "%Lg", &f);
26228 return !(f > 3.14159 && f < 3.14160);
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233rm -f conftest$ac_exeext
26234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26235 (eval $ac_link) 2>&5
26236 ac_status=$?
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26240 (eval $ac_try) 2>&5
26241 ac_status=$?
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); }; }; then
26244 gdb_cv_scanf_has_long_double=yes
26245else
26246 echo "$as_me: program exited with status $ac_status" >&5
26247echo "$as_me: failed program was:" >&5
26248sed 's/^/| /' conftest.$ac_ext >&5
26249
26250( exit $ac_status )
26251gdb_cv_scanf_has_long_double=no
26252fi
26253rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26254fi
26255fi
26256echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
26257echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
26258if test $gdb_cv_scanf_has_long_double = yes; then
26259
26260cat >>confdefs.h <<\_ACEOF
26261#define SCANF_HAS_LONG_DOUBLE 1
26262_ACEOF
26263
26264fi
26265
26266case ${host_os} in
26267aix*)
26268 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
26269echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
26270if test "${gdb_cv_bigtoc+set}" = set; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
26272else
26273
26274 SAVE_LDFLAGS=$LDFLAGS
26275
26276 case $GCC in
26277 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
26278 *) gdb_cv_bigtoc=-bbigtoc ;;
26279 esac
26280
26281 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
26282 cat >conftest.$ac_ext <<_ACEOF
26283/* confdefs.h. */
26284_ACEOF
26285cat confdefs.h >>conftest.$ac_ext
26286cat >>conftest.$ac_ext <<_ACEOF
26287/* end confdefs.h. */
26288
26289int
26290main ()
26291{
26292int i;
26293 ;
26294 return 0;
26295}
26296_ACEOF
26297rm -f conftest.$ac_objext conftest$ac_exeext
26298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26299 (eval $ac_link) 2>conftest.er1
26300 ac_status=$?
26301 grep -v '^ *+' conftest.er1 >conftest.err
26302 rm -f conftest.er1
26303 cat conftest.err >&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } &&
26306 { ac_try='test -z "$ac_c_werror_flag"
26307 || test ! -s conftest.err'
26308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); }; } &&
26313 { ac_try='test -s conftest$ac_exeext'
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; }; then
26319 :
26320else
26321 echo "$as_me: failed program was:" >&5
26322sed 's/^/| /' conftest.$ac_ext >&5
26323
26324gdb_cv_bigtoc=
26325fi
26326rm -f conftest.err conftest.$ac_objext \
26327 conftest$ac_exeext conftest.$ac_ext
26328 LDFLAGS="${SAVE_LDFLAGS}"
26329
26330fi
26331echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
26332echo "${ECHO_T}$gdb_cv_bigtoc" >&6
26333 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
26334 ;;
26335esac
26336
26337
26338
26339if test ${build} = ${host} -a ${host} = ${target} ; then
26340 case ${host_os} in
26341 hpux*)
26342 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
26343echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
26344 if test -f /usr/include/dce/cma_config.h ; then
26345 if test "$GCC" = "yes" ; then
26346 echo "$as_me:$LINENO: result: yes" >&5
26347echo "${ECHO_T}yes" >&6
26348
26349cat >>confdefs.h <<\_ACEOF
26350#define HAVE_HPUX_THREAD_SUPPORT 1
26351_ACEOF
26352
26353 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
26354 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
26355 else
26356 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
26357echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
26358 fi
26359 else
26360 echo "$as_me:$LINENO: result: no" >&5
26361echo "${ECHO_T}no" >&6
26362 fi
26363 ;;
26364 solaris*)
26365 # See if thread_db library is around for Solaris thread debugging.
26366 # Note that we must explicitly test for version 1 of the library
26367 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
26368 # the same API.
26369 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
26370echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
26371 if test -f /usr/lib/libthread_db.so.1 ; then
26372 echo "$as_me:$LINENO: result: yes" >&5
26373echo "${ECHO_T}yes" >&6
26374
26375cat >>confdefs.h <<\_ACEOF
26376#define HAVE_THREAD_DB_LIB 1
26377_ACEOF
26378
26379 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
26380 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
26381
26382echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26383echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26384if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
26386else
26387 ac_check_lib_save_LIBS=$LIBS
26388LIBS="-ldl $LIBS"
26389cat >conftest.$ac_ext <<_ACEOF
26390/* confdefs.h. */
26391_ACEOF
26392cat confdefs.h >>conftest.$ac_ext
26393cat >>conftest.$ac_ext <<_ACEOF
26394/* end confdefs.h. */
26395
26396/* Override any gcc2 internal prototype to avoid an error. */
26397#ifdef __cplusplus
26398extern "C"
26399#endif
26400/* We use char because int might match the return type of a gcc2
26401 builtin and then its argument prototype would still apply. */
26402char dlopen ();
26403int
26404main ()
26405{
26406dlopen ();
26407 ;
26408 return 0;
26409}
26410_ACEOF
26411rm -f conftest.$ac_objext conftest$ac_exeext
26412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26413 (eval $ac_link) 2>conftest.er1
26414 ac_status=$?
26415 grep -v '^ *+' conftest.er1 >conftest.err
26416 rm -f conftest.er1
26417 cat conftest.err >&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } &&
26420 { ac_try='test -z "$ac_c_werror_flag"
26421 || test ! -s conftest.err'
26422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; } &&
26427 { ac_try='test -s conftest$ac_exeext'
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; }; then
26433 ac_cv_lib_dl_dlopen=yes
26434else
26435 echo "$as_me: failed program was:" >&5
26436sed 's/^/| /' conftest.$ac_ext >&5
26437
26438ac_cv_lib_dl_dlopen=no
26439fi
26440rm -f conftest.err conftest.$ac_objext \
26441 conftest$ac_exeext conftest.$ac_ext
26442LIBS=$ac_check_lib_save_LIBS
26443fi
26444echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26445echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26446if test $ac_cv_lib_dl_dlopen = yes; then
26447 cat >>confdefs.h <<_ACEOF
26448#define HAVE_LIBDL 1
26449_ACEOF
26450
26451 LIBS="-ldl $LIBS"
26452
26453fi
26454
26455 if test "$GCC" = "yes" ; then
26456 # The GNU linker requires the -export-dynamic option to make
26457 # all symbols visible in the dynamic symbol table.
26458 hold_ldflags=$LDFLAGS
26459 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
26460echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
26461 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
26462 cat >conftest.$ac_ext <<_ACEOF
26463/* confdefs.h. */
26464_ACEOF
26465cat confdefs.h >>conftest.$ac_ext
26466cat >>conftest.$ac_ext <<_ACEOF
26467/* end confdefs.h. */
26468
26469int
26470main ()
26471{
26472int i;
26473 ;
26474 return 0;
26475}
26476_ACEOF
26477rm -f conftest.$ac_objext conftest$ac_exeext
26478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26479 (eval $ac_link) 2>conftest.er1
26480 ac_status=$?
26481 grep -v '^ *+' conftest.er1 >conftest.err
26482 rm -f conftest.er1
26483 cat conftest.err >&5
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
26486 { ac_try='test -z "$ac_c_werror_flag"
26487 || test ! -s conftest.err'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; } &&
26493 { ac_try='test -s conftest$ac_exeext'
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; }; then
26499 found=yes
26500else
26501 echo "$as_me: failed program was:" >&5
26502sed 's/^/| /' conftest.$ac_ext >&5
26503
26504found=no
26505fi
26506rm -f conftest.err conftest.$ac_objext \
26507 conftest$ac_exeext conftest.$ac_ext
26508 LDFLAGS=$hold_ldflags
26509 echo "$as_me:$LINENO: result: $found" >&5
26510echo "${ECHO_T}$found" >&6
26511 if test $found = yes; then
26512 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
26513 fi
26514 fi
26515 # Sun randomly tweaked the prototypes in <proc_service.h>
26516 # at one point.
26517 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
26518echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
26519 if test "${gdb_cv_proc_service_is_old+set}" = set; then
26520 echo $ECHO_N "(cached) $ECHO_C" >&6
26521else
26522
26523 cat >conftest.$ac_ext <<_ACEOF
26524/* confdefs.h. */
26525_ACEOF
26526cat confdefs.h >>conftest.$ac_ext
26527cat >>conftest.$ac_ext <<_ACEOF
26528/* end confdefs.h. */
26529
26530 #include <proc_service.h>
26531 ps_err_e ps_pdwrite
26532 (struct ps_prochandle*, psaddr_t, const void*, size_t);
26533
26534int
26535main ()
26536{
26537
26538 ;
26539 return 0;
26540}
26541_ACEOF
26542rm -f conftest.$ac_objext
26543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26544 (eval $ac_compile) 2>conftest.er1
26545 ac_status=$?
26546 grep -v '^ *+' conftest.er1 >conftest.err
26547 rm -f conftest.er1
26548 cat conftest.err >&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } &&
26551 { ac_try='test -z "$ac_c_werror_flag"
26552 || test ! -s conftest.err'
26553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554 (eval $ac_try) 2>&5
26555 ac_status=$?
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; } &&
26558 { ac_try='test -s conftest.$ac_objext'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26561 ac_status=$?
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }; then
26564 gdb_cv_proc_service_is_old=no
26565else
26566 echo "$as_me: failed program was:" >&5
26567sed 's/^/| /' conftest.$ac_ext >&5
26568
26569gdb_cv_proc_service_is_old=yes
26570fi
26571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26572
26573fi
26574
26575 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
26576echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
26577 if test $gdb_cv_proc_service_is_old = yes; then
26578
26579cat >>confdefs.h <<\_ACEOF
26580#define PROC_SERVICE_IS_OLD 1
26581_ACEOF
26582
26583 fi
26584 else
26585 echo "$as_me:$LINENO: result: no" >&5
26586echo "${ECHO_T}no" >&6
26587 fi
26588 ;;
26589 aix*)
26590 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
26591echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
26592 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26594else
26595 cat >conftest.$ac_ext <<_ACEOF
26596/* confdefs.h. */
26597_ACEOF
26598cat confdefs.h >>conftest.$ac_ext
26599cat >>conftest.$ac_ext <<_ACEOF
26600/* end confdefs.h. */
26601#include <sys/pthdebug.h>
26602int
26603main ()
26604{
26605#ifndef PTHDB_VERSION_3
26606 #error
26607 #endif
26608 ;
26609 return 0;
26610}
26611_ACEOF
26612rm -f conftest.$ac_objext
26613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26614 (eval $ac_compile) 2>conftest.er1
26615 ac_status=$?
26616 grep -v '^ *+' conftest.er1 >conftest.err
26617 rm -f conftest.er1
26618 cat conftest.err >&5
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); } &&
26621 { ac_try='test -z "$ac_c_werror_flag"
26622 || test ! -s conftest.err'
26623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624 (eval $ac_try) 2>&5
26625 ac_status=$?
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); }; } &&
26628 { ac_try='test -s conftest.$ac_objext'
26629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630 (eval $ac_try) 2>&5
26631 ac_status=$?
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); }; }; then
26634 gdb_cv_have_aix_thread_debug=yes
26635else
26636 echo "$as_me: failed program was:" >&5
26637sed 's/^/| /' conftest.$ac_ext >&5
26638
26639gdb_cv_have_aix_thread_debug=no
26640fi
26641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26642fi
26643
26644 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
26645echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
26646 if test $gdb_cv_have_aix_thread_debug = yes; then
26647 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
26648 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
26649 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
26650 fi
26651 ;;
26652 esac
26653
26654fi
26655
26656if test "x$ac_cv_header_thread_db_h" = "xyes"; then
26657 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
26658echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
26659if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
26660 echo $ECHO_N "(cached) $ECHO_C" >&6
26661else
26662 cat >conftest.$ac_ext <<_ACEOF
26663/* confdefs.h. */
26664_ACEOF
26665cat confdefs.h >>conftest.$ac_ext
26666cat >>conftest.$ac_ext <<_ACEOF
26667/* end confdefs.h. */
26668#include <thread_db.h>
26669int
26670main ()
26671{
26672int i = TD_NOTALLOC;
26673 ;
26674 return 0;
26675}
26676_ACEOF
26677rm -f conftest.$ac_objext
26678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26679 (eval $ac_compile) 2>conftest.er1
26680 ac_status=$?
26681 grep -v '^ *+' conftest.er1 >conftest.err
26682 rm -f conftest.er1
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } &&
26686 { ac_try='test -z "$ac_c_werror_flag"
26687 || test ! -s conftest.err'
26688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689 (eval $ac_try) 2>&5
26690 ac_status=$?
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); }; } &&
26693 { ac_try='test -s conftest.$ac_objext'
26694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26695 (eval $ac_try) 2>&5
26696 ac_status=$?
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); }; }; then
26699 gdb_cv_thread_db_h_has_td_notalloc=yes
26700else
26701 echo "$as_me: failed program was:" >&5
26702sed 's/^/| /' conftest.$ac_ext >&5
26703
26704gdb_cv_thread_db_h_has_td_notalloc=no
26705
26706fi
26707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26708
26709fi
26710echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
26711echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
26712 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
26713echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
26714if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
26715 echo $ECHO_N "(cached) $ECHO_C" >&6
26716else
26717 cat >conftest.$ac_ext <<_ACEOF
26718/* confdefs.h. */
26719_ACEOF
26720cat confdefs.h >>conftest.$ac_ext
26721cat >>conftest.$ac_ext <<_ACEOF
26722/* end confdefs.h. */
26723#include <thread_db.h>
26724int
26725main ()
26726{
26727int i = TD_VERSION;
26728 ;
26729 return 0;
26730}
26731_ACEOF
26732rm -f conftest.$ac_objext
26733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26734 (eval $ac_compile) 2>conftest.er1
26735 ac_status=$?
26736 grep -v '^ *+' conftest.er1 >conftest.err
26737 rm -f conftest.er1
26738 cat conftest.err >&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } &&
26741 { ac_try='test -z "$ac_c_werror_flag"
26742 || test ! -s conftest.err'
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; } &&
26748 { ac_try='test -s conftest.$ac_objext'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754 gdb_cv_thread_db_h_has_td_version=yes
26755else
26756 echo "$as_me: failed program was:" >&5
26757sed 's/^/| /' conftest.$ac_ext >&5
26758
26759gdb_cv_thread_db_h_has_td_version=no
26760
26761fi
26762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26763
26764fi
26765echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
26766echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
26767 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
26768echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
26769if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
26770 echo $ECHO_N "(cached) $ECHO_C" >&6
26771else
26772 cat >conftest.$ac_ext <<_ACEOF
26773/* confdefs.h. */
26774_ACEOF
26775cat confdefs.h >>conftest.$ac_ext
26776cat >>conftest.$ac_ext <<_ACEOF
26777/* end confdefs.h. */
26778#include <thread_db.h>
26779int
26780main ()
26781{
26782int i = TD_NOTLS;
26783 ;
26784 return 0;
26785}
26786_ACEOF
26787rm -f conftest.$ac_objext
26788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26789 (eval $ac_compile) 2>conftest.er1
26790 ac_status=$?
26791 grep -v '^ *+' conftest.er1 >conftest.err
26792 rm -f conftest.er1
26793 cat conftest.err >&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); } &&
26796 { ac_try='test -z "$ac_c_werror_flag"
26797 || test ! -s conftest.err'
26798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799 (eval $ac_try) 2>&5
26800 ac_status=$?
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; } &&
26803 { ac_try='test -s conftest.$ac_objext'
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
26806 ac_status=$?
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; }; then
26809 gdb_cv_thread_db_h_has_td_notls=yes
26810else
26811 echo "$as_me: failed program was:" >&5
26812sed 's/^/| /' conftest.$ac_ext >&5
26813
26814gdb_cv_thread_db_h_has_td_notls=no
26815
26816fi
26817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26818
26819fi
26820echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
26821echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
26822fi
26823if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
26824
26825cat >>confdefs.h <<\_ACEOF
26826#define THREAD_DB_HAS_TD_NOTALLOC 1
26827_ACEOF
26828
26829fi
26830if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
26831
26832cat >>confdefs.h <<\_ACEOF
26833#define THREAD_DB_HAS_TD_VERSION 1
26834_ACEOF
26835
26836fi
26837if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
26838
26839cat >>confdefs.h <<\_ACEOF
26840#define THREAD_DB_HAS_TD_NOTLS 1
26841_ACEOF
26842
26843fi
26844
26845if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
26846 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
26847echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
26848if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
26849 echo $ECHO_N "(cached) $ECHO_C" >&6
26850else
26851 cat >conftest.$ac_ext <<_ACEOF
26852/* confdefs.h. */
26853_ACEOF
26854cat confdefs.h >>conftest.$ac_ext
26855cat >>conftest.$ac_ext <<_ACEOF
26856/* end confdefs.h. */
26857#include <sys/syscall.h>
26858int
26859main ()
26860{
26861int i = __NR_tkill;
26862 ;
26863 return 0;
26864}
26865_ACEOF
26866rm -f conftest.$ac_objext
26867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26868 (eval $ac_compile) 2>conftest.er1
26869 ac_status=$?
26870 grep -v '^ *+' conftest.er1 >conftest.err
26871 rm -f conftest.er1
26872 cat conftest.err >&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } &&
26875 { ac_try='test -z "$ac_c_werror_flag"
26876 || test ! -s conftest.err'
26877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878 (eval $ac_try) 2>&5
26879 ac_status=$?
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; } &&
26882 { ac_try='test -s conftest.$ac_objext'
26883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26885 ac_status=$?
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; }; then
26888 gdb_cv_sys_syscall_h_has_tkill=yes
26889else
26890 echo "$as_me: failed program was:" >&5
26891sed 's/^/| /' conftest.$ac_ext >&5
26892
26893gdb_cv_sys_syscall_h_has_tkill=no
26894
26895fi
26896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26897
26898fi
26899echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
26900echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
26901fi
26902if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
26903
26904cat >>confdefs.h <<\_ACEOF
26905#define HAVE_TKILL_SYSCALL 1
26906_ACEOF
26907
26908fi
26909
26910
26911
26912# Check whether --with-sysroot or --without-sysroot was given.
26913if test "${with_sysroot+set}" = set; then
26914 withval="$with_sysroot"
26915
26916 case ${with_sysroot} in
26917 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
26918 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
26919 esac
26920
26921 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
26922
26923 if test "x$prefix" = xNONE; then
26924 test_prefix=/usr/local
26925 else
26926 test_prefix=$prefix
26927 fi
26928 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
26929 test_exec_prefix=$test_prefix
26930 else
26931 test_exec_prefix=$exec_prefix
26932 fi
26933 case ${TARGET_SYSTEM_ROOT} in
26934 "${test_prefix}"|"${test_prefix}/"*|\
26935 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
26936 '${prefix}'|'${prefix}/'*|\
26937 '${exec_prefix}'|'${exec_prefix}/'*)
26938 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
26939 TARGET_SYSTEM_ROOT_DEFINE="$t"
26940 ;;
26941 esac
26942
26943else
26944
26945 TARGET_SYSTEM_ROOT=
26946 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
26947
26948fi;
26949
26950
26951
26952# Check whether --enable-werror or --disable-werror was given.
26953if test "${enable_werror+set}" = set; then
26954 enableval="$enable_werror"
26955 case "${enableval}" in
26956 yes | y) ERROR_ON_WARNING="yes" ;;
26957 no | n) ERROR_ON_WARNING="no" ;;
26958 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
26959echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
26960 { (exit 1); exit 1; }; } ;;
26961 esac
26962fi;
26963
26964# Enable -Werror by default when using gcc
26965if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
26966 ERROR_ON_WARNING=yes
26967fi
26968
26969WERROR_CFLAGS=""
26970if test "${ERROR_ON_WARNING}" = yes ; then
26971 WERROR_CFLAGS="-Werror"
26972fi
26973
26974# The entries after -Wno-pointer-sign are disabled warnings which may
26975# be enabled in the future, which can not currently be used to build
26976# GDB.
26977# NOTE: If you change this list, remember to update
26978# gdb/doc/gdbint.texinfo.
26979build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
26980-Wformat-nonliteral -Wno-pointer-sign \
26981-Wno-unused -Wno-switch -Wno-char-subscripts"
26982
26983# Check whether --enable-build-warnings or --disable-build-warnings was given.
26984if test "${enable_build_warnings+set}" = set; then
26985 enableval="$enable_build_warnings"
26986 case "${enableval}" in
26987 yes) ;;
26988 no) build_warnings="-w";;
26989 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26990 build_warnings="${build_warnings} ${t}";;
26991 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26992 build_warnings="${t} ${build_warnings}";;
26993 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26994esac
26995if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26996 echo "Setting compiler warning flags = $build_warnings" 6>&1
26997fi
26998fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
26999if test "${enable_gdb_build_warnings+set}" = set; then
27000 enableval="$enable_gdb_build_warnings"
27001 case "${enableval}" in
27002 yes) ;;
27003 no) build_warnings="-w";;
27004 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
27005 build_warnings="${build_warnings} ${t}";;
27006 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
27007 build_warnings="${t} ${build_warnings}";;
27008 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
27009esac
27010if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
27011 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
27012fi
27013fi; WARN_CFLAGS=""
27014if test "x${build_warnings}" != x -a "x$GCC" = xyes
27015then
27016 echo "$as_me:$LINENO: checking compiler warning flags" >&5
27017echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
27018 # Separate out the -Werror flag as some files just cannot be
27019 # compiled with it enabled.
27020 for w in ${build_warnings}; do
27021 case $w in
27022 -Werr*) WERROR_CFLAGS=-Werror ;;
27023 *) # Check that GCC accepts it
27024 saved_CFLAGS="$CFLAGS"
27025 CFLAGS="$CFLAGS $w"
27026 cat >conftest.$ac_ext <<_ACEOF
27027/* confdefs.h. */
27028_ACEOF
27029cat confdefs.h >>conftest.$ac_ext
27030cat >>conftest.$ac_ext <<_ACEOF
27031/* end confdefs.h. */
27032
27033int
27034main ()
27035{
27036
27037 ;
27038 return 0;
27039}
27040_ACEOF
27041rm -f conftest.$ac_objext
27042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27043 (eval $ac_compile) 2>conftest.er1
27044 ac_status=$?
27045 grep -v '^ *+' conftest.er1 >conftest.err
27046 rm -f conftest.er1
27047 cat conftest.err >&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } &&
27050 { ac_try='test -z "$ac_c_werror_flag"
27051 || test ! -s conftest.err'
27052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053 (eval $ac_try) 2>&5
27054 ac_status=$?
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; } &&
27057 { ac_try='test -s conftest.$ac_objext'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 WARN_CFLAGS="${WARN_CFLAGS} $w"
27064else
27065 echo "$as_me: failed program was:" >&5
27066sed 's/^/| /' conftest.$ac_ext >&5
27067
27068fi
27069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27070 CFLAGS="$saved_CFLAGS"
27071 esac
27072 done
27073 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
27074echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
27075fi
27076
27077
27078
27079# In the Cygwin environment, we need some additional flags.
27080echo "$as_me:$LINENO: checking for cygwin" >&5
27081echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
27082if test "${gdb_cv_os_cygwin+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27084else
27085 cat >conftest.$ac_ext <<_ACEOF
27086/* confdefs.h. */
27087_ACEOF
27088cat confdefs.h >>conftest.$ac_ext
27089cat >>conftest.$ac_ext <<_ACEOF
27090/* end confdefs.h. */
27091
27092#if defined (__CYGWIN__) || defined (__CYGWIN32__)
27093lose
27094#endif
27095_ACEOF
27096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27097 $EGREP "lose" >/dev/null 2>&1; then
27098 gdb_cv_os_cygwin=yes
27099else
27100 gdb_cv_os_cygwin=no
27101fi
27102rm -f conftest*
27103
27104fi
27105echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
27106echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
27107
27108
27109SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
27110case ${host} in
27111 *go32* ) SER_HARDWIRE=ser-go32.o ;;
27112 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
27113 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
27114esac
27115
27116
27117# libreadline needs libuser32.a in a cygwin environment
27118WIN32LIBS=
27119if test x$gdb_cv_os_cygwin = xyes; then
27120 WIN32LIBS="-luser32"
27121 case "${target}" in
27122 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
27123 ;;
27124 esac
27125fi
27126
27127# The ser-tcp.c module requires sockets.
27128case ${host} in
27129 *mingw32*)
27130
27131cat >>confdefs.h <<\_ACEOF
27132#define USE_WIN32API 1
27133_ACEOF
27134
27135 WIN32LIBS="$WIN32LIBS -lws2_32"
27136 ;;
27137esac
27138
27139
27140# Add ELF support to GDB, but only if BFD includes ELF support.
27141OLD_CFLAGS=$CFLAGS
27142OLD_LDFLAGS=$LDFLAGS
27143OLD_LIBS=$LIBS
27144CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
27145LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
27146intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
27147LIBS="$LIBS -lbfd -liberty $intl"
27148echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
27149echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
27150if test "${gdb_cv_var_elf+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27152else
27153 cat >conftest.$ac_ext <<_ACEOF
27154/* confdefs.h. */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h. */
27159#include <stdlib.h>
27160#include "bfd.h"
27161#include "elf-bfd.h"
27162
27163int
27164main ()
27165{
27166bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
27167 ;
27168 return 0;
27169}
27170_ACEOF
27171rm -f conftest.$ac_objext conftest$ac_exeext
27172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27173 (eval $ac_link) 2>conftest.er1
27174 ac_status=$?
27175 grep -v '^ *+' conftest.er1 >conftest.err
27176 rm -f conftest.er1
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
27180 { ac_try='test -z "$ac_c_werror_flag"
27181 || test ! -s conftest.err'
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27184 ac_status=$?
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest$ac_exeext'
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27190 ac_status=$?
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27193 gdb_cv_var_elf=yes
27194else
27195 echo "$as_me: failed program was:" >&5
27196sed 's/^/| /' conftest.$ac_ext >&5
27197
27198gdb_cv_var_elf=no
27199fi
27200rm -f conftest.err conftest.$ac_objext \
27201 conftest$ac_exeext conftest.$ac_ext
27202fi
27203echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
27204echo "${ECHO_T}$gdb_cv_var_elf" >&6
27205if test $gdb_cv_var_elf = yes; then
27206 CONFIG_OBS="$CONFIG_OBS elfread.o"
27207
27208cat >>confdefs.h <<\_ACEOF
27209#define HAVE_ELF 1
27210_ACEOF
27211
27212fi
27213CFLAGS=$OLD_CFLAGS
27214LDFLAGS=$OLD_LDFLAGS
27215LIBS=$OLD_LIBS
27216
27217# Add any host-specific objects to GDB.
27218CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
27219
27220LIBGUI="../libgui/src/libgui.a"
27221GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
27222
27223
27224
27225WIN32LDAPP=
27226
27227
27228
27229case "${host}" in
27230*-*-cygwin* | *-*-mingw* )
27231 configdir="win"
27232 ;;
27233*)
27234 configdir="unix"
27235 ;;
27236esac
27237
27238GDBTKLIBS=
27239if test "${enable_gdbtk}" = "yes"; then
27240
27241 # Gdbtk must have an absolute path to srcdir in order to run
27242 # properly when not installed.
27243 here=`pwd`
27244 cd ${srcdir}
27245 GDBTK_SRC_DIR=`pwd`
27246 cd $here
27247
27248
27249#
27250# Ok, lets find the tcl configuration
27251# First, look for one uninstalled.
27252# the alternative search directory is invoked by --with-tclconfig
27253#
27254
27255if test x"${no_tcl}" = x ; then
27256 # we reset no_tcl in case something fails here
27257 no_tcl=true
27258
27259# Check whether --with-tclconfig or --without-tclconfig was given.
27260if test "${with_tclconfig+set}" = set; then
27261 withval="$with_tclconfig"
27262 with_tclconfig=${withval}
27263fi;
27264 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
27265echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
27266 if test "${ac_cv_c_tclconfig+set}" = set; then
27267 echo $ECHO_N "(cached) $ECHO_C" >&6
27268else
27269
27270
27271 # First check to see if --with-tclconfig was specified.
27272 if test x"${with_tclconfig}" != x ; then
27273 if test -f "${with_tclconfig}/tclConfig.sh" ; then
27274 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
27275 else
27276 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
27277echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
27278 { (exit 1); exit 1; }; }
27279 fi
27280 fi
27281
27282 # then check for a private Tcl installation
27283 if test x"${ac_cv_c_tclconfig}" = x ; then
27284 for i in \
27285 ../tcl \
27286 `ls -dr ../tcl[7-9]* 2>/dev/null` \
27287 ../../tcl \
27288 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
27289 ../../../tcl \
27290 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
27291 if test -f "$i/${configdir}/tclConfig.sh" ; then
27292 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27293 break
27294 fi
27295 done
27296 fi
27297 # check in a few common install locations
27298 if test x"${ac_cv_c_tclconfig}" = x ; then
27299 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27300 if test -f "$i/tclConfig.sh" ; then
27301 ac_cv_c_tclconfig=`(cd $i; pwd)`
27302 break
27303 fi
27304 done
27305 fi
27306 # check in a few other private locations
27307 if test x"${ac_cv_c_tclconfig}" = x ; then
27308 for i in \
27309 ${srcdir}/../tcl \
27310 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
27311 if test -f "$i/${configdir}/tclConfig.sh" ; then
27312 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27313 break
27314 fi
27315 done
27316 fi
27317
27318fi
27319
27320 if test x"${ac_cv_c_tclconfig}" = x ; then
27321 TCLCONFIG="# no Tcl configs found"
27322 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
27323echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
27324 else
27325 no_tcl=
27326 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
27327 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
27328echo "${ECHO_T}found $TCLCONFIG" >&6
27329 fi
27330fi
27331
27332 if test -z "${no_tcl}"; then
27333
27334 . $TCLCONFIG
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362#
27363# Ok, lets find the tk configuration
27364# First, look for one uninstalled.
27365# the alternative search directory is invoked by --with-tkconfig
27366#
27367
27368if test x"${no_tk}" = x ; then
27369 # we reset no_tk in case something fails here
27370 no_tk=true
27371
27372# Check whether --with-tkconfig or --without-tkconfig was given.
27373if test "${with_tkconfig+set}" = set; then
27374 withval="$with_tkconfig"
27375 with_tkconfig=${withval}
27376fi;
27377 echo "$as_me:$LINENO: checking for Tk configuration" >&5
27378echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
27379 if test "${ac_cv_c_tkconfig+set}" = set; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27381else
27382
27383
27384 # First check to see if --with-tkconfig was specified.
27385 if test x"${with_tkconfig}" != x ; then
27386 if test -f "${with_tkconfig}/tkConfig.sh" ; then
27387 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
27388 else
27389 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
27390echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
27391 { (exit 1); exit 1; }; }
27392 fi
27393 fi
27394
27395 # then check for a private Tk library
27396 if test x"${ac_cv_c_tkconfig}" = x ; then
27397 for i in \
27398 ../tk \
27399 `ls -dr ../tk[4-9]* 2>/dev/null` \
27400 ../../tk \
27401 `ls -dr ../../tk[4-9]* 2>/dev/null` \
27402 ../../../tk \
27403 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
27404 if test -f "$i/${configdir}/tkConfig.sh" ; then
27405 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27406 break
27407 fi
27408 done
27409 fi
27410 # check in a few common install locations
27411 if test x"${ac_cv_c_tkconfig}" = x ; then
27412 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27413 if test -f "$i/tkConfig.sh" ; then
27414 ac_cv_c_tkconfig=`(cd $i; pwd)`
27415 break
27416 fi
27417 done
27418 fi
27419 # check in a few other private locations
27420 if test x"${ac_cv_c_tkconfig}" = x ; then
27421 for i in \
27422 ${srcdir}/../tk \
27423 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
27424 if test -f "$i/${configdir}/tkConfig.sh" ; then
27425 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27426 break
27427 fi
27428 done
27429 fi
27430
27431fi
27432
27433 if test x"${ac_cv_c_tkconfig}" = x ; then
27434 TKCONFIG="# no Tk configs found"
27435 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
27436echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
27437 else
27438 no_tk=
27439 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
27440 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
27441echo "${ECHO_T}found $TKCONFIG" >&6
27442 fi
27443fi
27444
27445
27446
27447 # now look for Tcl library stuff
27448
27449 tcldir="../tcl/${configdir}/"
27450
27451 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
27452
27453 # If $no_tk is nonempty, then we can't do Tk, and there is no
27454 # point to doing Tcl.
27455 if test -z "${no_tk}"; then
27456
27457 if test -f "$TKCONFIG" ; then
27458 . $TKCONFIG
27459 fi
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474#
27475# Ok, lets find the tcl source trees so we can use the headers
27476# Warning: transition of version 9 to 10 will break this algorithm
27477# because 10 sorts before 9. We also look for just tcl. We have to
27478# be careful that we don't match stuff like tclX by accident.
27479# the alternative search directory is involked by --with-tclinclude
27480#
27481
27482no_tcl=true
27483echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
27484echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
27485
27486# Check whether --with-tclinclude or --without-tclinclude was given.
27487if test "${with_tclinclude+set}" = set; then
27488 withval="$with_tclinclude"
27489 with_tclinclude=${withval}
27490fi;
27491if test "${ac_cv_c_tclh+set}" = set; then
27492 echo $ECHO_N "(cached) $ECHO_C" >&6
27493else
27494
27495# first check to see if --with-tclinclude was specified
27496if test x"${with_tclinclude}" != x ; then
27497 if test -f ${with_tclinclude}/tclInt.h ; then
27498 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
27499 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
27500 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
27501 else
27502 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
27503echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
27504 { (exit 1); exit 1; }; }
27505 fi
27506fi
27507
27508# next check if it came with Tcl configuration file
27509if test x"${ac_cv_c_tclconfig}" = x ; then
27510 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
27511 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
27512 fi
27513fi
27514
27515# next check in private source directory
27516#
27517# since ls returns lowest version numbers first, reverse its output
27518if test x"${ac_cv_c_tclh}" = x ; then
27519 for i in \
27520 ${srcdir}/../tcl \
27521 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
27522 ${srcdir}/../../tcl \
27523 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
27524 ${srcdir}/../../../tcl \
27525 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
27526 if test -f $i/generic/tclInt.h ; then
27527 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27528 break
27529 fi
27530 done
27531fi
27532# finally check in a few common install locations
27533#
27534# since ls returns lowest version numbers first, reverse its output
27535if test x"${ac_cv_c_tclh}" = x ; then
27536 for i in \
27537 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
27538 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
27539 /usr/local/src/tcl \
27540 /usr/local/lib/tcl \
27541 ${prefix}/include ; do
27542 if test -f $i/generic/tclInt.h ; then
27543 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27544 break
27545 fi
27546 done
27547fi
27548# see if one is installed
27549if test x"${ac_cv_c_tclh}" = x ; then
27550 if test "${ac_cv_header_tclInt_h+set}" = set; then
27551 echo "$as_me:$LINENO: checking for tclInt.h" >&5
27552echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
27553if test "${ac_cv_header_tclInt_h+set}" = set; then
27554 echo $ECHO_N "(cached) $ECHO_C" >&6
27555fi
27556echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27557echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
27558else
27559 # Is the header compilable?
27560echo "$as_me:$LINENO: checking tclInt.h usability" >&5
27561echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
27562cat >conftest.$ac_ext <<_ACEOF
27563/* confdefs.h. */
27564_ACEOF
27565cat confdefs.h >>conftest.$ac_ext
27566cat >>conftest.$ac_ext <<_ACEOF
27567/* end confdefs.h. */
27568$ac_includes_default
27569#include <tclInt.h>
27570_ACEOF
27571rm -f conftest.$ac_objext
27572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27573 (eval $ac_compile) 2>conftest.er1
27574 ac_status=$?
27575 grep -v '^ *+' conftest.er1 >conftest.err
27576 rm -f conftest.er1
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } &&
27580 { ac_try='test -z "$ac_c_werror_flag"
27581 || test ! -s conftest.err'
27582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27583 (eval $ac_try) 2>&5
27584 ac_status=$?
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; } &&
27587 { ac_try='test -s conftest.$ac_objext'
27588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27589 (eval $ac_try) 2>&5
27590 ac_status=$?
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); }; }; then
27593 ac_header_compiler=yes
27594else
27595 echo "$as_me: failed program was:" >&5
27596sed 's/^/| /' conftest.$ac_ext >&5
27597
27598ac_header_compiler=no
27599fi
27600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27602echo "${ECHO_T}$ac_header_compiler" >&6
27603
27604# Is the header present?
27605echo "$as_me:$LINENO: checking tclInt.h presence" >&5
27606echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
27607cat >conftest.$ac_ext <<_ACEOF
27608/* confdefs.h. */
27609_ACEOF
27610cat confdefs.h >>conftest.$ac_ext
27611cat >>conftest.$ac_ext <<_ACEOF
27612/* end confdefs.h. */
27613#include <tclInt.h>
27614_ACEOF
27615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27617 ac_status=$?
27618 grep -v '^ *+' conftest.er1 >conftest.err
27619 rm -f conftest.er1
27620 cat conftest.err >&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } >/dev/null; then
27623 if test -s conftest.err; then
27624 ac_cpp_err=$ac_c_preproc_warn_flag
27625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27626 else
27627 ac_cpp_err=
27628 fi
27629else
27630 ac_cpp_err=yes
27631fi
27632if test -z "$ac_cpp_err"; then
27633 ac_header_preproc=yes
27634else
27635 echo "$as_me: failed program was:" >&5
27636sed 's/^/| /' conftest.$ac_ext >&5
27637
27638 ac_header_preproc=no
27639fi
27640rm -f conftest.err conftest.$ac_ext
27641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27642echo "${ECHO_T}$ac_header_preproc" >&6
27643
27644# So? What about this header?
27645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27646 yes:no: )
27647 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27648echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27649 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
27650echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
27651 ac_header_preproc=yes
27652 ;;
27653 no:yes:* )
27654 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
27655echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
27656 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
27657echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
27658 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
27659echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
27660 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
27661echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27662 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
27663echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
27664 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
27665echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
27666 (
27667 cat <<\_ASBOX
27668## ------------------------------------------ ##
27669## Report this to the AC_PACKAGE_NAME lists. ##
27670## ------------------------------------------ ##
27671_ASBOX
27672 ) |
27673 sed "s/^/$as_me: WARNING: /" >&2
27674 ;;
27675esac
27676echo "$as_me:$LINENO: checking for tclInt.h" >&5
27677echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
27678if test "${ac_cv_header_tclInt_h+set}" = set; then
27679 echo $ECHO_N "(cached) $ECHO_C" >&6
27680else
27681 ac_cv_header_tclInt_h=$ac_header_preproc
27682fi
27683echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27684echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
27685
27686fi
27687if test $ac_cv_header_tclInt_h = yes; then
27688 ac_cv_c_tclh=installed
27689else
27690 ac_cv_c_tclh=""
27691fi
27692
27693
27694fi
27695
27696fi
27697
27698if test x"${ac_cv_c_tclh}" = x ; then
27699 TCLHDIR="# no Tcl private headers found"
27700 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
27701echo "$as_me: error: Can't find Tcl private headers" >&2;}
27702 { (exit 1); exit 1; }; }
27703fi
27704if test x"${ac_cv_c_tclh}" != x ; then
27705 no_tcl=""
27706 if test x"${ac_cv_c_tclh}" = x"installed" ; then
27707 echo "$as_me:$LINENO: result: is installed" >&5
27708echo "${ECHO_T}is installed" >&6
27709 TCLHDIR=""
27710 else
27711 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
27712echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
27713 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
27714 TCLHDIR="-I${ac_cv_c_tclh}"
27715 fi
27716fi
27717
27718
27719
27720
27721#
27722# Ok, lets find the tk source trees so we can use the headers
27723# If the directory (presumably symlink) named "tk" exists, use that one
27724# in preference to any others. Same logic is used when choosing library
27725# and again with Tcl. The search order is the best place to look first, then in
27726# decreasing significance. The loop breaks if the trigger file is found.
27727# Note the gross little conversion here of srcdir by cd'ing to the found
27728# directory. This converts the path from a relative to an absolute, so
27729# recursive cache variables for the path will work right. We check all
27730# the possible paths in one loop rather than many seperate loops to speed
27731# things up.
27732# the alternative search directory is involked by --with-tkinclude
27733#
27734no_tk=true
27735echo "$as_me:$LINENO: checking for Tk private headers" >&5
27736echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
27737
27738# Check whether --with-tkinclude or --without-tkinclude was given.
27739if test "${with_tkinclude+set}" = set; then
27740 withval="$with_tkinclude"
27741 with_tkinclude=${withval}
27742fi;
27743if test "${ac_cv_c_tkh+set}" = set; then
27744 echo $ECHO_N "(cached) $ECHO_C" >&6
27745else
27746
27747# first check to see if --with-tkinclude was specified
27748if test x"${with_tkinclude}" != x ; then
27749 if test -f ${with_tkinclude}/tk.h ; then
27750 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
27751 elif test -f ${with_tkinclude}/generic/tk.h ; then
27752 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
27753 else
27754 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
27755echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
27756 { (exit 1); exit 1; }; }
27757 fi
27758fi
27759
27760# next check if it came with Tk configuration file
27761if test x"${ac_cv_c_tkconfig}" = x ; then
27762 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
27763 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
27764 fi
27765fi
27766
27767# next check in private source directory
27768#
27769# since ls returns lowest version numbers first, reverse its output
27770if test x"${ac_cv_c_tkh}" = x ; then
27771 for i in \
27772 ${srcdir}/../tk \
27773 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
27774 ${srcdir}/../../tk \
27775 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
27776 ${srcdir}/../../../tk \
27777 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
27778 if test -f $i/generic/tk.h ; then
27779 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27780 break
27781 fi
27782 done
27783fi
27784# finally check in a few common install locations
27785#
27786# since ls returns lowest version numbers first, reverse its output
27787if test x"${ac_cv_c_tkh}" = x ; then
27788 for i in \
27789 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
27790 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
27791 /usr/local/src/tk \
27792 /usr/local/lib/tk \
27793 ${prefix}/include ; do
27794 if test -f $i/generic/tk.h ; then
27795 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27796 break
27797 fi
27798 done
27799fi
27800# see if one is installed
27801if test x"${ac_cv_c_tkh}" = x ; then
27802 if test "${ac_cv_header_tk_h+set}" = set; then
27803 echo "$as_me:$LINENO: checking for tk.h" >&5
27804echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
27805if test "${ac_cv_header_tk_h+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27807fi
27808echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27809echo "${ECHO_T}$ac_cv_header_tk_h" >&6
27810else
27811 # Is the header compilable?
27812echo "$as_me:$LINENO: checking tk.h usability" >&5
27813echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
27814cat >conftest.$ac_ext <<_ACEOF
27815/* confdefs.h. */
27816_ACEOF
27817cat confdefs.h >>conftest.$ac_ext
27818cat >>conftest.$ac_ext <<_ACEOF
27819/* end confdefs.h. */
27820$ac_includes_default
27821#include <tk.h>
27822_ACEOF
27823rm -f conftest.$ac_objext
27824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27825 (eval $ac_compile) 2>conftest.er1
27826 ac_status=$?
27827 grep -v '^ *+' conftest.er1 >conftest.err
27828 rm -f conftest.er1
27829 cat conftest.err >&5
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); } &&
27832 { ac_try='test -z "$ac_c_werror_flag"
27833 || test ! -s conftest.err'
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27836 ac_status=$?
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; } &&
27839 { ac_try='test -s conftest.$ac_objext'
27840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841 (eval $ac_try) 2>&5
27842 ac_status=$?
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; }; then
27845 ac_header_compiler=yes
27846else
27847 echo "$as_me: failed program was:" >&5
27848sed 's/^/| /' conftest.$ac_ext >&5
27849
27850ac_header_compiler=no
27851fi
27852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27854echo "${ECHO_T}$ac_header_compiler" >&6
27855
27856# Is the header present?
27857echo "$as_me:$LINENO: checking tk.h presence" >&5
27858echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
27859cat >conftest.$ac_ext <<_ACEOF
27860/* confdefs.h. */
27861_ACEOF
27862cat confdefs.h >>conftest.$ac_ext
27863cat >>conftest.$ac_ext <<_ACEOF
27864/* end confdefs.h. */
27865#include <tk.h>
27866_ACEOF
27867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27869 ac_status=$?
27870 grep -v '^ *+' conftest.er1 >conftest.err
27871 rm -f conftest.er1
27872 cat conftest.err >&5
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); } >/dev/null; then
27875 if test -s conftest.err; then
27876 ac_cpp_err=$ac_c_preproc_warn_flag
27877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27878 else
27879 ac_cpp_err=
27880 fi
27881else
27882 ac_cpp_err=yes
27883fi
27884if test -z "$ac_cpp_err"; then
27885 ac_header_preproc=yes
27886else
27887 echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890 ac_header_preproc=no
27891fi
27892rm -f conftest.err conftest.$ac_ext
27893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27894echo "${ECHO_T}$ac_header_preproc" >&6
27895
27896# So? What about this header?
27897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27898 yes:no: )
27899 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
27900echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27901 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
27902echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
27903 ac_header_preproc=yes
27904 ;;
27905 no:yes:* )
27906 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
27907echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
27908 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
27909echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
27910 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
27911echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
27912 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
27913echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
27914 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
27915echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
27916 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
27917echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
27918 (
27919 cat <<\_ASBOX
27920## ------------------------------------------ ##
27921## Report this to the AC_PACKAGE_NAME lists. ##
27922## ------------------------------------------ ##
27923_ASBOX
27924 ) |
27925 sed "s/^/$as_me: WARNING: /" >&2
27926 ;;
27927esac
27928echo "$as_me:$LINENO: checking for tk.h" >&5
27929echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
27930if test "${ac_cv_header_tk_h+set}" = set; then
27931 echo $ECHO_N "(cached) $ECHO_C" >&6
27932else
27933 ac_cv_header_tk_h=$ac_header_preproc
27934fi
27935echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27936echo "${ECHO_T}$ac_cv_header_tk_h" >&6
27937
27938fi
27939if test $ac_cv_header_tk_h = yes; then
27940 ac_cv_c_tkh=installed
27941else
27942 ac_cv_c_tkh=""
27943fi
27944
27945
27946fi
27947
27948fi
27949
27950if test x"${ac_cv_c_tkh}" != x ; then
27951 no_tk=""
27952 if test x"${ac_cv_c_tkh}" = x"installed" ; then
27953 echo "$as_me:$LINENO: result: is installed" >&5
27954echo "${ECHO_T}is installed" >&6
27955 TKHDIR=""
27956 else
27957 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
27958echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
27959 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
27960 TKHDIR="-I${ac_cv_c_tkh}"
27961 fi
27962else
27963 TKHDIR="# no Tk directory found"
27964 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
27965echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
27966 no_tk=true
27967fi
27968
27969
27970
27971
27972echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
27973echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
27974if test x"${ac_cv_c_itclh}" = x ; then
27975 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
27976 if test -f $i/generic/itcl.h ; then
27977 ac_cv_c_itclh=`(cd $i/generic; pwd)`
27978 break
27979 fi
27980 done
27981fi
27982if test x"${ac_cv_c_itclh}" = x ; then
27983 ITCLHDIR="# no Itcl private headers found"
27984 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
27985echo "$as_me: error: Can't find Itcl private headers" >&2;}
27986 { (exit 1); exit 1; }; }
27987fi
27988if test x"${ac_cv_c_itclh}" != x ; then
27989 ITCLHDIR="-I${ac_cv_c_itclh}"
27990fi
27991# should always be here
27992# ITCLLIB="../itcl/itcl/unix/libitcl.a"
27993
27994#AC_SUBST(ITCLLIB)
27995
27996
27997echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
27998echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
27999if test x"${ac_cv_c_itkh}" = x ; then
28000 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
28001 if test -f $i/generic/itk.h ; then
28002 ac_cv_c_itkh=`(cd $i/generic; pwd)`
28003 break
28004 fi
28005 done
28006fi
28007if test x"${ac_cv_c_itkh}" = x ; then
28008 ITKHDIR="# no Itk private headers found"
28009 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
28010echo "$as_me: error: Can't find Itk private headers" >&2;}
28011 { (exit 1); exit 1; }; }
28012fi
28013if test x"${ac_cv_c_itkh}" != x ; then
28014 ITKHDIR="-I${ac_cv_c_itkh}"
28015fi
28016# should always be here
28017# ITKLIB="../itcl/itk/unix/libitk.a"
28018
28019#AC_SUBST(ITKLIB)
28020
28021
28022
28023 # now look for Tk library stuff
28024
28025 tkdir="../tk/${configdir}/"
28026
28027 TK_DEPS="${tkdir}${TK_LIB_FILE}"
28028
28029 # now look for Itcl library stuff
28030
28031
28032#
28033# Ok, lets find the itcl configuration
28034# First, look for one uninstalled.
28035# the alternative search directory is invoked by --with-itclconfig
28036#
28037
28038if test x"${no_itcl}" = x ; then
28039 # we reset no_itcl in case something fails here
28040 no_itcl=true
28041
28042# Check whether --with-itclconfig or --without-itclconfig was given.
28043if test "${with_itclconfig+set}" = set; then
28044 withval="$with_itclconfig"
28045 with_itclconfig=${withval}
28046fi;
28047 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
28048echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
28049 if test "${ac_cv_c_itclconfig+set}" = set; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28051else
28052
28053
28054 # First check to see if --with-itclconfig was specified.
28055 if test x"${with_itclconfig}" != x ; then
28056 if test -f "${with_itclconfig}/itclConfig.sh" ; then
28057 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
28058 else
28059 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
28060echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
28061 { (exit 1); exit 1; }; }
28062 fi
28063 fi
28064
28065 # then check for a private Itcl library
28066 if test x"${ac_cv_c_itclconfig}" = x ; then
28067 for i in \
28068 ../itcl/itcl \
28069 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
28070 ../../itcl \
28071 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
28072 ../../../itcl \
28073 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
28074 if test -f "$i/itclConfig.sh" ; then
28075 ac_cv_c_itclconfig=`(cd $i; pwd)`
28076 break
28077 fi
28078 done
28079 fi
28080 # check in a few common install locations
28081 if test x"${ac_cv_c_itclconfig}" = x ; then
28082 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
28083 if test -f "$i/itclConfig.sh" ; then
28084 ac_cv_c_itclconfig=`(cd $i; pwd)`
28085 break
28086 fi
28087 done
28088 fi
28089 # check in a few other private locations
28090 if test x"${ac_cv_c_itclconfig}" = x ; then
28091 for i in \
28092 ${srcdir}/../itcl/itcl \
28093 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
28094 if test -f "$i/itclConfig.sh" ; then
28095 ac_cv_c_itclconfig=`(cd $i; pwd)`
28096 break
28097 fi
28098 done
28099 fi
28100
28101fi
28102
28103 if test x"${ac_cv_c_itclconfig}" = x ; then
28104 ITCLCONFIG="# no Itcl configs found"
28105 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
28106echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
28107 else
28108 no_itcl=
28109 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
28110 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
28111echo "${ECHO_T}found $ITCLCONFIG" >&6
28112 fi
28113fi
28114
28115 if test -z "${no_itcl}"; then
28116
28117 if test -f "$ITCLCONFIG" ; then
28118 . $ITCLCONFIG
28119 fi
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
28133 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
28134 fi
28135
28136
28137 # now look for Itk library stuff
28138
28139#
28140# Ok, lets find the itk configuration
28141# First, look for one uninstalled.
28142# the alternative search directory is invoked by --with-itkconfig
28143#
28144
28145if test x"${no_itk}" = x ; then
28146 # we reset no_itk in case something fails here
28147 no_itk=true
28148
28149# Check whether --with-itkconfig or --without-itkconfig was given.
28150if test "${with_itkconfig+set}" = set; then
28151 withval="$with_itkconfig"
28152 with_itkconfig=${withval}
28153fi;
28154 echo "$as_me:$LINENO: checking for Itk configuration" >&5
28155echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
28156 if test "${ac_cv_c_itkconfig+set}" = set; then
28157 echo $ECHO_N "(cached) $ECHO_C" >&6
28158else
28159
28160
28161 # First check to see if --with-itkconfig was specified.
28162 if test x"${with_itkconfig}" != x ; then
28163 if test -f "${with_itkconfig}/itkConfig.sh" ; then
28164 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
28165 else
28166 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
28167echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
28168 { (exit 1); exit 1; }; }
28169 fi
28170 fi
28171
28172 # then check for a private Itk library
28173 if test x"${ac_cv_c_itkconfig}" = x ; then
28174 for i in \
28175 ../itcl/itk \
28176 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
28177 ../../itk \
28178 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
28179 ../../../itk \
28180 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
28181 if test -f "$i/itkConfig.sh" ; then
28182 ac_cv_c_itkconfig=`(cd $i; pwd)`
28183 break
28184 fi
28185 done
28186 fi
28187 # check in a few common install locations
28188 if test x"${ac_cv_c_itkconfig}" = x ; then
28189 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
28190 if test -f "$i/itkConfig.sh" ; then
28191 ac_cv_c_itkconfig=`(cd $i; pwd)`
28192 break
28193 fi
28194 done
28195 fi
28196 # check in a few other private locations
28197 if test x"${ac_cv_c_itkconfig}" = x ; then
28198 for i in \
28199 ${srcdir}/../itcl/itk \
28200 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
28201 if test -f "$i/itkConfig.sh" ; then
28202 ac_cv_c_itkconfig=`(cd $i; pwd)`
28203 break
28204 fi
28205 done
28206 fi
28207
28208fi
28209
28210 if test x"${ac_cv_c_itkconfig}" = x ; then
28211 ITKCONFIG="# no Itk configs found"
28212 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
28213echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
28214 else
28215 no_itk=
28216 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
28217 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
28218echo "${ECHO_T}found $ITKCONFIG" >&6
28219 fi
28220fi
28221
28222
28223 if test -z "${no_itcl}"; then
28224
28225 if test -f "$ITKCONFIG" ; then
28226 . $ITKCONFIG
28227 fi
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240 ITKLIB="${ITK_BUILD_LIB_SPEC}"
28241 ITK_DEPS="${ITK_LIB_FULL_PATH}"
28242 fi
28243
28244 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
28245
28246 # Include some libraries that Tcl and Tk want.
28247 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
28248 # Yes, the ordering seems wrong here. But it isn't.
28249 # TK_LIBS is the list of libraries that need to be linked
28250 # after Tcl/Tk. Note that this isn't put into LIBS. If it
28251 # were in LIBS then any link tests after this point would
28252 # try to include things like `$(LIBGUI)', which wouldn't work.
28253 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
28254
28255 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
28256 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
28257 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
28258 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
28259 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
28260 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
28261 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
28262
28263 if test x$gdb_cv_os_cygwin = xyes; then
28264 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
28265 WIN32LDAPP="-Wl,--subsystem,console"
28266 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
28267 fi
28268 fi
28269 fi
28270
28271
28272
28273subdirs="$subdirs gdbtk"
28274
28275fi
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290echo "$as_me:$LINENO: checking for X" >&5
28291echo $ECHO_N "checking for X... $ECHO_C" >&6
28292
28293
28294# Check whether --with-x or --without-x was given.
28295if test "${with_x+set}" = set; then
28296 withval="$with_x"
28297
28298fi;
28299# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28300if test "x$with_x" = xno; then
28301 # The user explicitly disabled X.
28302 have_x=disabled
28303else
28304 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28305 # Both variables are already set.
28306 have_x=yes
28307 else
28308 if test "${ac_cv_have_x+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310else
28311 # One or both of the vars are not set, and there is no cached value.
28312ac_x_includes=no ac_x_libraries=no
28313rm -fr conftest.dir
28314if mkdir conftest.dir; then
28315 cd conftest.dir
28316 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28317 cat >Imakefile <<'_ACEOF'
28318acfindx:
28319 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28320_ACEOF
28321 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28323 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28324 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28325 for ac_extension in a so sl; do
28326 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28327 test -f $ac_im_libdir/libX11.$ac_extension; then
28328 ac_im_usrlibdir=$ac_im_libdir; break
28329 fi
28330 done
28331 # Screen out bogus values from the imake configuration. They are
28332 # bogus both because they are the default anyway, and because
28333 # using them would break gcc on systems where it needs fixed includes.
28334 case $ac_im_incroot in
28335 /usr/include) ;;
28336 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28337 esac
28338 case $ac_im_usrlibdir in
28339 /usr/lib | /lib) ;;
28340 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28341 esac
28342 fi
28343 cd ..
28344 rm -fr conftest.dir
28345fi
28346
28347# Standard set of common directories for X headers.
28348# Check X11 before X11Rn because it is often a symlink to the current release.
28349ac_x_header_dirs='
28350/usr/X11/include
28351/usr/X11R6/include
28352/usr/X11R5/include
28353/usr/X11R4/include
28354
28355/usr/include/X11
28356/usr/include/X11R6
28357/usr/include/X11R5
28358/usr/include/X11R4
28359
28360/usr/local/X11/include
28361/usr/local/X11R6/include
28362/usr/local/X11R5/include
28363/usr/local/X11R4/include
28364
28365/usr/local/include/X11
28366/usr/local/include/X11R6
28367/usr/local/include/X11R5
28368/usr/local/include/X11R4
28369
28370/usr/X386/include
28371/usr/x386/include
28372/usr/XFree86/include/X11
28373
28374/usr/include
28375/usr/local/include
28376/usr/unsupported/include
28377/usr/athena/include
28378/usr/local/x11r5/include
28379/usr/lpp/Xamples/include
28380
28381/usr/openwin/include
28382/usr/openwin/share/include'
28383
28384if test "$ac_x_includes" = no; then
28385 # Guess where to find include files, by looking for Intrinsic.h.
28386 # First, try using that file with no special directory specified.
28387 cat >conftest.$ac_ext <<_ACEOF
28388/* confdefs.h. */
28389_ACEOF
28390cat confdefs.h >>conftest.$ac_ext
28391cat >>conftest.$ac_ext <<_ACEOF
28392/* end confdefs.h. */
28393#include <X11/Intrinsic.h>
28394_ACEOF
28395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28397 ac_status=$?
28398 grep -v '^ *+' conftest.er1 >conftest.err
28399 rm -f conftest.er1
28400 cat conftest.err >&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); } >/dev/null; then
28403 if test -s conftest.err; then
28404 ac_cpp_err=$ac_c_preproc_warn_flag
28405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28406 else
28407 ac_cpp_err=
28408 fi
28409else
28410 ac_cpp_err=yes
28411fi
28412if test -z "$ac_cpp_err"; then
28413 # We can compile using X headers with no special include directory.
28414ac_x_includes=
28415else
28416 echo "$as_me: failed program was:" >&5
28417sed 's/^/| /' conftest.$ac_ext >&5
28418
28419 for ac_dir in $ac_x_header_dirs; do
28420 if test -r "$ac_dir/X11/Intrinsic.h"; then
28421 ac_x_includes=$ac_dir
28422 break
28423 fi
28424done
28425fi
28426rm -f conftest.err conftest.$ac_ext
28427fi # $ac_x_includes = no
28428
28429if test "$ac_x_libraries" = no; then
28430 # Check for the libraries.
28431 # See if we find them without any special options.
28432 # Don't add to $LIBS permanently.
28433 ac_save_LIBS=$LIBS
28434 LIBS="-lXt $LIBS"
28435 cat >conftest.$ac_ext <<_ACEOF
28436/* confdefs.h. */
28437_ACEOF
28438cat confdefs.h >>conftest.$ac_ext
28439cat >>conftest.$ac_ext <<_ACEOF
28440/* end confdefs.h. */
28441#include <X11/Intrinsic.h>
28442int
28443main ()
28444{
28445XtMalloc (0)
28446 ;
28447 return 0;
28448}
28449_ACEOF
28450rm -f conftest.$ac_objext conftest$ac_exeext
28451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28452 (eval $ac_link) 2>conftest.er1
28453 ac_status=$?
28454 grep -v '^ *+' conftest.er1 >conftest.err
28455 rm -f conftest.er1
28456 cat conftest.err >&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); } &&
28459 { ac_try='test -z "$ac_c_werror_flag"
28460 || test ! -s conftest.err'
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; } &&
28466 { ac_try='test -s conftest$ac_exeext'
28467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 LIBS=$ac_save_LIBS
28473# We can link X programs with no special library path.
28474ac_x_libraries=
28475else
28476 echo "$as_me: failed program was:" >&5
28477sed 's/^/| /' conftest.$ac_ext >&5
28478
28479LIBS=$ac_save_LIBS
28480for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28481do
28482 # Don't even attempt the hair of trying to link an X program!
28483 for ac_extension in a so sl; do
28484 if test -r $ac_dir/libXt.$ac_extension; then
28485 ac_x_libraries=$ac_dir
28486 break 2
28487 fi
28488 done
28489done
28490fi
28491rm -f conftest.err conftest.$ac_objext \
28492 conftest$ac_exeext conftest.$ac_ext
28493fi # $ac_x_libraries = no
28494
28495if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28496 # Didn't find X anywhere. Cache the known absence of X.
28497 ac_cv_have_x="have_x=no"
28498else
28499 # Record where we found X for the cache.
28500 ac_cv_have_x="have_x=yes \
28501 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
28502fi
28503fi
28504
28505 fi
28506 eval "$ac_cv_have_x"
28507fi # $with_x != no
28508
28509if test "$have_x" != yes; then
28510 echo "$as_me:$LINENO: result: $have_x" >&5
28511echo "${ECHO_T}$have_x" >&6
28512 no_x=yes
28513else
28514 # If each of the values was on the command line, it overrides each guess.
28515 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28516 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28517 # Update the cache value to reflect the command line values.
28518 ac_cv_have_x="have_x=yes \
28519 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
28520 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28521echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
28522fi
28523
28524
28525# Check whether we should enable the TUI, but only do so if we really
28526# can.
28527if test x"$enable_tui" = xyes; then
28528 if test -d $srcdir/tui; then
28529 if test "$ac_cv_search_waddstr" != no; then
28530 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
28531 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
28532 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
28533 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
28534 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
28535 CONFIG_ALL="${CONFIG_ALL} all-tui"
28536 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
28537 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
28538 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
28539 else
28540 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
28541echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
28542 fi
28543 fi
28544fi
28545
28546# Unlike the sim directory, whether a simulator is linked is controlled by
28547# presence of a gdb_sim definition in the target configure.tgt entry.
28548# This code just checks for a few cases where we'd like to ignore those
28549# definitions, even when they're present in the '.mt' file. These cases
28550# are when --disable-sim is specified, or if the simulator directory is
28551# not part of the source tree.
28552#
28553# Check whether --enable-sim or --disable-sim was given.
28554if test "${enable_sim+set}" = set; then
28555 enableval="$enable_sim"
28556 echo "enable_sim = $enable_sim";
28557 echo "enableval = ${enableval}";
28558 case "${enableval}" in
28559 yes) ignore_sim=false ;;
28560 no) ignore_sim=true ;;
28561 *) ignore_sim=false ;;
28562 esac
28563else
28564 ignore_sim=false
28565fi;
28566
28567if test ! -d "${srcdir}/../sim"; then
28568 ignore_sim=true
28569fi
28570
28571SIM=
28572SIM_OBS=
28573if test "${ignore_sim}" = "false"; then
28574 if test x"${gdb_sim}" != x ; then
28575 SIM="${gdb_sim}"
28576 SIM_OBS="remote-sim.o"
28577
28578cat >>confdefs.h <<\_ACEOF
28579#define WITH_SIM 1
28580_ACEOF
28581
28582 fi
28583fi
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598# List of host floatformats.
28599
28600cat >>confdefs.h <<_ACEOF
28601#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
28602_ACEOF
28603
28604
28605cat >>confdefs.h <<_ACEOF
28606#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
28607_ACEOF
28608
28609
28610cat >>confdefs.h <<_ACEOF
28611#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
28612_ACEOF
28613
28614
28615# target_subdir is used by the testsuite to find the target libraries.
28616target_subdir=
28617if test "${host}" != "${target}"; then
28618 target_subdir="${target_alias}/"
28619fi
28620
28621
28622frags=
28623if test "${gdb_native}" = "yes"; then
28624 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
28625 if test ! -f ${host_makefile_frag}; then
28626 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
28627echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
28628 { (exit 1); exit 1; }; }
28629 fi
28630 frags="$frags $host_makefile_frag"
28631else
28632 host_makefile_frag=/dev/null
28633fi
28634
28635
28636
28637
28638if test "${gdb_native}" = "yes"; then
28639# We pick this up from the host configuration file (.mh) because we
28640# do not have a native configuration Makefile fragment.
28641nativefile=`sed -n '
28642s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
28643' ${host_makefile_frag}`
28644fi
28645
28646
28647if test x"${gdb_osabi}" != x ; then
28648
28649cat >>confdefs.h <<_ACEOF
28650#define GDB_OSABI_DEFAULT $gdb_osabi
28651_ACEOF
28652
28653fi
28654
28655# Enable multi-ice-gdb-server.
28656# Check whether --enable-multi-ice or --disable-multi-ice was given.
28657if test "${enable_multi_ice+set}" = set; then
28658 enableval="$enable_multi_ice"
28659 case $enableval in
28660 yes | no)
28661 ;;
28662 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
28663echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
28664 { (exit 1); exit 1; }; } ;;
28665 esac
28666fi;
28667if test "x$enable_multi_ice" = xyes; then
28668
28669
28670subdirs="$subdirs multi-ice"
28671
28672fi
28673
28674# We only build gdbserver automatically in a native configuration.
28675if test "$gdb_native" = "yes"; then
28676 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
28677echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
28678 if test "x$build_gdbserver" = xyes; then
28679 echo "$as_me:$LINENO: result: yes" >&5
28680echo "${ECHO_T}yes" >&6
28681
28682
28683subdirs="$subdirs gdbserver"
28684
28685 else
28686 echo "$as_me:$LINENO: result: no" >&5
28687echo "${ECHO_T}no" >&6
28688 fi
28689fi
28690
28691# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
28692# to an empty version.
28693
28694files=
28695links=
28696
28697rm -f nm.h
28698nm_h=""
28699if test "${nativefile}" != ""; then
28700 nm_h=nm.h
28701 case "${nativefile}" in
28702 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
28703 * ) GDB_NM_FILE="${nativefile}"
28704 esac
28705 files="${files} ${GDB_NM_FILE}"
28706 links="${links} nm.h"
28707
28708cat >>confdefs.h <<_ACEOF
28709#define GDB_NM_FILE "${GDB_NM_FILE}"
28710_ACEOF
28711
28712fi
28713
28714
28715ac_sources="$files"
28716ac_dests="$links"
28717while test -n "$ac_sources"; do
28718 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
28719 set $ac_sources; ac_source=$1; shift; ac_sources=$*
28720 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
28721done
28722 ac_config_links="$ac_config_links $ac_config_links_1"
28723
28724
28725
28726
28727
28728
28729cat >>confdefs.h <<\_ACEOF
28730#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
28731_ACEOF
28732
28733
28734
28735
28736
28737# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28738if test "${with_libiconv_prefix+set}" = set; then
28739 withval="$with_libiconv_prefix"
28740
28741 for dir in `echo "$withval" | tr : ' '`; do
28742 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28743 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28744 done
28745
28746fi;
28747
28748 echo "$as_me:$LINENO: checking for iconv" >&5
28749echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28750if test "${am_cv_func_iconv+set}" = set; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28752else
28753
28754 am_cv_func_iconv="no, consider installing GNU libiconv"
28755 am_cv_lib_iconv=no
28756 cat >conftest.$ac_ext <<_ACEOF
28757/* confdefs.h. */
28758_ACEOF
28759cat confdefs.h >>conftest.$ac_ext
28760cat >>conftest.$ac_ext <<_ACEOF
28761/* end confdefs.h. */
28762#include <stdlib.h>
28763#include <iconv.h>
28764int
28765main ()
28766{
28767iconv_t cd = iconv_open("","");
28768 iconv(cd,NULL,NULL,NULL,NULL);
28769 iconv_close(cd);
28770 ;
28771 return 0;
28772}
28773_ACEOF
28774rm -f conftest.$ac_objext conftest$ac_exeext
28775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28776 (eval $ac_link) 2>conftest.er1
28777 ac_status=$?
28778 grep -v '^ *+' conftest.er1 >conftest.err
28779 rm -f conftest.er1
28780 cat conftest.err >&5
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); } &&
28783 { ac_try='test -z "$ac_c_werror_flag"
28784 || test ! -s conftest.err'
28785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786 (eval $ac_try) 2>&5
28787 ac_status=$?
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; } &&
28790 { ac_try='test -s conftest$ac_exeext'
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
28796 am_cv_func_iconv=yes
28797else
28798 echo "$as_me: failed program was:" >&5
28799sed 's/^/| /' conftest.$ac_ext >&5
28800
28801fi
28802rm -f conftest.err conftest.$ac_objext \
28803 conftest$ac_exeext conftest.$ac_ext
28804 if test "$am_cv_func_iconv" != yes; then
28805 am_save_LIBS="$LIBS"
28806 LIBS="$LIBS -liconv"
28807 cat >conftest.$ac_ext <<_ACEOF
28808/* confdefs.h. */
28809_ACEOF
28810cat confdefs.h >>conftest.$ac_ext
28811cat >>conftest.$ac_ext <<_ACEOF
28812/* end confdefs.h. */
28813#include <stdlib.h>
28814#include <iconv.h>
28815int
28816main ()
28817{
28818iconv_t cd = iconv_open("","");
28819 iconv(cd,NULL,NULL,NULL,NULL);
28820 iconv_close(cd);
28821 ;
28822 return 0;
28823}
28824_ACEOF
28825rm -f conftest.$ac_objext conftest$ac_exeext
28826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28827 (eval $ac_link) 2>conftest.er1
28828 ac_status=$?
28829 grep -v '^ *+' conftest.er1 >conftest.err
28830 rm -f conftest.er1
28831 cat conftest.err >&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } &&
28834 { ac_try='test -z "$ac_c_werror_flag"
28835 || test ! -s conftest.err'
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest$ac_exeext'
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28844 ac_status=$?
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847 am_cv_lib_iconv=yes
28848 am_cv_func_iconv=yes
28849else
28850 echo "$as_me: failed program was:" >&5
28851sed 's/^/| /' conftest.$ac_ext >&5
28852
28853fi
28854rm -f conftest.err conftest.$ac_objext \
28855 conftest$ac_exeext conftest.$ac_ext
28856 LIBS="$am_save_LIBS"
28857 fi
28858
28859fi
28860echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28861echo "${ECHO_T}$am_cv_func_iconv" >&6
28862 if test "$am_cv_func_iconv" = yes; then
28863
28864cat >>confdefs.h <<\_ACEOF
28865#define HAVE_ICONV 1
28866_ACEOF
28867
28868 echo "$as_me:$LINENO: checking for iconv declaration" >&5
28869echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
28870 if test "${am_cv_proto_iconv+set}" = set; then
28871 echo $ECHO_N "(cached) $ECHO_C" >&6
28872else
28873
28874 cat >conftest.$ac_ext <<_ACEOF
28875/* confdefs.h. */
28876_ACEOF
28877cat confdefs.h >>conftest.$ac_ext
28878cat >>conftest.$ac_ext <<_ACEOF
28879/* end confdefs.h. */
28880
28881#include <stdlib.h>
28882#include <iconv.h>
28883extern
28884#ifdef __cplusplus
28885"C"
28886#endif
28887#if defined(__STDC__) || defined(__cplusplus)
28888size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28889#else
28890size_t iconv();
28891#endif
28892
28893int
28894main ()
28895{
28896
28897 ;
28898 return 0;
28899}
28900_ACEOF
28901rm -f conftest.$ac_objext
28902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28903 (eval $ac_compile) 2>conftest.er1
28904 ac_status=$?
28905 grep -v '^ *+' conftest.er1 >conftest.err
28906 rm -f conftest.er1
28907 cat conftest.err >&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } &&
28910 { ac_try='test -z "$ac_c_werror_flag"
28911 || test ! -s conftest.err'
28912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913 (eval $ac_try) 2>&5
28914 ac_status=$?
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; } &&
28917 { ac_try='test -s conftest.$ac_objext'
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28920 ac_status=$?
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; }; then
28923 am_cv_proto_iconv_arg1=""
28924else
28925 echo "$as_me: failed program was:" >&5
28926sed 's/^/| /' conftest.$ac_ext >&5
28927
28928am_cv_proto_iconv_arg1="const"
28929fi
28930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28931 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);"
28932fi
28933
28934 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
28935 echo "$as_me:$LINENO: result: ${ac_t:-
28936 }$am_cv_proto_iconv" >&5
28937echo "${ECHO_T}${ac_t:-
28938 }$am_cv_proto_iconv" >&6
28939
28940cat >>confdefs.h <<_ACEOF
28941#define ICONV_CONST $am_cv_proto_iconv_arg1
28942_ACEOF
28943
28944 fi
28945 LIBICONV=
28946 if test "$am_cv_lib_iconv" = yes; then
28947 LIBICONV="-liconv"
28948 fi
28949
28950
28951
28952 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
28953 ac_config_commands="$ac_config_commands default"
28954cat >confcache <<\_ACEOF
28955# This file is a shell script that caches the results of configure
28956# tests run on this system so they can be shared between configure
28957# scripts and configure runs, see configure's option --config-cache.
28958# It is not useful on other systems. If it contains results you don't
28959# want to keep, you may remove or edit it.
28960#
28961# config.status only pays attention to the cache file if you give it
28962# the --recheck option to rerun configure.
28963#
28964# `ac_cv_env_foo' variables (set or unset) will be overridden when
28965# loading this file, other *unset* `ac_cv_foo' will be assigned the
28966# following values.
28967
28968_ACEOF
28969
28970# The following way of writing the cache mishandles newlines in values,
28971# but we know of no workaround that is simple, portable, and efficient.
28972# So, don't put newlines in cache variables' values.
28973# Ultrix sh set writes to stderr and can't be redirected directly,
28974# and sets the high bit in the cache file unless we assign to the vars.
28975{
28976 (set) 2>&1 |
28977 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28978 *ac_space=\ *)
28979 # `set' does not quote correctly, so add quotes (double-quote
28980 # substitution turns \\\\ into \\, and sed turns \\ into \).
28981 sed -n \
28982 "s/'/'\\\\''/g;
28983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28984 ;;
28985 *)
28986 # `set' quotes correctly as required by POSIX, so do not add quotes.
28987 sed -n \
28988 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28989 ;;
28990 esac;
28991} |
28992 sed '
28993 t clear
28994 : clear
28995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28996 t end
28997 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28998 : end' >>confcache
28999if diff $cache_file confcache >/dev/null 2>&1; then :; else
29000 if test -w $cache_file; then
29001 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29002 cat confcache >$cache_file
29003 else
29004 echo "not updating unwritable cache $cache_file"
29005 fi
29006fi
29007rm -f confcache
29008
29009test "x$prefix" = xNONE && prefix=$ac_default_prefix
29010# Let make expand exec_prefix.
29011test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29012
29013# VPATH may cause trouble with some makes, so we remove $(srcdir),
29014# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29015# trailing colons and then remove the whole line if VPATH becomes empty
29016# (actually we leave an empty line to preserve line numbers).
29017if test "x$srcdir" = x.; then
29018 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29019s/:*\$(srcdir):*/:/;
29020s/:*\${srcdir}:*/:/;
29021s/:*@srcdir@:*/:/;
29022s/^\([^=]*=[ ]*\):*/\1/;
29023s/:*$//;
29024s/^[^=]*=[ ]*$//;
29025}'
29026fi
29027
29028DEFS=-DHAVE_CONFIG_H
29029
29030ac_libobjs=
29031ac_ltlibobjs=
29032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29033 # 1. Remove the extension, and $U if already installed.
29034 ac_i=`echo "$ac_i" |
29035 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29036 # 2. Add them.
29037 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29038 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29039done
29040LIBOBJS=$ac_libobjs
29041
29042LTLIBOBJS=$ac_ltlibobjs
29043
29044
29045if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29046 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29047Usually this means the macro was only invoked conditionally." >&5
29048echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29049Usually this means the macro was only invoked conditionally." >&2;}
29050 { (exit 1); exit 1; }; }
29051fi
29052if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29053 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
29054Usually this means the macro was only invoked conditionally." >&5
29055echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
29056Usually this means the macro was only invoked conditionally." >&2;}
29057 { (exit 1); exit 1; }; }
29058fi
29059
29060 gl_libobjs=
29061 gl_ltlibobjs=
29062 if test -n "$gl_LIBOBJS"; then
29063 # Remove the extension.
29064 sed_drop_objext='s/\.o$//;s/\.obj$//'
29065 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
29066 gl_libobjs="$gl_libobjs $i.$ac_objext"
29067 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29068 done
29069 fi
29070 gl_LIBOBJS=$gl_libobjs
29071
29072 gl_LTLIBOBJS=$gl_ltlibobjs
29073
29074
29075
29076 gltests_libobjs=
29077 gltests_ltlibobjs=
29078 if test -n "$gltests_LIBOBJS"; then
29079 # Remove the extension.
29080 sed_drop_objext='s/\.o$//;s/\.obj$//'
29081 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
29082 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29083 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29084 done
29085 fi
29086 gltests_LIBOBJS=$gltests_libobjs
29087
29088 gltests_LTLIBOBJS=$gltests_ltlibobjs
29089
29090
29091if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29092 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29093Usually this means the macro was only invoked conditionally." >&5
29094echo "$as_me: error: conditional \"AMDEP\" was never defined.
29095Usually this means the macro was only invoked conditionally." >&2;}
29096 { (exit 1); exit 1; }; }
29097fi
29098if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29099 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29100Usually this means the macro was only invoked conditionally." >&5
29101echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29102Usually this means the macro was only invoked conditionally." >&2;}
29103 { (exit 1); exit 1; }; }
29104fi
29105
29106: ${CONFIG_STATUS=./config.status}
29107ac_clean_files_save=$ac_clean_files
29108ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29109{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29110echo "$as_me: creating $CONFIG_STATUS" >&6;}
29111cat >$CONFIG_STATUS <<_ACEOF
29112#! $SHELL
29113# Generated by $as_me.
29114# Run this file to recreate the current configuration.
29115# Compiler output produced by configure, useful for debugging
29116# configure, is in config.log if it exists.
29117
29118debug=false
29119ac_cs_recheck=false
29120ac_cs_silent=false
29121SHELL=\${CONFIG_SHELL-$SHELL}
29122_ACEOF
29123
29124cat >>$CONFIG_STATUS <<\_ACEOF
29125## --------------------- ##
29126## M4sh Initialization. ##
29127## --------------------- ##
29128
29129# Be Bourne compatible
29130if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29131 emulate sh
29132 NULLCMD=:
29133 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29134 # is contrary to our usage. Disable this feature.
29135 alias -g '${1+"$@"}'='"$@"'
29136elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29137 set -o posix
29138fi
29139DUALCASE=1; export DUALCASE # for MKS sh
29140
29141# Support unset when possible.
29142if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29143 as_unset=unset
29144else
29145 as_unset=false
29146fi
29147
29148
29149# Work around bugs in pre-3.0 UWIN ksh.
29150$as_unset ENV MAIL MAILPATH
29151PS1='$ '
29152PS2='> '
29153PS4='+ '
29154
29155# NLS nuisances.
29156for as_var in \
29157 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29158 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29159 LC_TELEPHONE LC_TIME
29160do
29161 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29162 eval $as_var=C; export $as_var
29163 else
29164 $as_unset $as_var
29165 fi
29166done
29167
29168# Required to use basename.
29169if expr a : '\(a\)' >/dev/null 2>&1; then
29170 as_expr=expr
29171else
29172 as_expr=false
29173fi
29174
29175if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29176 as_basename=basename
29177else
29178 as_basename=false
29179fi
29180
29181
29182# Name of the executable.
29183as_me=`$as_basename "$0" ||
29184$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29185 X"$0" : 'X\(//\)$' \| \
29186 X"$0" : 'X\(/\)$' \| \
29187 . : '\(.\)' 2>/dev/null ||
29188echo X/"$0" |
29189 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29190 /^X\/\(\/\/\)$/{ s//\1/; q; }
29191 /^X\/\(\/\).*/{ s//\1/; q; }
29192 s/.*/./; q'`
29193
29194
29195# PATH needs CR, and LINENO needs CR and PATH.
29196# Avoid depending upon Character Ranges.
29197as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29198as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29199as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29200as_cr_digits='0123456789'
29201as_cr_alnum=$as_cr_Letters$as_cr_digits
29202
29203# The user is always right.
29204if test "${PATH_SEPARATOR+set}" != set; then
29205 echo "#! /bin/sh" >conf$$.sh
29206 echo "exit 0" >>conf$$.sh
29207 chmod +x conf$$.sh
29208 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29209 PATH_SEPARATOR=';'
29210 else
29211 PATH_SEPARATOR=:
29212 fi
29213 rm -f conf$$.sh
29214fi
29215
29216
29217 as_lineno_1=$LINENO
29218 as_lineno_2=$LINENO
29219 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29220 test "x$as_lineno_1" != "x$as_lineno_2" &&
29221 test "x$as_lineno_3" = "x$as_lineno_2" || {
29222 # Find who we are. Look in the path if we contain no path at all
29223 # relative or not.
29224 case $0 in
29225 *[\\/]* ) as_myself=$0 ;;
29226 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29227for as_dir in $PATH
29228do
29229 IFS=$as_save_IFS
29230 test -z "$as_dir" && as_dir=.
29231 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29232done
29233
29234 ;;
29235 esac
29236 # We did not find ourselves, most probably we were run as `sh COMMAND'
29237 # in which case we are not to be found in the path.
29238 if test "x$as_myself" = x; then
29239 as_myself=$0
29240 fi
29241 if test ! -f "$as_myself"; then
29242 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29243echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29244 { (exit 1); exit 1; }; }
29245 fi
29246 case $CONFIG_SHELL in
29247 '')
29248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29249for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29250do
29251 IFS=$as_save_IFS
29252 test -z "$as_dir" && as_dir=.
29253 for as_base in sh bash ksh sh5; do
29254 case $as_dir in
29255 /*)
29256 if ("$as_dir/$as_base" -c '
29257 as_lineno_1=$LINENO
29258 as_lineno_2=$LINENO
29259 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29260 test "x$as_lineno_1" != "x$as_lineno_2" &&
29261 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29262 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29263 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29264 CONFIG_SHELL=$as_dir/$as_base
29265 export CONFIG_SHELL
29266 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29267 fi;;
29268 esac
29269 done
29270done
29271;;
29272 esac
29273
29274 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29275 # uniformly replaced by the line number. The first 'sed' inserts a
29276 # line-number line before each line; the second 'sed' does the real
29277 # work. The second script uses 'N' to pair each line-number line
29278 # with the numbered line, and appends trailing '-' during
29279 # substitution so that $LINENO is not a special case at line end.
29280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29281 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29282 sed '=' <$as_myself |
29283 sed '
29284 N
29285 s,$,-,
29286 : loop
29287 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29288 t loop
29289 s,-$,,
29290 s,^['$as_cr_digits']*\n,,
29291 ' >$as_me.lineno &&
29292 chmod +x $as_me.lineno ||
29293 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29294echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29295 { (exit 1); exit 1; }; }
29296
29297 # Don't try to exec as it changes $[0], causing all sort of problems
29298 # (the dirname of $[0] is not the place where we might find the
29299 # original and so on. Autoconf is especially sensible to this).
29300 . ./$as_me.lineno
29301 # Exit status is that of the last command.
29302 exit
29303}
29304
29305
29306case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29307 *c*,-n*) ECHO_N= ECHO_C='
29308' ECHO_T=' ' ;;
29309 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29310 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29311esac
29312
29313if expr a : '\(a\)' >/dev/null 2>&1; then
29314 as_expr=expr
29315else
29316 as_expr=false
29317fi
29318
29319rm -f conf$$ conf$$.exe conf$$.file
29320echo >conf$$.file
29321if ln -s conf$$.file conf$$ 2>/dev/null; then
29322 # We could just check for DJGPP; but this test a) works b) is more generic
29323 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29324 if test -f conf$$.exe; then
29325 # Don't use ln at all; we don't have any links
29326 as_ln_s='cp -p'
29327 else
29328 as_ln_s='ln -s'
29329 fi
29330elif ln conf$$.file conf$$ 2>/dev/null; then
29331 as_ln_s=ln
29332else
29333 as_ln_s='cp -p'
29334fi
29335rm -f conf$$ conf$$.exe conf$$.file
29336
29337if mkdir -p . 2>/dev/null; then
29338 as_mkdir_p=:
29339else
29340 test -d ./-p && rmdir ./-p
29341 as_mkdir_p=false
29342fi
29343
29344as_executable_p="test -f"
29345
29346# Sed expression to map a string onto a valid CPP name.
29347as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29348
29349# Sed expression to map a string onto a valid variable name.
29350as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29351
29352
29353# IFS
29354# We need space, tab and new line, in precisely that order.
29355as_nl='
29356'
29357IFS=" $as_nl"
29358
29359# CDPATH.
29360$as_unset CDPATH
29361
29362exec 6>&1
29363
29364# Open the log real soon, to keep \$[0] and so on meaningful, and to
29365# report actual input values of CONFIG_FILES etc. instead of their
29366# values after options handling. Logging --version etc. is OK.
29367exec 5>>config.log
29368{
29369 echo
29370 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29371## Running $as_me. ##
29372_ASBOX
29373} >&5
29374cat >&5 <<_CSEOF
29375
29376This file was extended by $as_me, which was
29377generated by GNU Autoconf 2.59. Invocation command line was
29378
29379 CONFIG_FILES = $CONFIG_FILES
29380 CONFIG_HEADERS = $CONFIG_HEADERS
29381 CONFIG_LINKS = $CONFIG_LINKS
29382 CONFIG_COMMANDS = $CONFIG_COMMANDS
29383 $ $0 $@
29384
29385_CSEOF
29386echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29387echo >&5
29388_ACEOF
29389
29390# Files that config.status was made for.
29391if test -n "$ac_config_files"; then
29392 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29393fi
29394
29395if test -n "$ac_config_headers"; then
29396 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29397fi
29398
29399if test -n "$ac_config_links"; then
29400 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29401fi
29402
29403if test -n "$ac_config_commands"; then
29404 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29405fi
29406
29407cat >>$CONFIG_STATUS <<\_ACEOF
29408
29409ac_cs_usage="\
29410\`$as_me' instantiates files from templates according to the
29411current configuration.
29412
29413Usage: $0 [OPTIONS] [FILE]...
29414
29415 -h, --help print this help, then exit
29416 -V, --version print version number, then exit
29417 -q, --quiet do not print progress messages
29418 -d, --debug don't remove temporary files
29419 --recheck update $as_me by reconfiguring in the same conditions
29420 --file=FILE[:TEMPLATE]
29421 instantiate the configuration file FILE
29422 --header=FILE[:TEMPLATE]
29423 instantiate the configuration header FILE
29424
29425Configuration files:
29426$config_files
29427
29428Configuration headers:
29429$config_headers
29430
29431Configuration links:
29432$config_links
29433
29434Configuration commands:
29435$config_commands
29436
29437Report bugs to <bug-autoconf@gnu.org>."
29438_ACEOF
29439
29440cat >>$CONFIG_STATUS <<_ACEOF
29441ac_cs_version="\\
29442config.status
29443configured by $0, generated by GNU Autoconf 2.59,
29444 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29445
29446Copyright (C) 2003 Free Software Foundation, Inc.
29447This config.status script is free software; the Free Software Foundation
29448gives unlimited permission to copy, distribute and modify it."
29449srcdir=$srcdir
29450INSTALL="$INSTALL"
29451_ACEOF
29452
29453cat >>$CONFIG_STATUS <<\_ACEOF
29454# If no file are specified by the user, then we need to provide default
29455# value. By we need to know if files were specified by the user.
29456ac_need_defaults=:
29457while test $# != 0
29458do
29459 case $1 in
29460 --*=*)
29461 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29462 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29463 ac_shift=:
29464 ;;
29465 -*)
29466 ac_option=$1
29467 ac_optarg=$2
29468 ac_shift=shift
29469 ;;
29470 *) # This is not an option, so the user has probably given explicit
29471 # arguments.
29472 ac_option=$1
29473 ac_need_defaults=false;;
29474 esac
29475
29476 case $ac_option in
29477 # Handling of the options.
29478_ACEOF
29479cat >>$CONFIG_STATUS <<\_ACEOF
29480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29481 ac_cs_recheck=: ;;
29482 --version | --vers* | -V )
29483 echo "$ac_cs_version"; exit 0 ;;
29484 --he | --h)
29485 # Conflict between --help and --header
29486 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29487Try \`$0 --help' for more information." >&5
29488echo "$as_me: error: ambiguous option: $1
29489Try \`$0 --help' for more information." >&2;}
29490 { (exit 1); exit 1; }; };;
29491 --help | --hel | -h )
29492 echo "$ac_cs_usage"; exit 0 ;;
29493 --debug | --d* | -d )
29494 debug=: ;;
29495 --file | --fil | --fi | --f )
29496 $ac_shift
29497 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29498 ac_need_defaults=false;;
29499 --header | --heade | --head | --hea )
29500 $ac_shift
29501 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29502 ac_need_defaults=false;;
29503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29504 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29505 ac_cs_silent=: ;;
29506
29507 # This is an error.
29508 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29509Try \`$0 --help' for more information." >&5
29510echo "$as_me: error: unrecognized option: $1
29511Try \`$0 --help' for more information." >&2;}
29512 { (exit 1); exit 1; }; } ;;
29513
29514 *) ac_config_targets="$ac_config_targets $1" ;;
29515
29516 esac
29517 shift
29518done
29519
29520ac_configure_extra_args=
29521
29522if $ac_cs_silent; then
29523 exec 6>/dev/null
29524 ac_configure_extra_args="$ac_configure_extra_args --silent"
29525fi
29526
29527_ACEOF
29528cat >>$CONFIG_STATUS <<_ACEOF
29529if \$ac_cs_recheck; then
29530 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29531 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29532fi
29533
29534_ACEOF
29535
29536cat >>$CONFIG_STATUS <<_ACEOF
29537#
29538# INIT-COMMANDS section.
29539#
29540
29541AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29542
29543GCC="$GCC"
29544CC="$CC"
29545acx_cv_header_stdint="$acx_cv_header_stdint"
29546acx_cv_type_int8_t="$acx_cv_type_int8_t"
29547acx_cv_type_int16_t="$acx_cv_type_int16_t"
29548acx_cv_type_int32_t="$acx_cv_type_int32_t"
29549acx_cv_type_int64_t="$acx_cv_type_int64_t"
29550acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
29551ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
29552ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
29553ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29554ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29555ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
29556ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29557ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
29558ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
29559
29560
29561gdb_host_cpu=$gdb_host_cpu
29562nativefile=$nativefile
29563
29564
29565_ACEOF
29566
29567
29568
29569cat >>$CONFIG_STATUS <<\_ACEOF
29570for ac_config_target in $ac_config_targets
29571do
29572 case "$ac_config_target" in
29573 # Handling of arguments.
29574 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29575 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
29576 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
29577 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
29578 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29579 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
29580 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29581 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
29582 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29583echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29584 { (exit 1); exit 1; }; };;
29585 esac
29586done
29587
29588# If the user did not use the arguments to specify the items to instantiate,
29589# then the envvar interface is used. Set only those that are not.
29590# We use the long form for the default assignment because of an extremely
29591# bizarre bug on SunOS 4.1.3.
29592if $ac_need_defaults; then
29593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29595 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29596 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29597fi
29598
29599# Have a temporary directory for convenience. Make it in the build tree
29600# simply because there is no reason to put it here, and in addition,
29601# creating and moving files from /tmp can sometimes cause problems.
29602# Create a temporary directory, and hook for its removal unless debugging.
29603$debug ||
29604{
29605 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29606 trap '{ (exit 1); exit 1; }' 1 2 13 15
29607}
29608
29609# Create a (secure) tmp directory for tmp files.
29610
29611{
29612 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29613 test -n "$tmp" && test -d "$tmp"
29614} ||
29615{
29616 tmp=./confstat$$-$RANDOM
29617 (umask 077 && mkdir $tmp)
29618} ||
29619{
29620 echo "$me: cannot create a temporary directory in ." >&2
29621 { (exit 1); exit 1; }
29622}
29623
29624_ACEOF
29625
29626cat >>$CONFIG_STATUS <<_ACEOF
29627
29628#
29629# CONFIG_FILES section.
29630#
29631
29632# No need to generate the scripts if there are no CONFIG_FILES.
29633# This happens for instance when ./config.status config.h
29634if test -n "\$CONFIG_FILES"; then
29635 # Protect against being on the right side of a sed subst in config.status.
29636 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29637 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29638s,@SHELL@,$SHELL,;t t
29639s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29640s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29641s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29642s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29643s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29644s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29645s,@exec_prefix@,$exec_prefix,;t t
29646s,@prefix@,$prefix,;t t
29647s,@program_transform_name@,$program_transform_name,;t t
29648s,@bindir@,$bindir,;t t
29649s,@sbindir@,$sbindir,;t t
29650s,@libexecdir@,$libexecdir,;t t
29651s,@datadir@,$datadir,;t t
29652s,@sysconfdir@,$sysconfdir,;t t
29653s,@sharedstatedir@,$sharedstatedir,;t t
29654s,@localstatedir@,$localstatedir,;t t
29655s,@libdir@,$libdir,;t t
29656s,@includedir@,$includedir,;t t
29657s,@oldincludedir@,$oldincludedir,;t t
29658s,@infodir@,$infodir,;t t
29659s,@mandir@,$mandir,;t t
29660s,@build_alias@,$build_alias,;t t
29661s,@host_alias@,$host_alias,;t t
29662s,@target_alias@,$target_alias,;t t
29663s,@DEFS@,$DEFS,;t t
29664s,@ECHO_C@,$ECHO_C,;t t
29665s,@ECHO_N@,$ECHO_N,;t t
29666s,@ECHO_T@,$ECHO_T,;t t
29667s,@LIBS@,$LIBS,;t t
29668s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29669s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29670s,@MAINT@,$MAINT,;t t
29671s,@CC@,$CC,;t t
29672s,@CFLAGS@,$CFLAGS,;t t
29673s,@LDFLAGS@,$LDFLAGS,;t t
29674s,@CPPFLAGS@,$CPPFLAGS,;t t
29675s,@ac_ct_CC@,$ac_ct_CC,;t t
29676s,@EXEEXT@,$EXEEXT,;t t
29677s,@OBJEXT@,$OBJEXT,;t t
29678s,@CPP@,$CPP,;t t
29679s,@EGREP@,$EGREP,;t t
29680s,@RANLIB@,$RANLIB,;t t
29681s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29682s,@build@,$build,;t t
29683s,@build_cpu@,$build_cpu,;t t
29684s,@build_vendor@,$build_vendor,;t t
29685s,@build_os@,$build_os,;t t
29686s,@host@,$host,;t t
29687s,@host_cpu@,$host_cpu,;t t
29688s,@host_vendor@,$host_vendor,;t t
29689s,@host_os@,$host_os,;t t
29690s,@target@,$target,;t t
29691s,@target_cpu@,$target_cpu,;t t
29692s,@target_vendor@,$target_vendor,;t t
29693s,@target_os@,$target_os,;t t
29694s,@USE_NLS@,$USE_NLS,;t t
29695s,@LIBINTL@,$LIBINTL,;t t
29696s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29697s,@INCINTL@,$INCINTL,;t t
29698s,@XGETTEXT@,$XGETTEXT,;t t
29699s,@GMSGFMT@,$GMSGFMT,;t t
29700s,@POSUB@,$POSUB,;t t
29701s,@CATALOGS@,$CATALOGS,;t t
29702s,@DATADIRNAME@,$DATADIRNAME,;t t
29703s,@INSTOBJEXT@,$INSTOBJEXT,;t t
29704s,@GENCAT@,$GENCAT,;t t
29705s,@CATOBJEXT@,$CATOBJEXT,;t t
29706s,@localedir@,$localedir,;t t
29707s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
29708s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
29709s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
29710s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
29711s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
29712s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
29713s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
29714s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
29715s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
29716s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
29717s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
29718s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
29719s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
29720s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
29721s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
29722s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
29723s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
29724s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
29725s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
29726s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
29727s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
29728s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
29729s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
29730s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
29731s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
29732s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
29733s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
29734s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
29735s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
29736s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
29737s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
29738s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
29739s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
29740s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
29741s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
29742s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
29743s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
29744s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
29745s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
29746s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
29747s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
29748s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
29749s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
29750s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
29751s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
29752s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
29753s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
29754s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
29755s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
29756s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
29757s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
29758s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
29759s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
29760s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
29761s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
29762s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
29763s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
29764s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
29765s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
29766s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29767s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
29768s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
29769s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
29770s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
29771s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
29772s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
29773s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
29774s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
29775s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
29776s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
29777s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
29778s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
29779s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
29780s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
29781s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
29782s,@STDINT_H@,$STDINT_H,;t t
29783s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
29784s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
29785s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
29786s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
29787s,@WCHAR_H@,$WCHAR_H,;t t
29788s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
29789s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
29790s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
29791s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
29792s,@PACKAGE@,$PACKAGE,;t t
29793s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29794s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29795s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29796s,@CYGPATH_W@,$CYGPATH_W,;t t
29797s,@VERSION@,$VERSION,;t t
29798s,@ACLOCAL@,$ACLOCAL,;t t
29799s,@AUTOCONF@,$AUTOCONF,;t t
29800s,@AUTOMAKE@,$AUTOMAKE,;t t
29801s,@AUTOHEADER@,$AUTOHEADER,;t t
29802s,@MAKEINFO@,$MAKEINFO,;t t
29803s,@install_sh@,$install_sh,;t t
29804s,@STRIP@,$STRIP,;t t
29805s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29806s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29807s,@mkdir_p@,$mkdir_p,;t t
29808s,@AWK@,$AWK,;t t
29809s,@SET_MAKE@,$SET_MAKE,;t t
29810s,@am__leading_dot@,$am__leading_dot,;t t
29811s,@AMTAR@,$AMTAR,;t t
29812s,@am__tar@,$am__tar,;t t
29813s,@am__untar@,$am__untar,;t t
29814s,@DEPDIR@,$DEPDIR,;t t
29815s,@am__include@,$am__include,;t t
29816s,@am__quote@,$am__quote,;t t
29817s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29818s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29819s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29820s,@CCDEPMODE@,$CCDEPMODE,;t t
29821s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29822s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29823s,@subdirs@,$subdirs,;t t
29824s,@TARGET_OBS@,$TARGET_OBS,;t t
29825s,@LN_S@,$LN_S,;t t
29826s,@YACC@,$YACC,;t t
29827s,@AR@,$AR,;t t
29828s,@ac_ct_AR@,$ac_ct_AR,;t t
29829s,@DLLTOOL@,$DLLTOOL,;t t
29830s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
29831s,@WINDRES@,$WINDRES,;t t
29832s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
29833s,@MIG@,$MIG,;t t
29834s,@ac_ct_MIG@,$ac_ct_MIG,;t t
29835s,@READLINE@,$READLINE,;t t
29836s,@READLINE_DEPS@,$READLINE_DEPS,;t t
29837s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
29838s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
29839s,@LIBEXPAT@,$LIBEXPAT,;t t
29840s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
29841s,@ALLOCA@,$ALLOCA,;t t
29842s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
29843s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29844s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29845s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
29846s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
29847s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
29848s,@WIN32LIBS@,$WIN32LIBS,;t t
29849s,@LIBGUI@,$LIBGUI,;t t
29850s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
29851s,@WIN32LDAPP@,$WIN32LDAPP,;t t
29852s,@TCL_VERSION@,$TCL_VERSION,;t t
29853s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
29854s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
29855s,@TCL_CC@,$TCL_CC,;t t
29856s,@TCL_DEFS@,$TCL_DEFS,;t t
29857s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
29858s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
29859s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
29860s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
29861s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
29862s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
29863s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
29864s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
29865s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
29866s,@TCL_RANLIB@,$TCL_RANLIB,;t t
29867s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
29868s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
29869s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
29870s,@TK_VERSION@,$TK_VERSION,;t t
29871s,@TK_DEFS@,$TK_DEFS,;t t
29872s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
29873s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
29874s,@TK_XLIBSW@,$TK_XLIBSW,;t t
29875s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
29876s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
29877s,@TCLHDIR@,$TCLHDIR,;t t
29878s,@TKHDIR@,$TKHDIR,;t t
29879s,@ITCLHDIR@,$ITCLHDIR,;t t
29880s,@ITKHDIR@,$ITKHDIR,;t t
29881s,@ITCL_VERSION@,$ITCL_VERSION,;t t
29882s,@ITCL_DEFS@,$ITCL_DEFS,;t t
29883s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
29884s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
29885s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
29886s,@ITK_VERSION@,$ITK_VERSION,;t t
29887s,@ITK_DEFS@,$ITK_DEFS,;t t
29888s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
29889s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
29890s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
29891s,@X_CFLAGS@,$X_CFLAGS,;t t
29892s,@X_LDFLAGS@,$X_LDFLAGS,;t t
29893s,@X_LIBS@,$X_LIBS,;t t
29894s,@TCL_DEPS@,$TCL_DEPS,;t t
29895s,@TK_DEPS@,$TK_DEPS,;t t
29896s,@ITCLLIB@,$ITCLLIB,;t t
29897s,@ITCL_DEPS@,$ITCL_DEPS,;t t
29898s,@ITKLIB@,$ITKLIB,;t t
29899s,@ITK_DEPS@,$ITK_DEPS,;t t
29900s,@GDBTKLIBS@,$GDBTKLIBS,;t t
29901s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
29902s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
29903s,@SIM@,$SIM,;t t
29904s,@SIM_OBS@,$SIM_OBS,;t t
29905s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
29906s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
29907s,@CONFIG_OBS@,$CONFIG_OBS,;t t
29908s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
29909s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
29910s,@CONFIG_ALL@,$CONFIG_ALL,;t t
29911s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
29912s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
29913s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
29914s,@target_subdir@,$target_subdir,;t t
29915s,@frags@,$frags,;t t
29916s,@nm_h@,$nm_h,;t t
29917s,@LIBICONV@,$LIBICONV,;t t
29918s,@LIBOBJS@,$LIBOBJS,;t t
29919s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29920s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
29921s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
29922s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
29923s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
29924/@host_makefile_frag@/r $host_makefile_frag
29925s,@host_makefile_frag@,,;t t
29926CEOF
29927
29928_ACEOF
29929
29930 cat >>$CONFIG_STATUS <<\_ACEOF
29931 # Split the substitutions into bite-sized pieces for seds with
29932 # small command number limits, like on Digital OSF/1 and HP-UX.
29933 ac_max_sed_lines=48
29934 ac_sed_frag=1 # Number of current file.
29935 ac_beg=1 # First line for current file.
29936 ac_end=$ac_max_sed_lines # Line after last line for current file.
29937 ac_more_lines=:
29938 ac_sed_cmds=
29939 while $ac_more_lines; do
29940 if test $ac_beg -gt 1; then
29941 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29942 else
29943 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29944 fi
29945 if test ! -s $tmp/subs.frag; then
29946 ac_more_lines=false
29947 else
29948 # The purpose of the label and of the branching condition is to
29949 # speed up the sed processing (if there are no `@' at all, there
29950 # is no need to browse any of the substitutions).
29951 # These are the two extra sed commands mentioned above.
29952 (echo ':t
29953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29954 if test -z "$ac_sed_cmds"; then
29955 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29956 else
29957 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29958 fi
29959 ac_sed_frag=`expr $ac_sed_frag + 1`
29960 ac_beg=$ac_end
29961 ac_end=`expr $ac_end + $ac_max_sed_lines`
29962 fi
29963 done
29964 if test -z "$ac_sed_cmds"; then
29965 ac_sed_cmds=cat
29966 fi
29967fi # test -n "$CONFIG_FILES"
29968
29969_ACEOF
29970cat >>$CONFIG_STATUS <<\_ACEOF
29971for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29973 case $ac_file in
29974 - | *:- | *:-:* ) # input from stdin
29975 cat >$tmp/stdin
29976 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29978 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29980 * ) ac_file_in=$ac_file.in ;;
29981 esac
29982
29983 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29984 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29985$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29986 X"$ac_file" : 'X\(//\)[^/]' \| \
29987 X"$ac_file" : 'X\(//\)$' \| \
29988 X"$ac_file" : 'X\(/\)' \| \
29989 . : '\(.\)' 2>/dev/null ||
29990echo X"$ac_file" |
29991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29993 /^X\(\/\/\)$/{ s//\1/; q; }
29994 /^X\(\/\).*/{ s//\1/; q; }
29995 s/.*/./; q'`
29996 { if $as_mkdir_p; then
29997 mkdir -p "$ac_dir"
29998 else
29999 as_dir="$ac_dir"
30000 as_dirs=
30001 while test ! -d "$as_dir"; do
30002 as_dirs="$as_dir $as_dirs"
30003 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30005 X"$as_dir" : 'X\(//\)[^/]' \| \
30006 X"$as_dir" : 'X\(//\)$' \| \
30007 X"$as_dir" : 'X\(/\)' \| \
30008 . : '\(.\)' 2>/dev/null ||
30009echo X"$as_dir" |
30010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30011 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30012 /^X\(\/\/\)$/{ s//\1/; q; }
30013 /^X\(\/\).*/{ s//\1/; q; }
30014 s/.*/./; q'`
30015 done
30016 test ! -n "$as_dirs" || mkdir $as_dirs
30017 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30018echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30019 { (exit 1); exit 1; }; }; }
30020
30021 ac_builddir=.
30022
30023if test "$ac_dir" != .; then
30024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30025 # A "../" for each directory in $ac_dir_suffix.
30026 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30027else
30028 ac_dir_suffix= ac_top_builddir=
30029fi
30030
30031case $srcdir in
30032 .) # No --srcdir option. We are building in place.
30033 ac_srcdir=.
30034 if test -z "$ac_top_builddir"; then
30035 ac_top_srcdir=.
30036 else
30037 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30038 fi ;;
30039 [\\/]* | ?:[\\/]* ) # Absolute path.
30040 ac_srcdir=$srcdir$ac_dir_suffix;
30041 ac_top_srcdir=$srcdir ;;
30042 *) # Relative path.
30043 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30044 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30045esac
30046
30047# Do not use `cd foo && pwd` to compute absolute paths, because
30048# the directories may not exist.
30049case `pwd` in
30050.) ac_abs_builddir="$ac_dir";;
30051*)
30052 case "$ac_dir" in
30053 .) ac_abs_builddir=`pwd`;;
30054 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30055 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30056 esac;;
30057esac
30058case $ac_abs_builddir in
30059.) ac_abs_top_builddir=${ac_top_builddir}.;;
30060*)
30061 case ${ac_top_builddir}. in
30062 .) ac_abs_top_builddir=$ac_abs_builddir;;
30063 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30064 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30065 esac;;
30066esac
30067case $ac_abs_builddir in
30068.) ac_abs_srcdir=$ac_srcdir;;
30069*)
30070 case $ac_srcdir in
30071 .) ac_abs_srcdir=$ac_abs_builddir;;
30072 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30073 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30074 esac;;
30075esac
30076case $ac_abs_builddir in
30077.) ac_abs_top_srcdir=$ac_top_srcdir;;
30078*)
30079 case $ac_top_srcdir in
30080 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30081 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30082 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30083 esac;;
30084esac
30085
30086
30087 case $INSTALL in
30088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30089 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30090 esac
30091
30092 if test x"$ac_file" != x-; then
30093 { echo "$as_me:$LINENO: creating $ac_file" >&5
30094echo "$as_me: creating $ac_file" >&6;}
30095 rm -f "$ac_file"
30096 fi
30097 # Let's still pretend it is `configure' which instantiates (i.e., don't
30098 # use $as_me), people would be surprised to read:
30099 # /* config.h. Generated by config.status. */
30100 if test x"$ac_file" = x-; then
30101 configure_input=
30102 else
30103 configure_input="$ac_file. "
30104 fi
30105 configure_input=$configure_input"Generated from `echo $ac_file_in |
30106 sed 's,.*/,,'` by configure."
30107
30108 # First look for the input files in the build tree, otherwise in the
30109 # src tree.
30110 ac_file_inputs=`IFS=:
30111 for f in $ac_file_in; do
30112 case $f in
30113 -) echo $tmp/stdin ;;
30114 [\\/$]*)
30115 # Absolute (can't be DOS-style, as IFS=:)
30116 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30117echo "$as_me: error: cannot find input file: $f" >&2;}
30118 { (exit 1); exit 1; }; }
30119 echo "$f";;
30120 *) # Relative
30121 if test -f "$f"; then
30122 # Build tree
30123 echo "$f"
30124 elif test -f "$srcdir/$f"; then
30125 # Source tree
30126 echo "$srcdir/$f"
30127 else
30128 # /dev/null tree
30129 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30130echo "$as_me: error: cannot find input file: $f" >&2;}
30131 { (exit 1); exit 1; }; }
30132 fi;;
30133 esac
30134 done` || { (exit 1); exit 1; }
30135_ACEOF
30136cat >>$CONFIG_STATUS <<_ACEOF
30137 sed "$ac_vpsub
30138$extrasub
30139_ACEOF
30140cat >>$CONFIG_STATUS <<\_ACEOF
30141:t
30142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30143s,@configure_input@,$configure_input,;t t
30144s,@srcdir@,$ac_srcdir,;t t
30145s,@abs_srcdir@,$ac_abs_srcdir,;t t
30146s,@top_srcdir@,$ac_top_srcdir,;t t
30147s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30148s,@builddir@,$ac_builddir,;t t
30149s,@abs_builddir@,$ac_abs_builddir,;t t
30150s,@top_builddir@,$ac_top_builddir,;t t
30151s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30152s,@INSTALL@,$ac_INSTALL,;t t
30153" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30154 rm -f $tmp/stdin
30155 if test x"$ac_file" != x-; then
30156 mv $tmp/out $ac_file
30157 else
30158 cat $tmp/out
30159 rm -f $tmp/out
30160 fi
30161
30162done
30163_ACEOF
30164cat >>$CONFIG_STATUS <<\_ACEOF
30165
30166#
30167# CONFIG_HEADER section.
30168#
30169
30170# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30171# NAME is the cpp macro being defined and VALUE is the value it is being given.
30172#
30173# ac_d sets the value in "#define NAME VALUE" lines.
30174ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30175ac_dB='[ ].*$,\1#\2'
30176ac_dC=' '
30177ac_dD=',;t'
30178# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30179ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30180ac_uB='$,\1#\2define\3'
30181ac_uC=' '
30182ac_uD=',;t'
30183
30184for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30186 case $ac_file in
30187 - | *:- | *:-:* ) # input from stdin
30188 cat >$tmp/stdin
30189 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30191 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30192 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30193 * ) ac_file_in=$ac_file.in ;;
30194 esac
30195
30196 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30197echo "$as_me: creating $ac_file" >&6;}
30198
30199 # First look for the input files in the build tree, otherwise in the
30200 # src tree.
30201 ac_file_inputs=`IFS=:
30202 for f in $ac_file_in; do
30203 case $f in
30204 -) echo $tmp/stdin ;;
30205 [\\/$]*)
30206 # Absolute (can't be DOS-style, as IFS=:)
30207 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30208echo "$as_me: error: cannot find input file: $f" >&2;}
30209 { (exit 1); exit 1; }; }
30210 # Do quote $f, to prevent DOS paths from being IFS'd.
30211 echo "$f";;
30212 *) # Relative
30213 if test -f "$f"; then
30214 # Build tree
30215 echo "$f"
30216 elif test -f "$srcdir/$f"; then
30217 # Source tree
30218 echo "$srcdir/$f"
30219 else
30220 # /dev/null tree
30221 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30222echo "$as_me: error: cannot find input file: $f" >&2;}
30223 { (exit 1); exit 1; }; }
30224 fi;;
30225 esac
30226 done` || { (exit 1); exit 1; }
30227 # Remove the trailing spaces.
30228 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30229
30230_ACEOF
30231
30232# Transform confdefs.h into two sed scripts, `conftest.defines' and
30233# `conftest.undefs', that substitutes the proper values into
30234# config.h.in to produce config.h. The first handles `#define'
30235# templates, and the second `#undef' templates.
30236# And first: Protect against being on the right side of a sed subst in
30237# config.status. Protect against being in an unquoted here document
30238# in config.status.
30239rm -f conftest.defines conftest.undefs
30240# Using a here document instead of a string reduces the quoting nightmare.
30241# Putting comments in sed scripts is not portable.
30242#
30243# `end' is used to avoid that the second main sed command (meant for
30244# 0-ary CPP macros) applies to n-ary macro definitions.
30245# See the Autoconf documentation for `clear'.
30246cat >confdef2sed.sed <<\_ACEOF
30247s/[\\&,]/\\&/g
30248s,[\\$`],\\&,g
30249t clear
30250: clear
30251s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30252t end
30253s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30254: end
30255_ACEOF
30256# If some macros were called several times there might be several times
30257# the same #defines, which is useless. Nevertheless, we may not want to
30258# sort them, since we want the *last* AC-DEFINE to be honored.
30259uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30260sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30261rm -f confdef2sed.sed
30262
30263# This sed command replaces #undef with comments. This is necessary, for
30264# example, in the case of _POSIX_SOURCE, which is predefined and required
30265# on some systems where configure will not decide to define it.
30266cat >>conftest.undefs <<\_ACEOF
30267s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30268_ACEOF
30269
30270# Break up conftest.defines because some shells have a limit on the size
30271# of here documents, and old seds have small limits too (100 cmds).
30272echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30273echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30274echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30275echo ' :' >>$CONFIG_STATUS
30276rm -f conftest.tail
30277while grep . conftest.defines >/dev/null
30278do
30279 # Write a limited-size here document to $tmp/defines.sed.
30280 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30281 # Speed up: don't consider the non `#define' lines.
30282 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30283 # Work around the forget-to-reset-the-flag bug.
30284 echo 't clr' >>$CONFIG_STATUS
30285 echo ': clr' >>$CONFIG_STATUS
30286 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30287 echo 'CEOF
30288 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30289 rm -f $tmp/in
30290 mv $tmp/out $tmp/in
30291' >>$CONFIG_STATUS
30292 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30293 rm -f conftest.defines
30294 mv conftest.tail conftest.defines
30295done
30296rm -f conftest.defines
30297echo ' fi # grep' >>$CONFIG_STATUS
30298echo >>$CONFIG_STATUS
30299
30300# Break up conftest.undefs because some shells have a limit on the size
30301# of here documents, and old seds have small limits too (100 cmds).
30302echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30303rm -f conftest.tail
30304while grep . conftest.undefs >/dev/null
30305do
30306 # Write a limited-size here document to $tmp/undefs.sed.
30307 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30308 # Speed up: don't consider the non `#undef'
30309 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30310 # Work around the forget-to-reset-the-flag bug.
30311 echo 't clr' >>$CONFIG_STATUS
30312 echo ': clr' >>$CONFIG_STATUS
30313 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30314 echo 'CEOF
30315 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30316 rm -f $tmp/in
30317 mv $tmp/out $tmp/in
30318' >>$CONFIG_STATUS
30319 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30320 rm -f conftest.undefs
30321 mv conftest.tail conftest.undefs
30322done
30323rm -f conftest.undefs
30324
30325cat >>$CONFIG_STATUS <<\_ACEOF
30326 # Let's still pretend it is `configure' which instantiates (i.e., don't
30327 # use $as_me), people would be surprised to read:
30328 # /* config.h. Generated by config.status. */
30329 if test x"$ac_file" = x-; then
30330 echo "/* Generated by configure. */" >$tmp/config.h
30331 else
30332 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30333 fi
30334 cat $tmp/in >>$tmp/config.h
30335 rm -f $tmp/in
30336 if test x"$ac_file" != x-; then
30337 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30338 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30339echo "$as_me: $ac_file is unchanged" >&6;}
30340 else
30341 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30342$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30343 X"$ac_file" : 'X\(//\)[^/]' \| \
30344 X"$ac_file" : 'X\(//\)$' \| \
30345 X"$ac_file" : 'X\(/\)' \| \
30346 . : '\(.\)' 2>/dev/null ||
30347echo X"$ac_file" |
30348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30350 /^X\(\/\/\)$/{ s//\1/; q; }
30351 /^X\(\/\).*/{ s//\1/; q; }
30352 s/.*/./; q'`
30353 { if $as_mkdir_p; then
30354 mkdir -p "$ac_dir"
30355 else
30356 as_dir="$ac_dir"
30357 as_dirs=
30358 while test ! -d "$as_dir"; do
30359 as_dirs="$as_dir $as_dirs"
30360 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30361$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30362 X"$as_dir" : 'X\(//\)[^/]' \| \
30363 X"$as_dir" : 'X\(//\)$' \| \
30364 X"$as_dir" : 'X\(/\)' \| \
30365 . : '\(.\)' 2>/dev/null ||
30366echo X"$as_dir" |
30367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30369 /^X\(\/\/\)$/{ s//\1/; q; }
30370 /^X\(\/\).*/{ s//\1/; q; }
30371 s/.*/./; q'`
30372 done
30373 test ! -n "$as_dirs" || mkdir $as_dirs
30374 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30375echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30376 { (exit 1); exit 1; }; }; }
30377
30378 rm -f $ac_file
30379 mv $tmp/config.h $ac_file
30380 fi
30381 else
30382 cat $tmp/config.h
30383 rm -f $tmp/config.h
30384 fi
30385# Compute $ac_file's index in $config_headers.
30386_am_stamp_count=1
30387for _am_header in $config_headers :; do
30388 case $_am_header in
30389 $ac_file | $ac_file:* )
30390 break ;;
30391 * )
30392 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30393 esac
30394done
30395echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30396$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30397 X$ac_file : 'X\(//\)[^/]' \| \
30398 X$ac_file : 'X\(//\)$' \| \
30399 X$ac_file : 'X\(/\)' \| \
30400 . : '\(.\)' 2>/dev/null ||
30401echo X$ac_file |
30402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30404 /^X\(\/\/\)$/{ s//\1/; q; }
30405 /^X\(\/\).*/{ s//\1/; q; }
30406 s/.*/./; q'`/stamp-h$_am_stamp_count
30407done
30408_ACEOF
30409cat >>$CONFIG_STATUS <<\_ACEOF
30410
30411#
30412# CONFIG_LINKS section.
30413#
30414
30415for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30416 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30417 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30418
30419 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30420echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30421
30422 if test ! -r $srcdir/$ac_source; then
30423 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30424echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30425 { (exit 1); exit 1; }; }
30426 fi
30427 rm -f $ac_dest
30428
30429 # Make relative symlinks.
30430 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30431$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30432 X"$ac_dest" : 'X\(//\)[^/]' \| \
30433 X"$ac_dest" : 'X\(//\)$' \| \
30434 X"$ac_dest" : 'X\(/\)' \| \
30435 . : '\(.\)' 2>/dev/null ||
30436echo X"$ac_dest" |
30437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30439 /^X\(\/\/\)$/{ s//\1/; q; }
30440 /^X\(\/\).*/{ s//\1/; q; }
30441 s/.*/./; q'`
30442 { if $as_mkdir_p; then
30443 mkdir -p "$ac_dest_dir"
30444 else
30445 as_dir="$ac_dest_dir"
30446 as_dirs=
30447 while test ! -d "$as_dir"; do
30448 as_dirs="$as_dir $as_dirs"
30449 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30451 X"$as_dir" : 'X\(//\)[^/]' \| \
30452 X"$as_dir" : 'X\(//\)$' \| \
30453 X"$as_dir" : 'X\(/\)' \| \
30454 . : '\(.\)' 2>/dev/null ||
30455echo X"$as_dir" |
30456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30458 /^X\(\/\/\)$/{ s//\1/; q; }
30459 /^X\(\/\).*/{ s//\1/; q; }
30460 s/.*/./; q'`
30461 done
30462 test ! -n "$as_dirs" || mkdir $as_dirs
30463 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30464echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30465 { (exit 1); exit 1; }; }; }
30466
30467 ac_builddir=.
30468
30469if test "$ac_dest_dir" != .; then
30470 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30471 # A "../" for each directory in $ac_dir_suffix.
30472 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30473else
30474 ac_dir_suffix= ac_top_builddir=
30475fi
30476
30477case $srcdir in
30478 .) # No --srcdir option. We are building in place.
30479 ac_srcdir=.
30480 if test -z "$ac_top_builddir"; then
30481 ac_top_srcdir=.
30482 else
30483 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30484 fi ;;
30485 [\\/]* | ?:[\\/]* ) # Absolute path.
30486 ac_srcdir=$srcdir$ac_dir_suffix;
30487 ac_top_srcdir=$srcdir ;;
30488 *) # Relative path.
30489 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30490 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30491esac
30492
30493# Do not use `cd foo && pwd` to compute absolute paths, because
30494# the directories may not exist.
30495case `pwd` in
30496.) ac_abs_builddir="$ac_dest_dir";;
30497*)
30498 case "$ac_dest_dir" in
30499 .) ac_abs_builddir=`pwd`;;
30500 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30501 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30502 esac;;
30503esac
30504case $ac_abs_builddir in
30505.) ac_abs_top_builddir=${ac_top_builddir}.;;
30506*)
30507 case ${ac_top_builddir}. in
30508 .) ac_abs_top_builddir=$ac_abs_builddir;;
30509 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30510 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30511 esac;;
30512esac
30513case $ac_abs_builddir in
30514.) ac_abs_srcdir=$ac_srcdir;;
30515*)
30516 case $ac_srcdir in
30517 .) ac_abs_srcdir=$ac_abs_builddir;;
30518 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30519 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30520 esac;;
30521esac
30522case $ac_abs_builddir in
30523.) ac_abs_top_srcdir=$ac_top_srcdir;;
30524*)
30525 case $ac_top_srcdir in
30526 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30527 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30528 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30529 esac;;
30530esac
30531
30532
30533 case $srcdir in
30534 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30535 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30536 esac
30537
30538 # Try a symlink, then a hard link, then a copy.
30539 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30540 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30541 cp -p $srcdir/$ac_source $ac_dest ||
30542 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30543echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30544 { (exit 1); exit 1; }; }
30545done
30546_ACEOF
30547cat >>$CONFIG_STATUS <<\_ACEOF
30548
30549#
30550# CONFIG_COMMANDS section.
30551#
30552for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30553 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30554 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30555 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30556$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30557 X"$ac_dest" : 'X\(//\)[^/]' \| \
30558 X"$ac_dest" : 'X\(//\)$' \| \
30559 X"$ac_dest" : 'X\(/\)' \| \
30560 . : '\(.\)' 2>/dev/null ||
30561echo X"$ac_dest" |
30562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30564 /^X\(\/\/\)$/{ s//\1/; q; }
30565 /^X\(\/\).*/{ s//\1/; q; }
30566 s/.*/./; q'`
30567 { if $as_mkdir_p; then
30568 mkdir -p "$ac_dir"
30569 else
30570 as_dir="$ac_dir"
30571 as_dirs=
30572 while test ! -d "$as_dir"; do
30573 as_dirs="$as_dir $as_dirs"
30574 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30576 X"$as_dir" : 'X\(//\)[^/]' \| \
30577 X"$as_dir" : 'X\(//\)$' \| \
30578 X"$as_dir" : 'X\(/\)' \| \
30579 . : '\(.\)' 2>/dev/null ||
30580echo X"$as_dir" |
30581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30583 /^X\(\/\/\)$/{ s//\1/; q; }
30584 /^X\(\/\).*/{ s//\1/; q; }
30585 s/.*/./; q'`
30586 done
30587 test ! -n "$as_dirs" || mkdir $as_dirs
30588 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30589echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30590 { (exit 1); exit 1; }; }; }
30591
30592 ac_builddir=.
30593
30594if test "$ac_dir" != .; then
30595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30596 # A "../" for each directory in $ac_dir_suffix.
30597 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30598else
30599 ac_dir_suffix= ac_top_builddir=
30600fi
30601
30602case $srcdir in
30603 .) # No --srcdir option. We are building in place.
30604 ac_srcdir=.
30605 if test -z "$ac_top_builddir"; then
30606 ac_top_srcdir=.
30607 else
30608 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30609 fi ;;
30610 [\\/]* | ?:[\\/]* ) # Absolute path.
30611 ac_srcdir=$srcdir$ac_dir_suffix;
30612 ac_top_srcdir=$srcdir ;;
30613 *) # Relative path.
30614 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30615 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30616esac
30617
30618# Do not use `cd foo && pwd` to compute absolute paths, because
30619# the directories may not exist.
30620case `pwd` in
30621.) ac_abs_builddir="$ac_dir";;
30622*)
30623 case "$ac_dir" in
30624 .) ac_abs_builddir=`pwd`;;
30625 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30626 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30627 esac;;
30628esac
30629case $ac_abs_builddir in
30630.) ac_abs_top_builddir=${ac_top_builddir}.;;
30631*)
30632 case ${ac_top_builddir}. in
30633 .) ac_abs_top_builddir=$ac_abs_builddir;;
30634 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30635 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30636 esac;;
30637esac
30638case $ac_abs_builddir in
30639.) ac_abs_srcdir=$ac_srcdir;;
30640*)
30641 case $ac_srcdir in
30642 .) ac_abs_srcdir=$ac_abs_builddir;;
30643 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30644 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30645 esac;;
30646esac
30647case $ac_abs_builddir in
30648.) ac_abs_top_srcdir=$ac_top_srcdir;;
30649*)
30650 case $ac_top_srcdir in
30651 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30652 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30653 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30654 esac;;
30655esac
30656
30657
30658 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30659echo "$as_me: executing $ac_dest commands" >&6;}
30660 case $ac_dest in
30661 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30662 # Strip MF so we end up with the name of the file.
30663 mf=`echo "$mf" | sed -e 's/:.*$//'`
30664 # Check whether this is an Automake generated Makefile or not.
30665 # We used to match only the files named `Makefile.in', but
30666 # some people rename them; so instead we look at the file content.
30667 # Grep'ing the first line is not enough: some people post-process
30668 # each Makefile.in and add a new line on top of each file to say so.
30669 # So let's grep whole file.
30670 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30671 dirpart=`(dirname "$mf") 2>/dev/null ||
30672$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30673 X"$mf" : 'X\(//\)[^/]' \| \
30674 X"$mf" : 'X\(//\)$' \| \
30675 X"$mf" : 'X\(/\)' \| \
30676 . : '\(.\)' 2>/dev/null ||
30677echo X"$mf" |
30678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30680 /^X\(\/\/\)$/{ s//\1/; q; }
30681 /^X\(\/\).*/{ s//\1/; q; }
30682 s/.*/./; q'`
30683 else
30684 continue
30685 fi
30686 # Extract the definition of DEPDIR, am__include, and am__quote
30687 # from the Makefile without running `make'.
30688 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30689 test -z "$DEPDIR" && continue
30690 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30691 test -z "am__include" && continue
30692 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30693 # When using ansi2knr, U may be empty or an underscore; expand it
30694 U=`sed -n 's/^U = //p' < "$mf"`
30695 # Find all dependency output files, they are included files with
30696 # $(DEPDIR) in their names. We invoke sed twice because it is the
30697 # simplest approach to changing $(DEPDIR) to its actual value in the
30698 # expansion.
30699 for file in `sed -n "
30700 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30701 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30702 # Make sure the directory exists.
30703 test -f "$dirpart/$file" && continue
30704 fdir=`(dirname "$file") 2>/dev/null ||
30705$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30706 X"$file" : 'X\(//\)[^/]' \| \
30707 X"$file" : 'X\(//\)$' \| \
30708 X"$file" : 'X\(/\)' \| \
30709 . : '\(.\)' 2>/dev/null ||
30710echo X"$file" |
30711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30713 /^X\(\/\/\)$/{ s//\1/; q; }
30714 /^X\(\/\).*/{ s//\1/; q; }
30715 s/.*/./; q'`
30716 { if $as_mkdir_p; then
30717 mkdir -p $dirpart/$fdir
30718 else
30719 as_dir=$dirpart/$fdir
30720 as_dirs=
30721 while test ! -d "$as_dir"; do
30722 as_dirs="$as_dir $as_dirs"
30723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30725 X"$as_dir" : 'X\(//\)[^/]' \| \
30726 X"$as_dir" : 'X\(//\)$' \| \
30727 X"$as_dir" : 'X\(/\)' \| \
30728 . : '\(.\)' 2>/dev/null ||
30729echo X"$as_dir" |
30730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30732 /^X\(\/\/\)$/{ s//\1/; q; }
30733 /^X\(\/\).*/{ s//\1/; q; }
30734 s/.*/./; q'`
30735 done
30736 test ! -n "$as_dirs" || mkdir $as_dirs
30737 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30738echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30739 { (exit 1); exit 1; }; }; }
30740
30741 # echo "creating $dirpart/$file"
30742 echo '# dummy' > "$dirpart/$file"
30743 done
30744done
30745 ;;
30746 gdb_stdint.h )
30747if test "$GCC" = yes; then
30748 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30749else
30750 echo "/* generated for $CC */" > tmp-stdint.h
30751fi
30752
30753sed 's/^ *//' >> tmp-stdint.h <<EOF
30754
30755 #ifndef GCC_GENERATED_STDINT_H
30756 #define GCC_GENERATED_STDINT_H 1
30757
30758 #include <sys/types.h>
30759EOF
30760
30761if test "$acx_cv_header_stdint" != stdint.h; then
30762 echo "#include <stddef.h>" >> tmp-stdint.h
30763fi
30764if test "$acx_cv_header_stdint" != stddef.h; then
30765 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30766fi
30767
30768sed 's/^ *//' >> tmp-stdint.h <<EOF
30769 /* glibc uses these symbols as guards to prevent redefinitions. */
30770 #ifdef __int8_t_defined
30771 #define _INT8_T
30772 #define _INT16_T
30773 #define _INT32_T
30774 #endif
30775 #ifdef __uint32_t_defined
30776 #define _UINT32_T
30777 #endif
30778
30779EOF
30780
30781# ----------------- done header, emit basic int types -------------
30782if test "$acx_cv_header_stdint" = stddef.h; then
30783 sed 's/^ *//' >> tmp-stdint.h <<EOF
30784
30785 #ifndef _UINT8_T
30786 #define _UINT8_T
30787 #ifndef __uint8_t_defined
30788 #define __uint8_t_defined
30789 typedef unsigned $acx_cv_type_int8_t uint8_t;
30790 #endif
30791 #endif
30792
30793 #ifndef _UINT16_T
30794 #define _UINT16_T
30795 #ifndef __uint16_t_defined
30796 #define __uint16_t_defined
30797 typedef unsigned $acx_cv_type_int16_t uint16_t;
30798 #endif
30799 #endif
30800
30801 #ifndef _UINT32_T
30802 #define _UINT32_T
30803 #ifndef __uint32_t_defined
30804 #define __uint32_t_defined
30805 typedef unsigned $acx_cv_type_int32_t uint32_t;
30806 #endif
30807 #endif
30808
30809 #ifndef _INT8_T
30810 #define _INT8_T
30811 #ifndef __int8_t_defined
30812 #define __int8_t_defined
30813 typedef $acx_cv_type_int8_t int8_t;
30814 #endif
30815 #endif
30816
30817 #ifndef _INT16_T
30818 #define _INT16_T
30819 #ifndef __int16_t_defined
30820 #define __int16_t_defined
30821 typedef $acx_cv_type_int16_t int16_t;
30822 #endif
30823 #endif
30824
30825 #ifndef _INT32_T
30826 #define _INT32_T
30827 #ifndef __int32_t_defined
30828 #define __int32_t_defined
30829 typedef $acx_cv_type_int32_t int32_t;
30830 #endif
30831 #endif
30832EOF
30833elif test "$ac_cv_type_u_int32_t" = yes; then
30834 sed 's/^ *//' >> tmp-stdint.h <<EOF
30835
30836 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30837 #ifndef _INT8_T
30838 #define _INT8_T
30839 #endif
30840 #ifndef _INT16_T
30841 #define _INT16_T
30842 #endif
30843 #ifndef _INT32_T
30844 #define _INT32_T
30845 #endif
30846
30847 #ifndef _UINT8_T
30848 #define _UINT8_T
30849 #ifndef __uint8_t_defined
30850 #define __uint8_t_defined
30851 typedef u_int8_t uint8_t;
30852 #endif
30853 #endif
30854
30855 #ifndef _UINT16_T
30856 #define _UINT16_T
30857 #ifndef __uint16_t_defined
30858 #define __uint16_t_defined
30859 typedef u_int16_t uint16_t;
30860 #endif
30861 #endif
30862
30863 #ifndef _UINT32_T
30864 #define _UINT32_T
30865 #ifndef __uint32_t_defined
30866 #define __uint32_t_defined
30867 typedef u_int32_t uint32_t;
30868 #endif
30869 #endif
30870EOF
30871else
30872 sed 's/^ *//' >> tmp-stdint.h <<EOF
30873
30874 /* Some systems have guard macros to prevent redefinitions, define them. */
30875 #ifndef _INT8_T
30876 #define _INT8_T
30877 #endif
30878 #ifndef _INT16_T
30879 #define _INT16_T
30880 #endif
30881 #ifndef _INT32_T
30882 #define _INT32_T
30883 #endif
30884 #ifndef _UINT8_T
30885 #define _UINT8_T
30886 #endif
30887 #ifndef _UINT16_T
30888 #define _UINT16_T
30889 #endif
30890 #ifndef _UINT32_T
30891 #define _UINT32_T
30892 #endif
30893EOF
30894fi
30895
30896# ------------- done basic int types, emit int64_t types ------------
30897if test "$ac_cv_type_uint64_t" = yes; then
30898 sed 's/^ *//' >> tmp-stdint.h <<EOF
30899
30900 /* system headers have good uint64_t and int64_t */
30901 #ifndef _INT64_T
30902 #define _INT64_T
30903 #endif
30904 #ifndef _UINT64_T
30905 #define _UINT64_T
30906 #endif
30907EOF
30908elif test "$ac_cv_type_u_int64_t" = yes; then
30909 sed 's/^ *//' >> tmp-stdint.h <<EOF
30910
30911 /* system headers have an u_int64_t (and int64_t) */
30912 #ifndef _INT64_T
30913 #define _INT64_T
30914 #endif
30915 #ifndef _UINT64_T
30916 #define _UINT64_T
30917 #ifndef __uint64_t_defined
30918 #define __uint64_t_defined
30919 typedef u_int64_t uint64_t;
30920 #endif
30921 #endif
30922EOF
30923elif test -n "$acx_cv_type_int64_t"; then
30924 sed 's/^ *//' >> tmp-stdint.h <<EOF
30925
30926 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30927 #ifndef _INT64_T
30928 #define _INT64_T
30929 typedef $acx_cv_type_int64_t int64_t;
30930 #endif
30931 #ifndef _UINT64_T
30932 #define _UINT64_T
30933 #ifndef __uint64_t_defined
30934 #define __uint64_t_defined
30935 typedef unsigned $acx_cv_type_int64_t uint64_t;
30936 #endif
30937 #endif
30938EOF
30939else
30940 sed 's/^ *//' >> tmp-stdint.h <<EOF
30941
30942 /* some common heuristics for int64_t, using compiler-specific tests */
30943 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30944 #ifndef _INT64_T
30945 #define _INT64_T
30946 #ifndef __int64_t_defined
30947 typedef long long int64_t;
30948 #endif
30949 #endif
30950 #ifndef _UINT64_T
30951 #define _UINT64_T
30952 typedef unsigned long long uint64_t;
30953 #endif
30954
30955 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30956 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30957 does not implement __extension__. But that compiler doesn't define
30958 __GNUC_MINOR__. */
30959 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30960 # define __extension__
30961 # endif
30962
30963 # ifndef _INT64_T
30964 # define _INT64_T
30965 __extension__ typedef long long int64_t;
30966 # endif
30967 # ifndef _UINT64_T
30968 # define _UINT64_T
30969 __extension__ typedef unsigned long long uint64_t;
30970 # endif
30971
30972 #elif !defined __STRICT_ANSI__
30973 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30974
30975 # ifndef _INT64_T
30976 # define _INT64_T
30977 typedef __int64 int64_t;
30978 # endif
30979 # ifndef _UINT64_T
30980 # define _UINT64_T
30981 typedef unsigned __int64 uint64_t;
30982 # endif
30983 # endif /* compiler */
30984
30985 #endif /* ANSI version */
30986EOF
30987fi
30988
30989# ------------- done int64_t types, emit intptr types ------------
30990if test "$ac_cv_type_uintptr_t" != yes; then
30991 sed 's/^ *//' >> tmp-stdint.h <<EOF
30992
30993 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30994 #ifndef __uintptr_t_defined
30995 typedef u$acx_cv_type_intptr_t uintptr_t;
30996 #endif
30997 #ifndef __intptr_t_defined
30998 typedef $acx_cv_type_intptr_t intptr_t;
30999 #endif
31000EOF
31001fi
31002
31003# ------------- done intptr types, emit int_least types ------------
31004if test "$ac_cv_type_int_least32_t" != yes; then
31005 sed 's/^ *//' >> tmp-stdint.h <<EOF
31006
31007 /* Define int_least types */
31008 typedef int8_t int_least8_t;
31009 typedef int16_t int_least16_t;
31010 typedef int32_t int_least32_t;
31011 #ifdef _INT64_T
31012 typedef int64_t int_least64_t;
31013 #endif
31014
31015 typedef uint8_t uint_least8_t;
31016 typedef uint16_t uint_least16_t;
31017 typedef uint32_t uint_least32_t;
31018 #ifdef _UINT64_T
31019 typedef uint64_t uint_least64_t;
31020 #endif
31021EOF
31022fi
31023
31024# ------------- done intptr types, emit int_fast types ------------
31025if test "$ac_cv_type_int_fast32_t" != yes; then
31026 sed 's/^ *//' >> tmp-stdint.h <<EOF
31027
31028 /* Define int_fast types. short is often slow */
31029 typedef int8_t int_fast8_t;
31030 typedef int int_fast16_t;
31031 typedef int32_t int_fast32_t;
31032 #ifdef _INT64_T
31033 typedef int64_t int_fast64_t;
31034 #endif
31035
31036 typedef uint8_t uint_fast8_t;
31037 typedef unsigned int uint_fast16_t;
31038 typedef uint32_t uint_fast32_t;
31039 #ifdef _UINT64_T
31040 typedef uint64_t uint_fast64_t;
31041 #endif
31042EOF
31043fi
31044
31045if test "$ac_cv_type_uintmax_t" != yes; then
31046 sed 's/^ *//' >> tmp-stdint.h <<EOF
31047
31048 /* Define intmax based on what we found */
31049 #ifdef _INT64_T
31050 typedef int64_t intmax_t;
31051 #else
31052 typedef long intmax_t;
31053 #endif
31054 #ifdef _UINT64_T
31055 typedef uint64_t uintmax_t;
31056 #else
31057 typedef unsigned long uintmax_t;
31058 #endif
31059EOF
31060fi
31061
31062sed 's/^ *//' >> tmp-stdint.h <<EOF
31063
31064 #endif /* GCC_GENERATED_STDINT_H */
31065EOF
31066
31067if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
31068 rm -f tmp-stdint.h
31069else
31070 mv -f tmp-stdint.h gdb_stdint.h
31071fi
31072
31073 ;;
31074 default )
31075
31076sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
31077mv -f Makefile.tmp Makefile
31078
31079
31080case x$CONFIG_HEADERS in
31081xconfig.h:config.in)
31082echo > stamp-h ;;
31083esac
31084 ;;
31085 esac
31086done
31087_ACEOF
31088
31089cat >>$CONFIG_STATUS <<\_ACEOF
31090
31091{ (exit 0); exit 0; }
31092_ACEOF
31093chmod +x $CONFIG_STATUS
31094ac_clean_files=$ac_clean_files_save
31095
31096
31097# configure is writing to config.log, and then calls config.status.
31098# config.status does its own redirection, appending to config.log.
31099# Unfortunately, on DOS this fails, as config.log is still kept open
31100# by configure, so config.status won't be able to write to it; its
31101# output is simply discarded. So we exec the FD to /dev/null,
31102# effectively closing config.log, so it can be properly (re)opened and
31103# appended to by config.status. When coming back to configure, we
31104# need to make the FD available again.
31105if test "$no_create" != yes; then
31106 ac_cs_success=:
31107 ac_config_status_args=
31108 test "$silent" = yes &&
31109 ac_config_status_args="$ac_config_status_args --quiet"
31110 exec 5>/dev/null
31111 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31112 exec 5>>config.log
31113 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31114 # would make configure fail if this is the last instruction.
31115 $ac_cs_success || { (exit 1); exit 1; }
31116fi
31117
31118#
31119# CONFIG_SUBDIRS section.
31120#
31121if test "$no_recursion" != yes; then
31122
31123 # Remove --cache-file and --srcdir arguments so they do not pile up.
31124 ac_sub_configure_args=
31125 ac_prev=
31126 for ac_arg in $ac_configure_args; do
31127 if test -n "$ac_prev"; then
31128 ac_prev=
31129 continue
31130 fi
31131 case $ac_arg in
31132 -cache-file | --cache-file | --cache-fil | --cache-fi \
31133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31134 ac_prev=cache_file ;;
31135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31137 | --c=*)
31138 ;;
31139 --config-cache | -C)
31140 ;;
31141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31142 ac_prev=srcdir ;;
31143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31144 ;;
31145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31146 ac_prev=prefix ;;
31147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31148 ;;
31149 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31150 esac
31151 done
31152
31153 # Always prepend --prefix to ensure using the same prefix
31154 # in subdir configurations.
31155 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31156
31157 ac_popdir=`pwd`
31158 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31159
31160 # Do not complain, so a configure script can configure whichever
31161 # parts of a large source tree are present.
31162 test -d $srcdir/$ac_dir || continue
31163
31164 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31165echo "$as_me: configuring in $ac_dir" >&6;}
31166 { if $as_mkdir_p; then
31167 mkdir -p "$ac_dir"
31168 else
31169 as_dir="$ac_dir"
31170 as_dirs=
31171 while test ! -d "$as_dir"; do
31172 as_dirs="$as_dir $as_dirs"
31173 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31175 X"$as_dir" : 'X\(//\)[^/]' \| \
31176 X"$as_dir" : 'X\(//\)$' \| \
31177 X"$as_dir" : 'X\(/\)' \| \
31178 . : '\(.\)' 2>/dev/null ||
31179echo X"$as_dir" |
31180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31182 /^X\(\/\/\)$/{ s//\1/; q; }
31183 /^X\(\/\).*/{ s//\1/; q; }
31184 s/.*/./; q'`
31185 done
31186 test ! -n "$as_dirs" || mkdir $as_dirs
31187 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31188echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31189 { (exit 1); exit 1; }; }; }
31190
31191 ac_builddir=.
31192
31193if test "$ac_dir" != .; then
31194 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31195 # A "../" for each directory in $ac_dir_suffix.
31196 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31197else
31198 ac_dir_suffix= ac_top_builddir=
31199fi
31200
31201case $srcdir in
31202 .) # No --srcdir option. We are building in place.
31203 ac_srcdir=.
31204 if test -z "$ac_top_builddir"; then
31205 ac_top_srcdir=.
31206 else
31207 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31208 fi ;;
31209 [\\/]* | ?:[\\/]* ) # Absolute path.
31210 ac_srcdir=$srcdir$ac_dir_suffix;
31211 ac_top_srcdir=$srcdir ;;
31212 *) # Relative path.
31213 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31214 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31215esac
31216
31217# Do not use `cd foo && pwd` to compute absolute paths, because
31218# the directories may not exist.
31219case `pwd` in
31220.) ac_abs_builddir="$ac_dir";;
31221*)
31222 case "$ac_dir" in
31223 .) ac_abs_builddir=`pwd`;;
31224 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31225 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31226 esac;;
31227esac
31228case $ac_abs_builddir in
31229.) ac_abs_top_builddir=${ac_top_builddir}.;;
31230*)
31231 case ${ac_top_builddir}. in
31232 .) ac_abs_top_builddir=$ac_abs_builddir;;
31233 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31234 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31235 esac;;
31236esac
31237case $ac_abs_builddir in
31238.) ac_abs_srcdir=$ac_srcdir;;
31239*)
31240 case $ac_srcdir in
31241 .) ac_abs_srcdir=$ac_abs_builddir;;
31242 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31243 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31244 esac;;
31245esac
31246case $ac_abs_builddir in
31247.) ac_abs_top_srcdir=$ac_top_srcdir;;
31248*)
31249 case $ac_top_srcdir in
31250 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31251 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31252 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31253 esac;;
31254esac
31255
31256
31257 cd $ac_dir
31258
31259 # Check for guested configure; otherwise get Cygnus style configure.
31260 if test -f $ac_srcdir/configure.gnu; then
31261 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31262 elif test -f $ac_srcdir/configure; then
31263 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31264 elif test -f $ac_srcdir/configure.in; then
31265 ac_sub_configure=$ac_configure
31266 else
31267 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31268echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31269 ac_sub_configure=
31270 fi
31271
31272 # The recursion is here.
31273 if test -n "$ac_sub_configure"; then
31274 # Make the cache file name correct relative to the subdirectory.
31275 case $cache_file in
31276 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31277 *) # Relative path.
31278 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31279 esac
31280
31281 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31282echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31283 # The eval makes quoting arguments work.
31284 eval $ac_sub_configure $ac_sub_configure_args \
31285 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31286 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31287echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31288 { (exit 1); exit 1; }; }
31289 fi
31290
31291 cd $ac_popdir
31292 done
31293fi
31294
31295
31296exit 0
This page took 0.150692 seconds and 4 git commands to generate.