* gdbtypes.c (copy_type): New function.
[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 am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE 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 GNULIB_STDINT_H 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 AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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 PYTHON_CFLAGS 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_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS 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'
319ac_pwd=`pwd`
320
321# Initialize some variables set by options.
322ac_init_help=
323ac_init_version=false
324# The variables have the same names as the options, with
325# dashes changed to underlines.
326cache_file=/dev/null
327exec_prefix=NONE
328no_create=
329no_recursion=
330prefix=NONE
331program_prefix=NONE
332program_suffix=NONE
333program_transform_name=s,x,x,
334silent=
335site=
336srcdir=
337verbose=
338x_includes=NONE
339x_libraries=NONE
340
341# Installation directory options.
342# These are left unexpanded so users can "make install exec_prefix=/foo"
343# and all the variables that are supposed to be based on exec_prefix
344# by default will actually change.
345# Use braces instead of parens because sh, perl, etc. also accept them.
346bindir='${exec_prefix}/bin'
347sbindir='${exec_prefix}/sbin'
348libexecdir='${exec_prefix}/libexec'
349datadir='${prefix}/share'
350sysconfdir='${prefix}/etc'
351sharedstatedir='${prefix}/com'
352localstatedir='${prefix}/var'
353libdir='${exec_prefix}/lib'
354includedir='${prefix}/include'
355oldincludedir='/usr/include'
356infodir='${prefix}/info'
357mandir='${prefix}/man'
358
359ac_prev=
360for ac_option
361do
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
373 case $ac_option in
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 bindir=$ac_optarg ;;
379
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
399 datadir=$ac_optarg ;;
400
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
409
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
442
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 libdir=$ac_optarg ;;
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 mandir=$ac_optarg ;;
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 prefix=$ac_optarg ;;
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
551 sbindir=$ac_optarg ;;
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
562 sharedstatedir=$ac_optarg ;;
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
567 site=$ac_optarg ;;
568
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 srcdir=$ac_optarg ;;
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
591
592 -with-* | --with-*)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
631
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
635 ;;
636
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
647 *)
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
662fi
663
664# Be sure to have absolute paths.
665for ac_var in exec_prefix prefix
666do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673done
674
675# Be sure to have absolute paths.
676for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
684 esac
685done
686
687# There might be people who depend on the old broken behavior: `$host'
688# used to hold the argument of --host etc.
689# FIXME: To remove some day.
690build=$build_alias
691host=$host_alias
692target=$target_alias
693
694# FIXME: To remove some day.
695if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703fi
704
705ac_tool_prefix=
706test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708test "$silent" = yes && exec 6>/dev/null
709
710
711# Find the source files, if location was not specified.
712if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731else
732 ac_srcdir_defaulted=no
733fi
734if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
741 fi
742fi
743(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747ac_env_build_alias_set=${build_alias+set}
748ac_env_build_alias_value=$build_alias
749ac_cv_env_build_alias_set=${build_alias+set}
750ac_cv_env_build_alias_value=$build_alias
751ac_env_host_alias_set=${host_alias+set}
752ac_env_host_alias_value=$host_alias
753ac_cv_env_host_alias_set=${host_alias+set}
754ac_cv_env_host_alias_value=$host_alias
755ac_env_target_alias_set=${target_alias+set}
756ac_env_target_alias_value=$target_alias
757ac_cv_env_target_alias_set=${target_alias+set}
758ac_cv_env_target_alias_value=$target_alias
759ac_env_CC_set=${CC+set}
760ac_env_CC_value=$CC
761ac_cv_env_CC_set=${CC+set}
762ac_cv_env_CC_value=$CC
763ac_env_CFLAGS_set=${CFLAGS+set}
764ac_env_CFLAGS_value=$CFLAGS
765ac_cv_env_CFLAGS_set=${CFLAGS+set}
766ac_cv_env_CFLAGS_value=$CFLAGS
767ac_env_LDFLAGS_set=${LDFLAGS+set}
768ac_env_LDFLAGS_value=$LDFLAGS
769ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770ac_cv_env_LDFLAGS_value=$LDFLAGS
771ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_env_CPPFLAGS_value=$CPPFLAGS
773ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775ac_env_CPP_set=${CPP+set}
776ac_env_CPP_value=$CPP
777ac_cv_env_CPP_set=${CPP+set}
778ac_cv_env_CPP_value=$CPP
779
780#
781# Report the --help message.
782#
783if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787\`configure' configures this package to adapt to many kinds of systems.
788
789Usage: $0 [OPTION]... [VAR=VALUE]...
790
791To assign environment variables (e.g., CC, CFLAGS...), specify them as
792VAR=VALUE. See below for descriptions of some of the useful variables.
793
794Defaults for the options are specified in brackets.
795
796Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807_ACEOF
808
809 cat <<_ACEOF
810Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816By default, \`make install' will install all the files in
817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819for instance \`--prefix=\$HOME'.
820
821For better control, use the options below.
822
823Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836_ACEOF
837
838 cat <<\_ACEOF
839
840Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets alternative target configurations
868 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
869 --disable-gdbcli disable command-line interface (CLI)
870 --disable-gdbmi disable machine-interface (MI)
871 --enable-tui enable full-screen terminal user interface (TUI)
872 --enable-gdbtk enable gdbtk graphical user interface (GUI)
873 --enable-profiling enable profiling of GDB
874 --disable-rpath do not hardcode runtime library paths
875 --enable-werror treat compile warnings as errors
876 --enable-build-warnings Enable build-time compiler warnings if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
880
881Optional Packages:
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
885 --with-libunwind Use libunwind frame unwinding support
886 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
887 --with-bugurl=URL Direct users to URL to report a bug
888 --with-system-readline use installed readline library
889 --with-expat include expat support (auto/yes/no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
892 --without-libexpat-prefix don't search for libexpat in includedir and libdir
893 --with-python include python support (auto/yes/no/<path>)
894 --without-included-regex don't use included regex; this is the default
895 on systems with version 2 of the GNU C library
896 (use with caution on other system)
897 --with-sysroot=DIR Search for usr/lib et al within DIR.
898 --with-tcl directory containing tcl configuration (tclConfig.sh)
899 --with-tk directory containing tk configuration (tkConfig.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 # differences in whitespace do not lead to failure.
1297 ac_old_val_w=`echo x $ac_old_val`
1298 ac_new_val_w=`echo x $ac_new_val`
1299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 ac_cache_corrupted=:
1303 else
1304 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1306 eval $ac_var=\$ac_old_val
1307 fi
1308 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1309echo "$as_me: former value: \`$ac_old_val'" >&2;}
1310 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1311echo "$as_me: current value: \`$ac_new_val'" >&2;}
1312 fi;;
1313 esac
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1316 case $ac_new_val in
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1320 esac
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324 esac
1325 fi
1326done
1327if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329echo "$as_me: error: in \`$ac_pwd':" >&2;}
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1335fi
1336
1337ac_ext=c
1338ac_cpp='$CPP $CPPFLAGS'
1339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342
1343
1344gl_header_list="$gl_header_list stdint.h"
1345gl_header_list="$gl_header_list wchar.h"
1346gl_header_list="$gl_header_list string.h"
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367 ac_config_headers="$ac_config_headers config.h:config.in"
1368
1369echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1372if test "${enable_maintainer_mode+set}" = set; then
1373 enableval="$enable_maintainer_mode"
1374 USE_MAINTAINER_MODE=$enableval
1375else
1376 USE_MAINTAINER_MODE=no
1377fi;
1378 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1380
1381
1382if test $USE_MAINTAINER_MODE = yes; then
1383 MAINTAINER_MODE_TRUE=
1384 MAINTAINER_MODE_FALSE='#'
1385else
1386 MAINTAINER_MODE_TRUE='#'
1387 MAINTAINER_MODE_FALSE=
1388fi
1389
1390 MAINT=$MAINTAINER_MODE_TRUE
1391
1392
1393
1394ac_ext=c
1395ac_cpp='$CPP $CPPFLAGS'
1396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401set dummy ${ac_tool_prefix}gcc; ac_word=$2
1402echo "$as_me:$LINENO: checking for $ac_word" >&5
1403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1409else
1410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411for as_dir in $PATH
1412do
1413 IFS=$as_save_IFS
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 break 2
1420 fi
1421done
1422done
1423
1424fi
1425fi
1426CC=$ac_cv_prog_CC
1427if test -n "$CC"; then
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429echo "${ECHO_T}$CC" >&6
1430else
1431 echo "$as_me:$LINENO: result: no" >&5
1432echo "${ECHO_T}no" >&6
1433fi
1434
1435fi
1436if test -z "$ac_cv_prog_CC"; then
1437 ac_ct_CC=$CC
1438 # Extract the first word of "gcc", so it can be a program name with args.
1439set dummy gcc; ac_word=$2
1440echo "$as_me:$LINENO: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459done
1460done
1461
1462fi
1463fi
1464ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465if test -n "$ac_ct_CC"; then
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467echo "${ECHO_T}$ac_ct_CC" >&6
1468else
1469 echo "$as_me:$LINENO: result: no" >&5
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473 CC=$ac_ct_CC
1474else
1475 CC="$ac_cv_prog_CC"
1476fi
1477
1478if test -z "$CC"; then
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481set dummy ${ac_tool_prefix}cc; ac_word=$2
1482echo "$as_me:$LINENO: checking for $ac_word" >&5
1483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486else
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1489else
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501done
1502done
1503
1504fi
1505fi
1506CC=$ac_cv_prog_CC
1507if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509echo "${ECHO_T}$CC" >&6
1510else
1511 echo "$as_me:$LINENO: result: no" >&5
1512echo "${ECHO_T}no" >&6
1513fi
1514
1515fi
1516if test -z "$ac_cv_prog_CC"; then
1517 ac_ct_CC=$CC
1518 # Extract the first word of "cc", so it can be a program name with args.
1519set dummy cc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539done
1540done
1541
1542fi
1543fi
1544ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547echo "${ECHO_T}$ac_ct_CC" >&6
1548else
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553 CC=$ac_ct_CC
1554else
1555 CC="$ac_cv_prog_CC"
1556fi
1557
1558fi
1559if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561set dummy cc; ac_word=$2
1562echo "$as_me:$LINENO: checking for $ac_word" >&5
1563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566else
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1569else
1570 ac_prog_rejected=no
1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572for as_dir in $PATH
1573do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1580 continue
1581 fi
1582 ac_cv_prog_CC="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1585 fi
1586done
1587done
1588
1589if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1592 shift
1593 if test $# != 0; then
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1597 shift
1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1599 fi
1600fi
1601fi
1602fi
1603CC=$ac_cv_prog_CC
1604if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606echo "${ECHO_T}$CC" >&6
1607else
1608 echo "$as_me:$LINENO: result: no" >&5
1609echo "${ECHO_T}no" >&6
1610fi
1611
1612fi
1613if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1615 for ac_prog in cl
1616 do
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619echo "$as_me:$LINENO: checking for $ac_word" >&5
1620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623else
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1626else
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1637 fi
1638done
1639done
1640
1641fi
1642fi
1643CC=$ac_cv_prog_CC
1644if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646echo "${ECHO_T}$CC" >&6
1647else
1648 echo "$as_me:$LINENO: result: no" >&5
1649echo "${ECHO_T}no" >&6
1650fi
1651
1652 test -n "$CC" && break
1653 done
1654fi
1655if test -z "$CC"; then
1656 ac_ct_CC=$CC
1657 for ac_prog in cl
1658do
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660set dummy $ac_prog; ac_word=$2
1661echo "$as_me:$LINENO: checking for $ac_word" >&5
1662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668else
1669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670for as_dir in $PATH
1671do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680done
1681done
1682
1683fi
1684fi
1685ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688echo "${ECHO_T}$ac_ct_CC" >&6
1689else
1690 echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692fi
1693
1694 test -n "$ac_ct_CC" && break
1695done
1696
1697 CC=$ac_ct_CC
1698fi
1699
1700fi
1701
1702
1703test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706See \`config.log' for more details." >&5
1707echo "$as_me: error: no acceptable C compiler found in \$PATH
1708See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }; }
1710
1711# Provide some information about the compiler.
1712echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714ac_compiler=`set X $ac_compile; echo $2`
1715{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730
1731cat >conftest.$ac_ext <<_ACEOF
1732/* confdefs.h. */
1733_ACEOF
1734cat confdefs.h >>conftest.$ac_ext
1735cat >>conftest.$ac_ext <<_ACEOF
1736/* end confdefs.h. */
1737
1738int
1739main ()
1740{
1741
1742 ;
1743 return 0;
1744}
1745_ACEOF
1746ac_clean_files_save=$ac_clean_files
1747ac_clean_files="$ac_clean_files a.out a.exe b.out"
1748# Try to create an executable without -o first, disregard a.out.
1749# It will help us diagnose broken compilers, and finding out an intuition
1750# of exeext.
1751echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1753ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # Find the output, starting from the most likely. This scheme is
1760# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761# resort.
1762
1763# Be careful to initialize this variable, since it used to be cached.
1764# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765ac_cv_exeext=
1766# b.out is created by i960 compilers.
1767for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1768do
1769 test -f "$ac_file" || continue
1770 case $ac_file in
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1772 ;;
1773 conftest.$ac_ext )
1774 # This is the source file.
1775 ;;
1776 [ab].out )
1777 # We found the default executable, but exeext='' is most
1778 # certainly right.
1779 break;;
1780 *.* )
1781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 # FIXME: I believe we export ac_cv_exeext for Libtool,
1783 # but it would be cool to find out if it's true. Does anybody
1784 # maintain Libtool? --akim.
1785 export ac_cv_exeext
1786 break;;
1787 * )
1788 break;;
1789 esac
1790done
1791else
1792 echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796echo "$as_me: error: in \`$ac_pwd':" >&2;}
1797{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798See \`config.log' for more details." >&5
1799echo "$as_me: error: C compiler cannot create executables
1800See \`config.log' for more details." >&2;}
1801 { (exit 77); exit 77; }; }; }
1802fi
1803
1804ac_exeext=$ac_cv_exeext
1805echo "$as_me:$LINENO: result: $ac_file" >&5
1806echo "${ECHO_T}$ac_file" >&6
1807
1808# Check the compiler produces executables we can run. If not, either
1809# the compiler is broken, or we cross compile.
1810echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1812# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813# If not cross compiling, check that we can run a simple program.
1814if test "$cross_compiling" != yes; then
1815 if { ac_try='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1817 (eval $ac_try) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 cross_compiling=no
1822 else
1823 if test "$cross_compiling" = maybe; then
1824 cross_compiling=yes
1825 else
1826 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1829If you meant to cross compile, use \`--host'.
1830See \`config.log' for more details." >&5
1831echo "$as_me: error: cannot run C compiled programs.
1832If you meant to cross compile, use \`--host'.
1833See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }; }
1835 fi
1836 fi
1837fi
1838echo "$as_me:$LINENO: result: yes" >&5
1839echo "${ECHO_T}yes" >&6
1840
1841rm -f a.out a.exe conftest$ac_cv_exeext b.out
1842ac_clean_files=$ac_clean_files_save
1843# Check the compiler produces executables we can run. If not, either
1844# the compiler is broken, or we cross compile.
1845echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848echo "${ECHO_T}$cross_compiling" >&6
1849
1850echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1853 (eval $ac_link) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1859# work properly (i.e., refer to `conftest.exe'), while it won't with
1860# `rm'.
1861for ac_file in conftest.exe conftest conftest.*; do
1862 test -f "$ac_file" || continue
1863 case $ac_file in
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866 export ac_cv_exeext
1867 break;;
1868 * ) break;;
1869 esac
1870done
1871else
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875See \`config.log' for more details." >&5
1876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }; }
1879fi
1880
1881rm -f conftest$ac_cv_exeext
1882echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883echo "${ECHO_T}$ac_cv_exeext" >&6
1884
1885rm -f conftest.$ac_ext
1886EXEEXT=$ac_cv_exeext
1887ac_exeext=$EXEEXT
1888echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 cat >conftest.$ac_ext <<_ACEOF
1894/* confdefs.h. */
1895_ACEOF
1896cat confdefs.h >>conftest.$ac_ext
1897cat >>conftest.$ac_ext <<_ACEOF
1898/* end confdefs.h. */
1899
1900int
1901main ()
1902{
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908rm -f conftest.o conftest.obj
1909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918 break;;
1919 esac
1920done
1921else
1922 echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926echo "$as_me: error: in \`$ac_pwd':" >&2;}
1927{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }; }
1932fi
1933
1934rm -f conftest.$ac_cv_objext conftest.$ac_ext
1935fi
1936echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937echo "${ECHO_T}$ac_cv_objext" >&6
1938OBJEXT=$ac_cv_objext
1939ac_objext=$OBJEXT
1940echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1942if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 cat >conftest.$ac_ext <<_ACEOF
1946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
1951
1952int
1953main ()
1954{
1955#ifndef __GNUC__
1956 choke me
1957#endif
1958
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963rm -f conftest.$ac_objext
1964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1966 ac_status=$?
1967 grep -v '^ *+' conftest.er1 >conftest.err
1968 rm -f conftest.er1
1969 cat conftest.err >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
1972 { ac_try='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 (eval $ac_try) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_compiler_gnu=yes
1986else
1987 echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990ac_compiler_gnu=no
1991fi
1992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995fi
1996echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998GCC=`test $ac_compiler_gnu = yes && echo yes`
1999ac_test_CFLAGS=${CFLAGS+set}
2000ac_save_CFLAGS=$CFLAGS
2001CFLAGS="-g"
2002echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004if test "${ac_cv_prog_cc_g+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007 cat >conftest.$ac_ext <<_ACEOF
2008/* confdefs.h. */
2009_ACEOF
2010cat confdefs.h >>conftest.$ac_ext
2011cat >>conftest.$ac_ext <<_ACEOF
2012/* end confdefs.h. */
2013
2014int
2015main ()
2016{
2017
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022rm -f conftest.$ac_objext
2023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2025 ac_status=$?
2026 grep -v '^ *+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
2044 ac_cv_prog_cc_g=yes
2045else
2046 echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049ac_cv_prog_cc_g=no
2050fi
2051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS=$ac_save_CFLAGS
2057elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2059 CFLAGS="-g -O2"
2060 else
2061 CFLAGS="-g"
2062 fi
2063else
2064 if test "$GCC" = yes; then
2065 CFLAGS="-O2"
2066 else
2067 CFLAGS=
2068 fi
2069fi
2070echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072if test "${ac_cv_prog_cc_stdc+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 ac_cv_prog_cc_stdc=no
2076ac_save_CC=$CC
2077cat >conftest.$ac_ext <<_ACEOF
2078/* confdefs.h. */
2079_ACEOF
2080cat confdefs.h >>conftest.$ac_ext
2081cat >>conftest.$ac_ext <<_ACEOF
2082/* end confdefs.h. */
2083#include <stdarg.h>
2084#include <stdio.h>
2085#include <sys/types.h>
2086#include <sys/stat.h>
2087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2088struct buf { int x; };
2089FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090static char *e (p, i)
2091 char **p;
2092 int i;
2093{
2094 return p[i];
2095}
2096static char *f (char * (*g) (char **, int), char **p, ...)
2097{
2098 char *s;
2099 va_list v;
2100 va_start (v,p);
2101 s = g (p, va_arg (v,int));
2102 va_end (v);
2103 return s;
2104}
2105
2106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not '\xHH' hex character constants.
2108 These don't provoke an error unfortunately, instead are silently treated
2109 as 'x'. The following induces an error, until -std1 is added to get
2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2111 array size at least. It's necessary to write '\x00'==0 to get something
2112 that's true only with -std1. */
2113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2114
2115int test (int i, double x);
2116struct s1 {int (*f) (int a);};
2117struct s2 {int (*f) (double a);};
2118int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2119int argc;
2120char **argv;
2121int
2122main ()
2123{
2124return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129# Don't try gcc -ansi; that turns off useful extensions and
2130# breaks some systems' header files.
2131# AIX -qlanglvl=ansi
2132# Ultrix and OSF/1 -std1
2133# HP-UX 10.20 and later -Ae
2134# HP-UX older versions -Aa -D_HPUX_SOURCE
2135# SVR4 -Xc -D__EXTENSIONS__
2136for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2137do
2138 CC="$ac_save_CC $ac_arg"
2139 rm -f conftest.$ac_objext
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_stdc=$ac_arg
2162break
2163else
2164 echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
2167fi
2168rm -f conftest.err conftest.$ac_objext
2169done
2170rm -f conftest.$ac_ext conftest.$ac_objext
2171CC=$ac_save_CC
2172
2173fi
2174
2175case "x$ac_cv_prog_cc_stdc" in
2176 x|xno)
2177 echo "$as_me:$LINENO: result: none needed" >&5
2178echo "${ECHO_T}none needed" >&6 ;;
2179 *)
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
2183esac
2184
2185# Some people use a C++ compiler to compile C. Since we use `exit',
2186# in C++ we need to declare it. In case someone uses the same compiler
2187# for both compiling C and C++ we need to have the C++ compiler decide
2188# the declaration of exit, since it's the most demanding environment.
2189cat >conftest.$ac_ext <<_ACEOF
2190#ifndef __cplusplus
2191 choke me
2192#endif
2193_ACEOF
2194rm -f conftest.$ac_objext
2195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 for ac_declaration in \
2217 '' \
2218 'extern "C" void std::exit (int) throw (); using std::exit;' \
2219 'extern "C" void std::exit (int); using std::exit;' \
2220 'extern "C" void exit (int) throw ();' \
2221 'extern "C" void exit (int);' \
2222 'void exit (int);'
2223do
2224 cat >conftest.$ac_ext <<_ACEOF
2225/* confdefs.h. */
2226_ACEOF
2227cat confdefs.h >>conftest.$ac_ext
2228cat >>conftest.$ac_ext <<_ACEOF
2229/* end confdefs.h. */
2230$ac_declaration
2231#include <stdlib.h>
2232int
2233main ()
2234{
2235exit (42);
2236 ;
2237 return 0;
2238}
2239_ACEOF
2240rm -f conftest.$ac_objext
2241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2243 ac_status=$?
2244 grep -v '^ *+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 :
2263else
2264 echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267continue
2268fi
2269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2271/* confdefs.h. */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h. */
2276$ac_declaration
2277int
2278main ()
2279{
2280exit (42);
2281 ;
2282 return 0;
2283}
2284_ACEOF
2285rm -f conftest.$ac_objext
2286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2288 ac_status=$?
2289 grep -v '^ *+' conftest.er1 >conftest.err
2290 rm -f conftest.er1
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 break
2308else
2309 echo "$as_me: failed program was:" >&5
2310sed 's/^/| /' conftest.$ac_ext >&5
2311
2312fi
2313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314done
2315rm -f conftest*
2316if test -n "$ac_declaration"; then
2317 echo '#ifdef __cplusplus' >>confdefs.h
2318 echo $ac_declaration >>confdefs.h
2319 echo '#endif' >>confdefs.h
2320fi
2321
2322else
2323 echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335cat >>confdefs.h <<\_ACEOF
2336#define _GNU_SOURCE 1
2337_ACEOF
2338
2339
2340
2341ac_ext=c
2342ac_cpp='$CPP $CPPFLAGS'
2343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348# On Suns, sometimes $CPP names a directory.
2349if test -n "$CPP" && test -d "$CPP"; then
2350 CPP=
2351fi
2352if test -z "$CPP"; then
2353 if test "${ac_cv_prog_CPP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 # Double quotes because CPP needs to be expanded
2357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2358 do
2359 ac_preproc_ok=false
2360for ac_c_preproc_warn_flag in '' yes
2361do
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374#ifdef __STDC__
2375# include <limits.h>
2376#else
2377# include <assert.h>
2378#endif
2379 Syntax error
2380_ACEOF
2381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
2395else
2396 ac_cpp_err=yes
2397fi
2398if test -z "$ac_cpp_err"; then
2399 :
2400else
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 # Broken: fails on valid input.
2405continue
2406fi
2407rm -f conftest.err conftest.$ac_ext
2408
2409 # OK, works on sane cases. Now check whether non-existent headers
2410 # can be detected and how.
2411 cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h. */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h. */
2417#include <ac_nonexistent.h>
2418_ACEOF
2419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 else
2431 ac_cpp_err=
2432 fi
2433else
2434 ac_cpp_err=yes
2435fi
2436if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2438continue
2439else
2440 echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 # Passes both tests.
2444ac_preproc_ok=:
2445break
2446fi
2447rm -f conftest.err conftest.$ac_ext
2448
2449done
2450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451rm -f conftest.err conftest.$ac_ext
2452if $ac_preproc_ok; then
2453 break
2454fi
2455
2456 done
2457 ac_cv_prog_CPP=$CPP
2458
2459fi
2460 CPP=$ac_cv_prog_CPP
2461else
2462 ac_cv_prog_CPP=$CPP
2463fi
2464echo "$as_me:$LINENO: result: $CPP" >&5
2465echo "${ECHO_T}$CPP" >&6
2466ac_preproc_ok=false
2467for ac_c_preproc_warn_flag in '' yes
2468do
2469 # Use a header file that comes with gcc, so configuring glibc
2470 # with a fresh cross-compiler works.
2471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 # <limits.h> exists even on freestanding compilers.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
2481#ifdef __STDC__
2482# include <limits.h>
2483#else
2484# include <assert.h>
2485#endif
2486 Syntax error
2487_ACEOF
2488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 else
2500 ac_cpp_err=
2501 fi
2502else
2503 ac_cpp_err=yes
2504fi
2505if test -z "$ac_cpp_err"; then
2506 :
2507else
2508 echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 # Broken: fails on valid input.
2512continue
2513fi
2514rm -f conftest.err conftest.$ac_ext
2515
2516 # OK, works on sane cases. Now check whether non-existent headers
2517 # can be detected and how.
2518 cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h. */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h. */
2524#include <ac_nonexistent.h>
2525_ACEOF
2526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537 else
2538 ac_cpp_err=
2539 fi
2540else
2541 ac_cpp_err=yes
2542fi
2543if test -z "$ac_cpp_err"; then
2544 # Broken: success on invalid input.
2545continue
2546else
2547 echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 # Passes both tests.
2551ac_preproc_ok=:
2552break
2553fi
2554rm -f conftest.err conftest.$ac_ext
2555
2556done
2557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558rm -f conftest.err conftest.$ac_ext
2559if $ac_preproc_ok; then
2560 :
2561else
2562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2565See \`config.log' for more details." >&5
2566echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }; }
2569fi
2570
2571ac_ext=c
2572ac_cpp='$CPP $CPPFLAGS'
2573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
2577
2578echo "$as_me:$LINENO: checking for egrep" >&5
2579echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580if test "${ac_cv_prog_egrep+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2584 then ac_cv_prog_egrep='grep -E'
2585 else ac_cv_prog_egrep='egrep'
2586 fi
2587fi
2588echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590 EGREP=$ac_cv_prog_egrep
2591
2592
2593
2594echo "$as_me:$LINENO: checking for AIX" >&5
2595echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2596cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
2602#ifdef _AIX
2603 yes
2604#endif
2605
2606_ACEOF
2607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608 $EGREP "yes" >/dev/null 2>&1; then
2609 echo "$as_me:$LINENO: result: yes" >&5
2610echo "${ECHO_T}yes" >&6
2611cat >>confdefs.h <<\_ACEOF
2612#define _ALL_SOURCE 1
2613_ACEOF
2614
2615else
2616 echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6
2618fi
2619rm -f conftest*
2620
2621
2622echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2624if test "${ac_cv_search_strerror+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627 ac_func_search_save_LIBS=$LIBS
2628ac_cv_search_strerror=no
2629cat >conftest.$ac_ext <<_ACEOF
2630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
2635
2636/* Override any gcc2 internal prototype to avoid an error. */
2637#ifdef __cplusplus
2638extern "C"
2639#endif
2640/* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642char strerror ();
2643int
2644main ()
2645{
2646strerror ();
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext conftest$ac_exeext
2652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest$ac_exeext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 ac_cv_search_strerror="none required"
2674else
2675 echo "$as_me: failed program was:" >&5
2676sed 's/^/| /' conftest.$ac_ext >&5
2677
2678fi
2679rm -f conftest.err conftest.$ac_objext \
2680 conftest$ac_exeext conftest.$ac_ext
2681if test "$ac_cv_search_strerror" = no; then
2682 for ac_lib in cposix; do
2683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2684 cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h. */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h. */
2690
2691/* Override any gcc2 internal prototype to avoid an error. */
2692#ifdef __cplusplus
2693extern "C"
2694#endif
2695/* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697char strerror ();
2698int
2699main ()
2700{
2701strerror ();
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext conftest$ac_exeext
2707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_search_strerror="-l$ac_lib"
2729break
2730else
2731 echo "$as_me: failed program was:" >&5
2732sed 's/^/| /' conftest.$ac_ext >&5
2733
2734fi
2735rm -f conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2737 done
2738fi
2739LIBS=$ac_func_search_save_LIBS
2740fi
2741echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743if test "$ac_cv_search_strerror" != no; then
2744 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2745
2746fi
2747
2748if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2751echo "$as_me:$LINENO: checking for $ac_word" >&5
2752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753if test "${ac_cv_prog_RANLIB+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770done
2771done
2772
2773fi
2774fi
2775RANLIB=$ac_cv_prog_RANLIB
2776if test -n "$RANLIB"; then
2777 echo "$as_me:$LINENO: result: $RANLIB" >&5
2778echo "${ECHO_T}$RANLIB" >&6
2779else
2780 echo "$as_me:$LINENO: result: no" >&5
2781echo "${ECHO_T}no" >&6
2782fi
2783
2784fi
2785if test -z "$ac_cv_prog_RANLIB"; then
2786 ac_ct_RANLIB=$RANLIB
2787 # Extract the first word of "ranlib", so it can be a program name with args.
2788set dummy ranlib; ac_word=$2
2789echo "$as_me:$LINENO: checking for $ac_word" >&5
2790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793else
2794 if test -n "$ac_ct_RANLIB"; then
2795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_RANLIB="ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809done
2810
2811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2812fi
2813fi
2814ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2815if test -n "$ac_ct_RANLIB"; then
2816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818else
2819 echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6
2821fi
2822
2823 RANLIB=$ac_ct_RANLIB
2824else
2825 RANLIB="$ac_cv_prog_RANLIB"
2826fi
2827
2828echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830if test "${ac_cv_header_stdc+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833 cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839#include <stdlib.h>
2840#include <stdarg.h>
2841#include <string.h>
2842#include <float.h>
2843
2844int
2845main ()
2846{
2847
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852rm -f conftest.$ac_objext
2853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_cv_header_stdc=yes
2875else
2876 echo "$as_me: failed program was:" >&5
2877sed 's/^/| /' conftest.$ac_ext >&5
2878
2879ac_cv_header_stdc=no
2880fi
2881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882
2883if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h. */
2891#include <string.h>
2892
2893_ACEOF
2894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895 $EGREP "memchr" >/dev/null 2>&1; then
2896 :
2897else
2898 ac_cv_header_stdc=no
2899fi
2900rm -f conftest*
2901
2902fi
2903
2904if test $ac_cv_header_stdc = yes; then
2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906 cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912#include <stdlib.h>
2913
2914_ACEOF
2915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 $EGREP "free" >/dev/null 2>&1; then
2917 :
2918else
2919 ac_cv_header_stdc=no
2920fi
2921rm -f conftest*
2922
2923fi
2924
2925if test $ac_cv_header_stdc = yes; then
2926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927 if test "$cross_compiling" = yes; then
2928 :
2929else
2930 cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h. */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h. */
2936#include <ctype.h>
2937#if ((' ' & 0x0FF) == 0x020)
2938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940#else
2941# define ISLOWER(c) \
2942 (('a' <= (c) && (c) <= 'i') \
2943 || ('j' <= (c) && (c) <= 'r') \
2944 || ('s' <= (c) && (c) <= 'z'))
2945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2946#endif
2947
2948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2949int
2950main ()
2951{
2952 int i;
2953 for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i))
2955 || toupper (i) != TOUPPER (i))
2956 exit(2);
2957 exit (0);
2958}
2959_ACEOF
2960rm -f conftest$ac_exeext
2961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962 (eval $ac_link) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 :
2972else
2973 echo "$as_me: program exited with status $ac_status" >&5
2974echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977( exit $ac_status )
2978ac_cv_header_stdc=no
2979fi
2980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981fi
2982fi
2983fi
2984echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986if test $ac_cv_header_stdc = yes; then
2987
2988cat >>confdefs.h <<\_ACEOF
2989#define STDC_HEADERS 1
2990_ACEOF
2991
2992fi
2993
2994# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3005 inttypes.h stdint.h unistd.h
3006do
3007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008echo "$as_me:$LINENO: checking for $ac_header" >&5
3009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019$ac_includes_default
3020
3021#include <$ac_header>
3022_ACEOF
3023rm -f conftest.$ac_objext
3024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 eval "$as_ac_Header=yes"
3046else
3047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050eval "$as_ac_Header=no"
3051fi
3052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053fi
3054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057 cat >>confdefs.h <<_ACEOF
3058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3059_ACEOF
3060
3061fi
3062
3063done
3064
3065
3066
3067 if test "${ac_cv_header_minix_config_h+set}" = set; then
3068 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072fi
3073echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075else
3076 # Is the header compilable?
3077echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085$ac_includes_default
3086#include <minix/config.h>
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_header_compiler=yes
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115ac_header_compiler=no
3116fi
3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119echo "${ECHO_T}$ac_header_compiler" >&6
3120
3121# Is the header present?
3122echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124cat >conftest.$ac_ext <<_ACEOF
3125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
3130#include <minix/config.h>
3131_ACEOF
3132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3145 fi
3146else
3147 ac_cpp_err=yes
3148fi
3149if test -z "$ac_cpp_err"; then
3150 ac_header_preproc=yes
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_header_preproc=no
3156fi
3157rm -f conftest.err conftest.$ac_ext
3158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159echo "${ECHO_T}$ac_header_preproc" >&6
3160
3161# So? What about this header?
3162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3163 yes:no: )
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168 ac_header_preproc=yes
3169 ;;
3170 no:yes:* )
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3174echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3175 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3178echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3183 (
3184 cat <<\_ASBOX
3185## ------------------------------------------ ##
3186## Report this to the AC_PACKAGE_NAME lists. ##
3187## ------------------------------------------ ##
3188_ASBOX
3189 ) |
3190 sed "s/^/$as_me: WARNING: /" >&2
3191 ;;
3192esac
3193echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195if test "${ac_cv_header_minix_config_h+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198 ac_cv_header_minix_config_h=$ac_header_preproc
3199fi
3200echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3202
3203fi
3204if test $ac_cv_header_minix_config_h = yes; then
3205 MINIX=yes
3206else
3207 MINIX=
3208fi
3209
3210
3211 if test "$MINIX" = yes; then
3212
3213cat >>confdefs.h <<\_ACEOF
3214#define _POSIX_SOURCE 1
3215_ACEOF
3216
3217
3218cat >>confdefs.h <<\_ACEOF
3219#define _POSIX_1_SOURCE 2
3220_ACEOF
3221
3222
3223cat >>confdefs.h <<\_ACEOF
3224#define _MINIX 1
3225_ACEOF
3226
3227 fi
3228
3229
3230
3231 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242
3243# define __EXTENSIONS__ 1
3244 $ac_includes_default
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_safe_to_define___extensions__=yes
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280ac_cv_safe_to_define___extensions__=no
3281fi
3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283fi
3284echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286 test $ac_cv_safe_to_define___extensions__ = yes &&
3287 cat >>confdefs.h <<\_ACEOF
3288#define __EXTENSIONS__ 1
3289_ACEOF
3290
3291 cat >>confdefs.h <<\_ACEOF
3292#define _ALL_SOURCE 1
3293_ACEOF
3294
3295 cat >>confdefs.h <<\_ACEOF
3296#define _GNU_SOURCE 1
3297_ACEOF
3298
3299 cat >>confdefs.h <<\_ACEOF
3300#define _POSIX_PTHREAD_SEMANTICS 1
3301_ACEOF
3302
3303 cat >>confdefs.h <<\_ACEOF
3304#define _TANDEM_SOURCE 1
3305_ACEOF
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318if test "${am_cv_prog_cc_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 am_cv_prog_cc_stdc=no
3322ac_save_CC="$CC"
3323# Don't try gcc -ansi; that turns off useful extensions and
3324# breaks some systems' header files.
3325# AIX -qlanglvl=ansi
3326# Ultrix and OSF/1 -std1
3327# HP-UX 10.20 and later -Ae
3328# HP-UX older versions -Aa -D_HPUX_SOURCE
3329# SVR4 -Xc -D__EXTENSIONS__
3330for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331do
3332 CC="$ac_save_CC $ac_arg"
3333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339#include <stdarg.h>
3340#include <stdio.h>
3341#include <sys/types.h>
3342#include <sys/stat.h>
3343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344struct buf { int x; };
3345FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346static char *e (p, i)
3347 char **p;
3348 int i;
3349{
3350 return p[i];
3351}
3352static char *f (char * (*g) (char **, int), char **p, ...)
3353{
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360}
3361int test (int i, double x);
3362struct s1 {int (*f) (int a);};
3363struct s2 {int (*f) (double a);};
3364int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365int argc;
3366char **argv;
3367
3368int
3369main ()
3370{
3371
3372return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378rm -f conftest.$ac_objext
3379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 am_cv_prog_cc_stdc="$ac_arg"; break
3401else
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405fi
3406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407done
3408CC="$ac_save_CC"
3409
3410fi
3411
3412if test -z "$am_cv_prog_cc_stdc"; then
3413 echo "$as_me:$LINENO: result: none needed" >&5
3414echo "${ECHO_T}none needed" >&6
3415else
3416 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3418fi
3419case "x$am_cv_prog_cc_stdc" in
3420 x|xno) ;;
3421 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3422esac
3423
3424
3425ac_aux_dir=
3426for ac_dir in .. $srcdir/..; do
3427 if test -f $ac_dir/install-sh; then
3428 ac_aux_dir=$ac_dir
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 break
3431 elif test -f $ac_dir/install.sh; then
3432 ac_aux_dir=$ac_dir
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 break
3435 elif test -f $ac_dir/shtool; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3438 break
3439 fi
3440done
3441if test -z "$ac_aux_dir"; then
3442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444 { (exit 1); exit 1; }; }
3445fi
3446ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3447ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3448ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3449
3450# Make sure we can run config.sub.
3451$ac_config_sub sun4 >/dev/null 2>&1 ||
3452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454 { (exit 1); exit 1; }; }
3455
3456echo "$as_me:$LINENO: checking build system type" >&5
3457echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458if test "${ac_cv_build+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461 ac_cv_build_alias=$build_alias
3462test -z "$ac_cv_build_alias" &&
3463 ac_cv_build_alias=`$ac_config_guess`
3464test -z "$ac_cv_build_alias" &&
3465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467 { (exit 1); exit 1; }; }
3468ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3472
3473fi
3474echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475echo "${ECHO_T}$ac_cv_build" >&6
3476build=$ac_cv_build
3477build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3480
3481
3482echo "$as_me:$LINENO: checking host system type" >&5
3483echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484if test "${ac_cv_host+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 ac_cv_host_alias=$host_alias
3488test -z "$ac_cv_host_alias" &&
3489 ac_cv_host_alias=$ac_cv_build_alias
3490ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493 { (exit 1); exit 1; }; }
3494
3495fi
3496echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497echo "${ECHO_T}$ac_cv_host" >&6
3498host=$ac_cv_host
3499host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3502
3503
3504echo "$as_me:$LINENO: checking target system type" >&5
3505echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506if test "${ac_cv_target+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 ac_cv_target_alias=$target_alias
3510test "x$ac_cv_target_alias" = "x" &&
3511 ac_cv_target_alias=$ac_cv_host_alias
3512ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3515 { (exit 1); exit 1; }; }
3516
3517fi
3518echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519echo "${ECHO_T}$ac_cv_target" >&6
3520target=$ac_cv_target
3521target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3524
3525
3526# The aliases save the names the user supplied, while $host etc.
3527# will get canonicalized.
3528test -n "$target_alias" &&
3529 test "$program_prefix$program_suffix$program_transform_name" = \
3530 NONENONEs,x,x, &&
3531 program_prefix=${target_alias}-
3532
3533# Dependency checking.
3534rm -rf .tst 2>/dev/null
3535mkdir .tst 2>/dev/null
3536if test -d .tst; then
3537 am__leading_dot=.
3538else
3539 am__leading_dot=_
3540fi
3541rmdir .tst 2>/dev/null
3542
3543DEPDIR="${am__leading_dot}deps"
3544
3545 ac_config_commands="$ac_config_commands depdir"
3546
3547
3548depcc="$CC" am_compiler_list=
3549
3550am_depcomp=$ac_aux_dir/depcomp
3551echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3553if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 if test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3561 # in D'.
3562 mkdir conftest.dir
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3566 cd conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3572 # directory.
3573 mkdir sub
3574
3575 am_cv_CC_dependencies_compiler_type=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3578 fi
3579 for depmode in $am_compiler_list; do
3580 if test $depmode = none; then break; fi
3581
3582 echo "$as_me:$LINENO: trying $depmode" >&5
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3586 #
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3590 : > sub/conftest.c
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3596 done
3597 echo "include sub/conftest.Po" > confmf
3598
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 depcmd="depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3606 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3607 if env $depcmd > conftest.err 2>&1 &&
3608 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3609 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3610 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3611 # icc doesn't choke on unknown options, it will just issue warnings
3612 # or remarks (even with -Werror). So we grep stderr for any message
3613 # that says an option was ignored or not supported.
3614 # When given -MP, icc 7.0 and 7.1 complain thusly:
3615 # icc: Command line warning: ignoring option '-M'; no argument required
3616 # The diagnosis changed in icc 8.0:
3617 # icc: Command line remark: option '-MP' not supported
3618 if (grep 'ignoring option' conftest.err ||
3619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3620 am_cv_CC_dependencies_compiler_type=$depmode
3621 echo "$as_me:$LINENO: success" >&5
3622 break
3623 fi
3624 fi
3625 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3626 sed -e 's/^/| /' < conftest.err >&5
3627 done
3628
3629 cd ..
3630 rm -rf conftest.dir
3631else
3632 am_cv_CC_dependencies_compiler_type=none
3633fi
3634
3635fi
3636echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3637echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3638if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3639then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3640echo "$as_me: error: no usable dependency style found" >&2;}
3641 { (exit 1); exit 1; }; }
3642else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
3644fi
3645
3646
3647# Check for the 'make' the user wants to use.
3648for ac_prog in make
3649do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651set dummy $ac_prog; ac_word=$2
3652echo "$as_me:$LINENO: checking for $ac_word" >&5
3653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654if test "${ac_cv_prog_MAKE+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 if test -n "$MAKE"; then
3658 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3659else
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_MAKE="$ac_prog"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671done
3672done
3673
3674fi
3675fi
3676MAKE=$ac_cv_prog_MAKE
3677if test -n "$MAKE"; then
3678 echo "$as_me:$LINENO: result: $MAKE" >&5
3679echo "${ECHO_T}$MAKE" >&6
3680else
3681 echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
3683fi
3684
3685 test -n "$MAKE" && break
3686done
3687
3688MAKE_IS_GNU=
3689case "`$MAKE --version 2>&1 | sed 1q`" in
3690 *GNU*)
3691 MAKE_IS_GNU=yes
3692 ;;
3693esac
3694
3695
3696if test "$MAKE_IS_GNU" = yes; then
3697 GMAKE_TRUE=
3698 GMAKE_FALSE='#'
3699else
3700 GMAKE_TRUE='#'
3701 GMAKE_FALSE=
3702fi
3703
3704echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3705echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3706set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3707if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709else
3710 cat >conftest.make <<\_ACEOF
3711all:
3712 @echo 'ac_maketemp="$(MAKE)"'
3713_ACEOF
3714# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3715eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3716if test -n "$ac_maketemp"; then
3717 eval ac_cv_prog_make_${ac_make}_set=yes
3718else
3719 eval ac_cv_prog_make_${ac_make}_set=no
3720fi
3721rm -f conftest.make
3722fi
3723if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725echo "${ECHO_T}yes" >&6
3726 SET_MAKE=
3727else
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730 SET_MAKE="MAKE=${MAKE-make}"
3731fi
3732
3733
3734
3735CONFIG_OBS=
3736CONFIG_DEPS=
3737CONFIG_SRCS=
3738ENABLE_CFLAGS=
3739
3740CONFIG_ALL=
3741CONFIG_CLEAN=
3742CONFIG_INSTALL=
3743CONFIG_UNINSTALL=
3744
3745# If we haven't got the data from the intl directory,
3746# assume NLS is disabled.
3747USE_NLS=no
3748LIBINTL=
3749LIBINTL_DEP=
3750INCINTL=
3751XGETTEXT=
3752GMSGFMT=
3753POSUB=
3754
3755if test -f ../intl/config.intl; then
3756 . ../intl/config.intl
3757fi
3758echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3759echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3760if test x"$USE_NLS" != xyes; then
3761 echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6
3763else
3764 echo "$as_me:$LINENO: result: yes" >&5
3765echo "${ECHO_T}yes" >&6
3766
3767cat >>confdefs.h <<\_ACEOF
3768#define ENABLE_NLS 1
3769_ACEOF
3770
3771
3772 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3773echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3774 # Look for .po and .gmo files in the source directory.
3775 CATALOGS=
3776 XLINGUAS=
3777 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3778 # If there aren't any .gmo files the shell will give us the
3779 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3780 # weeded out.
3781 case "$cat" in *\**)
3782 continue;;
3783 esac
3784 # The quadruple backslash is collapsed to a double backslash
3785 # by the backticks, then collapsed again by the double quotes,
3786 # leaving us with one backslash in the sed expression (right
3787 # before the dot that mustn't act as a wildcard).
3788 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3789 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3790 # The user is allowed to set LINGUAS to a list of languages to
3791 # install catalogs for. If it's empty that means "all of them."
3792 if test "x$LINGUAS" = x; then
3793 CATALOGS="$CATALOGS $cat"
3794 XLINGUAS="$XLINGUAS $lang"
3795 else
3796 case "$LINGUAS" in *$lang*)
3797 CATALOGS="$CATALOGS $cat"
3798 XLINGUAS="$XLINGUAS $lang"
3799 ;;
3800 esac
3801 fi
3802 done
3803 LINGUAS="$XLINGUAS"
3804 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3805echo "${ECHO_T}$LINGUAS" >&6
3806
3807
3808 DATADIRNAME=share
3809
3810 INSTOBJEXT=.mo
3811
3812 GENCAT=gencat
3813
3814 CATOBJEXT=.gmo
3815
3816fi
3817
3818localedir='${datadir}/locale'
3819
3820
3821if test x"$USE_NLS" = xyes; then
3822 CONFIG_ALL="$CONFIG_ALL all-po"
3823 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3824 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3825 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3826fi
3827
3828
3829 GNULIB_MEMMEM=0;
3830 GNULIB_MEMPCPY=0;
3831 GNULIB_MEMRCHR=0;
3832 GNULIB_STPCPY=0;
3833 GNULIB_STPNCPY=0;
3834 GNULIB_STRCHRNUL=0;
3835 GNULIB_STRDUP=0;
3836 GNULIB_STRNDUP=0;
3837 GNULIB_STRNLEN=0;
3838 GNULIB_STRPBRK=0;
3839 GNULIB_STRSEP=0;
3840 GNULIB_STRSTR=0;
3841 GNULIB_STRCASESTR=0;
3842 GNULIB_STRTOK_R=0;
3843 GNULIB_MBSLEN=0;
3844 GNULIB_MBSNLEN=0;
3845 GNULIB_MBSCHR=0;
3846 GNULIB_MBSRCHR=0;
3847 GNULIB_MBSSTR=0;
3848 GNULIB_MBSCASECMP=0;
3849 GNULIB_MBSNCASECMP=0;
3850 GNULIB_MBSPCASECMP=0;
3851 GNULIB_MBSCASESTR=0;
3852 GNULIB_MBSCSPN=0;
3853 GNULIB_MBSPBRK=0;
3854 GNULIB_MBSSPN=0;
3855 GNULIB_MBSSEP=0;
3856 GNULIB_MBSTOK_R=0;
3857 GNULIB_STRERROR=0;
3858 GNULIB_STRSIGNAL=0;
3859 HAVE_DECL_MEMMEM=1;
3860 HAVE_MEMPCPY=1;
3861 HAVE_DECL_MEMRCHR=1;
3862 HAVE_STPCPY=1;
3863 HAVE_STPNCPY=1;
3864 HAVE_STRCHRNUL=1;
3865 HAVE_DECL_STRDUP=1;
3866 HAVE_STRNDUP=1;
3867 HAVE_DECL_STRNDUP=1;
3868 HAVE_DECL_STRNLEN=1;
3869 HAVE_STRPBRK=1;
3870 HAVE_STRSEP=1;
3871 HAVE_STRCASESTR=1;
3872 HAVE_DECL_STRTOK_R=1;
3873 HAVE_DECL_STRERROR=1;
3874 HAVE_DECL_STRSIGNAL=1;
3875 REPLACE_STRERROR=0;
3876 REPLACE_STRSIGNAL=0;
3877 REPLACE_MEMMEM=0;
3878 REPLACE_STRCASESTR=0;
3879 REPLACE_STRSTR=0;
3880
3881
3882 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3883echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3884if test "${ac_cv_have_decl_memmem+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893$ac_includes_default
3894int
3895main ()
3896{
3897#ifndef memmem
3898 char *p = (char *) memmem;
3899#endif
3900
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext
3906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_have_decl_memmem=yes
3928else
3929 echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932ac_cv_have_decl_memmem=no
3933fi
3934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935fi
3936echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3937echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3938if test $ac_cv_have_decl_memmem = yes; then
3939
3940cat >>confdefs.h <<_ACEOF
3941#define HAVE_DECL_MEMMEM 1
3942_ACEOF
3943
3944
3945else
3946 cat >>confdefs.h <<_ACEOF
3947#define HAVE_DECL_MEMMEM 0
3948_ACEOF
3949
3950
3951fi
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967for ac_func in memmem
3968do
3969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3970echo "$as_me:$LINENO: checking for $ac_func" >&5
3971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3972if eval "test \"\${$as_ac_var+set}\" = set"; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974else
3975 cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
3981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3983#define $ac_func innocuous_$ac_func
3984
3985/* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char $ac_func (); below.
3987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 <limits.h> exists even on freestanding compilers. */
3989
3990#ifdef __STDC__
3991# include <limits.h>
3992#else
3993# include <assert.h>
3994#endif
3995
3996#undef $ac_func
3997
3998/* Override any gcc2 internal prototype to avoid an error. */
3999#ifdef __cplusplus
4000extern "C"
4001{
4002#endif
4003/* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005char $ac_func ();
4006/* The GNU C library defines this for functions which it implements
4007 to always fail with ENOSYS. Some functions are actually named
4008 something starting with __ and the normal name is an alias. */
4009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4010choke me
4011#else
4012char (*f) () = $ac_func;
4013#endif
4014#ifdef __cplusplus
4015}
4016#endif
4017
4018int
4019main ()
4020{
4021return f != $ac_func;
4022 ;
4023 return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest$ac_exeext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 eval "$as_ac_var=yes"
4049else
4050 echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053eval "$as_ac_var=no"
4054fi
4055rm -f conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
4057fi
4058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4060if test `eval echo '${'$as_ac_var'}'` = yes; then
4061 cat >>confdefs.h <<_ACEOF
4062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4063_ACEOF
4064
4065else
4066
4067 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4068
4069fi
4070done
4071
4072
4073
4074 :
4075
4076
4077
4078
4079
4080 if test $ac_cv_have_decl_memmem = no; then
4081 HAVE_DECL_MEMMEM=0
4082 fi
4083 :
4084
4085
4086 echo "$as_me:$LINENO: checking for long long int" >&5
4087echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4088if test "${ac_cv_type_long_long_int+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 cat >conftest.$ac_ext <<_ACEOF
4092
4093 /* confdefs.h. */
4094_ACEOF
4095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
4097/* end confdefs.h. */
4098/* For now, do not test the preprocessor; as of 2007 there are too many
4099 implementations with broken preprocessors. Perhaps this can
4100 be revisited in 2012. In the meantime, code should not expect
4101 #if to work with literals wider than 32 bits. */
4102 /* Test literals. */
4103 long long int ll = 9223372036854775807ll;
4104 long long int nll = -9223372036854775807LL;
4105 unsigned long long int ull = 18446744073709551615ULL;
4106 /* Test constant expressions. */
4107 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4108 ? 1 : -1)];
4109 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4110 ? 1 : -1)];
4111 int i = 63;
4112int
4113main ()
4114{
4115/* Test availability of runtime routines for shift and division. */
4116 long long int llmax = 9223372036854775807ll;
4117 unsigned long long int ullmax = 18446744073709551615ull;
4118 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4119 | (llmax / ll) | (llmax % ll)
4120 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4121 | (ullmax / ull) | (ullmax % ull));
4122 ;
4123 return 0;
4124}
4125
4126_ACEOF
4127rm -f conftest.$ac_objext conftest$ac_exeext
4128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 if test "$cross_compiling" = yes; then
4150 ac_cv_type_long_long_int=yes
4151else
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <limits.h>
4159 #ifndef LLONG_MAX
4160 # define HALF \
4161 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4162 # define LLONG_MAX (HALF - 1 + HALF)
4163 #endif
4164int
4165main ()
4166{
4167long long int n = 1;
4168 int i;
4169 for (i = 0; ; i++)
4170 {
4171 long long int m = n << i;
4172 if (m >> i != n)
4173 return 1;
4174 if (LLONG_MAX / 2 < m)
4175 break;
4176 }
4177 return 0;
4178 ;
4179 return 0;
4180}
4181_ACEOF
4182rm -f conftest$ac_exeext
4183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_type_long_long_int=yes
4194else
4195 echo "$as_me: program exited with status $ac_status" >&5
4196echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199( exit $ac_status )
4200ac_cv_type_long_long_int=no
4201fi
4202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203fi
4204else
4205 echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208ac_cv_type_long_long_int=no
4209fi
4210rm -f conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4212fi
4213echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4214echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4215 if test $ac_cv_type_long_long_int = yes; then
4216
4217cat >>confdefs.h <<\_ACEOF
4218#define HAVE_LONG_LONG_INT 1
4219_ACEOF
4220
4221 fi
4222
4223
4224 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4225echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4226if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 cat >conftest.$ac_ext <<_ACEOF
4230
4231 /* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
4236/* For now, do not test the preprocessor; as of 2007 there are too many
4237 implementations with broken preprocessors. Perhaps this can
4238 be revisited in 2012. In the meantime, code should not expect
4239 #if to work with literals wider than 32 bits. */
4240 /* Test literals. */
4241 long long int ll = 9223372036854775807ll;
4242 long long int nll = -9223372036854775807LL;
4243 unsigned long long int ull = 18446744073709551615ULL;
4244 /* Test constant expressions. */
4245 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4246 ? 1 : -1)];
4247 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4248 ? 1 : -1)];
4249 int i = 63;
4250int
4251main ()
4252{
4253/* Test availability of runtime routines for shift and division. */
4254 long long int llmax = 9223372036854775807ll;
4255 unsigned long long int ullmax = 18446744073709551615ull;
4256 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4257 | (llmax / ll) | (llmax % ll)
4258 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4259 | (ullmax / ull) | (ullmax % ull));
4260 ;
4261 return 0;
4262}
4263
4264_ACEOF
4265rm -f conftest.$ac_objext conftest$ac_exeext
4266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_type_unsigned_long_long_int=yes
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292ac_cv_type_unsigned_long_long_int=no
4293fi
4294rm -f conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4296fi
4297echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4298echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4299 if test $ac_cv_type_unsigned_long_long_int = yes; then
4300
4301cat >>confdefs.h <<\_ACEOF
4302#define HAVE_UNSIGNED_LONG_LONG_INT 1
4303_ACEOF
4304
4305 fi
4306
4307
4308
4309 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4310echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4311if test "${gl_cv_have_include_next+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313else
4314 rm -rf conftestd1 conftestd2
4315 mkdir conftestd1 conftestd2
4316 cat <<EOF > conftestd1/conftest.h
4317#define DEFINED_IN_CONFTESTD1
4318#include_next <conftest.h>
4319#ifdef DEFINED_IN_CONFTESTD2
4320int foo;
4321#else
4322#error "include_next doesn't work"
4323#endif
4324EOF
4325 cat <<EOF > conftestd2/conftest.h
4326#ifndef DEFINED_IN_CONFTESTD1
4327#error "include_next test doesn't work"
4328#endif
4329#define DEFINED_IN_CONFTESTD2
4330EOF
4331 save_CPPFLAGS="$CPPFLAGS"
4332 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4333 cat >conftest.$ac_ext <<_ACEOF
4334#include <conftest.h>
4335_ACEOF
4336rm -f conftest.$ac_objext
4337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 gl_cv_have_include_next=yes
4359else
4360 echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363gl_cv_have_include_next=no
4364fi
4365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 CPPFLAGS="$save_CPPFLAGS"
4367 rm -rf conftestd1 conftestd2
4368
4369fi
4370echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4371echo "${ECHO_T}$gl_cv_have_include_next" >&6
4372 if test $gl_cv_have_include_next = yes; then
4373
4374
4375cat >>confdefs.h <<\_ACEOF
4376#define HAVE_INCLUDE_NEXT 1
4377_ACEOF
4378
4379
4380 INCLUDE_NEXT=include_next
4381 else
4382 INCLUDE_NEXT=include
4383 fi
4384
4385
4386
4387
4388
4389
4390
4391for ac_header in $gl_header_list
4392do
4393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394if eval "test \"\${$as_ac_Header+set}\" = set"; then
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399fi
4400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4402else
4403 # Is the header compilable?
4404echo "$as_me:$LINENO: checking $ac_header usability" >&5
4405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4406cat >conftest.$ac_ext <<_ACEOF
4407/* confdefs.h. */
4408_ACEOF
4409cat confdefs.h >>conftest.$ac_ext
4410cat >>conftest.$ac_ext <<_ACEOF
4411/* end confdefs.h. */
4412$ac_includes_default
4413#include <$ac_header>
4414_ACEOF
4415rm -f conftest.$ac_objext
4416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_c_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_header_compiler=yes
4438else
4439 echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442ac_header_compiler=no
4443fi
4444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446echo "${ECHO_T}$ac_header_compiler" >&6
4447
4448# Is the header present?
4449echo "$as_me:$LINENO: checking $ac_header presence" >&5
4450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4451cat >conftest.$ac_ext <<_ACEOF
4452/* confdefs.h. */
4453_ACEOF
4454cat confdefs.h >>conftest.$ac_ext
4455cat >>conftest.$ac_ext <<_ACEOF
4456/* end confdefs.h. */
4457#include <$ac_header>
4458_ACEOF
4459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470 else
4471 ac_cpp_err=
4472 fi
4473else
4474 ac_cpp_err=yes
4475fi
4476if test -z "$ac_cpp_err"; then
4477 ac_header_preproc=yes
4478else
4479 echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482 ac_header_preproc=no
4483fi
4484rm -f conftest.err conftest.$ac_ext
4485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4486echo "${ECHO_T}$ac_header_preproc" >&6
4487
4488# So? What about this header?
4489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4490 yes:no: )
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4495 ac_header_preproc=yes
4496 ;;
4497 no:yes:* )
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4510 (
4511 cat <<\_ASBOX
4512## ------------------------------------------ ##
4513## Report this to the AC_PACKAGE_NAME lists. ##
4514## ------------------------------------------ ##
4515_ASBOX
4516 ) |
4517 sed "s/^/$as_me: WARNING: /" >&2
4518 ;;
4519esac
4520echo "$as_me:$LINENO: checking for $ac_header" >&5
4521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525 eval "$as_ac_Header=\$ac_header_preproc"
4526fi
4527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529
4530fi
4531if test `eval echo '${'$as_ac_Header'}'` = yes; then
4532 cat >>confdefs.h <<_ACEOF
4533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4534_ACEOF
4535
4536fi
4537
4538done
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4552echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4553if test "${ac_cv_c_restrict+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
4556 ac_cv_c_restrict=no
4557 # The order here caters to the fact that C++ does not require restrict.
4558 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4559 cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4565typedef int * int_ptr;
4566 int foo (int_ptr $ac_kw ip) {
4567 return ip[0];
4568 }
4569int
4570main ()
4571{
4572int s[1];
4573 int * $ac_kw t = s;
4574 t[0] = 0;
4575 return foo(t)
4576 ;
4577 return 0;
4578}
4579_ACEOF
4580rm -f conftest.$ac_objext
4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_c_restrict=$ac_kw
4603else
4604 echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
4607fi
4608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 test "$ac_cv_c_restrict" != no && break
4610 done
4611
4612fi
4613echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4614echo "${ECHO_T}$ac_cv_c_restrict" >&6
4615
4616
4617 case $ac_cv_c_restrict in
4618 restrict) ;;
4619 no) cat >>confdefs.h <<\_ACEOF
4620#define restrict
4621_ACEOF
4622 ;;
4623 *) cat >>confdefs.h <<_ACEOF
4624#define restrict $ac_cv_c_restrict
4625_ACEOF
4626 ;;
4627 esac
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 :
4642
4643
4644
4645
4646
4647
4648
4649 if test $gl_cv_have_include_next = yes; then
4650 gl_cv_next_string_h='<'string.h'>'
4651 else
4652 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4653echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4654if test "${gl_cv_next_string_h+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657
4658 if test $ac_cv_header_string_h = yes; then
4659 cat >conftest.$ac_ext <<_ACEOF
4660/* confdefs.h. */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h. */
4665#include <string.h>
4666
4667_ACEOF
4668 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4669 sed -n '\#/string.h#{
4670 s#.*"\(.*/string.h\)".*#\1#
4671 s#^/[^/]#//&#
4672 p
4673 q
4674 }'`'"'
4675 else
4676 gl_cv_next_string_h='<'string.h'>'
4677 fi
4678
4679fi
4680echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4681echo "${ECHO_T}$gl_cv_next_string_h" >&6
4682 fi
4683 NEXT_STRING_H=$gl_cv_next_string_h
4684
4685
4686
4687
4688
4689 GNULIB_WCWIDTH=0;
4690 HAVE_DECL_WCWIDTH=1;
4691 REPLACE_WCWIDTH=0;
4692 WCHAR_H=
4693
4694
4695
4696
4697
4698if false; then
4699 GL_COND_LIBTOOL_TRUE=
4700 GL_COND_LIBTOOL_FALSE='#'
4701else
4702 GL_COND_LIBTOOL_TRUE='#'
4703 GL_COND_LIBTOOL_FALSE=
4704fi
4705
4706 gl_cond_libtool=false
4707 gl_libdeps=
4708 gl_ltlibdeps=
4709
4710
4711
4712 gl_source_base='gnulib'
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722for ac_func in memchr
4723do
4724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725echo "$as_me:$LINENO: checking for $ac_func" >&5
4726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4727if eval "test \"\${$as_ac_var+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730 cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h. */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h. */
4736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4738#define $ac_func innocuous_$ac_func
4739
4740/* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func (); below.
4742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 <limits.h> exists even on freestanding compilers. */
4744
4745#ifdef __STDC__
4746# include <limits.h>
4747#else
4748# include <assert.h>
4749#endif
4750
4751#undef $ac_func
4752
4753/* Override any gcc2 internal prototype to avoid an error. */
4754#ifdef __cplusplus
4755extern "C"
4756{
4757#endif
4758/* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4760char $ac_func ();
4761/* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4765choke me
4766#else
4767char (*f) () = $ac_func;
4768#endif
4769#ifdef __cplusplus
4770}
4771#endif
4772
4773int
4774main ()
4775{
4776return f != $ac_func;
4777 ;
4778 return 0;
4779}
4780_ACEOF
4781rm -f conftest.$ac_objext conftest$ac_exeext
4782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 eval "$as_ac_var=yes"
4804else
4805 echo "$as_me: failed program was:" >&5
4806sed 's/^/| /' conftest.$ac_ext >&5
4807
4808eval "$as_ac_var=no"
4809fi
4810rm -f conftest.err conftest.$ac_objext \
4811 conftest$ac_exeext conftest.$ac_ext
4812fi
4813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4814echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4815if test `eval echo '${'$as_ac_var'}'` = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4818_ACEOF
4819
4820else
4821
4822 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4823
4824fi
4825done
4826
4827
4828 if test $ac_cv_func_memchr = no; then
4829
4830
4831for ac_header in bp-sym.h
4832do
4833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839fi
4840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842else
4843 # Is the header compilable?
4844echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846cat >conftest.$ac_ext <<_ACEOF
4847/* confdefs.h. */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
4851/* end confdefs.h. */
4852$ac_includes_default
4853#include <$ac_header>
4854_ACEOF
4855rm -f conftest.$ac_objext
4856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_header_compiler=yes
4878else
4879 echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882ac_header_compiler=no
4883fi
4884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886echo "${ECHO_T}$ac_header_compiler" >&6
4887
4888# Is the header present?
4889echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
4897#include <$ac_header>
4898_ACEOF
4899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910 else
4911 ac_cpp_err=
4912 fi
4913else
4914 ac_cpp_err=yes
4915fi
4916if test -z "$ac_cpp_err"; then
4917 ac_header_preproc=yes
4918else
4919 echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_preproc=no
4923fi
4924rm -f conftest.err conftest.$ac_ext
4925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926echo "${ECHO_T}$ac_header_preproc" >&6
4927
4928# So? What about this header?
4929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4930 yes:no: )
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935 ac_header_preproc=yes
4936 ;;
4937 no:yes:* )
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4950 (
4951 cat <<\_ASBOX
4952## ------------------------------------------ ##
4953## Report this to the AC_PACKAGE_NAME lists. ##
4954## ------------------------------------------ ##
4955_ASBOX
4956 ) |
4957 sed "s/^/$as_me: WARNING: /" >&2
4958 ;;
4959esac
4960echo "$as_me:$LINENO: checking for $ac_header" >&5
4961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4962if eval "test \"\${$as_ac_Header+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965 eval "$as_ac_Header=\$ac_header_preproc"
4966fi
4967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4969
4970fi
4971if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974_ACEOF
4975
4976fi
4977
4978done
4979
4980
4981 fi
4982
4983
4984 echo "$as_me:$LINENO: checking for working memcmp" >&5
4985echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4986if test "${ac_cv_func_memcmp_working+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_func_memcmp_working=no
4991else
4992 cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h. */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h. */
4998$ac_includes_default
4999int
5000main ()
5001{
5002
5003 /* Some versions of memcmp are not 8-bit clean. */
5004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5005 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5006 exit (1);
5007
5008 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5009 or more and with at least one buffer not starting on a 4-byte boundary.
5010 William Lewis provided this test program. */
5011 {
5012 char foo[21];
5013 char bar[21];
5014 int i;
5015 for (i = 0; i < 4; i++)
5016 {
5017 char *a = foo + i;
5018 char *b = bar + i;
5019 strcpy (a, "--------01111111");
5020 strcpy (b, "--------10000000");
5021 if (memcmp (a, b, 16) >= 0)
5022 exit (1);
5023 }
5024 exit (0);
5025 }
5026
5027 ;
5028 return 0;
5029}
5030_ACEOF
5031rm -f conftest$ac_exeext
5032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_func_memcmp_working=yes
5043else
5044 echo "$as_me: program exited with status $ac_status" >&5
5045echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048( exit $ac_status )
5049ac_cv_func_memcmp_working=no
5050fi
5051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052fi
5053fi
5054echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5055echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5056test $ac_cv_func_memcmp_working = no &&
5057
5058
5059
5060
5061
5062
5063 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5064
5065
5066 if test $ac_cv_func_memcmp_working = no; then
5067
5068cat >>confdefs.h <<\_ACEOF
5069#define memcmp rpl_memcmp
5070_ACEOF
5071
5072 :
5073 fi
5074
5075
5076
5077 if test $ac_cv_have_decl_memmem = yes; then
5078 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5079echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5080if test "${gl_cv_func_memmem_works+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082else
5083 if test "$cross_compiling" = yes; then
5084 gl_cv_func_memmem_works="guessing no"
5085else
5086 cat >conftest.$ac_ext <<_ACEOF
5087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
5092
5093#include <string.h> /* for memmem */
5094#include <stdlib.h> /* for malloc */
5095#include <unistd.h> /* for alarm */
5096
5097int
5098main ()
5099{
5100size_t m = 1000000;
5101 char *haystack = (char *) malloc (2 * m + 1);
5102 char *needle = (char *) malloc (m + 1);
5103 void *result = 0;
5104 /* Failure to compile this test due to missing alarm is okay,
5105 since all such platforms (mingw) also lack memmem. */
5106 alarm (5);
5107 /* Check for quadratic performance. */
5108 if (haystack && needle)
5109 {
5110 memset (haystack, 'A', 2 * m);
5111 haystack[2 * m] = 'B';
5112 memset (needle, 'A', m);
5113 needle[m] = 'B';
5114 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5115 }
5116 /* Check for empty needle behavior. */
5117 return !result || !memmem ("a", 1, 0, 0);
5118 ;
5119 return 0;
5120}
5121_ACEOF
5122rm -f conftest$ac_exeext
5123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 gl_cv_func_memmem_works=yes
5134else
5135 echo "$as_me: program exited with status $ac_status" >&5
5136echo "$as_me: failed program was:" >&5
5137sed 's/^/| /' conftest.$ac_ext >&5
5138
5139( exit $ac_status )
5140gl_cv_func_memmem_works=no
5141fi
5142rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5143fi
5144fi
5145echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5146echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5147 if test "$gl_cv_func_memmem_works" != yes; then
5148 REPLACE_MEMMEM=1
5149
5150
5151
5152
5153
5154
5155
5156 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5157
5158 fi
5159 fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173for ac_func in memmem
5174do
5175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5176echo "$as_me:$LINENO: checking for $ac_func" >&5
5177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5178if eval "test \"\${$as_ac_var+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5189#define $ac_func innocuous_$ac_func
5190
5191/* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func (); below.
5193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 <limits.h> exists even on freestanding compilers. */
5195
5196#ifdef __STDC__
5197# include <limits.h>
5198#else
5199# include <assert.h>
5200#endif
5201
5202#undef $ac_func
5203
5204/* Override any gcc2 internal prototype to avoid an error. */
5205#ifdef __cplusplus
5206extern "C"
5207{
5208#endif
5209/* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5211char $ac_func ();
5212/* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5216choke me
5217#else
5218char (*f) () = $ac_func;
5219#endif
5220#ifdef __cplusplus
5221}
5222#endif
5223
5224int
5225main ()
5226{
5227return f != $ac_func;
5228 ;
5229 return 0;
5230}
5231_ACEOF
5232rm -f conftest.$ac_objext conftest$ac_exeext
5233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_var=yes"
5255else
5256 echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259eval "$as_ac_var=no"
5260fi
5261rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263fi
5264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5265echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5266if test `eval echo '${'$as_ac_var'}'` = yes; then
5267 cat >>confdefs.h <<_ACEOF
5268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5269_ACEOF
5270
5271else
5272
5273 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5274
5275fi
5276done
5277
5278
5279
5280 :
5281
5282
5283
5284
5285
5286 if test $ac_cv_have_decl_memmem = no; then
5287 HAVE_DECL_MEMMEM=0
5288 fi
5289 :
5290
5291
5292
5293 GNULIB_MEMMEM=1
5294
5295
5296
5297
5298 if test $ac_cv_type_long_long_int = yes; then
5299 HAVE_LONG_LONG_INT=1
5300 else
5301 HAVE_LONG_LONG_INT=0
5302 fi
5303
5304
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5306 HAVE_UNSIGNED_LONG_LONG_INT=1
5307 else
5308 HAVE_UNSIGNED_LONG_LONG_INT=0
5309 fi
5310
5311
5312 if test $ac_cv_header_inttypes_h = yes; then
5313 HAVE_INTTYPES_H=1
5314 else
5315 HAVE_INTTYPES_H=0
5316 fi
5317
5318
5319 if test $ac_cv_header_sys_types_h = yes; then
5320 HAVE_SYS_TYPES_H=1
5321 else
5322 HAVE_SYS_TYPES_H=0
5323 fi
5324
5325
5326
5327
5328
5329 :
5330
5331
5332
5333
5334
5335
5336
5337 if test $gl_cv_have_include_next = yes; then
5338 gl_cv_next_stdint_h='<'stdint.h'>'
5339 else
5340 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5341echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5342if test "${gl_cv_next_stdint_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345
5346 if test $ac_cv_header_stdint_h = yes; then
5347 cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h. */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h. */
5353#include <stdint.h>
5354
5355_ACEOF
5356 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 sed -n '\#/stdint.h#{
5358 s#.*"\(.*/stdint.h\)".*#\1#
5359 s#^/[^/]#//&#
5360 p
5361 q
5362 }'`'"'
5363 else
5364 gl_cv_next_stdint_h='<'stdint.h'>'
5365 fi
5366
5367fi
5368echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5369echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5370 fi
5371 NEXT_STDINT_H=$gl_cv_next_stdint_h
5372
5373
5374
5375 if test $ac_cv_header_stdint_h = yes; then
5376 HAVE_STDINT_H=1
5377 else
5378 HAVE_STDINT_H=0
5379 fi
5380
5381
5382 if test $ac_cv_header_stdint_h = yes; then
5383 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5384echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5385if test "${gl_cv_header_working_stdint_h+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 gl_cv_header_working_stdint_h=no
5389 cat >conftest.$ac_ext <<_ACEOF
5390
5391 /* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396
5397#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5398#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5399#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5400#include <stdint.h>
5401/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5402#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5403#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5404#endif
5405
5406
5407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5408 included before <wchar.h>. */
5409 #include <stddef.h>
5410 #include <signal.h>
5411 #if HAVE_WCHAR_H
5412 # include <stdio.h>
5413 # include <time.h>
5414 # include <wchar.h>
5415 #endif
5416
5417
5418#ifdef INT8_MAX
5419int8_t a1 = INT8_MAX;
5420int8_t a1min = INT8_MIN;
5421#endif
5422#ifdef INT16_MAX
5423int16_t a2 = INT16_MAX;
5424int16_t a2min = INT16_MIN;
5425#endif
5426#ifdef INT32_MAX
5427int32_t a3 = INT32_MAX;
5428int32_t a3min = INT32_MIN;
5429#endif
5430#ifdef INT64_MAX
5431int64_t a4 = INT64_MAX;
5432int64_t a4min = INT64_MIN;
5433#endif
5434#ifdef UINT8_MAX
5435uint8_t b1 = UINT8_MAX;
5436#else
5437typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5438#endif
5439#ifdef UINT16_MAX
5440uint16_t b2 = UINT16_MAX;
5441#endif
5442#ifdef UINT32_MAX
5443uint32_t b3 = UINT32_MAX;
5444#endif
5445#ifdef UINT64_MAX
5446uint64_t b4 = UINT64_MAX;
5447#endif
5448int_least8_t c1 = INT8_C (0x7f);
5449int_least8_t c1max = INT_LEAST8_MAX;
5450int_least8_t c1min = INT_LEAST8_MIN;
5451int_least16_t c2 = INT16_C (0x7fff);
5452int_least16_t c2max = INT_LEAST16_MAX;
5453int_least16_t c2min = INT_LEAST16_MIN;
5454int_least32_t c3 = INT32_C (0x7fffffff);
5455int_least32_t c3max = INT_LEAST32_MAX;
5456int_least32_t c3min = INT_LEAST32_MIN;
5457int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5458int_least64_t c4max = INT_LEAST64_MAX;
5459int_least64_t c4min = INT_LEAST64_MIN;
5460uint_least8_t d1 = UINT8_C (0xff);
5461uint_least8_t d1max = UINT_LEAST8_MAX;
5462uint_least16_t d2 = UINT16_C (0xffff);
5463uint_least16_t d2max = UINT_LEAST16_MAX;
5464uint_least32_t d3 = UINT32_C (0xffffffff);
5465uint_least32_t d3max = UINT_LEAST32_MAX;
5466uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5467uint_least64_t d4max = UINT_LEAST64_MAX;
5468int_fast8_t e1 = INT_FAST8_MAX;
5469int_fast8_t e1min = INT_FAST8_MIN;
5470int_fast16_t e2 = INT_FAST16_MAX;
5471int_fast16_t e2min = INT_FAST16_MIN;
5472int_fast32_t e3 = INT_FAST32_MAX;
5473int_fast32_t e3min = INT_FAST32_MIN;
5474int_fast64_t e4 = INT_FAST64_MAX;
5475int_fast64_t e4min = INT_FAST64_MIN;
5476uint_fast8_t f1 = UINT_FAST8_MAX;
5477uint_fast16_t f2 = UINT_FAST16_MAX;
5478uint_fast32_t f3 = UINT_FAST32_MAX;
5479uint_fast64_t f4 = UINT_FAST64_MAX;
5480#ifdef INTPTR_MAX
5481intptr_t g = INTPTR_MAX;
5482intptr_t gmin = INTPTR_MIN;
5483#endif
5484#ifdef UINTPTR_MAX
5485uintptr_t h = UINTPTR_MAX;
5486#endif
5487intmax_t i = INTMAX_MAX;
5488uintmax_t j = UINTMAX_MAX;
5489
5490#include <limits.h> /* for CHAR_BIT */
5491#define TYPE_MINIMUM(t) \
5492 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5493#define TYPE_MAXIMUM(t) \
5494 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5495struct s {
5496 int check_PTRDIFF:
5497 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5498 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5499 ? 1 : -1;
5500 /* Detect bug in FreeBSD 6.0 / ia64. */
5501 int check_SIG_ATOMIC:
5502 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5503 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5504 ? 1 : -1;
5505 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5506 int check_WCHAR:
5507 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5508 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5509 ? 1 : -1;
5510 /* Detect bug in mingw. */
5511 int check_WINT:
5512 WINT_MIN == TYPE_MINIMUM (wint_t)
5513 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5514 ? 1 : -1;
5515
5516 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5517 int check_UINT8_C:
5518 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5519 int check_UINT16_C:
5520 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5521
5522 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5523#ifdef UINT8_MAX
5524 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5525#endif
5526#ifdef UINT16_MAX
5527 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5528#endif
5529#ifdef UINT32_MAX
5530 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5531#endif
5532#ifdef UINT64_MAX
5533 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5534#endif
5535 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5536 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5537 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5538 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5539 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5540 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5541 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5542 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5543 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5544 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5545 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5546};
5547
5548int
5549main ()
5550{
5551
5552 ;
5553 return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext
5557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 gl_cv_header_working_stdint_h=yes
5579else
5580 echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583fi
5584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5587echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5588 fi
5589 if test "$gl_cv_header_working_stdint_h" = yes; then
5590 STDINT_H=
5591 else
5592
5593
5594for ac_header in sys/inttypes.h sys/bitypes.h
5595do
5596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo "$as_me:$LINENO: checking for $ac_header" >&5
5599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5600if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602fi
5603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5605else
5606 # Is the header compilable?
5607echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5609cat >conftest.$ac_ext <<_ACEOF
5610/* confdefs.h. */
5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
5614/* end confdefs.h. */
5615$ac_includes_default
5616#include <$ac_header>
5617_ACEOF
5618rm -f conftest.$ac_objext
5619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5641else
5642 echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645ac_header_compiler=no
5646fi
5647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651# Is the header present?
5652echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5654cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
5660#include <$ac_header>
5661_ACEOF
5662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null; then
5670 if test -s conftest.err; then
5671 ac_cpp_err=$ac_c_preproc_warn_flag
5672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5673 else
5674 ac_cpp_err=
5675 fi
5676else
5677 ac_cpp_err=yes
5678fi
5679if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5681else
5682 echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_header_preproc=no
5686fi
5687rm -f conftest.err conftest.$ac_ext
5688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691# So? What about this header?
5692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5693 yes:no: )
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5699 ;;
5700 no:yes:* )
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5713 (
5714 cat <<\_ASBOX
5715## ------------------------------------------ ##
5716## Report this to the AC_PACKAGE_NAME lists. ##
5717## ------------------------------------------ ##
5718_ASBOX
5719 ) |
5720 sed "s/^/$as_me: WARNING: /" >&2
5721 ;;
5722esac
5723echo "$as_me:$LINENO: checking for $ac_header" >&5
5724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728 eval "$as_ac_Header=\$ac_header_preproc"
5729fi
5730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5732
5733fi
5734if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737_ACEOF
5738
5739fi
5740
5741done
5742
5743 if test $ac_cv_header_sys_inttypes_h = yes; then
5744 HAVE_SYS_INTTYPES_H=1
5745 else
5746 HAVE_SYS_INTTYPES_H=0
5747 fi
5748
5749 if test $ac_cv_header_sys_bitypes_h = yes; then
5750 HAVE_SYS_BITYPES_H=1
5751 else
5752 HAVE_SYS_BITYPES_H=0
5753 fi
5754
5755
5756
5757 :
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5773 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5774echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5775if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777else
5778 if test "$cross_compiling" = yes; then
5779 # Depending upon the size, compute the lo and hi bounds.
5780cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
5786
5787 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5788 included before <wchar.h>. */
5789 #include <stddef.h>
5790 #include <signal.h>
5791 #if HAVE_WCHAR_H
5792 # include <stdio.h>
5793 # include <time.h>
5794 # include <wchar.h>
5795 #endif
5796
5797#include <limits.h>
5798int
5799main ()
5800{
5801static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5802test_array [0] = 0
5803
5804 ;
5805 return 0;
5806}
5807_ACEOF
5808rm -f conftest.$ac_objext
5809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_lo=0 ac_mid=0
5831 while :; do
5832 cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838
5839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5840 included before <wchar.h>. */
5841 #include <stddef.h>
5842 #include <signal.h>
5843 #if HAVE_WCHAR_H
5844 # include <stdio.h>
5845 # include <time.h>
5846 # include <wchar.h>
5847 #endif
5848
5849#include <limits.h>
5850int
5851main ()
5852{
5853static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5854test_array [0] = 0
5855
5856 ;
5857 return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext
5861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_hi=$ac_mid; break
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887ac_lo=`expr $ac_mid + 1`
5888 if test $ac_lo -le $ac_mid; then
5889 ac_lo= ac_hi=
5890 break
5891 fi
5892 ac_mid=`expr 2 '*' $ac_mid + 1`
5893fi
5894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 done
5896else
5897 echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
5906
5907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908 included before <wchar.h>. */
5909 #include <stddef.h>
5910 #include <signal.h>
5911 #if HAVE_WCHAR_H
5912 # include <stdio.h>
5913 # include <time.h>
5914 # include <wchar.h>
5915 #endif
5916
5917#include <limits.h>
5918int
5919main ()
5920{
5921static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5922test_array [0] = 0
5923
5924 ;
5925 return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext
5929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_hi=-1 ac_mid=-1
5951 while :; do
5952 cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h. */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h. */
5958
5959 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5960 included before <wchar.h>. */
5961 #include <stddef.h>
5962 #include <signal.h>
5963 #if HAVE_WCHAR_H
5964 # include <stdio.h>
5965 # include <time.h>
5966 # include <wchar.h>
5967 #endif
5968
5969#include <limits.h>
5970int
5971main ()
5972{
5973static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5974test_array [0] = 0
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980rm -f conftest.$ac_objext
5981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_lo=$ac_mid; break
6003else
6004 echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007ac_hi=`expr '(' $ac_mid ')' - 1`
6008 if test $ac_mid -le $ac_hi; then
6009 ac_lo= ac_hi=
6010 break
6011 fi
6012 ac_mid=`expr 2 '*' $ac_mid`
6013fi
6014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 done
6016else
6017 echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020ac_lo= ac_hi=
6021fi
6022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023fi
6024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025# Binary search between lo and hi bounds.
6026while test "x$ac_lo" != "x$ac_hi"; do
6027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034
6035 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6036 included before <wchar.h>. */
6037 #include <stddef.h>
6038 #include <signal.h>
6039 #if HAVE_WCHAR_H
6040 # include <stdio.h>
6041 # include <time.h>
6042 # include <wchar.h>
6043 #endif
6044
6045#include <limits.h>
6046int
6047main ()
6048{
6049static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6050test_array [0] = 0
6051
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext
6057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_hi=$ac_mid
6079else
6080 echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083ac_lo=`expr '(' $ac_mid ')' + 1`
6084fi
6085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086done
6087case $ac_lo in
6088?*) result=$ac_lo;;
6089'') result=unknown ;;
6090esac
6091else
6092 if test "$cross_compiling" = yes; then
6093 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6094echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6096See \`config.log' for more details." >&5
6097echo "$as_me: error: cannot run test program while cross compiling
6098See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }; }
6100else
6101 cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
6107
6108 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6109 included before <wchar.h>. */
6110 #include <stddef.h>
6111 #include <signal.h>
6112 #if HAVE_WCHAR_H
6113 # include <stdio.h>
6114 # include <time.h>
6115 # include <wchar.h>
6116 #endif
6117
6118#include <limits.h>
6119long longval () { return sizeof ($gltype) * CHAR_BIT; }
6120unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6121#include <stdio.h>
6122#include <stdlib.h>
6123int
6124main ()
6125{
6126
6127 FILE *f = fopen ("conftest.val", "w");
6128 if (! f)
6129 exit (1);
6130 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6131 {
6132 long i = longval ();
6133 if (i != (sizeof ($gltype) * CHAR_BIT))
6134 exit (1);
6135 fprintf (f, "%ld\n", i);
6136 }
6137 else
6138 {
6139 unsigned long i = ulongval ();
6140 if (i != (sizeof ($gltype) * CHAR_BIT))
6141 exit (1);
6142 fprintf (f, "%lu\n", i);
6143 }
6144 exit (ferror (f) || fclose (f) != 0);
6145
6146 ;
6147 return 0;
6148}
6149_ACEOF
6150rm -f conftest$ac_exeext
6151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 result=`cat conftest.val`
6162else
6163 echo "$as_me: program exited with status $ac_status" >&5
6164echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167( exit $ac_status )
6168result=unknown
6169fi
6170rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6171fi
6172fi
6173rm -f conftest.val
6174 eval gl_cv_bitsizeof_${gltype}=\$result
6175
6176fi
6177echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6178echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6179 eval result=\$gl_cv_bitsizeof_${gltype}
6180 if test $result = unknown; then
6181 result=0
6182 fi
6183 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6184 cat >>confdefs.h <<_ACEOF
6185#define BITSIZEOF_${GLTYPE} $result
6186_ACEOF
6187
6188 eval BITSIZEOF_${GLTYPE}=\$result
6189 done
6190
6191
6192
6193
6194
6195
6196
6197 for gltype in sig_atomic_t wchar_t wint_t ; do
6198 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6199echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6200if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h. */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h. */
6209
6210 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6211 included before <wchar.h>. */
6212 #include <stddef.h>
6213 #include <signal.h>
6214 #if HAVE_WCHAR_H
6215 # include <stdio.h>
6216 # include <time.h>
6217 # include <wchar.h>
6218 #endif
6219
6220 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6221int
6222main ()
6223{
6224
6225 ;
6226 return 0;
6227}
6228_ACEOF
6229rm -f conftest.$ac_objext
6230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 result=yes
6252else
6253 echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256result=no
6257fi
6258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 eval gl_cv_type_${gltype}_signed=\$result
6260
6261fi
6262echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6263echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6264 eval result=\$gl_cv_type_${gltype}_signed
6265 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6266 if test "$result" = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268#define HAVE_SIGNED_${GLTYPE} 1
6269_ACEOF
6270
6271 eval HAVE_SIGNED_${GLTYPE}=1
6272 else
6273 eval HAVE_SIGNED_${GLTYPE}=0
6274 fi
6275 done
6276
6277
6278 gl_cv_type_ptrdiff_t_signed=yes
6279 gl_cv_type_size_t_signed=no
6280
6281
6282
6283
6284
6285
6286
6287 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6288 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6289echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6290if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293 eval gl_cv_type_${gltype}_suffix=no
6294 eval result=\$gl_cv_type_${gltype}_signed
6295 if test "$result" = yes; then
6296 glsufu=
6297 else
6298 glsufu=u
6299 fi
6300 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6301 case $glsuf in
6302 '') gltype1='int';;
6303 l) gltype1='long int';;
6304 ll) gltype1='long long int';;
6305 i64) gltype1='__int64';;
6306 u) gltype1='unsigned int';;
6307 ul) gltype1='unsigned long int';;
6308 ull) gltype1='unsigned long long int';;
6309 ui64)gltype1='unsigned __int64';;
6310 esac
6311 cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317
6318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6319 included before <wchar.h>. */
6320 #include <stddef.h>
6321 #include <signal.h>
6322 #if HAVE_WCHAR_H
6323 # include <stdio.h>
6324 # include <time.h>
6325 # include <wchar.h>
6326 #endif
6327
6328 extern $gltype foo;
6329 extern $gltype1 foo;
6330int
6331main ()
6332{
6333
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338rm -f conftest.$ac_objext
6339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval gl_cv_type_${gltype}_suffix=\$glsuf
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365fi
6366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 eval result=\$gl_cv_type_${gltype}_suffix
6368 test "$result" != no && break
6369 done
6370fi
6371echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6372echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6373 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6374 eval result=\$gl_cv_type_${gltype}_suffix
6375 test "$result" = no && result=
6376 eval ${GLTYPE}_SUFFIX=\$result
6377 cat >>confdefs.h <<_ACEOF
6378#define ${GLTYPE}_SUFFIX $result
6379_ACEOF
6380
6381 done
6382
6383
6384
6385 STDINT_H=stdint.h
6386 fi
6387
6388
6389
6390
6391
6392
6393
6394 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6395echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6396if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 cat >conftest.$ac_ext <<_ACEOF
6400#include <wchar.h>
6401wchar_t w;
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 gl_cv_header_wchar_h_standalone=yes
6426else
6427 echo "$as_me: failed program was:" >&5
6428sed 's/^/| /' conftest.$ac_ext >&5
6429
6430gl_cv_header_wchar_h_standalone=no
6431fi
6432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433fi
6434echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6435echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6436 if test $gl_cv_header_wchar_h_standalone != yes; then
6437 WCHAR_H=wchar.h
6438 fi
6439
6440
6441 :
6442
6443
6444
6445
6446
6447 if test $ac_cv_header_wchar_h = yes; then
6448 HAVE_WCHAR_H=1
6449 else
6450 HAVE_WCHAR_H=0
6451 fi
6452
6453
6454
6455
6456 :
6457
6458
6459
6460
6461
6462
6463
6464 if test $gl_cv_have_include_next = yes; then
6465 gl_cv_next_wchar_h='<'wchar.h'>'
6466 else
6467 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6468echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6469if test "${gl_cv_next_wchar_h+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472
6473 if test $ac_cv_header_wchar_h = yes; then
6474 cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h. */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h. */
6480#include <wchar.h>
6481
6482_ACEOF
6483 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 sed -n '\#/wchar.h#{
6485 s#.*"\(.*/wchar.h\)".*#\1#
6486 s#^/[^/]#//&#
6487 p
6488 q
6489 }'`'"'
6490 else
6491 gl_cv_next_wchar_h='<'wchar.h'>'
6492 fi
6493
6494fi
6495echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6496echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6497 fi
6498 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6499
6500
6501
6502
6503
6504
6505
6506
6507 gltests_libdeps=
6508 gltests_ltlibdeps=
6509
6510
6511
6512 gl_source_base='tests'
6513
6514
6515
6516
6517 LIBGNU_LIBDEPS="$gl_libdeps"
6518
6519 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6520
6521
6522
6523# For Makefile dependencies.
6524GNULIB_STDINT_H=
6525if test x"$STDINT_H" != x; then
6526 GNULIB_STDINT_H=gnulib/$STDINT_H
6527fi
6528
6529
6530PACKAGE=gdb
6531
6532cat >>confdefs.h <<_ACEOF
6533#define PACKAGE "$PACKAGE"
6534_ACEOF
6535
6536
6537
6538# GDB does not use automake, but gnulib does. This line lets us
6539# generate its Makefile.in.
6540am__api_version="1.9"
6541# Find a good install program. We prefer a C program (faster),
6542# so one script is as good as another. But avoid the broken or
6543# incompatible versions:
6544# SysV /etc/install, /usr/sbin/install
6545# SunOS /usr/etc/install
6546# IRIX /sbin/install
6547# AIX /bin/install
6548# AmigaOS /C/install, which installs bootblocks on floppy discs
6549# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6550# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6551# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6552# OS/2's system install, which has a completely different semantic
6553# ./install, which can be erroneously created by make from ./install.sh.
6554echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6555echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6556if test -z "$INSTALL"; then
6557if test "${ac_cv_path_install+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 # Account for people who put trailing slashes in PATH elements.
6566case $as_dir/ in
6567 ./ | .// | /cC/* | \
6568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6570 /usr/ucb/* ) ;;
6571 *)
6572 # OSF1 and SCO ODT 3.0 have their own names for install.
6573 # Don't use installbsd from OSF since it installs stuff as root
6574 # by default.
6575 for ac_prog in ginstall scoinst install; do
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6578 if test $ac_prog = install &&
6579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6580 # AIX install. It has an incompatible calling convention.
6581 :
6582 elif test $ac_prog = install &&
6583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6584 # program-specific install script used by HP pwplus--don't use.
6585 :
6586 else
6587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6588 break 3
6589 fi
6590 fi
6591 done
6592 done
6593 ;;
6594esac
6595done
6596
6597
6598fi
6599 if test "${ac_cv_path_install+set}" = set; then
6600 INSTALL=$ac_cv_path_install
6601 else
6602 # As a last resort, use the slow shell script. We don't cache a
6603 # path for INSTALL within a source directory, because that will
6604 # break other packages using the cache if that directory is
6605 # removed, or if the path is relative.
6606 INSTALL=$ac_install_sh
6607 fi
6608fi
6609echo "$as_me:$LINENO: result: $INSTALL" >&5
6610echo "${ECHO_T}$INSTALL" >&6
6611
6612# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6613# It thinks the first close brace ends the variable substitution.
6614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6615
6616test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6617
6618test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6619
6620echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6621echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6622# Just in case
6623sleep 1
6624echo timestamp > conftest.file
6625# Do `set' in a subshell so we don't clobber the current shell's
6626# arguments. Must try -L first in case configure is actually a
6627# symlink; some systems play weird games with the mod time of symlinks
6628# (eg FreeBSD returns the mod time of the symlink's containing
6629# directory).
6630if (
6631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6632 if test "$*" = "X"; then
6633 # -L didn't work.
6634 set X `ls -t $srcdir/configure conftest.file`
6635 fi
6636 rm -f conftest.file
6637 if test "$*" != "X $srcdir/configure conftest.file" \
6638 && test "$*" != "X conftest.file $srcdir/configure"; then
6639
6640 # If neither matched, then we have a broken ls. This can happen
6641 # if, for instance, CONFIG_SHELL is bash and it inherits a
6642 # broken ls alias from the environment. This has actually
6643 # happened. Such a system could not be considered "sane".
6644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6645alias in your environment" >&5
6646echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6647alias in your environment" >&2;}
6648 { (exit 1); exit 1; }; }
6649 fi
6650
6651 test "$2" = conftest.file
6652 )
6653then
6654 # Ok.
6655 :
6656else
6657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6658Check your system clock" >&5
6659echo "$as_me: error: newly created file is older than distributed files!
6660Check your system clock" >&2;}
6661 { (exit 1); exit 1; }; }
6662fi
6663echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665test "$program_prefix" != NONE &&
6666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6667# Use a double $ so make ignores it.
6668test "$program_suffix" != NONE &&
6669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6670# Double any \ or $. echo might interpret backslashes.
6671# By default was `s,x,x', remove it if useless.
6672cat <<\_ACEOF >conftest.sed
6673s/[\\$]/&&/g;s/;s,x,x,$//
6674_ACEOF
6675program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6676rm conftest.sed
6677
6678# expand $ac_aux_dir to an absolute path
6679am_aux_dir=`cd $ac_aux_dir && pwd`
6680
6681test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6682# Use eval to expand $SHELL
6683if eval "$MISSING --run true"; then
6684 am_missing_run="$MISSING --run "
6685else
6686 am_missing_run=
6687 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6688echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6689fi
6690
6691if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6692 # We used to keeping the `.' as first argument, in order to
6693 # allow $(mkdir_p) to be used without argument. As in
6694 # $(mkdir_p) $(somedir)
6695 # where $(somedir) is conditionally defined. However this is wrong
6696 # for two reasons:
6697 # 1. if the package is installed by a user who cannot write `.'
6698 # make install will fail,
6699 # 2. the above comment should most certainly read
6700 # $(mkdir_p) $(DESTDIR)$(somedir)
6701 # so it does not work when $(somedir) is undefined and
6702 # $(DESTDIR) is not.
6703 # To support the latter case, we have to write
6704 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6705 # so the `.' trick is pointless.
6706 mkdir_p='mkdir -p --'
6707else
6708 # On NextStep and OpenStep, the `mkdir' command does not
6709 # recognize any option. It will interpret all options as
6710 # directories to create, and then abort because `.' already
6711 # exists.
6712 for d in ./-p ./--version;
6713 do
6714 test -d $d && rmdir $d
6715 done
6716 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6717 if test -f "$ac_aux_dir/mkinstalldirs"; then
6718 mkdir_p='$(mkinstalldirs)'
6719 else
6720 mkdir_p='$(install_sh) -d'
6721 fi
6722fi
6723
6724for ac_prog in gawk mawk nawk awk
6725do
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727set dummy $ac_prog; ac_word=$2
6728echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730if test "${ac_cv_prog_AWK+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733 if test -n "$AWK"; then
6734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_AWK="$ac_prog"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747done
6748done
6749
6750fi
6751fi
6752AWK=$ac_cv_prog_AWK
6753if test -n "$AWK"; then
6754 echo "$as_me:$LINENO: result: $AWK" >&5
6755echo "${ECHO_T}$AWK" >&6
6756else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759fi
6760
6761 test -n "$AWK" && break
6762done
6763
6764 ac_config_commands="$ac_config_commands depfiles"
6765
6766
6767am_make=${MAKE-make}
6768cat > confinc << 'END'
6769am__doit:
6770 @echo done
6771.PHONY: am__doit
6772END
6773# If we don't find an include directive, just comment out the code.
6774echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6775echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6776am__include="#"
6777am__quote=
6778_am_result=none
6779# First try GNU make style include.
6780echo "include confinc" > confmf
6781# We grep out `Entering directory' and `Leaving directory'
6782# messages which can occur if `w' ends up in MAKEFLAGS.
6783# In particular we don't look at `^make:' because GNU make might
6784# be invoked under some other name (usually "gmake"), in which
6785# case it prints its new name instead of `make'.
6786if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6787 am__include=include
6788 am__quote=
6789 _am_result=GNU
6790fi
6791# Now try BSD make style include.
6792if test "$am__include" = "#"; then
6793 echo '.include "confinc"' > confmf
6794 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6795 am__include=.include
6796 am__quote="\""
6797 _am_result=BSD
6798 fi
6799fi
6800
6801
6802echo "$as_me:$LINENO: result: $_am_result" >&5
6803echo "${ECHO_T}$_am_result" >&6
6804rm -f confinc confmf
6805
6806# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6807if test "${enable_dependency_tracking+set}" = set; then
6808 enableval="$enable_dependency_tracking"
6809
6810fi;
6811if test "x$enable_dependency_tracking" != xno; then
6812 am_depcomp="$ac_aux_dir/depcomp"
6813 AMDEPBACKSLASH='\'
6814fi
6815
6816
6817if test "x$enable_dependency_tracking" != xno; then
6818 AMDEP_TRUE=
6819 AMDEP_FALSE='#'
6820else
6821 AMDEP_TRUE='#'
6822 AMDEP_FALSE=
6823fi
6824
6825
6826
6827# test to see if srcdir already configured
6828if test "`cd $srcdir && pwd`" != "`pwd`" &&
6829 test -f $srcdir/config.status; then
6830 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6831echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6832 { (exit 1); exit 1; }; }
6833fi
6834
6835# test whether we have cygpath
6836if test -z "$CYGPATH_W"; then
6837 if (cygpath --version) >/dev/null 2>/dev/null; then
6838 CYGPATH_W='cygpath -w'
6839 else
6840 CYGPATH_W=echo
6841 fi
6842fi
6843
6844
6845# Define the identity of the package.
6846 PACKAGE=gdb
6847 VERSION=UNUSED-VERSION
6848
6849
6850# Some tools Automake needs.
6851
6852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6853
6854
6855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6856
6857
6858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6859
6860
6861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6862
6863
6864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6865
6866install_sh=${install_sh-"$am_aux_dir/install-sh"}
6867
6868# Installed binaries are usually stripped using `strip' when the user
6869# run `make install-strip'. However `strip' might not be the right
6870# tool to use in cross-compilation environments, therefore Automake
6871# will honor the `STRIP' environment variable to overrule this program.
6872if test "$cross_compiling" != no; then
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875set dummy ${ac_tool_prefix}strip; ac_word=$2
6876echo "$as_me:$LINENO: checking for $ac_word" >&5
6877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878if test "${ac_cv_prog_STRIP+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881 if test -n "$STRIP"; then
6882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895done
6896done
6897
6898fi
6899fi
6900STRIP=$ac_cv_prog_STRIP
6901if test -n "$STRIP"; then
6902 echo "$as_me:$LINENO: result: $STRIP" >&5
6903echo "${ECHO_T}$STRIP" >&6
6904else
6905 echo "$as_me:$LINENO: result: no" >&5
6906echo "${ECHO_T}no" >&6
6907fi
6908
6909fi
6910if test -z "$ac_cv_prog_STRIP"; then
6911 ac_ct_STRIP=$STRIP
6912 # Extract the first word of "strip", so it can be a program name with args.
6913set dummy strip; ac_word=$2
6914echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 if test -n "$ac_ct_STRIP"; then
6920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_STRIP="strip"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934done
6935
6936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6937fi
6938fi
6939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6940if test -n "$ac_ct_STRIP"; then
6941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6942echo "${ECHO_T}$ac_ct_STRIP" >&6
6943else
6944 echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6
6946fi
6947
6948 STRIP=$ac_ct_STRIP
6949else
6950 STRIP="$ac_cv_prog_STRIP"
6951fi
6952
6953fi
6954INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6955
6956# We need awk for the "check" target. The system "awk" is bad on
6957# some platforms.
6958# Always define AMTAR for backward compatibility.
6959
6960AMTAR=${AMTAR-"${am_missing_run}tar"}
6961
6962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6963
6964
6965
6966
6967depcc="$CC" am_compiler_list=
6968
6969echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
6978 # making a dummy file named `D' -- because `-MD' means `put the output
6979 # in D'.
6980 mkdir conftest.dir
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6984 cd conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6990 # directory.
6991 mkdir sub
6992
6993 am_cv_CC_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6996 fi
6997 for depmode in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7001 #
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7005 : > sub/conftest.c
7006 for i in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009 # Solaris 8's {/usr,}/bin/sh.
7010 touch sub/conftst$i.h
7011 done
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7013
7014 case $depmode in
7015 nosideeffect)
7016 # after this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested
7018 if test "x$enable_dependency_tracking" = xyes; then
7019 continue
7020 else
7021 break
7022 fi
7023 ;;
7024 none) break ;;
7025 esac
7026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027 # mode. It turns out that the SunPro C++ compiler does not properly
7028 # handle `-M -o', and we need to detect this.
7029 if depmode=$depmode \
7030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7033 >/dev/null 2>conftest.err &&
7034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7037 # icc doesn't choke on unknown options, it will just issue warnings
7038 # or remarks (even with -Werror). So we grep stderr for any message
7039 # that says an option was ignored or not supported.
7040 # When given -MP, icc 7.0 and 7.1 complain thusly:
7041 # icc: Command line warning: ignoring option '-M'; no argument required
7042 # The diagnosis changed in icc 8.0:
7043 # icc: Command line remark: option '-MP' not supported
7044 if (grep 'ignoring option' conftest.err ||
7045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7046 am_cv_CC_dependencies_compiler_type=$depmode
7047 break
7048 fi
7049 fi
7050 done
7051
7052 cd ..
7053 rm -rf conftest.dir
7054else
7055 am_cv_CC_dependencies_compiler_type=none
7056fi
7057
7058fi
7059echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7060echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7062
7063
7064
7065if
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7068 am__fastdepCC_TRUE=
7069 am__fastdepCC_FALSE='#'
7070else
7071 am__fastdepCC_TRUE='#'
7072 am__fastdepCC_FALSE=
7073fi
7074
7075
7076
7077
7078debugdir=${libdir}/debug
7079
7080
7081# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7082if test "${with_separate_debug_dir+set}" = set; then
7083 withval="$with_separate_debug_dir"
7084 debugdir="${withval}"
7085fi;
7086
7087
7088 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7090 ac_define_dir=`eval echo $debugdir`
7091 ac_define_dir=`eval echo $ac_define_dir`
7092
7093cat >>confdefs.h <<_ACEOF
7094#define DEBUGDIR "$ac_define_dir"
7095_ACEOF
7096
7097
7098#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7099
7100if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7101 if test "x$prefix" = xNONE; then
7102 test_prefix=/usr/local
7103 else
7104 test_prefix=$prefix
7105 fi
7106else
7107 test_prefix=$exec_prefix
7108fi
7109case ${debugdir} in
7110"${test_prefix}"|"${test_prefix}/"*|\
7111'${exec_prefix}'|'${exec_prefix}/'*)
7112
7113cat >>confdefs.h <<\_ACEOF
7114#define DEBUGDIR_RELOCATABLE 1
7115_ACEOF
7116
7117 ;;
7118esac
7119
7120
7121
7122subdirs="$subdirs doc testsuite"
7123
7124
7125# Check whether to support alternative target configurations
7126# Check whether --enable-targets or --disable-targets was given.
7127if test "${enable_targets+set}" = set; then
7128 enableval="$enable_targets"
7129 case "${enableval}" in
7130 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7131echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7132 { (exit 1); exit 1; }; }
7133 ;;
7134 no) enable_targets= ;;
7135 *) enable_targets=$enableval ;;
7136esac
7137fi;
7138
7139# Check whether to enable 64-bit support on 32-bit hosts
7140# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7141if test "${enable_64_bit_bfd+set}" = set; then
7142 enableval="$enable_64_bit_bfd"
7143 case "${enableval}" in
7144 yes) want64=true ;;
7145 no) want64=false ;;
7146 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7147echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7148 { (exit 1); exit 1; }; } ;;
7149esac
7150else
7151 want64=false
7152fi;
7153# Provide defaults for some variables set by the per-host and per-target
7154# configuration.
7155gdb_host_obs=posix-hdep.o
7156
7157if test "${target}" = "${host}"; then
7158 gdb_native=yes
7159else
7160 gdb_native=no
7161fi
7162
7163. $srcdir/configure.host
7164
7165# Accumulate some settings from configure.tgt over all enabled targets
7166
7167TARGET_OBS=
7168all_targets=
7169
7170for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7171do
7172 if test "$targ_alias" = "all"; then
7173 all_targets=true
7174 else
7175 # Canonicalize the secondary target names.
7176 result=`$ac_config_sub $targ_alias 2>/dev/null`
7177 if test -n "$result"; then
7178 targ=$result
7179 else
7180 targ=$targ_alias
7181 fi
7182
7183 . ${srcdir}/configure.tgt
7184
7185 # Target-specific object files
7186 for i in ${gdb_target_obs}; do
7187 case " $TARGET_OBS " in
7188 *" ${i} "*) ;;
7189 *)
7190 TARGET_OBS="$TARGET_OBS ${i}"
7191 ;;
7192 esac
7193 done
7194
7195 # Check whether this target needs 64-bit CORE_ADDR
7196 if test x${want64} = xfalse; then
7197 . ${srcdir}/../bfd/config.bfd
7198 fi
7199 fi
7200done
7201
7202if test x${all_targets} = xtrue; then
7203
7204 # We want all 64-bit targets if we either:
7205 # - run on a 64-bit host or
7206 # - already require 64-bit support for some other target or
7207 # - the --enable-64-bit-bfd option was supplied
7208 # Otherwise we only support all 32-bit targets.
7209 #
7210 # NOTE: This test must be in sync with the corresponding
7211 # tests in BFD!
7212
7213 if test x${want64} = xfalse; then
7214 echo "$as_me:$LINENO: checking for long" >&5
7215echo $ECHO_N "checking for long... $ECHO_C" >&6
7216if test "${ac_cv_type_long+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219 cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h. */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h. */
7225$ac_includes_default
7226int
7227main ()
7228{
7229if ((long *) 0)
7230 return 0;
7231if (sizeof (long))
7232 return 0;
7233 ;
7234 return 0;
7235}
7236_ACEOF
7237rm -f conftest.$ac_objext
7238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7259 ac_cv_type_long=yes
7260else
7261 echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
7263
7264ac_cv_type_long=no
7265fi
7266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267fi
7268echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7269echo "${ECHO_T}$ac_cv_type_long" >&6
7270
7271echo "$as_me:$LINENO: checking size of long" >&5
7272echo $ECHO_N "checking size of long... $ECHO_C" >&6
7273if test "${ac_cv_sizeof_long+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276 if test "$ac_cv_type_long" = yes; then
7277 # The cast to unsigned long works around a bug in the HP C Compiler
7278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7280 # This bug is HP SR number 8606223364.
7281 if test "$cross_compiling" = yes; then
7282 # Depending upon the size, compute the lo and hi bounds.
7283cat >conftest.$ac_ext <<_ACEOF
7284/* confdefs.h. */
7285_ACEOF
7286cat confdefs.h >>conftest.$ac_ext
7287cat >>conftest.$ac_ext <<_ACEOF
7288/* end confdefs.h. */
7289$ac_includes_default
7290int
7291main ()
7292{
7293static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7294test_array [0] = 0
7295
7296 ;
7297 return 0;
7298}
7299_ACEOF
7300rm -f conftest.$ac_objext
7301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_lo=0 ac_mid=0
7323 while :; do
7324 cat >conftest.$ac_ext <<_ACEOF
7325/* confdefs.h. */
7326_ACEOF
7327cat confdefs.h >>conftest.$ac_ext
7328cat >>conftest.$ac_ext <<_ACEOF
7329/* end confdefs.h. */
7330$ac_includes_default
7331int
7332main ()
7333{
7334static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7335test_array [0] = 0
7336
7337 ;
7338 return 0;
7339}
7340_ACEOF
7341rm -f conftest.$ac_objext
7342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_hi=$ac_mid; break
7364else
7365 echo "$as_me: failed program was:" >&5
7366sed 's/^/| /' conftest.$ac_ext >&5
7367
7368ac_lo=`expr $ac_mid + 1`
7369 if test $ac_lo -le $ac_mid; then
7370 ac_lo= ac_hi=
7371 break
7372 fi
7373 ac_mid=`expr 2 '*' $ac_mid + 1`
7374fi
7375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 done
7377else
7378 echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381cat >conftest.$ac_ext <<_ACEOF
7382/* confdefs.h. */
7383_ACEOF
7384cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h. */
7387$ac_includes_default
7388int
7389main ()
7390{
7391static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7392test_array [0] = 0
7393
7394 ;
7395 return 0;
7396}
7397_ACEOF
7398rm -f conftest.$ac_objext
7399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_hi=-1 ac_mid=-1
7421 while :; do
7422 cat >conftest.$ac_ext <<_ACEOF
7423/* confdefs.h. */
7424_ACEOF
7425cat confdefs.h >>conftest.$ac_ext
7426cat >>conftest.$ac_ext <<_ACEOF
7427/* end confdefs.h. */
7428$ac_includes_default
7429int
7430main ()
7431{
7432static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7433test_array [0] = 0
7434
7435 ;
7436 return 0;
7437}
7438_ACEOF
7439rm -f conftest.$ac_objext
7440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_lo=$ac_mid; break
7462else
7463 echo "$as_me: failed program was:" >&5
7464sed 's/^/| /' conftest.$ac_ext >&5
7465
7466ac_hi=`expr '(' $ac_mid ')' - 1`
7467 if test $ac_mid -le $ac_hi; then
7468 ac_lo= ac_hi=
7469 break
7470 fi
7471 ac_mid=`expr 2 '*' $ac_mid`
7472fi
7473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 done
7475else
7476 echo "$as_me: failed program was:" >&5
7477sed 's/^/| /' conftest.$ac_ext >&5
7478
7479ac_lo= ac_hi=
7480fi
7481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482fi
7483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484# Binary search between lo and hi bounds.
7485while test "x$ac_lo" != "x$ac_hi"; do
7486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7487 cat >conftest.$ac_ext <<_ACEOF
7488/* confdefs.h. */
7489_ACEOF
7490cat confdefs.h >>conftest.$ac_ext
7491cat >>conftest.$ac_ext <<_ACEOF
7492/* end confdefs.h. */
7493$ac_includes_default
7494int
7495main ()
7496{
7497static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7498test_array [0] = 0
7499
7500 ;
7501 return 0;
7502}
7503_ACEOF
7504rm -f conftest.$ac_objext
7505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_hi=$ac_mid
7527else
7528 echo "$as_me: failed program was:" >&5
7529sed 's/^/| /' conftest.$ac_ext >&5
7530
7531ac_lo=`expr '(' $ac_mid ')' + 1`
7532fi
7533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534done
7535case $ac_lo in
7536?*) ac_cv_sizeof_long=$ac_lo;;
7537'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7538echo "$as_me: error: in \`$ac_pwd':" >&2;}
7539{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7540See \`config.log' for more details." >&5
7541echo "$as_me: error: cannot compute sizeof (long), 77
7542See \`config.log' for more details." >&2;}
7543 { (exit 1); exit 1; }; }; } ;;
7544esac
7545else
7546 if test "$cross_compiling" = yes; then
7547 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7548echo "$as_me: error: in \`$ac_pwd':" >&2;}
7549{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7550See \`config.log' for more details." >&5
7551echo "$as_me: error: cannot run test program while cross compiling
7552See \`config.log' for more details." >&2;}
7553 { (exit 1); exit 1; }; }; }
7554else
7555 cat >conftest.$ac_ext <<_ACEOF
7556/* confdefs.h. */
7557_ACEOF
7558cat confdefs.h >>conftest.$ac_ext
7559cat >>conftest.$ac_ext <<_ACEOF
7560/* end confdefs.h. */
7561$ac_includes_default
7562long longval () { return (long) (sizeof (long)); }
7563unsigned long ulongval () { return (long) (sizeof (long)); }
7564#include <stdio.h>
7565#include <stdlib.h>
7566int
7567main ()
7568{
7569
7570 FILE *f = fopen ("conftest.val", "w");
7571 if (! f)
7572 exit (1);
7573 if (((long) (sizeof (long))) < 0)
7574 {
7575 long i = longval ();
7576 if (i != ((long) (sizeof (long))))
7577 exit (1);
7578 fprintf (f, "%ld\n", i);
7579 }
7580 else
7581 {
7582 unsigned long i = ulongval ();
7583 if (i != ((long) (sizeof (long))))
7584 exit (1);
7585 fprintf (f, "%lu\n", i);
7586 }
7587 exit (ferror (f) || fclose (f) != 0);
7588
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593rm -f conftest$ac_exeext
7594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_sizeof_long=`cat conftest.val`
7605else
7606 echo "$as_me: program exited with status $ac_status" >&5
7607echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610( exit $ac_status )
7611{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7612echo "$as_me: error: in \`$ac_pwd':" >&2;}
7613{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7614See \`config.log' for more details." >&5
7615echo "$as_me: error: cannot compute sizeof (long), 77
7616See \`config.log' for more details." >&2;}
7617 { (exit 1); exit 1; }; }; }
7618fi
7619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7620fi
7621fi
7622rm -f conftest.val
7623else
7624 ac_cv_sizeof_long=0
7625fi
7626fi
7627echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7628echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7629cat >>confdefs.h <<_ACEOF
7630#define SIZEOF_LONG $ac_cv_sizeof_long
7631_ACEOF
7632
7633
7634 if test "x${ac_cv_sizeof_long}" = "x8"; then
7635 want64=true
7636 fi
7637 fi
7638 if test x${want64} = xtrue; then
7639 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7640 else
7641 TARGET_OBS='$(ALL_TARGET_OBS)'
7642 fi
7643fi
7644
7645
7646
7647# For other settings, only the main target counts.
7648gdb_sim=
7649gdb_osabi=
7650build_gdbserver=
7651targ=$target; . ${srcdir}/configure.tgt
7652
7653# Fetch the default architecture and default target vector from BFD.
7654targ=$target; . $srcdir/../bfd/config.bfd
7655
7656# We only want the first architecture, so strip off the others if
7657# there is more than one.
7658targ_archs=`echo $targ_archs | sed 's/ .*//'`
7659
7660if test "x$targ_archs" != x; then
7661
7662cat >>confdefs.h <<_ACEOF
7663#define DEFAULT_BFD_ARCH $targ_archs
7664_ACEOF
7665
7666fi
7667if test "x$targ_defvec" != x; then
7668
7669cat >>confdefs.h <<_ACEOF
7670#define DEFAULT_BFD_VEC $targ_defvec
7671_ACEOF
7672
7673fi
7674
7675# The CLI cannot be disabled yet, but may be in the future.
7676
7677# Enable CLI.
7678# Check whether --enable-gdbcli or --disable-gdbcli was given.
7679if test "${enable_gdbcli+set}" = set; then
7680 enableval="$enable_gdbcli"
7681 case $enableval in
7682 yes)
7683 ;;
7684 no)
7685 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7686echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7687 { (exit 1); exit 1; }; } ;;
7688 *)
7689 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7690echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7691 { (exit 1); exit 1; }; } ;;
7692 esac
7693else
7694 enable_gdbcli=yes
7695fi;
7696if test x"$enable_gdbcli" = xyes; then
7697 if test -d $srcdir/cli; then
7698 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7699 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7700 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7701 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7702 fi
7703fi
7704
7705# Enable MI.
7706# Check whether --enable-gdbmi or --disable-gdbmi was given.
7707if test "${enable_gdbmi+set}" = set; then
7708 enableval="$enable_gdbmi"
7709 case $enableval in
7710 yes | no)
7711 ;;
7712 *)
7713 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7714echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7715 { (exit 1); exit 1; }; } ;;
7716 esac
7717else
7718 enable_gdbmi=yes
7719fi;
7720if test x"$enable_gdbmi" = xyes; then
7721 if test -d $srcdir/mi; then
7722 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7723 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7724 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7725 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7726 fi
7727fi
7728
7729# Enable TUI.
7730# Check whether --enable-tui or --disable-tui was given.
7731if test "${enable_tui+set}" = set; then
7732 enableval="$enable_tui"
7733 case $enableval in
7734 yes | no | auto)
7735 ;;
7736 *)
7737 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7738echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7739 { (exit 1); exit 1; }; } ;;
7740 esac
7741else
7742 enable_tui=auto
7743fi;
7744
7745# Enable gdbtk.
7746# Check whether --enable-gdbtk or --disable-gdbtk was given.
7747if test "${enable_gdbtk+set}" = set; then
7748 enableval="$enable_gdbtk"
7749 case $enableval in
7750 yes | no)
7751 ;;
7752 *)
7753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7754echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7755 { (exit 1); exit 1; }; } ;;
7756 esac
7757else
7758 if test -d $srcdir/gdbtk; then
7759 enable_gdbtk=yes
7760 else
7761 enable_gdbtk=no
7762 fi
7763fi;
7764# We unconditionally disable gdbtk tests on selected platforms.
7765case $host_os in
7766 go32* | windows*)
7767 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7768echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7769 enable_gdbtk=no ;;
7770esac
7771
7772# Libunwind support.
7773
7774# Check whether --with-libunwind or --without-libunwind was given.
7775if test "${with_libunwind+set}" = set; then
7776 withval="$with_libunwind"
7777 case "${withval}" in
7778 yes) enable_libunwind=yes ;;
7779 no) enable_libunwind=no ;;
7780 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7781echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7782 { (exit 1); exit 1; }; } ;;
7783esac
7784else
7785
7786
7787for ac_header in libunwind.h
7788do
7789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790if eval "test \"\${$as_ac_Header+set}\" = set"; then
7791 echo "$as_me:$LINENO: checking for $ac_header" >&5
7792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795fi
7796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798else
7799 # Is the header compilable?
7800echo "$as_me:$LINENO: checking $ac_header usability" >&5
7801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7802cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h. */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h. */
7808$ac_includes_default
7809#include <$ac_header>
7810_ACEOF
7811rm -f conftest.$ac_objext
7812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7834else
7835 echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
7838ac_header_compiler=no
7839fi
7840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842echo "${ECHO_T}$ac_header_compiler" >&6
7843
7844# Is the header present?
7845echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7847cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853#include <$ac_header>
7854_ACEOF
7855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } >/dev/null; then
7863 if test -s conftest.err; then
7864 ac_cpp_err=$ac_c_preproc_warn_flag
7865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7866 else
7867 ac_cpp_err=
7868 fi
7869else
7870 ac_cpp_err=yes
7871fi
7872if test -z "$ac_cpp_err"; then
7873 ac_header_preproc=yes
7874else
7875 echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ac_header_preproc=no
7879fi
7880rm -f conftest.err conftest.$ac_ext
7881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882echo "${ECHO_T}$ac_header_preproc" >&6
7883
7884# So? What about this header?
7885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7886 yes:no: )
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7891 ac_header_preproc=yes
7892 ;;
7893 no:yes:* )
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7906 (
7907 cat <<\_ASBOX
7908## ------------------------------------------ ##
7909## Report this to the AC_PACKAGE_NAME lists. ##
7910## ------------------------------------------ ##
7911_ASBOX
7912 ) |
7913 sed "s/^/$as_me: WARNING: /" >&2
7914 ;;
7915esac
7916echo "$as_me:$LINENO: checking for $ac_header" >&5
7917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7918if eval "test \"\${$as_ac_Header+set}\" = set"; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921 eval "$as_ac_Header=\$ac_header_preproc"
7922fi
7923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925
7926fi
7927if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930_ACEOF
7931
7932fi
7933
7934done
7935
7936
7937for ac_header in libunwind-ia64.h
7938do
7939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940if eval "test \"\${$as_ac_Header+set}\" = set"; then
7941 echo "$as_me:$LINENO: checking for $ac_header" >&5
7942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7943if eval "test \"\${$as_ac_Header+set}\" = set"; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945fi
7946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7948else
7949 # Is the header compilable?
7950echo "$as_me:$LINENO: checking $ac_header usability" >&5
7951echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
7959#include <$ac_header>
7960_ACEOF
7961rm -f conftest.$ac_objext
7962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7963 (eval $ac_compile) 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag"
7971 || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_header_compiler=yes
7984else
7985 echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988ac_header_compiler=no
7989fi
7990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7992echo "${ECHO_T}$ac_header_compiler" >&6
7993
7994# Is the header present?
7995echo "$as_me:$LINENO: checking $ac_header presence" >&5
7996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7997cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h. */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h. */
8003#include <$ac_header>
8004_ACEOF
8005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8016 else
8017 ac_cpp_err=
8018 fi
8019else
8020 ac_cpp_err=yes
8021fi
8022if test -z "$ac_cpp_err"; then
8023 ac_header_preproc=yes
8024else
8025 echo "$as_me: failed program was:" >&5
8026sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_header_preproc=no
8029fi
8030rm -f conftest.err conftest.$ac_ext
8031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8032echo "${ECHO_T}$ac_header_preproc" >&6
8033
8034# So? What about this header?
8035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8036 yes:no: )
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8041 ac_header_preproc=yes
8042 ;;
8043 no:yes:* )
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8056 (
8057 cat <<\_ASBOX
8058## ------------------------------------------ ##
8059## Report this to the AC_PACKAGE_NAME lists. ##
8060## ------------------------------------------ ##
8061_ASBOX
8062 ) |
8063 sed "s/^/$as_me: WARNING: /" >&2
8064 ;;
8065esac
8066echo "$as_me:$LINENO: checking for $ac_header" >&5
8067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8068if eval "test \"\${$as_ac_Header+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071 eval "$as_ac_Header=\$ac_header_preproc"
8072fi
8073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8075
8076fi
8077if test `eval echo '${'$as_ac_Header'}'` = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080_ACEOF
8081
8082fi
8083
8084done
8085
8086 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8087 enable_libunwind=yes;
8088 fi
8089
8090fi;
8091
8092if test x"$enable_libunwind" = xyes; then
8093
8094for ac_header in libunwind.h
8095do
8096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo "$as_me:$LINENO: checking for $ac_header" >&5
8099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8100if eval "test \"\${$as_ac_Header+set}\" = set"; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102fi
8103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8105else
8106 # Is the header compilable?
8107echo "$as_me:$LINENO: checking $ac_header usability" >&5
8108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8109cat >conftest.$ac_ext <<_ACEOF
8110/* confdefs.h. */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h. */
8115$ac_includes_default
8116#include <$ac_header>
8117_ACEOF
8118rm -f conftest.$ac_objext
8119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120 (eval $ac_compile) 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag"
8128 || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_header_compiler=yes
8141else
8142 echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
8145ac_header_compiler=no
8146fi
8147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8149echo "${ECHO_T}$ac_header_compiler" >&6
8150
8151# Is the header present?
8152echo "$as_me:$LINENO: checking $ac_header presence" >&5
8153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8154cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h. */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h. */
8160#include <$ac_header>
8161_ACEOF
8162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } >/dev/null; then
8170 if test -s conftest.err; then
8171 ac_cpp_err=$ac_c_preproc_warn_flag
8172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8173 else
8174 ac_cpp_err=
8175 fi
8176else
8177 ac_cpp_err=yes
8178fi
8179if test -z "$ac_cpp_err"; then
8180 ac_header_preproc=yes
8181else
8182 echo "$as_me: failed program was:" >&5
8183sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ac_header_preproc=no
8186fi
8187rm -f conftest.err conftest.$ac_ext
8188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8189echo "${ECHO_T}$ac_header_preproc" >&6
8190
8191# So? What about this header?
8192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8193 yes:no: )
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8198 ac_header_preproc=yes
8199 ;;
8200 no:yes:* )
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8204echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8208echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8213 (
8214 cat <<\_ASBOX
8215## ------------------------------------------ ##
8216## Report this to the AC_PACKAGE_NAME lists. ##
8217## ------------------------------------------ ##
8218_ASBOX
8219 ) |
8220 sed "s/^/$as_me: WARNING: /" >&2
8221 ;;
8222esac
8223echo "$as_me:$LINENO: checking for $ac_header" >&5
8224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8225if eval "test \"\${$as_ac_Header+set}\" = set"; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227else
8228 eval "$as_ac_Header=\$ac_header_preproc"
8229fi
8230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8232
8233fi
8234if test `eval echo '${'$as_ac_Header'}'` = yes; then
8235 cat >>confdefs.h <<_ACEOF
8236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8237_ACEOF
8238
8239fi
8240
8241done
8242
8243
8244for ac_header in libunwind-ia64.h
8245do
8246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248 echo "$as_me:$LINENO: checking for $ac_header" >&5
8249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8250if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252fi
8253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8255else
8256 # Is the header compilable?
8257echo "$as_me:$LINENO: checking $ac_header usability" >&5
8258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8259cat >conftest.$ac_ext <<_ACEOF
8260/* confdefs.h. */
8261_ACEOF
8262cat confdefs.h >>conftest.$ac_ext
8263cat >>conftest.$ac_ext <<_ACEOF
8264/* end confdefs.h. */
8265$ac_includes_default
8266#include <$ac_header>
8267_ACEOF
8268rm -f conftest.$ac_objext
8269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_header_compiler=yes
8291else
8292 echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295ac_header_compiler=no
8296fi
8297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8299echo "${ECHO_T}$ac_header_compiler" >&6
8300
8301# Is the header present?
8302echo "$as_me:$LINENO: checking $ac_header presence" >&5
8303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8304cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310#include <$ac_header>
8311_ACEOF
8312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev/null; then
8320 if test -s conftest.err; then
8321 ac_cpp_err=$ac_c_preproc_warn_flag
8322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8323 else
8324 ac_cpp_err=
8325 fi
8326else
8327 ac_cpp_err=yes
8328fi
8329if test -z "$ac_cpp_err"; then
8330 ac_header_preproc=yes
8331else
8332 echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_header_preproc=no
8336fi
8337rm -f conftest.err conftest.$ac_ext
8338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339echo "${ECHO_T}$ac_header_preproc" >&6
8340
8341# So? What about this header?
8342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8343 yes:no: )
8344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8348 ac_header_preproc=yes
8349 ;;
8350 no:yes:* )
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8363 (
8364 cat <<\_ASBOX
8365## ------------------------------------------ ##
8366## Report this to the AC_PACKAGE_NAME lists. ##
8367## ------------------------------------------ ##
8368_ASBOX
8369 ) |
8370 sed "s/^/$as_me: WARNING: /" >&2
8371 ;;
8372esac
8373echo "$as_me:$LINENO: checking for $ac_header" >&5
8374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 eval "$as_ac_Header=\$ac_header_preproc"
8379fi
8380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8382
8383fi
8384if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387_ACEOF
8388
8389fi
8390
8391done
8392
8393
8394cat >>confdefs.h <<\_ACEOF
8395#define HAVE_LIBUNWIND 1
8396_ACEOF
8397
8398 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8399 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8400 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8401fi
8402
8403# Profiling support.
8404# Check whether --enable-profiling or --disable-profiling was given.
8405if test "${enable_profiling+set}" = set; then
8406 enableval="$enable_profiling"
8407 case $enableval in
8408 yes | no)
8409 ;;
8410 *)
8411 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8412echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8413 { (exit 1); exit 1; }; } ;;
8414 esac
8415else
8416 enable_profiling=no
8417fi;
8418
8419
8420
8421for ac_func in monstartup _mcleanup
8422do
8423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8424echo "$as_me:$LINENO: checking for $ac_func" >&5
8425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8426if eval "test \"\${$as_ac_var+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429 cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h. */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h. */
8435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8437#define $ac_func innocuous_$ac_func
8438
8439/* System header to define __stub macros and hopefully few prototypes,
8440 which can conflict with char $ac_func (); below.
8441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442 <limits.h> exists even on freestanding compilers. */
8443
8444#ifdef __STDC__
8445# include <limits.h>
8446#else
8447# include <assert.h>
8448#endif
8449
8450#undef $ac_func
8451
8452/* Override any gcc2 internal prototype to avoid an error. */
8453#ifdef __cplusplus
8454extern "C"
8455{
8456#endif
8457/* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8459char $ac_func ();
8460/* The GNU C library defines this for functions which it implements
8461 to always fail with ENOSYS. Some functions are actually named
8462 something starting with __ and the normal name is an alias. */
8463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8464choke me
8465#else
8466char (*f) () = $ac_func;
8467#endif
8468#ifdef __cplusplus
8469}
8470#endif
8471
8472int
8473main ()
8474{
8475return f != $ac_func;
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext conftest$ac_exeext
8481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 eval "$as_ac_var=yes"
8503else
8504 echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
8507eval "$as_ac_var=no"
8508fi
8509rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511fi
8512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8513echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8514if test `eval echo '${'$as_ac_var'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8517_ACEOF
8518
8519fi
8520done
8521
8522echo "$as_me:$LINENO: checking for _etext" >&5
8523echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8524if test "${ac_cv_var__etext+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526else
8527 cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533#include <stdlib.h>
8534extern char _etext;
8535
8536int
8537main ()
8538{
8539free (&_etext);
8540 ;
8541 return 0;
8542}
8543_ACEOF
8544rm -f conftest.$ac_objext conftest$ac_exeext
8545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_var__etext=yes
8567else
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
8571ac_cv_var__etext=no
8572fi
8573rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575fi
8576echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8577echo "${ECHO_T}$ac_cv_var__etext" >&6
8578if test $ac_cv_var__etext = yes; then
8579
8580cat >>confdefs.h <<\_ACEOF
8581#define HAVE__ETEXT 1
8582_ACEOF
8583
8584fi
8585echo "$as_me:$LINENO: checking for etext" >&5
8586echo $ECHO_N "checking for etext... $ECHO_C" >&6
8587if test "${ac_cv_var_etext+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589else
8590 cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
8596#include <stdlib.h>
8597extern char etext;
8598
8599int
8600main ()
8601{
8602free (&etext);
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext conftest$ac_exeext
8608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_var_etext=yes
8630else
8631 echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634ac_cv_var_etext=no
8635fi
8636rm -f conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638fi
8639echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8640echo "${ECHO_T}$ac_cv_var_etext" >&6
8641if test $ac_cv_var_etext = yes; then
8642
8643cat >>confdefs.h <<\_ACEOF
8644#define HAVE_ETEXT 1
8645_ACEOF
8646
8647fi
8648if test "$enable_profiling" = yes ; then
8649 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8650 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8651echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8652 { (exit 1); exit 1; }; }
8653 fi
8654 PROFILE_CFLAGS=-pg
8655 OLD_CFLAGS="$CFLAGS"
8656 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8657
8658 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8659echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8660if test "${ac_cv_cc_supports_pg+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662else
8663 cat >conftest.$ac_ext <<_ACEOF
8664/* confdefs.h. */
8665_ACEOF
8666cat confdefs.h >>conftest.$ac_ext
8667cat >>conftest.$ac_ext <<_ACEOF
8668/* end confdefs.h. */
8669
8670int
8671main ()
8672{
8673int x;
8674 ;
8675 return 0;
8676}
8677_ACEOF
8678rm -f conftest.$ac_objext
8679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_cc_supports_pg=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705ac_cv_cc_supports_pg=no
8706fi
8707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708fi
8709echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8710echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8711
8712 if test $ac_cv_cc_supports_pg = no; then
8713 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8714echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8715 { (exit 1); exit 1; }; }
8716 fi
8717
8718 CFLAGS="$OLD_CFLAGS"
8719fi
8720
8721
8722
8723# Check whether --with-pkgversion or --without-pkgversion was given.
8724if test "${with_pkgversion+set}" = set; then
8725 withval="$with_pkgversion"
8726 case "$withval" in
8727 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8728echo "$as_me: error: package version not specified" >&2;}
8729 { (exit 1); exit 1; }; } ;;
8730 no) PKGVERSION= ;;
8731 *) PKGVERSION="($withval) " ;;
8732 esac
8733else
8734 PKGVERSION="(GDB) "
8735
8736fi;
8737
8738
8739
8740
8741# Check whether --with-bugurl or --without-bugurl was given.
8742if test "${with_bugurl+set}" = set; then
8743 withval="$with_bugurl"
8744 case "$withval" in
8745 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8746echo "$as_me: error: bug URL not specified" >&2;}
8747 { (exit 1); exit 1; }; } ;;
8748 no) BUGURL=
8749 ;;
8750 *) BUGURL="$withval"
8751 ;;
8752 esac
8753else
8754 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8755
8756fi;
8757 case ${BUGURL} in
8758 "")
8759 REPORT_BUGS_TO=
8760 REPORT_BUGS_TEXI=
8761 ;;
8762 *)
8763 REPORT_BUGS_TO="<$BUGURL>"
8764 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8765 ;;
8766 esac;
8767
8768
8769
8770
8771cat >>confdefs.h <<_ACEOF
8772#define PKGVERSION "$PKGVERSION"
8773_ACEOF
8774
8775
8776cat >>confdefs.h <<_ACEOF
8777#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8778_ACEOF
8779
8780
8781# --------------------- #
8782# Checks for programs. #
8783# --------------------- #
8784
8785for ac_prog in gawk mawk nawk awk
8786do
8787 # Extract the first word of "$ac_prog", so it can be a program name with args.
8788set dummy $ac_prog; ac_word=$2
8789echo "$as_me:$LINENO: checking for $ac_word" >&5
8790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791if test "${ac_cv_prog_AWK+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793else
8794 if test -n "$AWK"; then
8795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8796else
8797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798for as_dir in $PATH
8799do
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804 ac_cv_prog_AWK="$ac_prog"
8805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8807 fi
8808done
8809done
8810
8811fi
8812fi
8813AWK=$ac_cv_prog_AWK
8814if test -n "$AWK"; then
8815 echo "$as_me:$LINENO: result: $AWK" >&5
8816echo "${ECHO_T}$AWK" >&6
8817else
8818 echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6
8820fi
8821
8822 test -n "$AWK" && break
8823done
8824
8825# Find a good install program. We prefer a C program (faster),
8826# so one script is as good as another. But avoid the broken or
8827# incompatible versions:
8828# SysV /etc/install, /usr/sbin/install
8829# SunOS /usr/etc/install
8830# IRIX /sbin/install
8831# AIX /bin/install
8832# AmigaOS /C/install, which installs bootblocks on floppy discs
8833# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8834# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8835# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8836# OS/2's system install, which has a completely different semantic
8837# ./install, which can be erroneously created by make from ./install.sh.
8838echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8839echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8840if test -z "$INSTALL"; then
8841if test "${ac_cv_path_install+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 # Account for people who put trailing slashes in PATH elements.
8850case $as_dir/ in
8851 ./ | .// | /cC/* | \
8852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8854 /usr/ucb/* ) ;;
8855 *)
8856 # OSF1 and SCO ODT 3.0 have their own names for install.
8857 # Don't use installbsd from OSF since it installs stuff as root
8858 # by default.
8859 for ac_prog in ginstall scoinst install; do
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8862 if test $ac_prog = install &&
8863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8864 # AIX install. It has an incompatible calling convention.
8865 :
8866 elif test $ac_prog = install &&
8867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8868 # program-specific install script used by HP pwplus--don't use.
8869 :
8870 else
8871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8872 break 3
8873 fi
8874 fi
8875 done
8876 done
8877 ;;
8878esac
8879done
8880
8881
8882fi
8883 if test "${ac_cv_path_install+set}" = set; then
8884 INSTALL=$ac_cv_path_install
8885 else
8886 # As a last resort, use the slow shell script. We don't cache a
8887 # path for INSTALL within a source directory, because that will
8888 # break other packages using the cache if that directory is
8889 # removed, or if the path is relative.
8890 INSTALL=$ac_install_sh
8891 fi
8892fi
8893echo "$as_me:$LINENO: result: $INSTALL" >&5
8894echo "${ECHO_T}$INSTALL" >&6
8895
8896# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8897# It thinks the first close brace ends the variable substitution.
8898test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8899
8900test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8901
8902test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8903
8904echo "$as_me:$LINENO: checking whether ln -s works" >&5
8905echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8906LN_S=$as_ln_s
8907if test "$LN_S" = "ln -s"; then
8908 echo "$as_me:$LINENO: result: yes" >&5
8909echo "${ECHO_T}yes" >&6
8910else
8911 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8912echo "${ECHO_T}no, using $LN_S" >&6
8913fi
8914
8915if test -n "$ac_tool_prefix"; then
8916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8917set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8918echo "$as_me:$LINENO: checking for $ac_word" >&5
8919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920if test "${ac_cv_prog_RANLIB+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922else
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8925else
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937done
8938done
8939
8940fi
8941fi
8942RANLIB=$ac_cv_prog_RANLIB
8943if test -n "$RANLIB"; then
8944 echo "$as_me:$LINENO: result: $RANLIB" >&5
8945echo "${ECHO_T}$RANLIB" >&6
8946else
8947 echo "$as_me:$LINENO: result: no" >&5
8948echo "${ECHO_T}no" >&6
8949fi
8950
8951fi
8952if test -z "$ac_cv_prog_RANLIB"; then
8953 ac_ct_RANLIB=$RANLIB
8954 # Extract the first word of "ranlib", so it can be a program name with args.
8955set dummy ranlib; ac_word=$2
8956echo "$as_me:$LINENO: checking for $ac_word" >&5
8957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8958if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960else
8961 if test -n "$ac_ct_RANLIB"; then
8962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8963else
8964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965for as_dir in $PATH
8966do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_ac_ct_RANLIB="ranlib"
8972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975done
8976done
8977
8978 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8979fi
8980fi
8981ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8982if test -n "$ac_ct_RANLIB"; then
8983 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8984echo "${ECHO_T}$ac_ct_RANLIB" >&6
8985else
8986 echo "$as_me:$LINENO: result: no" >&5
8987echo "${ECHO_T}no" >&6
8988fi
8989
8990 RANLIB=$ac_ct_RANLIB
8991else
8992 RANLIB="$ac_cv_prog_RANLIB"
8993fi
8994
8995for ac_prog in 'bison -y' byacc
8996do
8997 # Extract the first word of "$ac_prog", so it can be a program name with args.
8998set dummy $ac_prog; ac_word=$2
8999echo "$as_me:$LINENO: checking for $ac_word" >&5
9000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001if test "${ac_cv_prog_YACC+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004 if test -n "$YACC"; then
9005 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9006else
9007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_YACC="$ac_prog"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018done
9019done
9020
9021fi
9022fi
9023YACC=$ac_cv_prog_YACC
9024if test -n "$YACC"; then
9025 echo "$as_me:$LINENO: result: $YACC" >&5
9026echo "${ECHO_T}$YACC" >&6
9027else
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
9030fi
9031
9032 test -n "$YACC" && break
9033done
9034test -n "$YACC" || YACC="yacc"
9035
9036
9037if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9039set dummy ${ac_tool_prefix}ar; ac_word=$2
9040echo "$as_me:$LINENO: checking for $ac_word" >&5
9041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9042if test "${ac_cv_prog_AR+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045 if test -n "$AR"; then
9046 ac_cv_prog_AR="$AR" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_AR="${ac_tool_prefix}ar"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060done
9061
9062fi
9063fi
9064AR=$ac_cv_prog_AR
9065if test -n "$AR"; then
9066 echo "$as_me:$LINENO: result: $AR" >&5
9067echo "${ECHO_T}$AR" >&6
9068else
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
9071fi
9072
9073fi
9074if test -z "$ac_cv_prog_AR"; then
9075 ac_ct_AR=$AR
9076 # Extract the first word of "ar", so it can be a program name with args.
9077set dummy ar; ac_word=$2
9078echo "$as_me:$LINENO: checking for $ac_word" >&5
9079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9080if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082else
9083 if test -n "$ac_ct_AR"; then
9084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_ac_ct_AR="ar"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097done
9098done
9099
9100fi
9101fi
9102ac_ct_AR=$ac_cv_prog_ac_ct_AR
9103if test -n "$ac_ct_AR"; then
9104 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9105echo "${ECHO_T}$ac_ct_AR" >&6
9106else
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109fi
9110
9111 AR=$ac_ct_AR
9112else
9113 AR="$ac_cv_prog_AR"
9114fi
9115
9116if test -n "$ac_tool_prefix"; then
9117 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9118set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9119echo "$as_me:$LINENO: checking for $ac_word" >&5
9120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9121if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123else
9124 if test -n "$DLLTOOL"; then
9125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9126else
9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9137 fi
9138done
9139done
9140
9141fi
9142fi
9143DLLTOOL=$ac_cv_prog_DLLTOOL
9144if test -n "$DLLTOOL"; then
9145 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9146echo "${ECHO_T}$DLLTOOL" >&6
9147else
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150fi
9151
9152fi
9153if test -z "$ac_cv_prog_DLLTOOL"; then
9154 ac_ct_DLLTOOL=$DLLTOOL
9155 # Extract the first word of "dlltool", so it can be a program name with args.
9156set dummy dlltool; ac_word=$2
9157echo "$as_me:$LINENO: checking for $ac_word" >&5
9158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9159if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161else
9162 if test -n "$ac_ct_DLLTOOL"; then
9163 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9175 fi
9176done
9177done
9178
9179fi
9180fi
9181ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9182if test -n "$ac_ct_DLLTOOL"; then
9183 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9184echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9185else
9186 echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
9188fi
9189
9190 DLLTOOL=$ac_ct_DLLTOOL
9191else
9192 DLLTOOL="$ac_cv_prog_DLLTOOL"
9193fi
9194
9195if test -n "$ac_tool_prefix"; then
9196 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9197set dummy ${ac_tool_prefix}windres; ac_word=$2
9198echo "$as_me:$LINENO: checking for $ac_word" >&5
9199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9200if test "${ac_cv_prog_WINDRES+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 if test -n "$WINDRES"; then
9204 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9205else
9206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217done
9218done
9219
9220fi
9221fi
9222WINDRES=$ac_cv_prog_WINDRES
9223if test -n "$WINDRES"; then
9224 echo "$as_me:$LINENO: result: $WINDRES" >&5
9225echo "${ECHO_T}$WINDRES" >&6
9226else
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
9229fi
9230
9231fi
9232if test -z "$ac_cv_prog_WINDRES"; then
9233 ac_ct_WINDRES=$WINDRES
9234 # Extract the first word of "windres", so it can be a program name with args.
9235set dummy windres; ac_word=$2
9236echo "$as_me:$LINENO: checking for $ac_word" >&5
9237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241 if test -n "$ac_ct_WINDRES"; then
9242 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9243else
9244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245for as_dir in $PATH
9246do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9251 ac_cv_prog_ac_ct_WINDRES="windres"
9252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9254 fi
9255done
9256done
9257
9258fi
9259fi
9260ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9261if test -n "$ac_ct_WINDRES"; then
9262 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9263echo "${ECHO_T}$ac_ct_WINDRES" >&6
9264else
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
9267fi
9268
9269 WINDRES=$ac_ct_WINDRES
9270else
9271 WINDRES="$ac_cv_prog_WINDRES"
9272fi
9273
9274
9275# Needed for GNU/Hurd.
9276if test -n "$ac_tool_prefix"; then
9277 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9278set dummy ${ac_tool_prefix}mig; ac_word=$2
9279echo "$as_me:$LINENO: checking for $ac_word" >&5
9280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9281if test "${ac_cv_prog_MIG+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283else
9284 if test -n "$MIG"; then
9285 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9286else
9287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288for as_dir in $PATH
9289do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9294 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9297 fi
9298done
9299done
9300
9301fi
9302fi
9303MIG=$ac_cv_prog_MIG
9304if test -n "$MIG"; then
9305 echo "$as_me:$LINENO: result: $MIG" >&5
9306echo "${ECHO_T}$MIG" >&6
9307else
9308 echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
9310fi
9311
9312fi
9313if test -z "$ac_cv_prog_MIG"; then
9314 ac_ct_MIG=$MIG
9315 # Extract the first word of "mig", so it can be a program name with args.
9316set dummy mig; ac_word=$2
9317echo "$as_me:$LINENO: checking for $ac_word" >&5
9318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9319if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321else
9322 if test -n "$ac_ct_MIG"; then
9323 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9324else
9325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326for as_dir in $PATH
9327do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332 ac_cv_prog_ac_ct_MIG="mig"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336done
9337done
9338
9339fi
9340fi
9341ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9342if test -n "$ac_ct_MIG"; then
9343 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9344echo "${ECHO_T}$ac_ct_MIG" >&6
9345else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348fi
9349
9350 MIG=$ac_ct_MIG
9351else
9352 MIG="$ac_cv_prog_MIG"
9353fi
9354
9355
9356# ---------------------- #
9357# Checks for libraries. #
9358# ---------------------- #
9359
9360# We might need to link with -lm; most simulators need it.
9361
9362echo "$as_me:$LINENO: checking for main in -lm" >&5
9363echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9364if test "${ac_cv_lib_m_main+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366else
9367 ac_check_lib_save_LIBS=$LIBS
9368LIBS="-lm $LIBS"
9369cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h. */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h. */
9375
9376
9377int
9378main ()
9379{
9380main ();
9381 ;
9382 return 0;
9383}
9384_ACEOF
9385rm -f conftest.$ac_objext conftest$ac_exeext
9386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag"
9395 || test ! -s conftest.err'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_lib_m_main=yes
9408else
9409 echo "$as_me: failed program was:" >&5
9410sed 's/^/| /' conftest.$ac_ext >&5
9411
9412ac_cv_lib_m_main=no
9413fi
9414rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416LIBS=$ac_check_lib_save_LIBS
9417fi
9418echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9419echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9420if test $ac_cv_lib_m_main = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422#define HAVE_LIBM 1
9423_ACEOF
9424
9425 LIBS="-lm $LIBS"
9426
9427fi
9428
9429
9430# We need to link with -lw to get `wctype' on Solaris before Solaris
9431# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9432# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9433# is known to have this problem). Therefore we avoid libw if we can.
9434echo "$as_me:$LINENO: checking for wctype" >&5
9435echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9436if test "${ac_cv_func_wctype+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438else
9439 cat >conftest.$ac_ext <<_ACEOF
9440/* confdefs.h. */
9441_ACEOF
9442cat confdefs.h >>conftest.$ac_ext
9443cat >>conftest.$ac_ext <<_ACEOF
9444/* end confdefs.h. */
9445/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9447#define wctype innocuous_wctype
9448
9449/* System header to define __stub macros and hopefully few prototypes,
9450 which can conflict with char wctype (); below.
9451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9452 <limits.h> exists even on freestanding compilers. */
9453
9454#ifdef __STDC__
9455# include <limits.h>
9456#else
9457# include <assert.h>
9458#endif
9459
9460#undef wctype
9461
9462/* Override any gcc2 internal prototype to avoid an error. */
9463#ifdef __cplusplus
9464extern "C"
9465{
9466#endif
9467/* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9469char wctype ();
9470/* The GNU C library defines this for functions which it implements
9471 to always fail with ENOSYS. Some functions are actually named
9472 something starting with __ and the normal name is an alias. */
9473#if defined (__stub_wctype) || defined (__stub___wctype)
9474choke me
9475#else
9476char (*f) () = wctype;
9477#endif
9478#ifdef __cplusplus
9479}
9480#endif
9481
9482int
9483main ()
9484{
9485return f != wctype;
9486 ;
9487 return 0;
9488}
9489_ACEOF
9490rm -f conftest.$ac_objext conftest$ac_exeext
9491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_func_wctype=yes
9513else
9514 echo "$as_me: failed program was:" >&5
9515sed 's/^/| /' conftest.$ac_ext >&5
9516
9517ac_cv_func_wctype=no
9518fi
9519rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521fi
9522echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9523echo "${ECHO_T}$ac_cv_func_wctype" >&6
9524if test $ac_cv_func_wctype = yes; then
9525 :
9526else
9527
9528echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9529echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9530if test "${ac_cv_lib_w_wctype+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533 ac_check_lib_save_LIBS=$LIBS
9534LIBS="-lw $LIBS"
9535cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h. */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h. */
9541
9542/* Override any gcc2 internal prototype to avoid an error. */
9543#ifdef __cplusplus
9544extern "C"
9545#endif
9546/* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9548char wctype ();
9549int
9550main ()
9551{
9552wctype ();
9553 ;
9554 return 0;
9555}
9556_ACEOF
9557rm -f conftest.$ac_objext conftest$ac_exeext
9558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_lib_w_wctype=yes
9580else
9581 echo "$as_me: failed program was:" >&5
9582sed 's/^/| /' conftest.$ac_ext >&5
9583
9584ac_cv_lib_w_wctype=no
9585fi
9586rm -f conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588LIBS=$ac_check_lib_save_LIBS
9589fi
9590echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9591echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9592if test $ac_cv_lib_w_wctype = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594#define HAVE_LIBW 1
9595_ACEOF
9596
9597 LIBS="-lw $LIBS"
9598
9599fi
9600
9601fi
9602
9603
9604# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9605echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9606echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9607if test "${ac_cv_search_gethostbyname+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609else
9610 ac_func_search_save_LIBS=$LIBS
9611ac_cv_search_gethostbyname=no
9612cat >conftest.$ac_ext <<_ACEOF
9613/* confdefs.h. */
9614_ACEOF
9615cat confdefs.h >>conftest.$ac_ext
9616cat >>conftest.$ac_ext <<_ACEOF
9617/* end confdefs.h. */
9618
9619/* Override any gcc2 internal prototype to avoid an error. */
9620#ifdef __cplusplus
9621extern "C"
9622#endif
9623/* We use char because int might match the return type of a gcc2
9624 builtin and then its argument prototype would still apply. */
9625char gethostbyname ();
9626int
9627main ()
9628{
9629gethostbyname ();
9630 ;
9631 return 0;
9632}
9633_ACEOF
9634rm -f conftest.$ac_objext conftest$ac_exeext
9635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
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); }; } &&
9650 { ac_try='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_search_gethostbyname="none required"
9657else
9658 echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
9660
9661fi
9662rm -f conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664if test "$ac_cv_search_gethostbyname" = no; then
9665 for ac_lib in nsl; do
9666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9667 cat >conftest.$ac_ext <<_ACEOF
9668/* confdefs.h. */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h. */
9673
9674/* Override any gcc2 internal prototype to avoid an error. */
9675#ifdef __cplusplus
9676extern "C"
9677#endif
9678/* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680char gethostbyname ();
9681int
9682main ()
9683{
9684gethostbyname ();
9685 ;
9686 return 0;
9687}
9688_ACEOF
9689rm -f conftest.$ac_objext conftest$ac_exeext
9690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
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); }; } &&
9705 { ac_try='test -s conftest$ac_exeext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_cv_search_gethostbyname="-l$ac_lib"
9712break
9713else
9714 echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717fi
9718rm -f conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 done
9721fi
9722LIBS=$ac_func_search_save_LIBS
9723fi
9724echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9725echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9726if test "$ac_cv_search_gethostbyname" != no; then
9727 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9728
9729fi
9730
9731
9732# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9733echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9734echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9735if test "${ac_cv_search_socketpair+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738 ac_func_search_save_LIBS=$LIBS
9739ac_cv_search_socketpair=no
9740cat >conftest.$ac_ext <<_ACEOF
9741/* confdefs.h. */
9742_ACEOF
9743cat confdefs.h >>conftest.$ac_ext
9744cat >>conftest.$ac_ext <<_ACEOF
9745/* end confdefs.h. */
9746
9747/* Override any gcc2 internal prototype to avoid an error. */
9748#ifdef __cplusplus
9749extern "C"
9750#endif
9751/* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9753char socketpair ();
9754int
9755main ()
9756{
9757socketpair ();
9758 ;
9759 return 0;
9760}
9761_ACEOF
9762rm -f conftest.$ac_objext conftest$ac_exeext
9763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_search_socketpair="none required"
9785else
9786 echo "$as_me: failed program was:" >&5
9787sed 's/^/| /' conftest.$ac_ext >&5
9788
9789fi
9790rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792if test "$ac_cv_search_socketpair" = no; then
9793 for ac_lib in socket; do
9794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796/* confdefs.h. */
9797_ACEOF
9798cat confdefs.h >>conftest.$ac_ext
9799cat >>conftest.$ac_ext <<_ACEOF
9800/* end confdefs.h. */
9801
9802/* Override any gcc2 internal prototype to avoid an error. */
9803#ifdef __cplusplus
9804extern "C"
9805#endif
9806/* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9808char socketpair ();
9809int
9810main ()
9811{
9812socketpair ();
9813 ;
9814 return 0;
9815}
9816_ACEOF
9817rm -f conftest.$ac_objext conftest$ac_exeext
9818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_search_socketpair="-l$ac_lib"
9840break
9841else
9842 echo "$as_me: failed program was:" >&5
9843sed 's/^/| /' conftest.$ac_ext >&5
9844
9845fi
9846rm -f conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 done
9849fi
9850LIBS=$ac_func_search_save_LIBS
9851fi
9852echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9853echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9854if test "$ac_cv_search_socketpair" != no; then
9855 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9856
9857fi
9858
9859
9860# Link in zlib if we can. This allows us to read compressed debug sections.
9861echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9862echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9863if test "${ac_cv_search_zlibVersion+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 ac_func_search_save_LIBS=$LIBS
9867ac_cv_search_zlibVersion=no
9868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874
9875/* Override any gcc2 internal prototype to avoid an error. */
9876#ifdef __cplusplus
9877extern "C"
9878#endif
9879/* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881char zlibVersion ();
9882int
9883main ()
9884{
9885zlibVersion ();
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_zlibVersion="none required"
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917fi
9918rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920if test "$ac_cv_search_zlibVersion" = no; then
9921 for ac_lib in z; do
9922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h. */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
9928/* end confdefs.h. */
9929
9930/* Override any gcc2 internal prototype to avoid an error. */
9931#ifdef __cplusplus
9932extern "C"
9933#endif
9934/* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936char zlibVersion ();
9937int
9938main ()
9939{
9940zlibVersion ();
9941 ;
9942 return 0;
9943}
9944_ACEOF
9945rm -f conftest.$ac_objext conftest$ac_exeext
9946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_search_zlibVersion="-l$ac_lib"
9968break
9969else
9970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
9973fi
9974rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 done
9977fi
9978LIBS=$ac_func_search_save_LIBS
9979fi
9980echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9981echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9982if test "$ac_cv_search_zlibVersion" != no; then
9983 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9984
9985for ac_header in zlib.h
9986do
9987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9988if eval "test \"\${$as_ac_Header+set}\" = set"; then
9989 echo "$as_me:$LINENO: checking for $ac_header" >&5
9990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993fi
9994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9996else
9997 # Is the header compilable?
9998echo "$as_me:$LINENO: checking $ac_header usability" >&5
9999echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10000cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h. */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h. */
10006$ac_includes_default
10007#include <$ac_header>
10008_ACEOF
10009rm -f conftest.$ac_objext
10010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011 (eval $ac_compile) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest.$ac_objext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_header_compiler=yes
10032else
10033 echo "$as_me: failed program was:" >&5
10034sed 's/^/| /' conftest.$ac_ext >&5
10035
10036ac_header_compiler=no
10037fi
10038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10040echo "${ECHO_T}$ac_header_compiler" >&6
10041
10042# Is the header present?
10043echo "$as_me:$LINENO: checking $ac_header presence" >&5
10044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10045cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h. */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h. */
10051#include <$ac_header>
10052_ACEOF
10053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } >/dev/null; then
10061 if test -s conftest.err; then
10062 ac_cpp_err=$ac_c_preproc_warn_flag
10063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10064 else
10065 ac_cpp_err=
10066 fi
10067else
10068 ac_cpp_err=yes
10069fi
10070if test -z "$ac_cpp_err"; then
10071 ac_header_preproc=yes
10072else
10073 echo "$as_me: failed program was:" >&5
10074sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_header_preproc=no
10077fi
10078rm -f conftest.err conftest.$ac_ext
10079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10080echo "${ECHO_T}$ac_header_preproc" >&6
10081
10082# So? What about this header?
10083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10084 yes:no: )
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10089 ac_header_preproc=yes
10090 ;;
10091 no:yes:* )
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10095echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10099echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10104 (
10105 cat <<\_ASBOX
10106## ------------------------------------------ ##
10107## Report this to the AC_PACKAGE_NAME lists. ##
10108## ------------------------------------------ ##
10109_ASBOX
10110 ) |
10111 sed "s/^/$as_me: WARNING: /" >&2
10112 ;;
10113esac
10114echo "$as_me:$LINENO: checking for $ac_header" >&5
10115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10116if eval "test \"\${$as_ac_Header+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119 eval "$as_ac_Header=\$ac_header_preproc"
10120fi
10121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10123
10124fi
10125if test `eval echo '${'$as_ac_Header'}'` = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10128_ACEOF
10129
10130fi
10131
10132done
10133
10134fi
10135
10136
10137# For the TUI, we need enhanced curses functionality.
10138#
10139# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10140# curses library because the latter might not provide all the
10141# functionality we need. However, this leads to problems on systems
10142# where the linker searches /usr/local/lib, but the compiler doesn't
10143# search /usr/local/include, if ncurses is installed in /usr/local. A
10144# default installation of ncurses on alpha*-dec-osf* will lead to such
10145# a situation.
10146echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10147echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10148if test "${ac_cv_search_waddstr+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 ac_func_search_save_LIBS=$LIBS
10152ac_cv_search_waddstr=no
10153cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
10159
10160/* Override any gcc2 internal prototype to avoid an error. */
10161#ifdef __cplusplus
10162extern "C"
10163#endif
10164/* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166char waddstr ();
10167int
10168main ()
10169{
10170waddstr ();
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
10176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_search_waddstr="none required"
10198else
10199 echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202fi
10203rm -f conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205if test "$ac_cv_search_waddstr" = no; then
10206 for ac_lib in ncurses cursesX curses; do
10207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h. */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h. */
10214
10215/* Override any gcc2 internal prototype to avoid an error. */
10216#ifdef __cplusplus
10217extern "C"
10218#endif
10219/* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221char waddstr ();
10222int
10223main ()
10224{
10225waddstr ();
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext conftest$ac_exeext
10231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232 (eval $ac_link) 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -z "$ac_c_werror_flag"
10240 || test ! -s conftest.err'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest$ac_exeext'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 ac_cv_search_waddstr="-l$ac_lib"
10253break
10254else
10255 echo "$as_me: failed program was:" >&5
10256sed 's/^/| /' conftest.$ac_ext >&5
10257
10258fi
10259rm -f conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 done
10262fi
10263LIBS=$ac_func_search_save_LIBS
10264fi
10265echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10266echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10267if test "$ac_cv_search_waddstr" != no; then
10268 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10269
10270fi
10271
10272
10273# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10274echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10275echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10276if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
10279 ac_func_search_save_LIBS=$LIBS
10280ac_cv_search_dlgetmodinfo=no
10281cat >conftest.$ac_ext <<_ACEOF
10282/* confdefs.h. */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h. */
10287
10288/* Override any gcc2 internal prototype to avoid an error. */
10289#ifdef __cplusplus
10290extern "C"
10291#endif
10292/* We use char because int might match the return type of a gcc2
10293 builtin and then its argument prototype would still apply. */
10294char dlgetmodinfo ();
10295int
10296main ()
10297{
10298dlgetmodinfo ();
10299 ;
10300 return 0;
10301}
10302_ACEOF
10303rm -f conftest.$ac_objext conftest$ac_exeext
10304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -z "$ac_c_werror_flag"
10313 || test ! -s conftest.err'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_search_dlgetmodinfo="none required"
10326else
10327 echo "$as_me: failed program was:" >&5
10328sed 's/^/| /' conftest.$ac_ext >&5
10329
10330fi
10331rm -f conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333if test "$ac_cv_search_dlgetmodinfo" = no; then
10334 for ac_lib in dl xpdl; do
10335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10336 cat >conftest.$ac_ext <<_ACEOF
10337/* confdefs.h. */
10338_ACEOF
10339cat confdefs.h >>conftest.$ac_ext
10340cat >>conftest.$ac_ext <<_ACEOF
10341/* end confdefs.h. */
10342
10343/* Override any gcc2 internal prototype to avoid an error. */
10344#ifdef __cplusplus
10345extern "C"
10346#endif
10347/* We use char because int might match the return type of a gcc2
10348 builtin and then its argument prototype would still apply. */
10349char dlgetmodinfo ();
10350int
10351main ()
10352{
10353dlgetmodinfo ();
10354 ;
10355 return 0;
10356}
10357_ACEOF
10358rm -f conftest.$ac_objext conftest$ac_exeext
10359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360 (eval $ac_link) 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10381break
10382else
10383 echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386fi
10387rm -f conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389 done
10390fi
10391LIBS=$ac_func_search_save_LIBS
10392fi
10393echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10394echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10395if test "$ac_cv_search_dlgetmodinfo" != no; then
10396 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10397
10398fi
10399
10400
10401# Since GDB uses Readline, we need termcap functionality. In many
10402# cases this will be provided by the curses library, but some systems
10403# have a seperate termcap library, or no curses library at all.
10404
10405case $host_os in
10406 cygwin*)
10407 if test -d $srcdir/libtermcap; then
10408 LIBS="../libtermcap/libtermcap.a $LIBS"
10409 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10410 fi ;;
10411 go32* | *djgpp*)
10412 ac_cv_search_tgetent="none required"
10413 ;;
10414 *mingw32*)
10415 ac_cv_search_tgetent="none required"
10416 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10417 ;;
10418esac
10419
10420# These are the libraries checked by Readline.
10421echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10422echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10423if test "${ac_cv_search_tgetent+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 ac_func_search_save_LIBS=$LIBS
10427ac_cv_search_tgetent=no
10428cat >conftest.$ac_ext <<_ACEOF
10429/* confdefs.h. */
10430_ACEOF
10431cat confdefs.h >>conftest.$ac_ext
10432cat >>conftest.$ac_ext <<_ACEOF
10433/* end confdefs.h. */
10434
10435/* Override any gcc2 internal prototype to avoid an error. */
10436#ifdef __cplusplus
10437extern "C"
10438#endif
10439/* We use char because int might match the return type of a gcc2
10440 builtin and then its argument prototype would still apply. */
10441char tgetent ();
10442int
10443main ()
10444{
10445tgetent ();
10446 ;
10447 return 0;
10448}
10449_ACEOF
10450rm -f conftest.$ac_objext conftest$ac_exeext
10451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag"
10460 || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_search_tgetent="none required"
10473else
10474 echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477fi
10478rm -f conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480if test "$ac_cv_search_tgetent" = no; then
10481 for ac_lib in termcap tinfo curses ncurses; do
10482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10483 cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h. */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h. */
10489
10490/* Override any gcc2 internal prototype to avoid an error. */
10491#ifdef __cplusplus
10492extern "C"
10493#endif
10494/* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
10496char tgetent ();
10497int
10498main ()
10499{
10500tgetent ();
10501 ;
10502 return 0;
10503}
10504_ACEOF
10505rm -f conftest.$ac_objext conftest$ac_exeext
10506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -z "$ac_c_werror_flag"
10515 || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_search_tgetent="-l$ac_lib"
10528break
10529else
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533fi
10534rm -f conftest.err conftest.$ac_objext \
10535 conftest$ac_exeext conftest.$ac_ext
10536 done
10537fi
10538LIBS=$ac_func_search_save_LIBS
10539fi
10540echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10541echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10542if test "$ac_cv_search_tgetent" != no; then
10543 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10544
10545fi
10546
10547
10548if test "$ac_cv_search_tgetent" = no; then
10549 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10550echo "$as_me: error: no termcap library found" >&2;}
10551 { (exit 1); exit 1; }; }
10552fi
10553
10554
10555# Check whether --with-system-readline or --without-system-readline was given.
10556if test "${with_system_readline+set}" = set; then
10557 withval="$with_system_readline"
10558
10559fi;
10560
10561if test "$with_system_readline" = yes; then
10562 READLINE=-lreadline
10563 READLINE_DEPS=
10564 READLINE_CFLAGS=
10565else
10566 READLINE='$(READLINE_DIR)/libreadline.a'
10567 READLINE_DEPS='$(READLINE)'
10568 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10569fi
10570
10571
10572
10573
10574
10575# Check whether --with-expat or --without-expat was given.
10576if test "${with_expat+set}" = set; then
10577 withval="$with_expat"
10578
10579else
10580 with_expat=auto
10581fi;
10582echo "$as_me:$LINENO: checking whether to use expat" >&5
10583echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10584echo "$as_me:$LINENO: result: $with_expat" >&5
10585echo "${ECHO_T}$with_expat" >&6
10586
10587if test "${with_expat}" = no; then
10588 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10589echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10590 HAVE_LIBEXPAT=no
10591else
10592
10593 if test "X$prefix" = "XNONE"; then
10594 acl_final_prefix="$ac_default_prefix"
10595 else
10596 acl_final_prefix="$prefix"
10597 fi
10598 if test "X$exec_prefix" = "XNONE"; then
10599 acl_final_exec_prefix='${prefix}'
10600 else
10601 acl_final_exec_prefix="$exec_prefix"
10602 fi
10603 acl_save_prefix="$prefix"
10604 prefix="$acl_final_prefix"
10605 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10606 prefix="$acl_save_prefix"
10607
10608
10609# Check whether --with-gnu-ld or --without-gnu-ld was given.
10610if test "${with_gnu_ld+set}" = set; then
10611 withval="$with_gnu_ld"
10612 test "$withval" = no || with_gnu_ld=yes
10613else
10614 with_gnu_ld=no
10615fi;
10616# Prepare PATH_SEPARATOR.
10617# The user is always right.
10618if test "${PATH_SEPARATOR+set}" != set; then
10619 echo "#! /bin/sh" >conf$$.sh
10620 echo "exit 0" >>conf$$.sh
10621 chmod +x conf$$.sh
10622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10623 PATH_SEPARATOR=';'
10624 else
10625 PATH_SEPARATOR=:
10626 fi
10627 rm -f conf$$.sh
10628fi
10629ac_prog=ld
10630if test "$GCC" = yes; then
10631 # Check if gcc -print-prog-name=ld gives a path.
10632 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10633echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10634 case $host in
10635 *-*-mingw*)
10636 # gcc leaves a trailing carriage return which upsets mingw
10637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10638 *)
10639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10640 esac
10641 case $ac_prog in
10642 # Accept absolute paths.
10643 [\\/]* | [A-Za-z]:[\\/]*)
10644 re_direlt='/[^/][^/]*/\.\./'
10645 # Canonicalize the path of ld
10646 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10647 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10648 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10649 done
10650 test -z "$LD" && LD="$ac_prog"
10651 ;;
10652 "")
10653 # If it fails, then pretend we aren't using GCC.
10654 ac_prog=ld
10655 ;;
10656 *)
10657 # If it is relative, then search for the first ld in PATH.
10658 with_gnu_ld=unknown
10659 ;;
10660 esac
10661elif test "$with_gnu_ld" = yes; then
10662 echo "$as_me:$LINENO: checking for GNU ld" >&5
10663echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10664else
10665 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10666echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10667fi
10668if test "${acl_cv_path_LD+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670else
10671 if test -z "$LD"; then
10672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10673 for ac_dir in $PATH; do
10674 test -z "$ac_dir" && ac_dir=.
10675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10676 acl_cv_path_LD="$ac_dir/$ac_prog"
10677 # Check to see if the program is GNU ld. I'd rather use --version,
10678 # but apparently some GNU ld's only accept -v.
10679 # Break only if it was the GNU/non-GNU ld that we prefer.
10680 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10681 test "$with_gnu_ld" != no && break
10682 else
10683 test "$with_gnu_ld" != yes && break
10684 fi
10685 fi
10686 done
10687 IFS="$ac_save_ifs"
10688else
10689 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10690fi
10691fi
10692
10693LD="$acl_cv_path_LD"
10694if test -n "$LD"; then
10695 echo "$as_me:$LINENO: result: $LD" >&5
10696echo "${ECHO_T}$LD" >&6
10697else
10698 echo "$as_me:$LINENO: result: no" >&5
10699echo "${ECHO_T}no" >&6
10700fi
10701test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10702echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10703 { (exit 1); exit 1; }; }
10704echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10705echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10706if test "${acl_cv_prog_gnu_ld+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10710if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10711 acl_cv_prog_gnu_ld=yes
10712else
10713 acl_cv_prog_gnu_ld=no
10714fi
10715fi
10716echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10717echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10718with_gnu_ld=$acl_cv_prog_gnu_ld
10719
10720
10721
10722 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10723echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10724if test "${acl_cv_rpath+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726else
10727
10728 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10729 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10730 . ./conftest.sh
10731 rm -f ./conftest.sh
10732 acl_cv_rpath=done
10733
10734fi
10735echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10736echo "${ECHO_T}$acl_cv_rpath" >&6
10737 wl="$acl_cv_wl"
10738 libext="$acl_cv_libext"
10739 shlibext="$acl_cv_shlibext"
10740 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10741 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10742 hardcode_direct="$acl_cv_hardcode_direct"
10743 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10744 # Check whether --enable-rpath or --disable-rpath was given.
10745if test "${enable_rpath+set}" = set; then
10746 enableval="$enable_rpath"
10747 :
10748else
10749 enable_rpath=yes
10750fi;
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760 use_additional=yes
10761
10762 acl_save_prefix="$prefix"
10763 prefix="$acl_final_prefix"
10764 acl_save_exec_prefix="$exec_prefix"
10765 exec_prefix="$acl_final_exec_prefix"
10766
10767 eval additional_includedir=\"$includedir\"
10768 eval additional_libdir=\"$libdir\"
10769
10770 exec_prefix="$acl_save_exec_prefix"
10771 prefix="$acl_save_prefix"
10772
10773
10774# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10775if test "${with_libexpat_prefix+set}" = set; then
10776 withval="$with_libexpat_prefix"
10777
10778 if test "X$withval" = "Xno"; then
10779 use_additional=no
10780 else
10781 if test "X$withval" = "X"; then
10782
10783 acl_save_prefix="$prefix"
10784 prefix="$acl_final_prefix"
10785 acl_save_exec_prefix="$exec_prefix"
10786 exec_prefix="$acl_final_exec_prefix"
10787
10788 eval additional_includedir=\"$includedir\"
10789 eval additional_libdir=\"$libdir\"
10790
10791 exec_prefix="$acl_save_exec_prefix"
10792 prefix="$acl_save_prefix"
10793
10794 else
10795 additional_includedir="$withval/include"
10796 additional_libdir="$withval/lib"
10797 fi
10798 fi
10799
10800fi;
10801 LIBEXPAT=
10802 LTLIBEXPAT=
10803 INCEXPAT=
10804 rpathdirs=
10805 ltrpathdirs=
10806 names_already_handled=
10807 names_next_round='expat '
10808 while test -n "$names_next_round"; do
10809 names_this_round="$names_next_round"
10810 names_next_round=
10811 for name in $names_this_round; do
10812 already_handled=
10813 for n in $names_already_handled; do
10814 if test "$n" = "$name"; then
10815 already_handled=yes
10816 break
10817 fi
10818 done
10819 if test -z "$already_handled"; then
10820 names_already_handled="$names_already_handled $name"
10821 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10822 eval value=\"\$HAVE_LIB$uppername\"
10823 if test -n "$value"; then
10824 if test "$value" = yes; then
10825 eval value=\"\$LIB$uppername\"
10826 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10827 eval value=\"\$LTLIB$uppername\"
10828 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10829 else
10830 :
10831 fi
10832 else
10833 found_dir=
10834 found_la=
10835 found_so=
10836 found_a=
10837 if test $use_additional = yes; then
10838 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10839 found_dir="$additional_libdir"
10840 found_so="$additional_libdir/lib$name.$shlibext"
10841 if test -f "$additional_libdir/lib$name.la"; then
10842 found_la="$additional_libdir/lib$name.la"
10843 fi
10844 else
10845 if test -f "$additional_libdir/lib$name.$libext"; then
10846 found_dir="$additional_libdir"
10847 found_a="$additional_libdir/lib$name.$libext"
10848 if test -f "$additional_libdir/lib$name.la"; then
10849 found_la="$additional_libdir/lib$name.la"
10850 fi
10851 fi
10852 fi
10853 fi
10854 if test "X$found_dir" = "X"; then
10855 for x in $LDFLAGS $LTLIBEXPAT; do
10856
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10864
10865 case "$x" in
10866 -L*)
10867 dir=`echo "X$x" | sed -e 's/^X-L//'`
10868 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10869 found_dir="$dir"
10870 found_so="$dir/lib$name.$shlibext"
10871 if test -f "$dir/lib$name.la"; then
10872 found_la="$dir/lib$name.la"
10873 fi
10874 else
10875 if test -f "$dir/lib$name.$libext"; then
10876 found_dir="$dir"
10877 found_a="$dir/lib$name.$libext"
10878 if test -f "$dir/lib$name.la"; then
10879 found_la="$dir/lib$name.la"
10880 fi
10881 fi
10882 fi
10883 ;;
10884 esac
10885 if test "X$found_dir" != "X"; then
10886 break
10887 fi
10888 done
10889 fi
10890 if test "X$found_dir" != "X"; then
10891 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10892 if test "X$found_so" != "X"; then
10893 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10894 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10895 else
10896 haveit=
10897 for x in $ltrpathdirs; do
10898 if test "X$x" = "X$found_dir"; then
10899 haveit=yes
10900 break
10901 fi
10902 done
10903 if test -z "$haveit"; then
10904 ltrpathdirs="$ltrpathdirs $found_dir"
10905 fi
10906 if test "$hardcode_direct" = yes; then
10907 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10908 else
10909 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10910 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10911 haveit=
10912 for x in $rpathdirs; 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 rpathdirs="$rpathdirs $found_dir"
10920 fi
10921 else
10922 haveit=
10923 for x in $LDFLAGS $LIBEXPAT; do
10924
10925 acl_save_prefix="$prefix"
10926 prefix="$acl_final_prefix"
10927 acl_save_exec_prefix="$exec_prefix"
10928 exec_prefix="$acl_final_exec_prefix"
10929 eval x=\"$x\"
10930 exec_prefix="$acl_save_exec_prefix"
10931 prefix="$acl_save_prefix"
10932
10933 if test "X$x" = "X-L$found_dir"; then
10934 haveit=yes
10935 break
10936 fi
10937 done
10938 if test -z "$haveit"; then
10939 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10940 fi
10941 if test "$hardcode_minus_L" != no; then
10942 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10943 else
10944 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10945 fi
10946 fi
10947 fi
10948 fi
10949 else
10950 if test "X$found_a" != "X"; then
10951 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10952 else
10953 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10954 fi
10955 fi
10956 additional_includedir=
10957 case "$found_dir" in
10958 */lib | */lib/)
10959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10960 additional_includedir="$basedir/include"
10961 ;;
10962 esac
10963 if test "X$additional_includedir" != "X"; then
10964 if test "X$additional_includedir" != "X/usr/include"; then
10965 haveit=
10966 if test "X$additional_includedir" = "X/usr/local/include"; then
10967 if test -n "$GCC"; then
10968 case $host_os in
10969 linux*) haveit=yes;;
10970 esac
10971 fi
10972 fi
10973 if test -z "$haveit"; then
10974 for x in $CPPFLAGS $INCEXPAT; do
10975
10976 acl_save_prefix="$prefix"
10977 prefix="$acl_final_prefix"
10978 acl_save_exec_prefix="$exec_prefix"
10979 exec_prefix="$acl_final_exec_prefix"
10980 eval x=\"$x\"
10981 exec_prefix="$acl_save_exec_prefix"
10982 prefix="$acl_save_prefix"
10983
10984 if test "X$x" = "X-I$additional_includedir"; then
10985 haveit=yes
10986 break
10987 fi
10988 done
10989 if test -z "$haveit"; then
10990 if test -d "$additional_includedir"; then
10991 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10992 fi
10993 fi
10994 fi
10995 fi
10996 fi
10997 if test -n "$found_la"; then
10998 save_libdir="$libdir"
10999 case "$found_la" in
11000 */* | *\\*) . "$found_la" ;;
11001 *) . "./$found_la" ;;
11002 esac
11003 libdir="$save_libdir"
11004 for dep in $dependency_libs; do
11005 case "$dep" in
11006 -L*)
11007 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11008 if test "X$additional_libdir" != "X/usr/lib"; then
11009 haveit=
11010 if test "X$additional_libdir" = "X/usr/local/lib"; then
11011 if test -n "$GCC"; then
11012 case $host_os in
11013 linux*) haveit=yes;;
11014 esac
11015 fi
11016 fi
11017 if test -z "$haveit"; then
11018 haveit=
11019 for x in $LDFLAGS $LIBEXPAT; do
11020
11021 acl_save_prefix="$prefix"
11022 prefix="$acl_final_prefix"
11023 acl_save_exec_prefix="$exec_prefix"
11024 exec_prefix="$acl_final_exec_prefix"
11025 eval x=\"$x\"
11026 exec_prefix="$acl_save_exec_prefix"
11027 prefix="$acl_save_prefix"
11028
11029 if test "X$x" = "X-L$additional_libdir"; then
11030 haveit=yes
11031 break
11032 fi
11033 done
11034 if test -z "$haveit"; then
11035 if test -d "$additional_libdir"; then
11036 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11037 fi
11038 fi
11039 haveit=
11040 for x in $LDFLAGS $LTLIBEXPAT; do
11041
11042 acl_save_prefix="$prefix"
11043 prefix="$acl_final_prefix"
11044 acl_save_exec_prefix="$exec_prefix"
11045 exec_prefix="$acl_final_exec_prefix"
11046 eval x=\"$x\"
11047 exec_prefix="$acl_save_exec_prefix"
11048 prefix="$acl_save_prefix"
11049
11050 if test "X$x" = "X-L$additional_libdir"; then
11051 haveit=yes
11052 break
11053 fi
11054 done
11055 if test -z "$haveit"; then
11056 if test -d "$additional_libdir"; then
11057 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11058 fi
11059 fi
11060 fi
11061 fi
11062 ;;
11063 -R*)
11064 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11065 if test "$enable_rpath" != no; then
11066 haveit=
11067 for x in $rpathdirs; do
11068 if test "X$x" = "X$dir"; then
11069 haveit=yes
11070 break
11071 fi
11072 done
11073 if test -z "$haveit"; then
11074 rpathdirs="$rpathdirs $dir"
11075 fi
11076 haveit=
11077 for x in $ltrpathdirs; do
11078 if test "X$x" = "X$dir"; then
11079 haveit=yes
11080 break
11081 fi
11082 done
11083 if test -z "$haveit"; then
11084 ltrpathdirs="$ltrpathdirs $dir"
11085 fi
11086 fi
11087 ;;
11088 -l*)
11089 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11090 ;;
11091 *.la)
11092 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11093 ;;
11094 *)
11095 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11096 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11097 ;;
11098 esac
11099 done
11100 fi
11101 else
11102 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11103 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11104 fi
11105 fi
11106 fi
11107 done
11108 done
11109 if test "X$rpathdirs" != "X"; then
11110 if test -n "$hardcode_libdir_separator"; then
11111 alldirs=
11112 for found_dir in $rpathdirs; do
11113 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11114 done
11115 acl_save_libdir="$libdir"
11116 libdir="$alldirs"
11117 eval flag=\"$hardcode_libdir_flag_spec\"
11118 libdir="$acl_save_libdir"
11119 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11120 else
11121 for found_dir in $rpathdirs; do
11122 acl_save_libdir="$libdir"
11123 libdir="$found_dir"
11124 eval flag=\"$hardcode_libdir_flag_spec\"
11125 libdir="$acl_save_libdir"
11126 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11127 done
11128 fi
11129 fi
11130 if test "X$ltrpathdirs" != "X"; then
11131 for found_dir in $ltrpathdirs; do
11132 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11133 done
11134 fi
11135
11136
11137 ac_save_CPPFLAGS="$CPPFLAGS"
11138
11139 for element in $INCEXPAT; do
11140 haveit=
11141 for x in $CPPFLAGS; do
11142
11143 acl_save_prefix="$prefix"
11144 prefix="$acl_final_prefix"
11145 acl_save_exec_prefix="$exec_prefix"
11146 exec_prefix="$acl_final_exec_prefix"
11147 eval x=\"$x\"
11148 exec_prefix="$acl_save_exec_prefix"
11149 prefix="$acl_save_prefix"
11150
11151 if test "X$x" = "X$element"; then
11152 haveit=yes
11153 break
11154 fi
11155 done
11156 if test -z "$haveit"; then
11157 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11158 fi
11159 done
11160
11161
11162 echo "$as_me:$LINENO: checking for libexpat" >&5
11163echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11164if test "${ac_cv_libexpat+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166else
11167
11168 ac_save_LIBS="$LIBS"
11169 LIBS="$LIBS $LIBEXPAT"
11170 cat >conftest.$ac_ext <<_ACEOF
11171/* confdefs.h. */
11172_ACEOF
11173cat confdefs.h >>conftest.$ac_ext
11174cat >>conftest.$ac_ext <<_ACEOF
11175/* end confdefs.h. */
11176#include "expat.h"
11177int
11178main ()
11179{
11180XML_Parser p = XML_ParserCreate (0);
11181 ;
11182 return 0;
11183}
11184_ACEOF
11185rm -f conftest.$ac_objext conftest$ac_exeext
11186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_libexpat=yes
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212ac_cv_libexpat=no
11213fi
11214rm -f conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS="$ac_save_LIBS"
11217
11218fi
11219echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11220echo "${ECHO_T}$ac_cv_libexpat" >&6
11221 if test "$ac_cv_libexpat" = yes; then
11222 HAVE_LIBEXPAT=yes
11223
11224cat >>confdefs.h <<\_ACEOF
11225#define HAVE_LIBEXPAT 1
11226_ACEOF
11227
11228 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11229echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11230 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11231echo "${ECHO_T}$LIBEXPAT" >&6
11232 else
11233 HAVE_LIBEXPAT=no
11234 CPPFLAGS="$ac_save_CPPFLAGS"
11235 LIBEXPAT=
11236 LTLIBEXPAT=
11237 fi
11238
11239
11240
11241
11242
11243
11244 if test "$HAVE_LIBEXPAT" != yes; then
11245 if test "$with_expat" = yes; then
11246 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11247echo "$as_me: error: expat is missing or unusable" >&2;}
11248 { (exit 1); exit 1; }; }
11249 else
11250 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11251echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11252 fi
11253 else
11254 save_LIBS=$LIBS
11255 LIBS="$LIBS $LIBEXPAT"
11256
11257for ac_func in XML_StopParser
11258do
11259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11260echo "$as_me:$LINENO: checking for $ac_func" >&5
11261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11262if eval "test \"\${$as_ac_var+set}\" = set"; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264else
11265 cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
11271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11273#define $ac_func innocuous_$ac_func
11274
11275/* System header to define __stub macros and hopefully few prototypes,
11276 which can conflict with char $ac_func (); below.
11277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11278 <limits.h> exists even on freestanding compilers. */
11279
11280#ifdef __STDC__
11281# include <limits.h>
11282#else
11283# include <assert.h>
11284#endif
11285
11286#undef $ac_func
11287
11288/* Override any gcc2 internal prototype to avoid an error. */
11289#ifdef __cplusplus
11290extern "C"
11291{
11292#endif
11293/* We use char because int might match the return type of a gcc2
11294 builtin and then its argument prototype would still apply. */
11295char $ac_func ();
11296/* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11300choke me
11301#else
11302char (*f) () = $ac_func;
11303#endif
11304#ifdef __cplusplus
11305}
11306#endif
11307
11308int
11309main ()
11310{
11311return f != $ac_func;
11312 ;
11313 return 0;
11314}
11315_ACEOF
11316rm -f conftest.$ac_objext conftest$ac_exeext
11317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag"
11326 || test ! -s conftest.err'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; } &&
11332 { ac_try='test -s conftest$ac_exeext'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 eval "$as_ac_var=yes"
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343eval "$as_ac_var=no"
11344fi
11345rm -f conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347fi
11348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11349echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11350if test `eval echo '${'$as_ac_var'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11353_ACEOF
11354
11355fi
11356done
11357
11358 LIBS=$save_LIBS
11359 fi
11360fi
11361
11362
11363
11364
11365# Check whether --with-python or --without-python was given.
11366if test "${with_python+set}" = set; then
11367 withval="$with_python"
11368
11369else
11370 with_python=auto
11371fi;
11372echo "$as_me:$LINENO: checking whether to use python" >&5
11373echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11374echo "$as_me:$LINENO: result: $with_python" >&5
11375echo "${ECHO_T}$with_python" >&6
11376
11377if test "${with_python}" = no; then
11378 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11379echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11380 have_libpython=no
11381else
11382 case "${with_python}" in
11383 yes | auto)
11384 # Leave as empty, use defaults.
11385 python_includes=
11386 python_libs=
11387 ;;
11388 /*)
11389 python_includes="-I${with_python}/include"
11390 python_libs="-L${with_python}/lib"
11391 ;;
11392 *)
11393 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11394echo "$as_me: error: invalid value for --with-python" >&2;}
11395 { (exit 1); exit 1; }; }
11396 ;;
11397 esac
11398
11399 save_CPPFLAGS=$CPPFLAGS
11400 CPPFLAGS="$CPPFLAGS ${python_includes}"
11401 save_LIBS=$LIBS
11402 LIBS="$LIBS ${python_libs}"
11403 have_libpython=no
11404 if test "${have_libpython}" = no; then
11405
11406 version=python2.6
11407
11408
11409 HAVE_LIBPYTHON2_6=no
11410 echo "$as_me:$LINENO: checking for ${version}" >&5
11411echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11412 save_LIBS=$LIBS
11413 LIBS="$LIBS -l${version}"
11414 cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420#include "${version}/Python.h"
11421int
11422main ()
11423{
11424Py_Initialize ();
11425 ;
11426 return 0;
11427}
11428_ACEOF
11429rm -f conftest.$ac_objext conftest$ac_exeext
11430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag"
11439 || test ! -s conftest.err'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest$ac_exeext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 HAVE_LIBPYTHON2_6=yes
11452 have_libpython=yes
11453else
11454 echo "$as_me: failed program was:" >&5
11455sed 's/^/| /' conftest.$ac_ext >&5
11456
11457LIBS=$save_LIBS
11458fi
11459rm -f conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11461 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11462echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11463
11464 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11465
11466cat >>confdefs.h <<\_ACEOF
11467#define HAVE_LIBPYTHON2_6 1
11468_ACEOF
11469
11470 fi
11471 fi
11472 if test ${have_libpython} = no; then
11473
11474 version=python2.5
11475
11476
11477 HAVE_LIBPYTHON2_5=no
11478 echo "$as_me:$LINENO: checking for ${version}" >&5
11479echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11480 save_LIBS=$LIBS
11481 LIBS="$LIBS -l${version}"
11482 cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488#include "${version}/Python.h"
11489int
11490main ()
11491{
11492Py_Initialize ();
11493 ;
11494 return 0;
11495}
11496_ACEOF
11497rm -f conftest.$ac_objext conftest$ac_exeext
11498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499 (eval $ac_link) 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag"
11507 || test ! -s conftest.err'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try='test -s conftest$ac_exeext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 HAVE_LIBPYTHON2_5=yes
11520 have_libpython=yes
11521else
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525LIBS=$save_LIBS
11526fi
11527rm -f conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11530echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11531
11532 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11533
11534cat >>confdefs.h <<\_ACEOF
11535#define HAVE_LIBPYTHON2_5 1
11536_ACEOF
11537
11538 fi
11539 fi
11540 if test ${have_libpython} = no; then
11541
11542 version=python2.4
11543
11544
11545 HAVE_LIBPYTHON2_4=no
11546 echo "$as_me:$LINENO: checking for ${version}" >&5
11547echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11548 save_LIBS=$LIBS
11549 LIBS="$LIBS -l${version}"
11550 cat >conftest.$ac_ext <<_ACEOF
11551/* confdefs.h. */
11552_ACEOF
11553cat confdefs.h >>conftest.$ac_ext
11554cat >>conftest.$ac_ext <<_ACEOF
11555/* end confdefs.h. */
11556#include "${version}/Python.h"
11557int
11558main ()
11559{
11560Py_Initialize ();
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext conftest$ac_exeext
11566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567 (eval $ac_link) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag"
11575 || test ! -s conftest.err'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try='test -s conftest$ac_exeext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 HAVE_LIBPYTHON2_4=yes
11588 have_libpython=yes
11589else
11590 echo "$as_me: failed program was:" >&5
11591sed 's/^/| /' conftest.$ac_ext >&5
11592
11593LIBS=$save_LIBS
11594fi
11595rm -f conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11598echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11599
11600 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11601
11602cat >>confdefs.h <<\_ACEOF
11603#define HAVE_LIBPYTHON2_4 1
11604_ACEOF
11605
11606 fi
11607 fi
11608 if test ${have_libpython} = no; then
11609 case "${with_python}" in
11610 yes)
11611 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11612echo "$as_me: error: python is missing or unusable" >&2;}
11613 { (exit 1); exit 1; }; }
11614 ;;
11615 auto)
11616 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11617echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11618 ;;
11619 *)
11620 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11621echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11622 { (exit 1); exit 1; }; }
11623 ;;
11624 esac
11625 CPPFLAGS=$save_CPPFLAGS
11626 LIBS=$save_LIBS
11627 fi
11628fi
11629
11630if test "${have_libpython}" = yes; then
11631
11632cat >>confdefs.h <<\_ACEOF
11633#define HAVE_PYTHON 1
11634_ACEOF
11635
11636 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11637 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11638 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11639 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11640
11641 # Flags needed to compile Python code (taken from python-config --cflags).
11642 # We cannot call python-config directly because it will output whatever was
11643 # used when compiling the Python interpreter itself, including flags which
11644 # would make the python-related objects be compiled differently from the
11645 # rest of GDB (e.g., -O2 and -fPIC).
11646 if test "${GCC}" = yes; then
11647 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11648 fi
11649
11650 if test "x${tentative_python_cflags}" != x; then
11651 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11652echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11653 for flag in ${tentative_python_cflags}; do
11654 # Check that the compiler accepts it
11655 saved_CFLAGS="$CFLAGS"
11656 CFLAGS="$CFLAGS $flag"
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663
11664int
11665main ()
11666{
11667
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672rm -f conftest.$ac_objext
11673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11674 (eval $ac_compile) 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -z "$ac_c_werror_flag"
11682 || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11695else
11696 echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699fi
11700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11701 CFLAGS="$saved_CFLAGS"
11702 done
11703 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11704echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11705 fi
11706else
11707 # Even if Python support is not compiled in, we need to have these files
11708 # included in order to recognize the GDB command "python".
11709 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11710 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11711fi
11712
11713
11714# ------------------------- #
11715# Checks for header files. #
11716# ------------------------- #
11717
11718
11719
11720
11721
11722
11723ac_header_dirent=no
11724for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11725 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11726echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11727echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11728if eval "test \"\${$as_ac_Header+set}\" = set"; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730else
11731 cat >conftest.$ac_ext <<_ACEOF
11732/* confdefs.h. */
11733_ACEOF
11734cat confdefs.h >>conftest.$ac_ext
11735cat >>conftest.$ac_ext <<_ACEOF
11736/* end confdefs.h. */
11737#include <sys/types.h>
11738#include <$ac_hdr>
11739
11740int
11741main ()
11742{
11743if ((DIR *) 0)
11744return 0;
11745 ;
11746 return 0;
11747}
11748_ACEOF
11749rm -f conftest.$ac_objext
11750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751 (eval $ac_compile) 2>conftest.er1
11752 ac_status=$?
11753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag"
11759 || test ! -s conftest.err'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_Header=yes"
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776eval "$as_ac_Header=no"
11777fi
11778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779fi
11780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11782if test `eval echo '${'$as_ac_Header'}'` = yes; then
11783 cat >>confdefs.h <<_ACEOF
11784#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11785_ACEOF
11786
11787ac_header_dirent=$ac_hdr; break
11788fi
11789
11790done
11791# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11792if test $ac_header_dirent = dirent.h; then
11793 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11794echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11795if test "${ac_cv_search_opendir+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 ac_func_search_save_LIBS=$LIBS
11799ac_cv_search_opendir=no
11800cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
11806
11807/* Override any gcc2 internal prototype to avoid an error. */
11808#ifdef __cplusplus
11809extern "C"
11810#endif
11811/* We use char because int might match the return type of a gcc2
11812 builtin and then its argument prototype would still apply. */
11813char opendir ();
11814int
11815main ()
11816{
11817opendir ();
11818 ;
11819 return 0;
11820}
11821_ACEOF
11822rm -f conftest.$ac_objext conftest$ac_exeext
11823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } &&
11831 { ac_try='test -z "$ac_c_werror_flag"
11832 || test ! -s conftest.err'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_search_opendir="none required"
11845else
11846 echo "$as_me: failed program was:" >&5
11847sed 's/^/| /' conftest.$ac_ext >&5
11848
11849fi
11850rm -f conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852if test "$ac_cv_search_opendir" = no; then
11853 for ac_lib in dir; do
11854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11855 cat >conftest.$ac_ext <<_ACEOF
11856/* confdefs.h. */
11857_ACEOF
11858cat confdefs.h >>conftest.$ac_ext
11859cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h. */
11861
11862/* Override any gcc2 internal prototype to avoid an error. */
11863#ifdef __cplusplus
11864extern "C"
11865#endif
11866/* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11868char opendir ();
11869int
11870main ()
11871{
11872opendir ();
11873 ;
11874 return 0;
11875}
11876_ACEOF
11877rm -f conftest.$ac_objext conftest$ac_exeext
11878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_search_opendir="-l$ac_lib"
11900break
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
11905fi
11906rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 done
11909fi
11910LIBS=$ac_func_search_save_LIBS
11911fi
11912echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11913echo "${ECHO_T}$ac_cv_search_opendir" >&6
11914if test "$ac_cv_search_opendir" != no; then
11915 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11916
11917fi
11918
11919else
11920 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11921echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11922if test "${ac_cv_search_opendir+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924else
11925 ac_func_search_save_LIBS=$LIBS
11926ac_cv_search_opendir=no
11927cat >conftest.$ac_ext <<_ACEOF
11928/* confdefs.h. */
11929_ACEOF
11930cat confdefs.h >>conftest.$ac_ext
11931cat >>conftest.$ac_ext <<_ACEOF
11932/* end confdefs.h. */
11933
11934/* Override any gcc2 internal prototype to avoid an error. */
11935#ifdef __cplusplus
11936extern "C"
11937#endif
11938/* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940char opendir ();
11941int
11942main ()
11943{
11944opendir ();
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949rm -f conftest.$ac_objext conftest$ac_exeext
11950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag"
11959 || test ! -s conftest.err'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest$ac_exeext'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 ac_cv_search_opendir="none required"
11972else
11973 echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
11976fi
11977rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979if test "$ac_cv_search_opendir" = no; then
11980 for ac_lib in x; do
11981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11982 cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
11988
11989/* Override any gcc2 internal prototype to avoid an error. */
11990#ifdef __cplusplus
11991extern "C"
11992#endif
11993/* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
11995char opendir ();
11996int
11997main ()
11998{
11999opendir ();
12000 ;
12001 return 0;
12002}
12003_ACEOF
12004rm -f conftest.$ac_objext conftest$ac_exeext
12005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_search_opendir="-l$ac_lib"
12027break
12028else
12029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032fi
12033rm -f conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035 done
12036fi
12037LIBS=$ac_func_search_save_LIBS
12038fi
12039echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12040echo "${ECHO_T}$ac_cv_search_opendir" >&6
12041if test "$ac_cv_search_opendir" != no; then
12042 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12043
12044fi
12045
12046fi
12047
12048echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12049echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12050if test "${ac_cv_header_stat_broken+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
12053 cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h. */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h. */
12059#include <sys/types.h>
12060#include <sys/stat.h>
12061
12062#if defined(S_ISBLK) && defined(S_IFDIR)
12063# if S_ISBLK (S_IFDIR)
12064You lose.
12065# endif
12066#endif
12067
12068#if defined(S_ISBLK) && defined(S_IFCHR)
12069# if S_ISBLK (S_IFCHR)
12070You lose.
12071# endif
12072#endif
12073
12074#if defined(S_ISLNK) && defined(S_IFREG)
12075# if S_ISLNK (S_IFREG)
12076You lose.
12077# endif
12078#endif
12079
12080#if defined(S_ISSOCK) && defined(S_IFREG)
12081# if S_ISSOCK (S_IFREG)
12082You lose.
12083# endif
12084#endif
12085
12086_ACEOF
12087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12088 $EGREP "You lose" >/dev/null 2>&1; then
12089 ac_cv_header_stat_broken=yes
12090else
12091 ac_cv_header_stat_broken=no
12092fi
12093rm -f conftest*
12094
12095fi
12096echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12097echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12098if test $ac_cv_header_stat_broken = yes; then
12099
12100cat >>confdefs.h <<\_ACEOF
12101#define STAT_MACROS_BROKEN 1
12102_ACEOF
12103
12104fi
12105
12106echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12107echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12108if test "${ac_cv_header_stdc+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110else
12111 cat >conftest.$ac_ext <<_ACEOF
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117#include <stdlib.h>
12118#include <stdarg.h>
12119#include <string.h>
12120#include <float.h>
12121
12122int
12123main ()
12124{
12125
12126 ;
12127 return 0;
12128}
12129_ACEOF
12130rm -f conftest.$ac_objext
12131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12132 (eval $ac_compile) 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -z "$ac_c_werror_flag"
12140 || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_cv_header_stdc=yes
12153else
12154 echo "$as_me: failed program was:" >&5
12155sed 's/^/| /' conftest.$ac_ext >&5
12156
12157ac_cv_header_stdc=no
12158fi
12159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160
12161if test $ac_cv_header_stdc = yes; then
12162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12163 cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
12169#include <string.h>
12170
12171_ACEOF
12172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173 $EGREP "memchr" >/dev/null 2>&1; then
12174 :
12175else
12176 ac_cv_header_stdc=no
12177fi
12178rm -f conftest*
12179
12180fi
12181
12182if test $ac_cv_header_stdc = yes; then
12183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12184 cat >conftest.$ac_ext <<_ACEOF
12185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
12190#include <stdlib.h>
12191
12192_ACEOF
12193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12194 $EGREP "free" >/dev/null 2>&1; then
12195 :
12196else
12197 ac_cv_header_stdc=no
12198fi
12199rm -f conftest*
12200
12201fi
12202
12203if test $ac_cv_header_stdc = yes; then
12204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12205 if test "$cross_compiling" = yes; then
12206 :
12207else
12208 cat >conftest.$ac_ext <<_ACEOF
12209/* confdefs.h. */
12210_ACEOF
12211cat confdefs.h >>conftest.$ac_ext
12212cat >>conftest.$ac_ext <<_ACEOF
12213/* end confdefs.h. */
12214#include <ctype.h>
12215#if ((' ' & 0x0FF) == 0x020)
12216# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12217# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12218#else
12219# define ISLOWER(c) \
12220 (('a' <= (c) && (c) <= 'i') \
12221 || ('j' <= (c) && (c) <= 'r') \
12222 || ('s' <= (c) && (c) <= 'z'))
12223# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12224#endif
12225
12226#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12227int
12228main ()
12229{
12230 int i;
12231 for (i = 0; i < 256; i++)
12232 if (XOR (islower (i), ISLOWER (i))
12233 || toupper (i) != TOUPPER (i))
12234 exit(2);
12235 exit (0);
12236}
12237_ACEOF
12238rm -f conftest$ac_exeext
12239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12240 (eval $ac_link) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 :
12250else
12251 echo "$as_me: program exited with status $ac_status" >&5
12252echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255( exit $ac_status )
12256ac_cv_header_stdc=no
12257fi
12258rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12259fi
12260fi
12261fi
12262echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12263echo "${ECHO_T}$ac_cv_header_stdc" >&6
12264if test $ac_cv_header_stdc = yes; then
12265
12266cat >>confdefs.h <<\_ACEOF
12267#define STDC_HEADERS 1
12268_ACEOF
12269
12270fi
12271
12272
12273for ac_header in nlist.h
12274do
12275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12276if eval "test \"\${$as_ac_Header+set}\" = set"; then
12277 echo "$as_me:$LINENO: checking for $ac_header" >&5
12278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12279if eval "test \"\${$as_ac_Header+set}\" = set"; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281fi
12282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12284else
12285 # Is the header compilable?
12286echo "$as_me:$LINENO: checking $ac_header usability" >&5
12287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12288cat >conftest.$ac_ext <<_ACEOF
12289/* confdefs.h. */
12290_ACEOF
12291cat confdefs.h >>conftest.$ac_ext
12292cat >>conftest.$ac_ext <<_ACEOF
12293/* end confdefs.h. */
12294$ac_includes_default
12295#include <$ac_header>
12296_ACEOF
12297rm -f conftest.$ac_objext
12298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 (eval $ac_compile) 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_header_compiler=yes
12320else
12321 echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324ac_header_compiler=no
12325fi
12326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12328echo "${ECHO_T}$ac_header_compiler" >&6
12329
12330# Is the header present?
12331echo "$as_me:$LINENO: checking $ac_header presence" >&5
12332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12333cat >conftest.$ac_ext <<_ACEOF
12334/* confdefs.h. */
12335_ACEOF
12336cat confdefs.h >>conftest.$ac_ext
12337cat >>conftest.$ac_ext <<_ACEOF
12338/* end confdefs.h. */
12339#include <$ac_header>
12340_ACEOF
12341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } >/dev/null; then
12349 if test -s conftest.err; then
12350 ac_cpp_err=$ac_c_preproc_warn_flag
12351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12352 else
12353 ac_cpp_err=
12354 fi
12355else
12356 ac_cpp_err=yes
12357fi
12358if test -z "$ac_cpp_err"; then
12359 ac_header_preproc=yes
12360else
12361 echo "$as_me: failed program was:" >&5
12362sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 ac_header_preproc=no
12365fi
12366rm -f conftest.err conftest.$ac_ext
12367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12368echo "${ECHO_T}$ac_header_preproc" >&6
12369
12370# So? What about this header?
12371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12372 yes:no: )
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12377 ac_header_preproc=yes
12378 ;;
12379 no:yes:* )
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12392 (
12393 cat <<\_ASBOX
12394## ------------------------------------------ ##
12395## Report this to the AC_PACKAGE_NAME lists. ##
12396## ------------------------------------------ ##
12397_ASBOX
12398 ) |
12399 sed "s/^/$as_me: WARNING: /" >&2
12400 ;;
12401esac
12402echo "$as_me:$LINENO: checking for $ac_header" >&5
12403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12404if eval "test \"\${$as_ac_Header+set}\" = set"; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406else
12407 eval "$as_ac_Header=\$ac_header_preproc"
12408fi
12409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12411
12412fi
12413if test `eval echo '${'$as_ac_Header'}'` = yes; then
12414 cat >>confdefs.h <<_ACEOF
12415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12416_ACEOF
12417
12418fi
12419
12420done
12421
12422
12423for ac_header in link.h
12424do
12425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12426echo "$as_me:$LINENO: checking for $ac_header" >&5
12427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12428if eval "test \"\${$as_ac_Header+set}\" = set"; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431 cat >conftest.$ac_ext <<_ACEOF
12432/* confdefs.h. */
12433_ACEOF
12434cat confdefs.h >>conftest.$ac_ext
12435cat >>conftest.$ac_ext <<_ACEOF
12436/* end confdefs.h. */
12437#if HAVE_SYS_TYPES_H
12438# include <sys/types.h>
12439#endif
12440#if HAVE_NLIST_H
12441# include <nlist.h>
12442#endif
12443
12444
12445#include <$ac_header>
12446_ACEOF
12447rm -f conftest.$ac_objext
12448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12449 (eval $ac_compile) 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -z "$ac_c_werror_flag"
12457 || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest.$ac_objext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 eval "$as_ac_Header=yes"
12470else
12471 echo "$as_me: failed program was:" >&5
12472sed 's/^/| /' conftest.$ac_ext >&5
12473
12474eval "$as_ac_Header=no"
12475fi
12476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12477fi
12478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12480if test `eval echo '${'$as_ac_Header'}'` = yes; then
12481 cat >>confdefs.h <<_ACEOF
12482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12483_ACEOF
12484
12485fi
12486
12487done
12488
12489
12490for ac_header in machine/reg.h
12491do
12492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12493if eval "test \"\${$as_ac_Header+set}\" = set"; then
12494 echo "$as_me:$LINENO: checking for $ac_header" >&5
12495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12496if eval "test \"\${$as_ac_Header+set}\" = set"; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498fi
12499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12501else
12502 # Is the header compilable?
12503echo "$as_me:$LINENO: checking $ac_header usability" >&5
12504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12505cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
12511$ac_includes_default
12512#include <$ac_header>
12513_ACEOF
12514rm -f conftest.$ac_objext
12515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_header_compiler=yes
12537else
12538 echo "$as_me: failed program was:" >&5
12539sed 's/^/| /' conftest.$ac_ext >&5
12540
12541ac_header_compiler=no
12542fi
12543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12545echo "${ECHO_T}$ac_header_compiler" >&6
12546
12547# Is the header present?
12548echo "$as_me:$LINENO: checking $ac_header presence" >&5
12549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12550cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
12556#include <$ac_header>
12557_ACEOF
12558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null; then
12566 if test -s conftest.err; then
12567 ac_cpp_err=$ac_c_preproc_warn_flag
12568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12569 else
12570 ac_cpp_err=
12571 fi
12572else
12573 ac_cpp_err=yes
12574fi
12575if test -z "$ac_cpp_err"; then
12576 ac_header_preproc=yes
12577else
12578 echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_header_preproc=no
12582fi
12583rm -f conftest.err conftest.$ac_ext
12584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12585echo "${ECHO_T}$ac_header_preproc" >&6
12586
12587# So? What about this header?
12588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12589 yes:no: )
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12593echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12594 ac_header_preproc=yes
12595 ;;
12596 no:yes:* )
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12602echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12604echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12608echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12609 (
12610 cat <<\_ASBOX
12611## ------------------------------------------ ##
12612## Report this to the AC_PACKAGE_NAME lists. ##
12613## ------------------------------------------ ##
12614_ASBOX
12615 ) |
12616 sed "s/^/$as_me: WARNING: /" >&2
12617 ;;
12618esac
12619echo "$as_me:$LINENO: checking for $ac_header" >&5
12620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12621if eval "test \"\${$as_ac_Header+set}\" = set"; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623else
12624 eval "$as_ac_Header=\$ac_header_preproc"
12625fi
12626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12628
12629fi
12630if test `eval echo '${'$as_ac_Header'}'` = yes; then
12631 cat >>confdefs.h <<_ACEOF
12632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12633_ACEOF
12634
12635fi
12636
12637done
12638
12639
12640
12641for ac_header in poll.h sys/poll.h
12642do
12643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12644if eval "test \"\${$as_ac_Header+set}\" = set"; then
12645 echo "$as_me:$LINENO: checking for $ac_header" >&5
12646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12647if eval "test \"\${$as_ac_Header+set}\" = set"; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649fi
12650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12652else
12653 # Is the header compilable?
12654echo "$as_me:$LINENO: checking $ac_header usability" >&5
12655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12656cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
12662$ac_includes_default
12663#include <$ac_header>
12664_ACEOF
12665rm -f conftest.$ac_objext
12666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_header_compiler=yes
12688else
12689 echo "$as_me: failed program was:" >&5
12690sed 's/^/| /' conftest.$ac_ext >&5
12691
12692ac_header_compiler=no
12693fi
12694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12696echo "${ECHO_T}$ac_header_compiler" >&6
12697
12698# Is the header present?
12699echo "$as_me:$LINENO: checking $ac_header presence" >&5
12700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12701cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
12707#include <$ac_header>
12708_ACEOF
12709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null; then
12717 if test -s conftest.err; then
12718 ac_cpp_err=$ac_c_preproc_warn_flag
12719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12720 else
12721 ac_cpp_err=
12722 fi
12723else
12724 ac_cpp_err=yes
12725fi
12726if test -z "$ac_cpp_err"; then
12727 ac_header_preproc=yes
12728else
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 ac_header_preproc=no
12733fi
12734rm -f conftest.err conftest.$ac_ext
12735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12736echo "${ECHO_T}$ac_header_preproc" >&6
12737
12738# So? What about this header?
12739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12740 yes:no: )
12741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12745 ac_header_preproc=yes
12746 ;;
12747 no:yes:* )
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12760 (
12761 cat <<\_ASBOX
12762## ------------------------------------------ ##
12763## Report this to the AC_PACKAGE_NAME lists. ##
12764## ------------------------------------------ ##
12765_ASBOX
12766 ) |
12767 sed "s/^/$as_me: WARNING: /" >&2
12768 ;;
12769esac
12770echo "$as_me:$LINENO: checking for $ac_header" >&5
12771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12772if eval "test \"\${$as_ac_Header+set}\" = set"; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774else
12775 eval "$as_ac_Header=\$ac_header_preproc"
12776fi
12777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12779
12780fi
12781if test `eval echo '${'$as_ac_Header'}'` = yes; then
12782 cat >>confdefs.h <<_ACEOF
12783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12784_ACEOF
12785
12786fi
12787
12788done
12789
12790
12791
12792
12793for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12794do
12795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12796if eval "test \"\${$as_ac_Header+set}\" = set"; then
12797 echo "$as_me:$LINENO: checking for $ac_header" >&5
12798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12799if eval "test \"\${$as_ac_Header+set}\" = set"; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801fi
12802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12804else
12805 # Is the header compilable?
12806echo "$as_me:$LINENO: checking $ac_header usability" >&5
12807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814$ac_includes_default
12815#include <$ac_header>
12816_ACEOF
12817rm -f conftest.$ac_objext
12818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag"
12827 || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest.$ac_objext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_header_compiler=yes
12840else
12841 echo "$as_me: failed program was:" >&5
12842sed 's/^/| /' conftest.$ac_ext >&5
12843
12844ac_header_compiler=no
12845fi
12846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12848echo "${ECHO_T}$ac_header_compiler" >&6
12849
12850# Is the header present?
12851echo "$as_me:$LINENO: checking $ac_header presence" >&5
12852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12853cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859#include <$ac_header>
12860_ACEOF
12861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev/null; then
12869 if test -s conftest.err; then
12870 ac_cpp_err=$ac_c_preproc_warn_flag
12871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12872 else
12873 ac_cpp_err=
12874 fi
12875else
12876 ac_cpp_err=yes
12877fi
12878if test -z "$ac_cpp_err"; then
12879 ac_header_preproc=yes
12880else
12881 echo "$as_me: failed program was:" >&5
12882sed 's/^/| /' conftest.$ac_ext >&5
12883
12884 ac_header_preproc=no
12885fi
12886rm -f conftest.err conftest.$ac_ext
12887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12888echo "${ECHO_T}$ac_header_preproc" >&6
12889
12890# So? What about this header?
12891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12892 yes:no: )
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12897 ac_header_preproc=yes
12898 ;;
12899 no:yes:* )
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12912 (
12913 cat <<\_ASBOX
12914## ------------------------------------------ ##
12915## Report this to the AC_PACKAGE_NAME lists. ##
12916## ------------------------------------------ ##
12917_ASBOX
12918 ) |
12919 sed "s/^/$as_me: WARNING: /" >&2
12920 ;;
12921esac
12922echo "$as_me:$LINENO: checking for $ac_header" >&5
12923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12924if eval "test \"\${$as_ac_Header+set}\" = set"; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926else
12927 eval "$as_ac_Header=\$ac_header_preproc"
12928fi
12929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12931
12932fi
12933if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936_ACEOF
12937
12938fi
12939
12940done
12941
12942
12943for ac_header in signal.h
12944do
12945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12946if eval "test \"\${$as_ac_Header+set}\" = set"; then
12947 echo "$as_me:$LINENO: checking for $ac_header" >&5
12948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12949if eval "test \"\${$as_ac_Header+set}\" = set"; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12951fi
12952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12954else
12955 # Is the header compilable?
12956echo "$as_me:$LINENO: checking $ac_header usability" >&5
12957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12958cat >conftest.$ac_ext <<_ACEOF
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
12963/* end confdefs.h. */
12964$ac_includes_default
12965#include <$ac_header>
12966_ACEOF
12967rm -f conftest.$ac_objext
12968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag"
12977 || test ! -s conftest.err'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_header_compiler=yes
12990else
12991 echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994ac_header_compiler=no
12995fi
12996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12998echo "${ECHO_T}$ac_header_compiler" >&6
12999
13000# Is the header present?
13001echo "$as_me:$LINENO: checking $ac_header presence" >&5
13002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13003cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009#include <$ac_header>
13010_ACEOF
13011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } >/dev/null; then
13019 if test -s conftest.err; then
13020 ac_cpp_err=$ac_c_preproc_warn_flag
13021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13022 else
13023 ac_cpp_err=
13024 fi
13025else
13026 ac_cpp_err=yes
13027fi
13028if test -z "$ac_cpp_err"; then
13029 ac_header_preproc=yes
13030else
13031 echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 ac_header_preproc=no
13035fi
13036rm -f conftest.err conftest.$ac_ext
13037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038echo "${ECHO_T}$ac_header_preproc" >&6
13039
13040# So? What about this header?
13041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13042 yes:no: )
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc=yes
13048 ;;
13049 no:yes:* )
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13062 (
13063 cat <<\_ASBOX
13064## ------------------------------------------ ##
13065## Report this to the AC_PACKAGE_NAME lists. ##
13066## ------------------------------------------ ##
13067_ASBOX
13068 ) |
13069 sed "s/^/$as_me: WARNING: /" >&2
13070 ;;
13071esac
13072echo "$as_me:$LINENO: checking for $ac_header" >&5
13073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13074if eval "test \"\${$as_ac_Header+set}\" = set"; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076else
13077 eval "$as_ac_Header=\$ac_header_preproc"
13078fi
13079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13081
13082fi
13083if test `eval echo '${'$as_ac_Header'}'` = yes; then
13084 cat >>confdefs.h <<_ACEOF
13085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086_ACEOF
13087
13088fi
13089
13090done
13091
13092
13093for ac_header in stddef.h
13094do
13095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13096if eval "test \"\${$as_ac_Header+set}\" = set"; then
13097 echo "$as_me:$LINENO: checking for $ac_header" >&5
13098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13099if eval "test \"\${$as_ac_Header+set}\" = set"; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101fi
13102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13104else
13105 # Is the header compilable?
13106echo "$as_me:$LINENO: checking $ac_header usability" >&5
13107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13108cat >conftest.$ac_ext <<_ACEOF
13109/* confdefs.h. */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h. */
13114$ac_includes_default
13115#include <$ac_header>
13116_ACEOF
13117rm -f conftest.$ac_objext
13118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119 (eval $ac_compile) 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -z "$ac_c_werror_flag"
13127 || test ! -s conftest.err'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest.$ac_objext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_header_compiler=yes
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144ac_header_compiler=no
13145fi
13146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13148echo "${ECHO_T}$ac_header_compiler" >&6
13149
13150# Is the header present?
13151echo "$as_me:$LINENO: checking $ac_header presence" >&5
13152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13153cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
13159#include <$ac_header>
13160_ACEOF
13161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13163 ac_status=$?
13164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } >/dev/null; then
13169 if test -s conftest.err; then
13170 ac_cpp_err=$ac_c_preproc_warn_flag
13171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13172 else
13173 ac_cpp_err=
13174 fi
13175else
13176 ac_cpp_err=yes
13177fi
13178if test -z "$ac_cpp_err"; then
13179 ac_header_preproc=yes
13180else
13181 echo "$as_me: failed program was:" >&5
13182sed 's/^/| /' conftest.$ac_ext >&5
13183
13184 ac_header_preproc=no
13185fi
13186rm -f conftest.err conftest.$ac_ext
13187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13188echo "${ECHO_T}$ac_header_preproc" >&6
13189
13190# So? What about this header?
13191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13192 yes:no: )
13193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13197 ac_header_preproc=yes
13198 ;;
13199 no:yes:* )
13200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13212 (
13213 cat <<\_ASBOX
13214## ------------------------------------------ ##
13215## Report this to the AC_PACKAGE_NAME lists. ##
13216## ------------------------------------------ ##
13217_ASBOX
13218 ) |
13219 sed "s/^/$as_me: WARNING: /" >&2
13220 ;;
13221esac
13222echo "$as_me:$LINENO: checking for $ac_header" >&5
13223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13224if eval "test \"\${$as_ac_Header+set}\" = set"; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13226else
13227 eval "$as_ac_Header=\$ac_header_preproc"
13228fi
13229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13231
13232fi
13233if test `eval echo '${'$as_ac_Header'}'` = yes; then
13234 cat >>confdefs.h <<_ACEOF
13235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13236_ACEOF
13237
13238fi
13239
13240done
13241
13242
13243for ac_header in stdlib.h
13244do
13245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13246if eval "test \"\${$as_ac_Header+set}\" = set"; then
13247 echo "$as_me:$LINENO: checking for $ac_header" >&5
13248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13249if eval "test \"\${$as_ac_Header+set}\" = set"; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251fi
13252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13254else
13255 # Is the header compilable?
13256echo "$as_me:$LINENO: checking $ac_header usability" >&5
13257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13258cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h. */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h. */
13264$ac_includes_default
13265#include <$ac_header>
13266_ACEOF
13267rm -f conftest.$ac_objext
13268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag"
13277 || test ! -s conftest.err'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest.$ac_objext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_header_compiler=yes
13290else
13291 echo "$as_me: failed program was:" >&5
13292sed 's/^/| /' conftest.$ac_ext >&5
13293
13294ac_header_compiler=no
13295fi
13296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13298echo "${ECHO_T}$ac_header_compiler" >&6
13299
13300# Is the header present?
13301echo "$as_me:$LINENO: checking $ac_header presence" >&5
13302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13303cat >conftest.$ac_ext <<_ACEOF
13304/* confdefs.h. */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h. */
13309#include <$ac_header>
13310_ACEOF
13311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } >/dev/null; then
13319 if test -s conftest.err; then
13320 ac_cpp_err=$ac_c_preproc_warn_flag
13321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13322 else
13323 ac_cpp_err=
13324 fi
13325else
13326 ac_cpp_err=yes
13327fi
13328if test -z "$ac_cpp_err"; then
13329 ac_header_preproc=yes
13330else
13331 echo "$as_me: failed program was:" >&5
13332sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 ac_header_preproc=no
13335fi
13336rm -f conftest.err conftest.$ac_ext
13337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13338echo "${ECHO_T}$ac_header_preproc" >&6
13339
13340# So? What about this header?
13341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13342 yes:no: )
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13347 ac_header_preproc=yes
13348 ;;
13349 no:yes:* )
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13362 (
13363 cat <<\_ASBOX
13364## ------------------------------------------ ##
13365## Report this to the AC_PACKAGE_NAME lists. ##
13366## ------------------------------------------ ##
13367_ASBOX
13368 ) |
13369 sed "s/^/$as_me: WARNING: /" >&2
13370 ;;
13371esac
13372echo "$as_me:$LINENO: checking for $ac_header" >&5
13373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13374if eval "test \"\${$as_ac_Header+set}\" = set"; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 eval "$as_ac_Header=\$ac_header_preproc"
13378fi
13379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13381
13382fi
13383if test `eval echo '${'$as_ac_Header'}'` = yes; then
13384 cat >>confdefs.h <<_ACEOF
13385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13386_ACEOF
13387
13388fi
13389
13390done
13391
13392
13393
13394
13395for ac_header in string.h memory.h strings.h
13396do
13397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13398if eval "test \"\${$as_ac_Header+set}\" = set"; then
13399 echo "$as_me:$LINENO: checking for $ac_header" >&5
13400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13401if eval "test \"\${$as_ac_Header+set}\" = set"; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403fi
13404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13406else
13407 # Is the header compilable?
13408echo "$as_me:$LINENO: checking $ac_header usability" >&5
13409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13410cat >conftest.$ac_ext <<_ACEOF
13411/* confdefs.h. */
13412_ACEOF
13413cat confdefs.h >>conftest.$ac_ext
13414cat >>conftest.$ac_ext <<_ACEOF
13415/* end confdefs.h. */
13416$ac_includes_default
13417#include <$ac_header>
13418_ACEOF
13419rm -f conftest.$ac_objext
13420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13421 (eval $ac_compile) 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_c_werror_flag"
13429 || test ! -s conftest.err'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_header_compiler=yes
13442else
13443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
13446ac_header_compiler=no
13447fi
13448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13450echo "${ECHO_T}$ac_header_compiler" >&6
13451
13452# Is the header present?
13453echo "$as_me:$LINENO: checking $ac_header presence" >&5
13454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13455cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461#include <$ac_header>
13462_ACEOF
13463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } >/dev/null; then
13471 if test -s conftest.err; then
13472 ac_cpp_err=$ac_c_preproc_warn_flag
13473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13474 else
13475 ac_cpp_err=
13476 fi
13477else
13478 ac_cpp_err=yes
13479fi
13480if test -z "$ac_cpp_err"; then
13481 ac_header_preproc=yes
13482else
13483 echo "$as_me: failed program was:" >&5
13484sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 ac_header_preproc=no
13487fi
13488rm -f conftest.err conftest.$ac_ext
13489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13490echo "${ECHO_T}$ac_header_preproc" >&6
13491
13492# So? What about this header?
13493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13494 yes:no: )
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13499 ac_header_preproc=yes
13500 ;;
13501 no:yes:* )
13502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13514 (
13515 cat <<\_ASBOX
13516## ------------------------------------------ ##
13517## Report this to the AC_PACKAGE_NAME lists. ##
13518## ------------------------------------------ ##
13519_ASBOX
13520 ) |
13521 sed "s/^/$as_me: WARNING: /" >&2
13522 ;;
13523esac
13524echo "$as_me:$LINENO: checking for $ac_header" >&5
13525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13526if eval "test \"\${$as_ac_Header+set}\" = set"; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528else
13529 eval "$as_ac_Header=\$ac_header_preproc"
13530fi
13531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13533
13534fi
13535if test `eval echo '${'$as_ac_Header'}'` = yes; then
13536 cat >>confdefs.h <<_ACEOF
13537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13538_ACEOF
13539
13540fi
13541
13542done
13543
13544
13545for ac_header in sys/fault.h
13546do
13547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13548if eval "test \"\${$as_ac_Header+set}\" = set"; then
13549 echo "$as_me:$LINENO: checking for $ac_header" >&5
13550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13551if eval "test \"\${$as_ac_Header+set}\" = set"; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553fi
13554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13556else
13557 # Is the header compilable?
13558echo "$as_me:$LINENO: checking $ac_header usability" >&5
13559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13560cat >conftest.$ac_ext <<_ACEOF
13561/* confdefs.h. */
13562_ACEOF
13563cat confdefs.h >>conftest.$ac_ext
13564cat >>conftest.$ac_ext <<_ACEOF
13565/* end confdefs.h. */
13566$ac_includes_default
13567#include <$ac_header>
13568_ACEOF
13569rm -f conftest.$ac_objext
13570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571 (eval $ac_compile) 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -z "$ac_c_werror_flag"
13579 || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13591 ac_header_compiler=yes
13592else
13593 echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
13595
13596ac_header_compiler=no
13597fi
13598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13599echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13600echo "${ECHO_T}$ac_header_compiler" >&6
13601
13602# Is the header present?
13603echo "$as_me:$LINENO: checking $ac_header presence" >&5
13604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13605cat >conftest.$ac_ext <<_ACEOF
13606/* confdefs.h. */
13607_ACEOF
13608cat confdefs.h >>conftest.$ac_ext
13609cat >>conftest.$ac_ext <<_ACEOF
13610/* end confdefs.h. */
13611#include <$ac_header>
13612_ACEOF
13613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } >/dev/null; then
13621 if test -s conftest.err; then
13622 ac_cpp_err=$ac_c_preproc_warn_flag
13623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13624 else
13625 ac_cpp_err=
13626 fi
13627else
13628 ac_cpp_err=yes
13629fi
13630if test -z "$ac_cpp_err"; then
13631 ac_header_preproc=yes
13632else
13633 echo "$as_me: failed program was:" >&5
13634sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 ac_header_preproc=no
13637fi
13638rm -f conftest.err conftest.$ac_ext
13639echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13640echo "${ECHO_T}$ac_header_preproc" >&6
13641
13642# So? What about this header?
13643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13644 yes:no: )
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13649 ac_header_preproc=yes
13650 ;;
13651 no:yes:* )
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13659echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13664 (
13665 cat <<\_ASBOX
13666## ------------------------------------------ ##
13667## Report this to the AC_PACKAGE_NAME lists. ##
13668## ------------------------------------------ ##
13669_ASBOX
13670 ) |
13671 sed "s/^/$as_me: WARNING: /" >&2
13672 ;;
13673esac
13674echo "$as_me:$LINENO: checking for $ac_header" >&5
13675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13676if eval "test \"\${$as_ac_Header+set}\" = set"; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678else
13679 eval "$as_ac_Header=\$ac_header_preproc"
13680fi
13681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13683
13684fi
13685if test `eval echo '${'$as_ac_Header'}'` = yes; then
13686 cat >>confdefs.h <<_ACEOF
13687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13688_ACEOF
13689
13690fi
13691
13692done
13693
13694
13695for ac_header in sys/file.h
13696do
13697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698if eval "test \"\${$as_ac_Header+set}\" = set"; then
13699 echo "$as_me:$LINENO: checking for $ac_header" >&5
13700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13701if eval "test \"\${$as_ac_Header+set}\" = set"; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13703fi
13704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13706else
13707 # Is the header compilable?
13708echo "$as_me:$LINENO: checking $ac_header usability" >&5
13709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13710cat >conftest.$ac_ext <<_ACEOF
13711/* confdefs.h. */
13712_ACEOF
13713cat confdefs.h >>conftest.$ac_ext
13714cat >>conftest.$ac_ext <<_ACEOF
13715/* end confdefs.h. */
13716$ac_includes_default
13717#include <$ac_header>
13718_ACEOF
13719rm -f conftest.$ac_objext
13720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721 (eval $ac_compile) 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_header_compiler=yes
13742else
13743 echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746ac_header_compiler=no
13747fi
13748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750echo "${ECHO_T}$ac_header_compiler" >&6
13751
13752# Is the header present?
13753echo "$as_me:$LINENO: checking $ac_header presence" >&5
13754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13755cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761#include <$ac_header>
13762_ACEOF
13763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null; then
13771 if test -s conftest.err; then
13772 ac_cpp_err=$ac_c_preproc_warn_flag
13773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13774 else
13775 ac_cpp_err=
13776 fi
13777else
13778 ac_cpp_err=yes
13779fi
13780if test -z "$ac_cpp_err"; then
13781 ac_header_preproc=yes
13782else
13783 echo "$as_me: failed program was:" >&5
13784sed 's/^/| /' conftest.$ac_ext >&5
13785
13786 ac_header_preproc=no
13787fi
13788rm -f conftest.err conftest.$ac_ext
13789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13790echo "${ECHO_T}$ac_header_preproc" >&6
13791
13792# So? What about this header?
13793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13794 yes:no: )
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13799 ac_header_preproc=yes
13800 ;;
13801 no:yes:* )
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13814 (
13815 cat <<\_ASBOX
13816## ------------------------------------------ ##
13817## Report this to the AC_PACKAGE_NAME lists. ##
13818## ------------------------------------------ ##
13819_ASBOX
13820 ) |
13821 sed "s/^/$as_me: WARNING: /" >&2
13822 ;;
13823esac
13824echo "$as_me:$LINENO: checking for $ac_header" >&5
13825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13826if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828else
13829 eval "$as_ac_Header=\$ac_header_preproc"
13830fi
13831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13833
13834fi
13835if test `eval echo '${'$as_ac_Header'}'` = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13838_ACEOF
13839
13840fi
13841
13842done
13843
13844
13845for ac_header in sys/filio.h
13846do
13847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13848if eval "test \"\${$as_ac_Header+set}\" = set"; then
13849 echo "$as_me:$LINENO: checking for $ac_header" >&5
13850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13851if eval "test \"\${$as_ac_Header+set}\" = set"; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853fi
13854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13856else
13857 # Is the header compilable?
13858echo "$as_me:$LINENO: checking $ac_header usability" >&5
13859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13860cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
13866$ac_includes_default
13867#include <$ac_header>
13868_ACEOF
13869rm -f conftest.$ac_objext
13870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13871 (eval $ac_compile) 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_c_werror_flag"
13879 || test ! -s conftest.err'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest.$ac_objext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 ac_header_compiler=yes
13892else
13893 echo "$as_me: failed program was:" >&5
13894sed 's/^/| /' conftest.$ac_ext >&5
13895
13896ac_header_compiler=no
13897fi
13898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13900echo "${ECHO_T}$ac_header_compiler" >&6
13901
13902# Is the header present?
13903echo "$as_me:$LINENO: checking $ac_header presence" >&5
13904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13905cat >conftest.$ac_ext <<_ACEOF
13906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
13911#include <$ac_header>
13912_ACEOF
13913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13915 ac_status=$?
13916 grep -v '^ *+' conftest.er1 >conftest.err
13917 rm -f conftest.er1
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } >/dev/null; then
13921 if test -s conftest.err; then
13922 ac_cpp_err=$ac_c_preproc_warn_flag
13923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13924 else
13925 ac_cpp_err=
13926 fi
13927else
13928 ac_cpp_err=yes
13929fi
13930if test -z "$ac_cpp_err"; then
13931 ac_header_preproc=yes
13932else
13933 echo "$as_me: failed program was:" >&5
13934sed 's/^/| /' conftest.$ac_ext >&5
13935
13936 ac_header_preproc=no
13937fi
13938rm -f conftest.err conftest.$ac_ext
13939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13940echo "${ECHO_T}$ac_header_preproc" >&6
13941
13942# So? What about this header?
13943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13944 yes:no: )
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13949 ac_header_preproc=yes
13950 ;;
13951 no:yes:* )
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13964 (
13965 cat <<\_ASBOX
13966## ------------------------------------------ ##
13967## Report this to the AC_PACKAGE_NAME lists. ##
13968## ------------------------------------------ ##
13969_ASBOX
13970 ) |
13971 sed "s/^/$as_me: WARNING: /" >&2
13972 ;;
13973esac
13974echo "$as_me:$LINENO: checking for $ac_header" >&5
13975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13976if eval "test \"\${$as_ac_Header+set}\" = set"; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978else
13979 eval "$as_ac_Header=\$ac_header_preproc"
13980fi
13981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13983
13984fi
13985if test `eval echo '${'$as_ac_Header'}'` = yes; then
13986 cat >>confdefs.h <<_ACEOF
13987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13988_ACEOF
13989
13990fi
13991
13992done
13993
13994
13995for ac_header in sys/ioctl.h
13996do
13997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999 echo "$as_me:$LINENO: checking for $ac_header" >&5
14000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14001if eval "test \"\${$as_ac_Header+set}\" = set"; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003fi
14004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14006else
14007 # Is the header compilable?
14008echo "$as_me:$LINENO: checking $ac_header usability" >&5
14009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14010cat >conftest.$ac_ext <<_ACEOF
14011/* confdefs.h. */
14012_ACEOF
14013cat confdefs.h >>conftest.$ac_ext
14014cat >>conftest.$ac_ext <<_ACEOF
14015/* end confdefs.h. */
14016$ac_includes_default
14017#include <$ac_header>
14018_ACEOF
14019rm -f conftest.$ac_objext
14020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 (eval $ac_compile) 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_header_compiler=yes
14042else
14043 echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046ac_header_compiler=no
14047fi
14048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050echo "${ECHO_T}$ac_header_compiler" >&6
14051
14052# Is the header present?
14053echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14055cat >conftest.$ac_ext <<_ACEOF
14056/* confdefs.h. */
14057_ACEOF
14058cat confdefs.h >>conftest.$ac_ext
14059cat >>conftest.$ac_ext <<_ACEOF
14060/* end confdefs.h. */
14061#include <$ac_header>
14062_ACEOF
14063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14065 ac_status=$?
14066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null; then
14071 if test -s conftest.err; then
14072 ac_cpp_err=$ac_c_preproc_warn_flag
14073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14074 else
14075 ac_cpp_err=
14076 fi
14077else
14078 ac_cpp_err=yes
14079fi
14080if test -z "$ac_cpp_err"; then
14081 ac_header_preproc=yes
14082else
14083 echo "$as_me: failed program was:" >&5
14084sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_header_preproc=no
14087fi
14088rm -f conftest.err conftest.$ac_ext
14089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090echo "${ECHO_T}$ac_header_preproc" >&6
14091
14092# So? What about this header?
14093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14094 yes:no: )
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14099 ac_header_preproc=yes
14100 ;;
14101 no:yes:* )
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14114 (
14115 cat <<\_ASBOX
14116## ------------------------------------------ ##
14117## Report this to the AC_PACKAGE_NAME lists. ##
14118## ------------------------------------------ ##
14119_ASBOX
14120 ) |
14121 sed "s/^/$as_me: WARNING: /" >&2
14122 ;;
14123esac
14124echo "$as_me:$LINENO: checking for $ac_header" >&5
14125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128else
14129 eval "$as_ac_Header=\$ac_header_preproc"
14130fi
14131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14133
14134fi
14135if test `eval echo '${'$as_ac_Header'}'` = yes; then
14136 cat >>confdefs.h <<_ACEOF
14137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14138_ACEOF
14139
14140fi
14141
14142done
14143
14144
14145for ac_header in sys/param.h
14146do
14147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14148if eval "test \"\${$as_ac_Header+set}\" = set"; then
14149 echo "$as_me:$LINENO: checking for $ac_header" >&5
14150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14151if eval "test \"\${$as_ac_Header+set}\" = set"; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14153fi
14154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14156else
14157 # Is the header compilable?
14158echo "$as_me:$LINENO: checking $ac_header usability" >&5
14159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14160cat >conftest.$ac_ext <<_ACEOF
14161/* confdefs.h. */
14162_ACEOF
14163cat confdefs.h >>conftest.$ac_ext
14164cat >>conftest.$ac_ext <<_ACEOF
14165/* end confdefs.h. */
14166$ac_includes_default
14167#include <$ac_header>
14168_ACEOF
14169rm -f conftest.$ac_objext
14170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_c_werror_flag"
14179 || test ! -s conftest.err'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 ac_header_compiler=yes
14192else
14193 echo "$as_me: failed program was:" >&5
14194sed 's/^/| /' conftest.$ac_ext >&5
14195
14196ac_header_compiler=no
14197fi
14198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14200echo "${ECHO_T}$ac_header_compiler" >&6
14201
14202# Is the header present?
14203echo "$as_me:$LINENO: checking $ac_header presence" >&5
14204echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14205cat >conftest.$ac_ext <<_ACEOF
14206/* confdefs.h. */
14207_ACEOF
14208cat confdefs.h >>conftest.$ac_ext
14209cat >>conftest.$ac_ext <<_ACEOF
14210/* end confdefs.h. */
14211#include <$ac_header>
14212_ACEOF
14213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } >/dev/null; then
14221 if test -s conftest.err; then
14222 ac_cpp_err=$ac_c_preproc_warn_flag
14223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14224 else
14225 ac_cpp_err=
14226 fi
14227else
14228 ac_cpp_err=yes
14229fi
14230if test -z "$ac_cpp_err"; then
14231 ac_header_preproc=yes
14232else
14233 echo "$as_me: failed program was:" >&5
14234sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 ac_header_preproc=no
14237fi
14238rm -f conftest.err conftest.$ac_ext
14239echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14240echo "${ECHO_T}$ac_header_preproc" >&6
14241
14242# So? What about this header?
14243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14244 yes:no: )
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14249 ac_header_preproc=yes
14250 ;;
14251 no:yes:* )
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14264 (
14265 cat <<\_ASBOX
14266## ------------------------------------------ ##
14267## Report this to the AC_PACKAGE_NAME lists. ##
14268## ------------------------------------------ ##
14269_ASBOX
14270 ) |
14271 sed "s/^/$as_me: WARNING: /" >&2
14272 ;;
14273esac
14274echo "$as_me:$LINENO: checking for $ac_header" >&5
14275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14276if eval "test \"\${$as_ac_Header+set}\" = set"; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279 eval "$as_ac_Header=\$ac_header_preproc"
14280fi
14281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14283
14284fi
14285if test `eval echo '${'$as_ac_Header'}'` = yes; then
14286 cat >>confdefs.h <<_ACEOF
14287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14288_ACEOF
14289
14290fi
14291
14292done
14293
14294
14295for ac_header in sys/resource.h
14296do
14297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299 echo "$as_me:$LINENO: checking for $ac_header" >&5
14300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14301if eval "test \"\${$as_ac_Header+set}\" = set"; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303fi
14304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306else
14307 # Is the header compilable?
14308echo "$as_me:$LINENO: checking $ac_header usability" >&5
14309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14310cat >conftest.$ac_ext <<_ACEOF
14311/* confdefs.h. */
14312_ACEOF
14313cat confdefs.h >>conftest.$ac_ext
14314cat >>conftest.$ac_ext <<_ACEOF
14315/* end confdefs.h. */
14316$ac_includes_default
14317#include <$ac_header>
14318_ACEOF
14319rm -f conftest.$ac_objext
14320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_header_compiler=yes
14342else
14343 echo "$as_me: failed program was:" >&5
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
14346ac_header_compiler=no
14347fi
14348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14350echo "${ECHO_T}$ac_header_compiler" >&6
14351
14352# Is the header present?
14353echo "$as_me:$LINENO: checking $ac_header presence" >&5
14354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14355cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
14361#include <$ac_header>
14362_ACEOF
14363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } >/dev/null; then
14371 if test -s conftest.err; then
14372 ac_cpp_err=$ac_c_preproc_warn_flag
14373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14374 else
14375 ac_cpp_err=
14376 fi
14377else
14378 ac_cpp_err=yes
14379fi
14380if test -z "$ac_cpp_err"; then
14381 ac_header_preproc=yes
14382else
14383 echo "$as_me: failed program was:" >&5
14384sed 's/^/| /' conftest.$ac_ext >&5
14385
14386 ac_header_preproc=no
14387fi
14388rm -f conftest.err conftest.$ac_ext
14389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14390echo "${ECHO_T}$ac_header_preproc" >&6
14391
14392# So? What about this header?
14393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14394 yes:no: )
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14399 ac_header_preproc=yes
14400 ;;
14401 no:yes:* )
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14414 (
14415 cat <<\_ASBOX
14416## ------------------------------------------ ##
14417## Report this to the AC_PACKAGE_NAME lists. ##
14418## ------------------------------------------ ##
14419_ASBOX
14420 ) |
14421 sed "s/^/$as_me: WARNING: /" >&2
14422 ;;
14423esac
14424echo "$as_me:$LINENO: checking for $ac_header" >&5
14425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14426if eval "test \"\${$as_ac_Header+set}\" = set"; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428else
14429 eval "$as_ac_Header=\$ac_header_preproc"
14430fi
14431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14433
14434fi
14435if test `eval echo '${'$as_ac_Header'}'` = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14438_ACEOF
14439
14440fi
14441
14442done
14443
14444
14445for ac_header in sys/proc.h
14446do
14447as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14448echo "$as_me:$LINENO: checking for $ac_header" >&5
14449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14450if eval "test \"\${$as_ac_Header+set}\" = set"; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14452else
14453 cat >conftest.$ac_ext <<_ACEOF
14454/* confdefs.h. */
14455_ACEOF
14456cat confdefs.h >>conftest.$ac_ext
14457cat >>conftest.$ac_ext <<_ACEOF
14458/* end confdefs.h. */
14459#if HAVE_SYS_PARAM_H
14460# include <sys/param.h>
14461#endif
14462
14463
14464#include <$ac_header>
14465_ACEOF
14466rm -f conftest.$ac_objext
14467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468 (eval $ac_compile) 2>conftest.er1
14469 ac_status=$?
14470 grep -v '^ *+' conftest.er1 >conftest.err
14471 rm -f conftest.er1
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -z "$ac_c_werror_flag"
14476 || test ! -s conftest.err'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; } &&
14482 { ac_try='test -s conftest.$ac_objext'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 eval "$as_ac_Header=yes"
14489else
14490 echo "$as_me: failed program was:" >&5
14491sed 's/^/| /' conftest.$ac_ext >&5
14492
14493eval "$as_ac_Header=no"
14494fi
14495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14496fi
14497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14499if test `eval echo '${'$as_ac_Header'}'` = yes; then
14500 cat >>confdefs.h <<_ACEOF
14501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14502_ACEOF
14503
14504fi
14505
14506done
14507
14508
14509for ac_header in sys/procfs.h
14510do
14511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14512if eval "test \"\${$as_ac_Header+set}\" = set"; then
14513 echo "$as_me:$LINENO: checking for $ac_header" >&5
14514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14515if eval "test \"\${$as_ac_Header+set}\" = set"; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517fi
14518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14520else
14521 # Is the header compilable?
14522echo "$as_me:$LINENO: checking $ac_header usability" >&5
14523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14524cat >conftest.$ac_ext <<_ACEOF
14525/* confdefs.h. */
14526_ACEOF
14527cat confdefs.h >>conftest.$ac_ext
14528cat >>conftest.$ac_ext <<_ACEOF
14529/* end confdefs.h. */
14530$ac_includes_default
14531#include <$ac_header>
14532_ACEOF
14533rm -f conftest.$ac_objext
14534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14535 (eval $ac_compile) 2>conftest.er1
14536 ac_status=$?
14537 grep -v '^ *+' conftest.er1 >conftest.err
14538 rm -f conftest.er1
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -z "$ac_c_werror_flag"
14543 || test ! -s conftest.err'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_header_compiler=yes
14556else
14557 echo "$as_me: failed program was:" >&5
14558sed 's/^/| /' conftest.$ac_ext >&5
14559
14560ac_header_compiler=no
14561fi
14562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14564echo "${ECHO_T}$ac_header_compiler" >&6
14565
14566# Is the header present?
14567echo "$as_me:$LINENO: checking $ac_header presence" >&5
14568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14569cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575#include <$ac_header>
14576_ACEOF
14577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } >/dev/null; then
14585 if test -s conftest.err; then
14586 ac_cpp_err=$ac_c_preproc_warn_flag
14587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14588 else
14589 ac_cpp_err=
14590 fi
14591else
14592 ac_cpp_err=yes
14593fi
14594if test -z "$ac_cpp_err"; then
14595 ac_header_preproc=yes
14596else
14597 echo "$as_me: failed program was:" >&5
14598sed 's/^/| /' conftest.$ac_ext >&5
14599
14600 ac_header_preproc=no
14601fi
14602rm -f conftest.err conftest.$ac_ext
14603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14604echo "${ECHO_T}$ac_header_preproc" >&6
14605
14606# So? What about this header?
14607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14608 yes:no: )
14609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14613 ac_header_preproc=yes
14614 ;;
14615 no:yes:* )
14616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14619echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14623echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14628 (
14629 cat <<\_ASBOX
14630## ------------------------------------------ ##
14631## Report this to the AC_PACKAGE_NAME lists. ##
14632## ------------------------------------------ ##
14633_ASBOX
14634 ) |
14635 sed "s/^/$as_me: WARNING: /" >&2
14636 ;;
14637esac
14638echo "$as_me:$LINENO: checking for $ac_header" >&5
14639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14640if eval "test \"\${$as_ac_Header+set}\" = set"; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642else
14643 eval "$as_ac_Header=\$ac_header_preproc"
14644fi
14645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14647
14648fi
14649if test `eval echo '${'$as_ac_Header'}'` = yes; then
14650 cat >>confdefs.h <<_ACEOF
14651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14652_ACEOF
14653
14654fi
14655
14656done
14657
14658
14659
14660for ac_header in sys/ptrace.h ptrace.h
14661do
14662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14663if eval "test \"\${$as_ac_Header+set}\" = set"; then
14664 echo "$as_me:$LINENO: checking for $ac_header" >&5
14665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14666if eval "test \"\${$as_ac_Header+set}\" = set"; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14668fi
14669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14671else
14672 # Is the header compilable?
14673echo "$as_me:$LINENO: checking $ac_header usability" >&5
14674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14675cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h. */
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
14681$ac_includes_default
14682#include <$ac_header>
14683_ACEOF
14684rm -f conftest.$ac_objext
14685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_header_compiler=yes
14707else
14708 echo "$as_me: failed program was:" >&5
14709sed 's/^/| /' conftest.$ac_ext >&5
14710
14711ac_header_compiler=no
14712fi
14713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14715echo "${ECHO_T}$ac_header_compiler" >&6
14716
14717# Is the header present?
14718echo "$as_me:$LINENO: checking $ac_header presence" >&5
14719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14720cat >conftest.$ac_ext <<_ACEOF
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
14726#include <$ac_header>
14727_ACEOF
14728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev/null; then
14736 if test -s conftest.err; then
14737 ac_cpp_err=$ac_c_preproc_warn_flag
14738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14739 else
14740 ac_cpp_err=
14741 fi
14742else
14743 ac_cpp_err=yes
14744fi
14745if test -z "$ac_cpp_err"; then
14746 ac_header_preproc=yes
14747else
14748 echo "$as_me: failed program was:" >&5
14749sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 ac_header_preproc=no
14752fi
14753rm -f conftest.err conftest.$ac_ext
14754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14755echo "${ECHO_T}$ac_header_preproc" >&6
14756
14757# So? What about this header?
14758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14759 yes:no: )
14760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14764 ac_header_preproc=yes
14765 ;;
14766 no:yes:* )
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14779 (
14780 cat <<\_ASBOX
14781## ------------------------------------------ ##
14782## Report this to the AC_PACKAGE_NAME lists. ##
14783## ------------------------------------------ ##
14784_ASBOX
14785 ) |
14786 sed "s/^/$as_me: WARNING: /" >&2
14787 ;;
14788esac
14789echo "$as_me:$LINENO: checking for $ac_header" >&5
14790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793else
14794 eval "$as_ac_Header=\$ac_header_preproc"
14795fi
14796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14798
14799fi
14800if test `eval echo '${'$as_ac_Header'}'` = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14803_ACEOF
14804
14805fi
14806
14807done
14808
14809
14810
14811for ac_header in sys/reg.h sys/debugreg.h
14812do
14813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14814if eval "test \"\${$as_ac_Header+set}\" = set"; then
14815 echo "$as_me:$LINENO: checking for $ac_header" >&5
14816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14817if eval "test \"\${$as_ac_Header+set}\" = set"; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819fi
14820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14822else
14823 # Is the header compilable?
14824echo "$as_me:$LINENO: checking $ac_header usability" >&5
14825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14826cat >conftest.$ac_ext <<_ACEOF
14827/* confdefs.h. */
14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h. */
14832$ac_includes_default
14833#include <$ac_header>
14834_ACEOF
14835rm -f conftest.$ac_objext
14836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837 (eval $ac_compile) 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -z "$ac_c_werror_flag"
14845 || test ! -s conftest.err'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; } &&
14851 { ac_try='test -s conftest.$ac_objext'
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; }; then
14857 ac_header_compiler=yes
14858else
14859 echo "$as_me: failed program was:" >&5
14860sed 's/^/| /' conftest.$ac_ext >&5
14861
14862ac_header_compiler=no
14863fi
14864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14866echo "${ECHO_T}$ac_header_compiler" >&6
14867
14868# Is the header present?
14869echo "$as_me:$LINENO: checking $ac_header presence" >&5
14870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14871cat >conftest.$ac_ext <<_ACEOF
14872/* confdefs.h. */
14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
14876/* end confdefs.h. */
14877#include <$ac_header>
14878_ACEOF
14879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14881 ac_status=$?
14882 grep -v '^ *+' conftest.er1 >conftest.err
14883 rm -f conftest.er1
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } >/dev/null; then
14887 if test -s conftest.err; then
14888 ac_cpp_err=$ac_c_preproc_warn_flag
14889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14890 else
14891 ac_cpp_err=
14892 fi
14893else
14894 ac_cpp_err=yes
14895fi
14896if test -z "$ac_cpp_err"; then
14897 ac_header_preproc=yes
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 ac_header_preproc=no
14903fi
14904rm -f conftest.err conftest.$ac_ext
14905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14906echo "${ECHO_T}$ac_header_preproc" >&6
14907
14908# So? What about this header?
14909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14910 yes:no: )
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14915 ac_header_preproc=yes
14916 ;;
14917 no:yes:* )
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14930 (
14931 cat <<\_ASBOX
14932## ------------------------------------------ ##
14933## Report this to the AC_PACKAGE_NAME lists. ##
14934## ------------------------------------------ ##
14935_ASBOX
14936 ) |
14937 sed "s/^/$as_me: WARNING: /" >&2
14938 ;;
14939esac
14940echo "$as_me:$LINENO: checking for $ac_header" >&5
14941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14942if eval "test \"\${$as_ac_Header+set}\" = set"; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944else
14945 eval "$as_ac_Header=\$ac_header_preproc"
14946fi
14947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14949
14950fi
14951if test `eval echo '${'$as_ac_Header'}'` = yes; then
14952 cat >>confdefs.h <<_ACEOF
14953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14954_ACEOF
14955
14956fi
14957
14958done
14959
14960
14961for ac_header in sys/select.h
14962do
14963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964if eval "test \"\${$as_ac_Header+set}\" = set"; then
14965 echo "$as_me:$LINENO: checking for $ac_header" >&5
14966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14967if eval "test \"\${$as_ac_Header+set}\" = set"; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969fi
14970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14972else
14973 # Is the header compilable?
14974echo "$as_me:$LINENO: checking $ac_header usability" >&5
14975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14976cat >conftest.$ac_ext <<_ACEOF
14977/* confdefs.h. */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h. */
14982$ac_includes_default
14983#include <$ac_header>
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_header_compiler=yes
15008else
15009 echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
15012ac_header_compiler=no
15013fi
15014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15016echo "${ECHO_T}$ac_header_compiler" >&6
15017
15018# Is the header present?
15019echo "$as_me:$LINENO: checking $ac_header presence" >&5
15020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15021cat >conftest.$ac_ext <<_ACEOF
15022/* confdefs.h. */
15023_ACEOF
15024cat confdefs.h >>conftest.$ac_ext
15025cat >>conftest.$ac_ext <<_ACEOF
15026/* end confdefs.h. */
15027#include <$ac_header>
15028_ACEOF
15029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15031 ac_status=$?
15032 grep -v '^ *+' conftest.er1 >conftest.err
15033 rm -f conftest.er1
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } >/dev/null; then
15037 if test -s conftest.err; then
15038 ac_cpp_err=$ac_c_preproc_warn_flag
15039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15040 else
15041 ac_cpp_err=
15042 fi
15043else
15044 ac_cpp_err=yes
15045fi
15046if test -z "$ac_cpp_err"; then
15047 ac_header_preproc=yes
15048else
15049 echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
15052 ac_header_preproc=no
15053fi
15054rm -f conftest.err conftest.$ac_ext
15055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15056echo "${ECHO_T}$ac_header_preproc" >&6
15057
15058# So? What about this header?
15059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15060 yes:no: )
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15065 ac_header_preproc=yes
15066 ;;
15067 no:yes:* )
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15080 (
15081 cat <<\_ASBOX
15082## ------------------------------------------ ##
15083## Report this to the AC_PACKAGE_NAME lists. ##
15084## ------------------------------------------ ##
15085_ASBOX
15086 ) |
15087 sed "s/^/$as_me: WARNING: /" >&2
15088 ;;
15089esac
15090echo "$as_me:$LINENO: checking for $ac_header" >&5
15091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15092if eval "test \"\${$as_ac_Header+set}\" = set"; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094else
15095 eval "$as_ac_Header=\$ac_header_preproc"
15096fi
15097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15099
15100fi
15101if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15104_ACEOF
15105
15106fi
15107
15108done
15109
15110
15111for ac_header in sys/syscall.h
15112do
15113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15114if eval "test \"\${$as_ac_Header+set}\" = set"; then
15115 echo "$as_me:$LINENO: checking for $ac_header" >&5
15116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15117if eval "test \"\${$as_ac_Header+set}\" = set"; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119fi
15120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15122else
15123 # Is the header compilable?
15124echo "$as_me:$LINENO: checking $ac_header usability" >&5
15125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15126cat >conftest.$ac_ext <<_ACEOF
15127/* confdefs.h. */
15128_ACEOF
15129cat confdefs.h >>conftest.$ac_ext
15130cat >>conftest.$ac_ext <<_ACEOF
15131/* end confdefs.h. */
15132$ac_includes_default
15133#include <$ac_header>
15134_ACEOF
15135rm -f conftest.$ac_objext
15136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag"
15145 || test ! -s conftest.err'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest.$ac_objext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157 ac_header_compiler=yes
15158else
15159 echo "$as_me: failed program was:" >&5
15160sed 's/^/| /' conftest.$ac_ext >&5
15161
15162ac_header_compiler=no
15163fi
15164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15166echo "${ECHO_T}$ac_header_compiler" >&6
15167
15168# Is the header present?
15169echo "$as_me:$LINENO: checking $ac_header presence" >&5
15170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15171cat >conftest.$ac_ext <<_ACEOF
15172/* confdefs.h. */
15173_ACEOF
15174cat confdefs.h >>conftest.$ac_ext
15175cat >>conftest.$ac_ext <<_ACEOF
15176/* end confdefs.h. */
15177#include <$ac_header>
15178_ACEOF
15179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15181 ac_status=$?
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } >/dev/null; then
15187 if test -s conftest.err; then
15188 ac_cpp_err=$ac_c_preproc_warn_flag
15189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15190 else
15191 ac_cpp_err=
15192 fi
15193else
15194 ac_cpp_err=yes
15195fi
15196if test -z "$ac_cpp_err"; then
15197 ac_header_preproc=yes
15198else
15199 echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
15201
15202 ac_header_preproc=no
15203fi
15204rm -f conftest.err conftest.$ac_ext
15205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15206echo "${ECHO_T}$ac_header_preproc" >&6
15207
15208# So? What about this header?
15209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15210 yes:no: )
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15215 ac_header_preproc=yes
15216 ;;
15217 no:yes:* )
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15230 (
15231 cat <<\_ASBOX
15232## ------------------------------------------ ##
15233## Report this to the AC_PACKAGE_NAME lists. ##
15234## ------------------------------------------ ##
15235_ASBOX
15236 ) |
15237 sed "s/^/$as_me: WARNING: /" >&2
15238 ;;
15239esac
15240echo "$as_me:$LINENO: checking for $ac_header" >&5
15241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15242if eval "test \"\${$as_ac_Header+set}\" = set"; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244else
15245 eval "$as_ac_Header=\$ac_header_preproc"
15246fi
15247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15249
15250fi
15251if test `eval echo '${'$as_ac_Header'}'` = yes; then
15252 cat >>confdefs.h <<_ACEOF
15253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15254_ACEOF
15255
15256fi
15257
15258done
15259
15260
15261for ac_header in sys/types.h
15262do
15263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15264if eval "test \"\${$as_ac_Header+set}\" = set"; then
15265 echo "$as_me:$LINENO: checking for $ac_header" >&5
15266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15267if eval "test \"\${$as_ac_Header+set}\" = set"; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269fi
15270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15272else
15273 # Is the header compilable?
15274echo "$as_me:$LINENO: checking $ac_header usability" >&5
15275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15276cat >conftest.$ac_ext <<_ACEOF
15277/* confdefs.h. */
15278_ACEOF
15279cat confdefs.h >>conftest.$ac_ext
15280cat >>conftest.$ac_ext <<_ACEOF
15281/* end confdefs.h. */
15282$ac_includes_default
15283#include <$ac_header>
15284_ACEOF
15285rm -f conftest.$ac_objext
15286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag"
15295 || test ! -s conftest.err'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest.$ac_objext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_header_compiler=yes
15308else
15309 echo "$as_me: failed program was:" >&5
15310sed 's/^/| /' conftest.$ac_ext >&5
15311
15312ac_header_compiler=no
15313fi
15314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15316echo "${ECHO_T}$ac_header_compiler" >&6
15317
15318# Is the header present?
15319echo "$as_me:$LINENO: checking $ac_header presence" >&5
15320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15321cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327#include <$ac_header>
15328_ACEOF
15329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } >/dev/null; then
15337 if test -s conftest.err; then
15338 ac_cpp_err=$ac_c_preproc_warn_flag
15339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15340 else
15341 ac_cpp_err=
15342 fi
15343else
15344 ac_cpp_err=yes
15345fi
15346if test -z "$ac_cpp_err"; then
15347 ac_header_preproc=yes
15348else
15349 echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ac_header_preproc=no
15353fi
15354rm -f conftest.err conftest.$ac_ext
15355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15356echo "${ECHO_T}$ac_header_preproc" >&6
15357
15358# So? What about this header?
15359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15360 yes:no: )
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15365 ac_header_preproc=yes
15366 ;;
15367 no:yes:* )
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15380 (
15381 cat <<\_ASBOX
15382## ------------------------------------------ ##
15383## Report this to the AC_PACKAGE_NAME lists. ##
15384## ------------------------------------------ ##
15385_ASBOX
15386 ) |
15387 sed "s/^/$as_me: WARNING: /" >&2
15388 ;;
15389esac
15390echo "$as_me:$LINENO: checking for $ac_header" >&5
15391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15392if eval "test \"\${$as_ac_Header+set}\" = set"; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394else
15395 eval "$as_ac_Header=\$ac_header_preproc"
15396fi
15397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15399
15400fi
15401if test `eval echo '${'$as_ac_Header'}'` = yes; then
15402 cat >>confdefs.h <<_ACEOF
15403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15404_ACEOF
15405
15406fi
15407
15408done
15409
15410
15411for ac_header in sys/user.h
15412do
15413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15414echo "$as_me:$LINENO: checking for $ac_header" >&5
15415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15416if eval "test \"\${$as_ac_Header+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418else
15419 cat >conftest.$ac_ext <<_ACEOF
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
15425#if HAVE_SYS_PARAM_H
15426# include <sys/param.h>
15427#endif
15428
15429
15430#include <$ac_header>
15431_ACEOF
15432rm -f conftest.$ac_objext
15433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15434 (eval $ac_compile) 2>conftest.er1
15435 ac_status=$?
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_c_werror_flag"
15442 || test ! -s conftest.err'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest.$ac_objext'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15454 eval "$as_ac_Header=yes"
15455else
15456 echo "$as_me: failed program was:" >&5
15457sed 's/^/| /' conftest.$ac_ext >&5
15458
15459eval "$as_ac_Header=no"
15460fi
15461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15462fi
15463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15465if test `eval echo '${'$as_ac_Header'}'` = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15468_ACEOF
15469
15470fi
15471
15472done
15473
15474
15475
15476for ac_header in sys/wait.h wait.h
15477do
15478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15479if eval "test \"\${$as_ac_Header+set}\" = set"; then
15480 echo "$as_me:$LINENO: checking for $ac_header" >&5
15481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15482if eval "test \"\${$as_ac_Header+set}\" = set"; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15484fi
15485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15487else
15488 # Is the header compilable?
15489echo "$as_me:$LINENO: checking $ac_header usability" >&5
15490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15491cat >conftest.$ac_ext <<_ACEOF
15492/* confdefs.h. */
15493_ACEOF
15494cat confdefs.h >>conftest.$ac_ext
15495cat >>conftest.$ac_ext <<_ACEOF
15496/* end confdefs.h. */
15497$ac_includes_default
15498#include <$ac_header>
15499_ACEOF
15500rm -f conftest.$ac_objext
15501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15502 (eval $ac_compile) 2>conftest.er1
15503 ac_status=$?
15504 grep -v '^ *+' conftest.er1 >conftest.err
15505 rm -f conftest.er1
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
15509 { ac_try='test -z "$ac_c_werror_flag"
15510 || test ! -s conftest.err'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_header_compiler=yes
15523else
15524 echo "$as_me: failed program was:" >&5
15525sed 's/^/| /' conftest.$ac_ext >&5
15526
15527ac_header_compiler=no
15528fi
15529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531echo "${ECHO_T}$ac_header_compiler" >&6
15532
15533# Is the header present?
15534echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h. */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h. */
15542#include <$ac_header>
15543_ACEOF
15544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } >/dev/null; then
15552 if test -s conftest.err; then
15553 ac_cpp_err=$ac_c_preproc_warn_flag
15554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15555 else
15556 ac_cpp_err=
15557 fi
15558else
15559 ac_cpp_err=yes
15560fi
15561if test -z "$ac_cpp_err"; then
15562 ac_header_preproc=yes
15563else
15564 echo "$as_me: failed program was:" >&5
15565sed 's/^/| /' conftest.$ac_ext >&5
15566
15567 ac_header_preproc=no
15568fi
15569rm -f conftest.err conftest.$ac_ext
15570echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571echo "${ECHO_T}$ac_header_preproc" >&6
15572
15573# So? What about this header?
15574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15575 yes:no: )
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15579echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15580 ac_header_preproc=yes
15581 ;;
15582 no:yes:* )
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15584echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15586echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15588echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15590echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15594echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15595 (
15596 cat <<\_ASBOX
15597## ------------------------------------------ ##
15598## Report this to the AC_PACKAGE_NAME lists. ##
15599## ------------------------------------------ ##
15600_ASBOX
15601 ) |
15602 sed "s/^/$as_me: WARNING: /" >&2
15603 ;;
15604esac
15605echo "$as_me:$LINENO: checking for $ac_header" >&5
15606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15607if eval "test \"\${$as_ac_Header+set}\" = set"; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609else
15610 eval "$as_ac_Header=\$ac_header_preproc"
15611fi
15612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15614
15615fi
15616if test `eval echo '${'$as_ac_Header'}'` = yes; then
15617 cat >>confdefs.h <<_ACEOF
15618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15619_ACEOF
15620
15621fi
15622
15623done
15624
15625
15626
15627
15628for ac_header in termios.h termio.h sgtty.h
15629do
15630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15631if eval "test \"\${$as_ac_Header+set}\" = set"; then
15632 echo "$as_me:$LINENO: checking for $ac_header" >&5
15633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15634if eval "test \"\${$as_ac_Header+set}\" = set"; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636fi
15637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15639else
15640 # Is the header compilable?
15641echo "$as_me:$LINENO: checking $ac_header usability" >&5
15642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15643cat >conftest.$ac_ext <<_ACEOF
15644/* confdefs.h. */
15645_ACEOF
15646cat confdefs.h >>conftest.$ac_ext
15647cat >>conftest.$ac_ext <<_ACEOF
15648/* end confdefs.h. */
15649$ac_includes_default
15650#include <$ac_header>
15651_ACEOF
15652rm -f conftest.$ac_objext
15653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15654 (eval $ac_compile) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
15661 { ac_try='test -z "$ac_c_werror_flag"
15662 || test ! -s conftest.err'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest.$ac_objext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_header_compiler=yes
15675else
15676 echo "$as_me: failed program was:" >&5
15677sed 's/^/| /' conftest.$ac_ext >&5
15678
15679ac_header_compiler=no
15680fi
15681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15683echo "${ECHO_T}$ac_header_compiler" >&6
15684
15685# Is the header present?
15686echo "$as_me:$LINENO: checking $ac_header presence" >&5
15687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15688cat >conftest.$ac_ext <<_ACEOF
15689/* confdefs.h. */
15690_ACEOF
15691cat confdefs.h >>conftest.$ac_ext
15692cat >>conftest.$ac_ext <<_ACEOF
15693/* end confdefs.h. */
15694#include <$ac_header>
15695_ACEOF
15696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } >/dev/null; then
15704 if test -s conftest.err; then
15705 ac_cpp_err=$ac_c_preproc_warn_flag
15706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15707 else
15708 ac_cpp_err=
15709 fi
15710else
15711 ac_cpp_err=yes
15712fi
15713if test -z "$ac_cpp_err"; then
15714 ac_header_preproc=yes
15715else
15716 echo "$as_me: failed program was:" >&5
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_header_preproc=no
15720fi
15721rm -f conftest.err conftest.$ac_ext
15722echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15723echo "${ECHO_T}$ac_header_preproc" >&6
15724
15725# So? What about this header?
15726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15727 yes:no: )
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15732 ac_header_preproc=yes
15733 ;;
15734 no:yes:* )
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15738echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15742echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15747 (
15748 cat <<\_ASBOX
15749## ------------------------------------------ ##
15750## Report this to the AC_PACKAGE_NAME lists. ##
15751## ------------------------------------------ ##
15752_ASBOX
15753 ) |
15754 sed "s/^/$as_me: WARNING: /" >&2
15755 ;;
15756esac
15757echo "$as_me:$LINENO: checking for $ac_header" >&5
15758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15759if eval "test \"\${$as_ac_Header+set}\" = set"; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15761else
15762 eval "$as_ac_Header=\$ac_header_preproc"
15763fi
15764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15766
15767fi
15768if test `eval echo '${'$as_ac_Header'}'` = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15771_ACEOF
15772
15773fi
15774
15775done
15776
15777
15778for ac_header in unistd.h
15779do
15780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15781if eval "test \"\${$as_ac_Header+set}\" = set"; then
15782 echo "$as_me:$LINENO: checking for $ac_header" >&5
15783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15784if eval "test \"\${$as_ac_Header+set}\" = set"; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15786fi
15787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15789else
15790 # Is the header compilable?
15791echo "$as_me:$LINENO: checking $ac_header usability" >&5
15792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15793cat >conftest.$ac_ext <<_ACEOF
15794/* confdefs.h. */
15795_ACEOF
15796cat confdefs.h >>conftest.$ac_ext
15797cat >>conftest.$ac_ext <<_ACEOF
15798/* end confdefs.h. */
15799$ac_includes_default
15800#include <$ac_header>
15801_ACEOF
15802rm -f conftest.$ac_objext
15803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15804 (eval $ac_compile) 2>conftest.er1
15805 ac_status=$?
15806 grep -v '^ *+' conftest.er1 >conftest.err
15807 rm -f conftest.er1
15808 cat conftest.err >&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -z "$ac_c_werror_flag"
15812 || test ! -s conftest.err'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest.$ac_objext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_header_compiler=yes
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829ac_header_compiler=no
15830fi
15831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15833echo "${ECHO_T}$ac_header_compiler" >&6
15834
15835# Is the header present?
15836echo "$as_me:$LINENO: checking $ac_header presence" >&5
15837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15838cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
15844#include <$ac_header>
15845_ACEOF
15846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15848 ac_status=$?
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } >/dev/null; then
15854 if test -s conftest.err; then
15855 ac_cpp_err=$ac_c_preproc_warn_flag
15856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15857 else
15858 ac_cpp_err=
15859 fi
15860else
15861 ac_cpp_err=yes
15862fi
15863if test -z "$ac_cpp_err"; then
15864 ac_header_preproc=yes
15865else
15866 echo "$as_me: failed program was:" >&5
15867sed 's/^/| /' conftest.$ac_ext >&5
15868
15869 ac_header_preproc=no
15870fi
15871rm -f conftest.err conftest.$ac_ext
15872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15873echo "${ECHO_T}$ac_header_preproc" >&6
15874
15875# So? What about this header?
15876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15877 yes:no: )
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15882 ac_header_preproc=yes
15883 ;;
15884 no:yes:* )
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15897 (
15898 cat <<\_ASBOX
15899## ------------------------------------------ ##
15900## Report this to the AC_PACKAGE_NAME lists. ##
15901## ------------------------------------------ ##
15902_ASBOX
15903 ) |
15904 sed "s/^/$as_me: WARNING: /" >&2
15905 ;;
15906esac
15907echo "$as_me:$LINENO: checking for $ac_header" >&5
15908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15909if eval "test \"\${$as_ac_Header+set}\" = set"; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911else
15912 eval "$as_ac_Header=\$ac_header_preproc"
15913fi
15914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15916
15917fi
15918if test `eval echo '${'$as_ac_Header'}'` = yes; then
15919 cat >>confdefs.h <<_ACEOF
15920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15921_ACEOF
15922
15923fi
15924
15925done
15926
15927
15928# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15929# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15930# think that we don't have <curses.h> if we're using GCC.
15931case $host_os in
15932 solaris2.[789])
15933 if test "$GCC" = yes; then
15934
15935cat >>confdefs.h <<\_ACEOF
15936#define _MSE_INT_H 1
15937_ACEOF
15938
15939 fi ;;
15940esac
15941
15942
15943
15944
15945for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15946do
15947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15948if eval "test \"\${$as_ac_Header+set}\" = set"; then
15949 echo "$as_me:$LINENO: checking for $ac_header" >&5
15950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15951if eval "test \"\${$as_ac_Header+set}\" = set"; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15953fi
15954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15956else
15957 # Is the header compilable?
15958echo "$as_me:$LINENO: checking $ac_header usability" >&5
15959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15960cat >conftest.$ac_ext <<_ACEOF
15961/* confdefs.h. */
15962_ACEOF
15963cat confdefs.h >>conftest.$ac_ext
15964cat >>conftest.$ac_ext <<_ACEOF
15965/* end confdefs.h. */
15966$ac_includes_default
15967#include <$ac_header>
15968_ACEOF
15969rm -f conftest.$ac_objext
15970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 (eval $ac_compile) 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } &&
15978 { ac_try='test -z "$ac_c_werror_flag"
15979 || test ! -s conftest.err'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try='test -s conftest.$ac_objext'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 ac_header_compiler=yes
15992else
15993 echo "$as_me: failed program was:" >&5
15994sed 's/^/| /' conftest.$ac_ext >&5
15995
15996ac_header_compiler=no
15997fi
15998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16000echo "${ECHO_T}$ac_header_compiler" >&6
16001
16002# Is the header present?
16003echo "$as_me:$LINENO: checking $ac_header presence" >&5
16004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16005cat >conftest.$ac_ext <<_ACEOF
16006/* confdefs.h. */
16007_ACEOF
16008cat confdefs.h >>conftest.$ac_ext
16009cat >>conftest.$ac_ext <<_ACEOF
16010/* end confdefs.h. */
16011#include <$ac_header>
16012_ACEOF
16013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } >/dev/null; then
16021 if test -s conftest.err; then
16022 ac_cpp_err=$ac_c_preproc_warn_flag
16023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16024 else
16025 ac_cpp_err=
16026 fi
16027else
16028 ac_cpp_err=yes
16029fi
16030if test -z "$ac_cpp_err"; then
16031 ac_header_preproc=yes
16032else
16033 echo "$as_me: failed program was:" >&5
16034sed 's/^/| /' conftest.$ac_ext >&5
16035
16036 ac_header_preproc=no
16037fi
16038rm -f conftest.err conftest.$ac_ext
16039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16040echo "${ECHO_T}$ac_header_preproc" >&6
16041
16042# So? What about this header?
16043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16044 yes:no: )
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16049 ac_header_preproc=yes
16050 ;;
16051 no:yes:* )
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16055echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16059echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16064 (
16065 cat <<\_ASBOX
16066## ------------------------------------------ ##
16067## Report this to the AC_PACKAGE_NAME lists. ##
16068## ------------------------------------------ ##
16069_ASBOX
16070 ) |
16071 sed "s/^/$as_me: WARNING: /" >&2
16072 ;;
16073esac
16074echo "$as_me:$LINENO: checking for $ac_header" >&5
16075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16076if eval "test \"\${$as_ac_Header+set}\" = set"; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078else
16079 eval "$as_ac_Header=\$ac_header_preproc"
16080fi
16081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16083
16084fi
16085if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16088_ACEOF
16089
16090fi
16091
16092done
16093
16094
16095for ac_header in ncurses/term.h
16096do
16097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16098if eval "test \"\${$as_ac_Header+set}\" = set"; then
16099 echo "$as_me:$LINENO: checking for $ac_header" >&5
16100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16101if eval "test \"\${$as_ac_Header+set}\" = set"; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103fi
16104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16106else
16107 # Is the header compilable?
16108echo "$as_me:$LINENO: checking $ac_header usability" >&5
16109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16110cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
16116$ac_includes_default
16117#include <$ac_header>
16118_ACEOF
16119rm -f conftest.$ac_objext
16120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -z "$ac_c_werror_flag"
16129 || test ! -s conftest.err'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_header_compiler=yes
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146ac_header_compiler=no
16147fi
16148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16150echo "${ECHO_T}$ac_header_compiler" >&6
16151
16152# Is the header present?
16153echo "$as_me:$LINENO: checking $ac_header presence" >&5
16154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16155cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h. */
16161#include <$ac_header>
16162_ACEOF
16163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } >/dev/null; then
16171 if test -s conftest.err; then
16172 ac_cpp_err=$ac_c_preproc_warn_flag
16173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16174 else
16175 ac_cpp_err=
16176 fi
16177else
16178 ac_cpp_err=yes
16179fi
16180if test -z "$ac_cpp_err"; then
16181 ac_header_preproc=yes
16182else
16183 echo "$as_me: failed program was:" >&5
16184sed 's/^/| /' conftest.$ac_ext >&5
16185
16186 ac_header_preproc=no
16187fi
16188rm -f conftest.err conftest.$ac_ext
16189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16190echo "${ECHO_T}$ac_header_preproc" >&6
16191
16192# So? What about this header?
16193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16194 yes:no: )
16195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16199 ac_header_preproc=yes
16200 ;;
16201 no:yes:* )
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16214 (
16215 cat <<\_ASBOX
16216## ------------------------------------------ ##
16217## Report this to the AC_PACKAGE_NAME lists. ##
16218## ------------------------------------------ ##
16219_ASBOX
16220 ) |
16221 sed "s/^/$as_me: WARNING: /" >&2
16222 ;;
16223esac
16224echo "$as_me:$LINENO: checking for $ac_header" >&5
16225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16226if eval "test \"\${$as_ac_Header+set}\" = set"; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16228else
16229 eval "$as_ac_Header=\$ac_header_preproc"
16230fi
16231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16233
16234fi
16235if test `eval echo '${'$as_ac_Header'}'` = yes; then
16236 cat >>confdefs.h <<_ACEOF
16237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16238_ACEOF
16239
16240fi
16241
16242done
16243
16244
16245for ac_header in term.h
16246do
16247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16248echo "$as_me:$LINENO: checking for $ac_header" >&5
16249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16250if eval "test \"\${$as_ac_Header+set}\" = set"; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252else
16253 cat >conftest.$ac_ext <<_ACEOF
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
16259#if HAVE_CURSES_H
16260# include <curses.h>
16261#endif
16262
16263
16264#include <$ac_header>
16265_ACEOF
16266rm -f conftest.$ac_objext
16267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 (eval $ac_compile) 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_c_werror_flag"
16276 || test ! -s conftest.err'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 eval "$as_ac_Header=yes"
16289else
16290 echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
16292
16293eval "$as_ac_Header=no"
16294fi
16295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16296fi
16297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16299if test `eval echo '${'$as_ac_Header'}'` = yes; then
16300 cat >>confdefs.h <<_ACEOF
16301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16302_ACEOF
16303
16304fi
16305
16306done
16307
16308
16309# Check for HP/UX 64-bit shared library support
16310
16311for ac_header in elf_hp.h
16312do
16313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16314if eval "test \"\${$as_ac_Header+set}\" = set"; then
16315 echo "$as_me:$LINENO: checking for $ac_header" >&5
16316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16317if eval "test \"\${$as_ac_Header+set}\" = set"; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16319fi
16320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16322else
16323 # Is the header compilable?
16324echo "$as_me:$LINENO: checking $ac_header usability" >&5
16325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16326cat >conftest.$ac_ext <<_ACEOF
16327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
16332$ac_includes_default
16333#include <$ac_header>
16334_ACEOF
16335rm -f conftest.$ac_objext
16336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_header_compiler=yes
16358else
16359 echo "$as_me: failed program was:" >&5
16360sed 's/^/| /' conftest.$ac_ext >&5
16361
16362ac_header_compiler=no
16363fi
16364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16365echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16366echo "${ECHO_T}$ac_header_compiler" >&6
16367
16368# Is the header present?
16369echo "$as_me:$LINENO: checking $ac_header presence" >&5
16370echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16371cat >conftest.$ac_ext <<_ACEOF
16372/* confdefs.h. */
16373_ACEOF
16374cat confdefs.h >>conftest.$ac_ext
16375cat >>conftest.$ac_ext <<_ACEOF
16376/* end confdefs.h. */
16377#include <$ac_header>
16378_ACEOF
16379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16381 ac_status=$?
16382 grep -v '^ *+' conftest.er1 >conftest.err
16383 rm -f conftest.er1
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } >/dev/null; then
16387 if test -s conftest.err; then
16388 ac_cpp_err=$ac_c_preproc_warn_flag
16389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16390 else
16391 ac_cpp_err=
16392 fi
16393else
16394 ac_cpp_err=yes
16395fi
16396if test -z "$ac_cpp_err"; then
16397 ac_header_preproc=yes
16398else
16399 echo "$as_me: failed program was:" >&5
16400sed 's/^/| /' conftest.$ac_ext >&5
16401
16402 ac_header_preproc=no
16403fi
16404rm -f conftest.err conftest.$ac_ext
16405echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16406echo "${ECHO_T}$ac_header_preproc" >&6
16407
16408# So? What about this header?
16409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16410 yes:no: )
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16412echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16414echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16415 ac_header_preproc=yes
16416 ;;
16417 no:yes:* )
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16419echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16421echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16423echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16425echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16427echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16429echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16430 (
16431 cat <<\_ASBOX
16432## ------------------------------------------ ##
16433## Report this to the AC_PACKAGE_NAME lists. ##
16434## ------------------------------------------ ##
16435_ASBOX
16436 ) |
16437 sed "s/^/$as_me: WARNING: /" >&2
16438 ;;
16439esac
16440echo "$as_me:$LINENO: checking for $ac_header" >&5
16441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16442if eval "test \"\${$as_ac_Header+set}\" = set"; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444else
16445 eval "$as_ac_Header=\$ac_header_preproc"
16446fi
16447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16449
16450fi
16451if test `eval echo '${'$as_ac_Header'}'` = yes; then
16452 cat >>confdefs.h <<_ACEOF
16453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16454_ACEOF
16455
16456fi
16457
16458done
16459
16460
16461# FIXME: kettenis/20030102: In most cases we include these
16462# unconditionally, so what's the point in checking these?
16463
16464
16465for ac_header in ctype.h time.h
16466do
16467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16468if eval "test \"\${$as_ac_Header+set}\" = set"; then
16469 echo "$as_me:$LINENO: checking for $ac_header" >&5
16470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16471if eval "test \"\${$as_ac_Header+set}\" = set"; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473fi
16474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16476else
16477 # Is the header compilable?
16478echo "$as_me:$LINENO: checking $ac_header usability" >&5
16479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16480cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
16486$ac_includes_default
16487#include <$ac_header>
16488_ACEOF
16489rm -f conftest.$ac_objext
16490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16491 (eval $ac_compile) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_header_compiler=yes
16512else
16513 echo "$as_me: failed program was:" >&5
16514sed 's/^/| /' conftest.$ac_ext >&5
16515
16516ac_header_compiler=no
16517fi
16518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16520echo "${ECHO_T}$ac_header_compiler" >&6
16521
16522# Is the header present?
16523echo "$as_me:$LINENO: checking $ac_header presence" >&5
16524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16525cat >conftest.$ac_ext <<_ACEOF
16526/* confdefs.h. */
16527_ACEOF
16528cat confdefs.h >>conftest.$ac_ext
16529cat >>conftest.$ac_ext <<_ACEOF
16530/* end confdefs.h. */
16531#include <$ac_header>
16532_ACEOF
16533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } >/dev/null; then
16541 if test -s conftest.err; then
16542 ac_cpp_err=$ac_c_preproc_warn_flag
16543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16544 else
16545 ac_cpp_err=
16546 fi
16547else
16548 ac_cpp_err=yes
16549fi
16550if test -z "$ac_cpp_err"; then
16551 ac_header_preproc=yes
16552else
16553 echo "$as_me: failed program was:" >&5
16554sed 's/^/| /' conftest.$ac_ext >&5
16555
16556 ac_header_preproc=no
16557fi
16558rm -f conftest.err conftest.$ac_ext
16559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16560echo "${ECHO_T}$ac_header_preproc" >&6
16561
16562# So? What about this header?
16563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16564 yes:no: )
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16569 ac_header_preproc=yes
16570 ;;
16571 no:yes:* )
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16584 (
16585 cat <<\_ASBOX
16586## ------------------------------------------ ##
16587## Report this to the AC_PACKAGE_NAME lists. ##
16588## ------------------------------------------ ##
16589_ASBOX
16590 ) |
16591 sed "s/^/$as_me: WARNING: /" >&2
16592 ;;
16593esac
16594echo "$as_me:$LINENO: checking for $ac_header" >&5
16595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16596if eval "test \"\${$as_ac_Header+set}\" = set"; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16598else
16599 eval "$as_ac_Header=\$ac_header_preproc"
16600fi
16601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16603
16604fi
16605if test `eval echo '${'$as_ac_Header'}'` = yes; then
16606 cat >>confdefs.h <<_ACEOF
16607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16608_ACEOF
16609
16610fi
16611
16612done
16613
16614
16615# ------------------------- #
16616# Checks for declarations. #
16617# ------------------------- #
16618
16619echo "$as_me:$LINENO: checking whether free is declared" >&5
16620echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16621if test "${ac_cv_have_decl_free+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16623else
16624 cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630$ac_includes_default
16631int
16632main ()
16633{
16634#ifndef free
16635 char *p = (char *) free;
16636#endif
16637
16638 ;
16639 return 0;
16640}
16641_ACEOF
16642rm -f conftest.$ac_objext
16643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag"
16652 || test ! -s conftest.err'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_have_decl_free=yes
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669ac_cv_have_decl_free=no
16670fi
16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672fi
16673echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16674echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16675if test $ac_cv_have_decl_free = yes; then
16676
16677cat >>confdefs.h <<_ACEOF
16678#define HAVE_DECL_FREE 1
16679_ACEOF
16680
16681
16682else
16683 cat >>confdefs.h <<_ACEOF
16684#define HAVE_DECL_FREE 0
16685_ACEOF
16686
16687
16688fi
16689echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16690echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16691if test "${ac_cv_have_decl_malloc+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694 cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700$ac_includes_default
16701int
16702main ()
16703{
16704#ifndef malloc
16705 char *p = (char *) malloc;
16706#endif
16707
16708 ;
16709 return 0;
16710}
16711_ACEOF
16712rm -f conftest.$ac_objext
16713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag"
16722 || test ! -s conftest.err'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; } &&
16728 { ac_try='test -s conftest.$ac_objext'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ac_cv_have_decl_malloc=yes
16735else
16736 echo "$as_me: failed program was:" >&5
16737sed 's/^/| /' conftest.$ac_ext >&5
16738
16739ac_cv_have_decl_malloc=no
16740fi
16741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16742fi
16743echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16744echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16745if test $ac_cv_have_decl_malloc = yes; then
16746
16747cat >>confdefs.h <<_ACEOF
16748#define HAVE_DECL_MALLOC 1
16749_ACEOF
16750
16751
16752else
16753 cat >>confdefs.h <<_ACEOF
16754#define HAVE_DECL_MALLOC 0
16755_ACEOF
16756
16757
16758fi
16759echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16760echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16761if test "${ac_cv_have_decl_realloc+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763else
16764 cat >conftest.$ac_ext <<_ACEOF
16765/* confdefs.h. */
16766_ACEOF
16767cat confdefs.h >>conftest.$ac_ext
16768cat >>conftest.$ac_ext <<_ACEOF
16769/* end confdefs.h. */
16770$ac_includes_default
16771int
16772main ()
16773{
16774#ifndef realloc
16775 char *p = (char *) realloc;
16776#endif
16777
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782rm -f conftest.$ac_objext
16783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16784 (eval $ac_compile) 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag"
16792 || test ! -s conftest.err'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest.$ac_objext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_have_decl_realloc=yes
16805else
16806 echo "$as_me: failed program was:" >&5
16807sed 's/^/| /' conftest.$ac_ext >&5
16808
16809ac_cv_have_decl_realloc=no
16810fi
16811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16812fi
16813echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16814echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16815if test $ac_cv_have_decl_realloc = yes; then
16816
16817cat >>confdefs.h <<_ACEOF
16818#define HAVE_DECL_REALLOC 1
16819_ACEOF
16820
16821
16822else
16823 cat >>confdefs.h <<_ACEOF
16824#define HAVE_DECL_REALLOC 0
16825_ACEOF
16826
16827
16828fi
16829
16830
16831echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16832echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
16833if test "${ac_cv_have_decl_strerror+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835else
16836 cat >conftest.$ac_ext <<_ACEOF
16837/* confdefs.h. */
16838_ACEOF
16839cat confdefs.h >>conftest.$ac_ext
16840cat >>conftest.$ac_ext <<_ACEOF
16841/* end confdefs.h. */
16842$ac_includes_default
16843int
16844main ()
16845{
16846#ifndef strerror
16847 char *p = (char *) strerror;
16848#endif
16849
16850 ;
16851 return 0;
16852}
16853_ACEOF
16854rm -f conftest.$ac_objext
16855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16856 (eval $ac_compile) 2>conftest.er1
16857 ac_status=$?
16858 grep -v '^ *+' conftest.er1 >conftest.err
16859 rm -f conftest.er1
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
16863 { ac_try='test -z "$ac_c_werror_flag"
16864 || test ! -s conftest.err'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16876 ac_cv_have_decl_strerror=yes
16877else
16878 echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881ac_cv_have_decl_strerror=no
16882fi
16883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16884fi
16885echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16886echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16887if test $ac_cv_have_decl_strerror = yes; then
16888
16889cat >>confdefs.h <<_ACEOF
16890#define HAVE_DECL_STRERROR 1
16891_ACEOF
16892
16893
16894else
16895 cat >>confdefs.h <<_ACEOF
16896#define HAVE_DECL_STRERROR 0
16897_ACEOF
16898
16899
16900fi
16901echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16902echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16903if test "${ac_cv_have_decl_strstr+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905else
16906 cat >conftest.$ac_ext <<_ACEOF
16907/* confdefs.h. */
16908_ACEOF
16909cat confdefs.h >>conftest.$ac_ext
16910cat >>conftest.$ac_ext <<_ACEOF
16911/* end confdefs.h. */
16912$ac_includes_default
16913int
16914main ()
16915{
16916#ifndef strstr
16917 char *p = (char *) strstr;
16918#endif
16919
16920 ;
16921 return 0;
16922}
16923_ACEOF
16924rm -f conftest.$ac_objext
16925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926 (eval $ac_compile) 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag"
16934 || test ! -s conftest.err'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try='test -s conftest.$ac_objext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 ac_cv_have_decl_strstr=yes
16947else
16948 echo "$as_me: failed program was:" >&5
16949sed 's/^/| /' conftest.$ac_ext >&5
16950
16951ac_cv_have_decl_strstr=no
16952fi
16953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16954fi
16955echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16956echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16957if test $ac_cv_have_decl_strstr = yes; then
16958
16959cat >>confdefs.h <<_ACEOF
16960#define HAVE_DECL_STRSTR 1
16961_ACEOF
16962
16963
16964else
16965 cat >>confdefs.h <<_ACEOF
16966#define HAVE_DECL_STRSTR 0
16967_ACEOF
16968
16969
16970fi
16971
16972
16973echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16974echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
16975if test "${ac_cv_have_decl_getopt+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977else
16978 cat >conftest.$ac_ext <<_ACEOF
16979/* confdefs.h. */
16980_ACEOF
16981cat confdefs.h >>conftest.$ac_ext
16982cat >>conftest.$ac_ext <<_ACEOF
16983/* end confdefs.h. */
16984$ac_includes_default
16985int
16986main ()
16987{
16988#ifndef getopt
16989 char *p = (char *) getopt;
16990#endif
16991
16992 ;
16993 return 0;
16994}
16995_ACEOF
16996rm -f conftest.$ac_objext
16997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16998 (eval $ac_compile) 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag"
17006 || test ! -s conftest.err'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest.$ac_objext'
17013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
17018 ac_cv_have_decl_getopt=yes
17019else
17020 echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023ac_cv_have_decl_getopt=no
17024fi
17025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17026fi
17027echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
17028echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
17029if test $ac_cv_have_decl_getopt = yes; then
17030
17031cat >>confdefs.h <<_ACEOF
17032#define HAVE_DECL_GETOPT 1
17033_ACEOF
17034
17035
17036else
17037 cat >>confdefs.h <<_ACEOF
17038#define HAVE_DECL_GETOPT 0
17039_ACEOF
17040
17041
17042fi
17043echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17044echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17045if test "${ac_cv_have_decl_snprintf+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048 cat >conftest.$ac_ext <<_ACEOF
17049/* confdefs.h. */
17050_ACEOF
17051cat confdefs.h >>conftest.$ac_ext
17052cat >>conftest.$ac_ext <<_ACEOF
17053/* end confdefs.h. */
17054$ac_includes_default
17055int
17056main ()
17057{
17058#ifndef snprintf
17059 char *p = (char *) snprintf;
17060#endif
17061
17062 ;
17063 return 0;
17064}
17065_ACEOF
17066rm -f conftest.$ac_objext
17067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068 (eval $ac_compile) 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag"
17076 || test ! -s conftest.err'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_cv_have_decl_snprintf=yes
17089else
17090 echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
17093ac_cv_have_decl_snprintf=no
17094fi
17095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17096fi
17097echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17098echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17099if test $ac_cv_have_decl_snprintf = yes; then
17100
17101cat >>confdefs.h <<_ACEOF
17102#define HAVE_DECL_SNPRINTF 1
17103_ACEOF
17104
17105
17106else
17107 cat >>confdefs.h <<_ACEOF
17108#define HAVE_DECL_SNPRINTF 0
17109_ACEOF
17110
17111
17112fi
17113echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17114echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17115if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117else
17118 cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
17124$ac_includes_default
17125int
17126main ()
17127{
17128#ifndef vsnprintf
17129 char *p = (char *) vsnprintf;
17130#endif
17131
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext
17137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17138 (eval $ac_compile) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_cv_have_decl_vsnprintf=yes
17159else
17160 echo "$as_me: failed program was:" >&5
17161sed 's/^/| /' conftest.$ac_ext >&5
17162
17163ac_cv_have_decl_vsnprintf=no
17164fi
17165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17166fi
17167echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17168echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17169if test $ac_cv_have_decl_vsnprintf = yes; then
17170
17171cat >>confdefs.h <<_ACEOF
17172#define HAVE_DECL_VSNPRINTF 1
17173_ACEOF
17174
17175
17176else
17177 cat >>confdefs.h <<_ACEOF
17178#define HAVE_DECL_VSNPRINTF 0
17179_ACEOF
17180
17181
17182fi
17183
17184
17185
17186# ----------------------- #
17187# Checks for structures. #
17188# ----------------------- #
17189
17190echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17191echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17192if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194else
17195 cat >conftest.$ac_ext <<_ACEOF
17196/* confdefs.h. */
17197_ACEOF
17198cat confdefs.h >>conftest.$ac_ext
17199cat >>conftest.$ac_ext <<_ACEOF
17200/* end confdefs.h. */
17201$ac_includes_default
17202int
17203main ()
17204{
17205static struct stat ac_aggr;
17206if (ac_aggr.st_blocks)
17207return 0;
17208 ;
17209 return 0;
17210}
17211_ACEOF
17212rm -f conftest.$ac_objext
17213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17214 (eval $ac_compile) 2>conftest.er1
17215 ac_status=$?
17216 grep -v '^ *+' conftest.er1 >conftest.err
17217 rm -f conftest.er1
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } &&
17221 { ac_try='test -z "$ac_c_werror_flag"
17222 || test ! -s conftest.err'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest.$ac_objext'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_member_struct_stat_st_blocks=yes
17235else
17236 echo "$as_me: failed program was:" >&5
17237sed 's/^/| /' conftest.$ac_ext >&5
17238
17239cat >conftest.$ac_ext <<_ACEOF
17240/* confdefs.h. */
17241_ACEOF
17242cat confdefs.h >>conftest.$ac_ext
17243cat >>conftest.$ac_ext <<_ACEOF
17244/* end confdefs.h. */
17245$ac_includes_default
17246int
17247main ()
17248{
17249static struct stat ac_aggr;
17250if (sizeof ac_aggr.st_blocks)
17251return 0;
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256rm -f conftest.$ac_objext
17257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag"
17266 || test ! -s conftest.err'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest.$ac_objext'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 ac_cv_member_struct_stat_st_blocks=yes
17279else
17280 echo "$as_me: failed program was:" >&5
17281sed 's/^/| /' conftest.$ac_ext >&5
17282
17283ac_cv_member_struct_stat_st_blocks=no
17284fi
17285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17286fi
17287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17288fi
17289echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17290echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17291if test $ac_cv_member_struct_stat_st_blocks = yes; then
17292
17293cat >>confdefs.h <<_ACEOF
17294#define HAVE_STRUCT_STAT_ST_BLOCKS 1
17295_ACEOF
17296
17297
17298fi
17299
17300echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17301echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17302if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304else
17305 cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311$ac_includes_default
17312int
17313main ()
17314{
17315static struct stat ac_aggr;
17316if (ac_aggr.st_blksize)
17317return 0;
17318 ;
17319 return 0;
17320}
17321_ACEOF
17322rm -f conftest.$ac_objext
17323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324 (eval $ac_compile) 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest.$ac_objext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_member_struct_stat_st_blksize=yes
17345else
17346 echo "$as_me: failed program was:" >&5
17347sed 's/^/| /' conftest.$ac_ext >&5
17348
17349cat >conftest.$ac_ext <<_ACEOF
17350/* confdefs.h. */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h. */
17355$ac_includes_default
17356int
17357main ()
17358{
17359static struct stat ac_aggr;
17360if (sizeof ac_aggr.st_blksize)
17361return 0;
17362 ;
17363 return 0;
17364}
17365_ACEOF
17366rm -f conftest.$ac_objext
17367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17368 (eval $ac_compile) 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } &&
17375 { ac_try='test -z "$ac_c_werror_flag"
17376 || test ! -s conftest.err'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } &&
17382 { ac_try='test -s conftest.$ac_objext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_member_struct_stat_st_blksize=yes
17389else
17390 echo "$as_me: failed program was:" >&5
17391sed 's/^/| /' conftest.$ac_ext >&5
17392
17393ac_cv_member_struct_stat_st_blksize=no
17394fi
17395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17396fi
17397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398fi
17399echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17400echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17401if test $ac_cv_member_struct_stat_st_blksize = yes; then
17402
17403cat >>confdefs.h <<_ACEOF
17404#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17405_ACEOF
17406
17407
17408fi
17409
17410
17411# ------------------ #
17412# Checks for types. #
17413# ------------------ #
17414
17415echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17416echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17417if test "${ac_cv_type_signal+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419else
17420 cat >conftest.$ac_ext <<_ACEOF
17421/* confdefs.h. */
17422_ACEOF
17423cat confdefs.h >>conftest.$ac_ext
17424cat >>conftest.$ac_ext <<_ACEOF
17425/* end confdefs.h. */
17426#include <sys/types.h>
17427#include <signal.h>
17428#ifdef signal
17429# undef signal
17430#endif
17431#ifdef __cplusplus
17432extern "C" void (*signal (int, void (*)(int)))(int);
17433#else
17434void (*signal ()) ();
17435#endif
17436
17437int
17438main ()
17439{
17440int i;
17441 ;
17442 return 0;
17443}
17444_ACEOF
17445rm -f conftest.$ac_objext
17446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447 (eval $ac_compile) 2>conftest.er1
17448 ac_status=$?
17449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
17454 { ac_try='test -z "$ac_c_werror_flag"
17455 || test ! -s conftest.err'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest.$ac_objext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_cv_type_signal=void
17468else
17469 echo "$as_me: failed program was:" >&5
17470sed 's/^/| /' conftest.$ac_ext >&5
17471
17472ac_cv_type_signal=int
17473fi
17474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475fi
17476echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17477echo "${ECHO_T}$ac_cv_type_signal" >&6
17478
17479cat >>confdefs.h <<_ACEOF
17480#define RETSIGTYPE $ac_cv_type_signal
17481_ACEOF
17482
17483
17484echo "$as_me:$LINENO: checking for socklen_t" >&5
17485echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17486if test "${ac_cv_type_socklen_t+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489 cat >conftest.$ac_ext <<_ACEOF
17490/* confdefs.h. */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h. */
17495#include <sys/types.h>
17496#include <sys/socket.h>
17497
17498
17499int
17500main ()
17501{
17502if ((socklen_t *) 0)
17503 return 0;
17504if (sizeof (socklen_t))
17505 return 0;
17506 ;
17507 return 0;
17508}
17509_ACEOF
17510rm -f conftest.$ac_objext
17511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17512 (eval $ac_compile) 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag"
17520 || test ! -s conftest.err'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest.$ac_objext'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_type_socklen_t=yes
17533else
17534 echo "$as_me: failed program was:" >&5
17535sed 's/^/| /' conftest.$ac_ext >&5
17536
17537ac_cv_type_socklen_t=no
17538fi
17539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17540fi
17541echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17542echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17543if test $ac_cv_type_socklen_t = yes; then
17544
17545cat >>confdefs.h <<_ACEOF
17546#define HAVE_SOCKLEN_T 1
17547_ACEOF
17548
17549
17550fi
17551
17552
17553# ------------------------------------- #
17554# Checks for compiler characteristics. #
17555# ------------------------------------- #
17556
17557echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17558echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17559if test "${ac_cv_c_const+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17561else
17562 cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h. */
17568
17569int
17570main ()
17571{
17572/* FIXME: Include the comments suggested by Paul. */
17573#ifndef __cplusplus
17574 /* Ultrix mips cc rejects this. */
17575 typedef int charset[2];
17576 const charset x;
17577 /* SunOS 4.1.1 cc rejects this. */
17578 char const *const *ccp;
17579 char **p;
17580 /* NEC SVR4.0.2 mips cc rejects this. */
17581 struct point {int x, y;};
17582 static struct point const zero = {0,0};
17583 /* AIX XL C 1.02.0.0 rejects this.
17584 It does not let you subtract one const X* pointer from another in
17585 an arm of an if-expression whose if-part is not a constant
17586 expression */
17587 const char *g = "string";
17588 ccp = &g + (g ? g-g : 0);
17589 /* HPUX 7.0 cc rejects these. */
17590 ++ccp;
17591 p = (char**) ccp;
17592 ccp = (char const *const *) p;
17593 { /* SCO 3.2v4 cc rejects this. */
17594 char *t;
17595 char const *s = 0 ? (char *) 0 : (char const *) 0;
17596
17597 *t++ = 0;
17598 }
17599 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17600 int x[] = {25, 17};
17601 const int *foo = &x[0];
17602 ++foo;
17603 }
17604 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17605 typedef const int *iptr;
17606 iptr p = 0;
17607 ++p;
17608 }
17609 { /* AIX XL C 1.02.0.0 rejects this saying
17610 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17611 struct s { int j; const int *ap[3]; };
17612 struct s *b; b->j = 5;
17613 }
17614 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17615 const int foo = 10;
17616 }
17617#endif
17618
17619 ;
17620 return 0;
17621}
17622_ACEOF
17623rm -f conftest.$ac_objext
17624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17625 (eval $ac_compile) 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
17632 { ac_try='test -z "$ac_c_werror_flag"
17633 || test ! -s conftest.err'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } &&
17639 { ac_try='test -s conftest.$ac_objext'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_cv_c_const=yes
17646else
17647 echo "$as_me: failed program was:" >&5
17648sed 's/^/| /' conftest.$ac_ext >&5
17649
17650ac_cv_c_const=no
17651fi
17652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17653fi
17654echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17655echo "${ECHO_T}$ac_cv_c_const" >&6
17656if test $ac_cv_c_const = no; then
17657
17658cat >>confdefs.h <<\_ACEOF
17659#define const
17660_ACEOF
17661
17662fi
17663
17664echo "$as_me:$LINENO: checking for inline" >&5
17665echo $ECHO_N "checking for inline... $ECHO_C" >&6
17666if test "${ac_cv_c_inline+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669 ac_cv_c_inline=no
17670for ac_kw in inline __inline__ __inline; do
17671 cat >conftest.$ac_ext <<_ACEOF
17672/* confdefs.h. */
17673_ACEOF
17674cat confdefs.h >>conftest.$ac_ext
17675cat >>conftest.$ac_ext <<_ACEOF
17676/* end confdefs.h. */
17677#ifndef __cplusplus
17678typedef int foo_t;
17679static $ac_kw foo_t static_foo () {return 0; }
17680$ac_kw foo_t foo () {return 0; }
17681#endif
17682
17683_ACEOF
17684rm -f conftest.$ac_objext
17685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686 (eval $ac_compile) 2>conftest.er1
17687 ac_status=$?
17688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag"
17694 || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest.$ac_objext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_c_inline=$ac_kw; break
17707else
17708 echo "$as_me: failed program was:" >&5
17709sed 's/^/| /' conftest.$ac_ext >&5
17710
17711fi
17712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17713done
17714
17715fi
17716echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17717echo "${ECHO_T}$ac_cv_c_inline" >&6
17718
17719
17720case $ac_cv_c_inline in
17721 inline | yes) ;;
17722 *)
17723 case $ac_cv_c_inline in
17724 no) ac_val=;;
17725 *) ac_val=$ac_cv_c_inline;;
17726 esac
17727 cat >>confdefs.h <<_ACEOF
17728#ifndef __cplusplus
17729#define inline $ac_val
17730#endif
17731_ACEOF
17732 ;;
17733esac
17734
17735echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17736echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17737if test "${ac_cv_c_bigendian+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739else
17740 # See if sys/param.h defines the BYTE_ORDER macro.
17741cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h. */
17747#include <sys/types.h>
17748#include <sys/param.h>
17749
17750int
17751main ()
17752{
17753#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17754 bogus endian macros
17755#endif
17756
17757 ;
17758 return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext
17762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763 (eval $ac_compile) 2>conftest.er1
17764 ac_status=$?
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 # It does; now see whether it defined to BIG_ENDIAN or not.
17784cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790#include <sys/types.h>
17791#include <sys/param.h>
17792
17793int
17794main ()
17795{
17796#if BYTE_ORDER != BIG_ENDIAN
17797 not big endian
17798#endif
17799
17800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext
17805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17806 (eval $ac_compile) 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag"
17814 || test ! -s conftest.err'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_cv_c_bigendian=yes
17827else
17828 echo "$as_me: failed program was:" >&5
17829sed 's/^/| /' conftest.$ac_ext >&5
17830
17831ac_cv_c_bigendian=no
17832fi
17833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17834else
17835 echo "$as_me: failed program was:" >&5
17836sed 's/^/| /' conftest.$ac_ext >&5
17837
17838# It does not; compile a test program.
17839if test "$cross_compiling" = yes; then
17840 # try to guess the endianness by grepping values into an object file
17841 ac_cv_c_bigendian=unknown
17842 cat >conftest.$ac_ext <<_ACEOF
17843/* confdefs.h. */
17844_ACEOF
17845cat confdefs.h >>conftest.$ac_ext
17846cat >>conftest.$ac_ext <<_ACEOF
17847/* end confdefs.h. */
17848short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17849short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17850void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17851short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17852short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17853void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17854int
17855main ()
17856{
17857 _ascii (); _ebcdic ();
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext
17863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17864 (eval $ac_compile) 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_c_werror_flag"
17872 || test ! -s conftest.err'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; } &&
17878 { ac_try='test -s conftest.$ac_objext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17885 ac_cv_c_bigendian=yes
17886fi
17887if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17888 if test "$ac_cv_c_bigendian" = unknown; then
17889 ac_cv_c_bigendian=no
17890 else
17891 # finding both strings is unlikely to happen, but who knows?
17892 ac_cv_c_bigendian=unknown
17893 fi
17894fi
17895else
17896 echo "$as_me: failed program was:" >&5
17897sed 's/^/| /' conftest.$ac_ext >&5
17898
17899fi
17900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17901else
17902 cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
17908int
17909main ()
17910{
17911 /* Are we little or big endian? From Harbison&Steele. */
17912 union
17913 {
17914 long l;
17915 char c[sizeof (long)];
17916 } u;
17917 u.l = 1;
17918 exit (u.c[sizeof (long) - 1] == 1);
17919}
17920_ACEOF
17921rm -f conftest$ac_exeext
17922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17923 (eval $ac_link) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_cv_c_bigendian=no
17933else
17934 echo "$as_me: program exited with status $ac_status" >&5
17935echo "$as_me: failed program was:" >&5
17936sed 's/^/| /' conftest.$ac_ext >&5
17937
17938( exit $ac_status )
17939ac_cv_c_bigendian=yes
17940fi
17941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17942fi
17943fi
17944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17945fi
17946echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17947echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17948case $ac_cv_c_bigendian in
17949 yes)
17950
17951cat >>confdefs.h <<\_ACEOF
17952#define WORDS_BIGENDIAN 1
17953_ACEOF
17954 ;;
17955 no)
17956 ;;
17957 *)
17958 { { echo "$as_me:$LINENO: error: unknown endianness
17959presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17960echo "$as_me: error: unknown endianness
17961presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17962 { (exit 1); exit 1; }; } ;;
17963esac
17964
17965
17966# ------------------------------ #
17967# Checks for library functions. #
17968# ------------------------------ #
17969
17970# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17971# for constant arguments. Useless!
17972echo "$as_me:$LINENO: checking for working alloca.h" >&5
17973echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17974if test "${ac_cv_working_alloca_h+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977 cat >conftest.$ac_ext <<_ACEOF
17978/* confdefs.h. */
17979_ACEOF
17980cat confdefs.h >>conftest.$ac_ext
17981cat >>conftest.$ac_ext <<_ACEOF
17982/* end confdefs.h. */
17983#include <alloca.h>
17984int
17985main ()
17986{
17987char *p = (char *) alloca (2 * sizeof (int));
17988 ;
17989 return 0;
17990}
17991_ACEOF
17992rm -f conftest.$ac_objext conftest$ac_exeext
17993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
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); }; } &&
18008 { ac_try='test -s conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_working_alloca_h=yes
18015else
18016 echo "$as_me: failed program was:" >&5
18017sed 's/^/| /' conftest.$ac_ext >&5
18018
18019ac_cv_working_alloca_h=no
18020fi
18021rm -f conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18023fi
18024echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18025echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18026if test $ac_cv_working_alloca_h = yes; then
18027
18028cat >>confdefs.h <<\_ACEOF
18029#define HAVE_ALLOCA_H 1
18030_ACEOF
18031
18032fi
18033
18034echo "$as_me:$LINENO: checking for alloca" >&5
18035echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18036if test "${ac_cv_func_alloca_works+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038else
18039 cat >conftest.$ac_ext <<_ACEOF
18040/* confdefs.h. */
18041_ACEOF
18042cat confdefs.h >>conftest.$ac_ext
18043cat >>conftest.$ac_ext <<_ACEOF
18044/* end confdefs.h. */
18045#ifdef __GNUC__
18046# define alloca __builtin_alloca
18047#else
18048# ifdef _MSC_VER
18049# include <malloc.h>
18050# define alloca _alloca
18051# else
18052# if HAVE_ALLOCA_H
18053# include <alloca.h>
18054# else
18055# ifdef _AIX
18056 #pragma alloca
18057# else
18058# ifndef alloca /* predefined by HP cc +Olibcalls */
18059char *alloca ();
18060# endif
18061# endif
18062# endif
18063# endif
18064#endif
18065
18066int
18067main ()
18068{
18069char *p = (char *) alloca (1);
18070 ;
18071 return 0;
18072}
18073_ACEOF
18074rm -f conftest.$ac_objext conftest$ac_exeext
18075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18076 (eval $ac_link) 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -z "$ac_c_werror_flag"
18084 || test ! -s conftest.err'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 ac_cv_func_alloca_works=yes
18097else
18098 echo "$as_me: failed program was:" >&5
18099sed 's/^/| /' conftest.$ac_ext >&5
18100
18101ac_cv_func_alloca_works=no
18102fi
18103rm -f conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
18105fi
18106echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18107echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18108
18109if test $ac_cv_func_alloca_works = yes; then
18110
18111cat >>confdefs.h <<\_ACEOF
18112#define HAVE_ALLOCA 1
18113_ACEOF
18114
18115else
18116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18117# that cause trouble. Some versions do not even contain alloca or
18118# contain a buggy version. If you still want to use their alloca,
18119# use ar to extract alloca.o from them instead of compiling alloca.c.
18120
18121ALLOCA=alloca.$ac_objext
18122
18123cat >>confdefs.h <<\_ACEOF
18124#define C_ALLOCA 1
18125_ACEOF
18126
18127
18128echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18129echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18130if test "${ac_cv_os_cray+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132else
18133 cat >conftest.$ac_ext <<_ACEOF
18134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
18139#if defined(CRAY) && ! defined(CRAY2)
18140webecray
18141#else
18142wenotbecray
18143#endif
18144
18145_ACEOF
18146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18147 $EGREP "webecray" >/dev/null 2>&1; then
18148 ac_cv_os_cray=yes
18149else
18150 ac_cv_os_cray=no
18151fi
18152rm -f conftest*
18153
18154fi
18155echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18156echo "${ECHO_T}$ac_cv_os_cray" >&6
18157if test $ac_cv_os_cray = yes; then
18158 for ac_func in _getb67 GETB67 getb67; do
18159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18160echo "$as_me:$LINENO: checking for $ac_func" >&5
18161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18162if eval "test \"\${$as_ac_var+set}\" = set"; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164else
18165 cat >conftest.$ac_ext <<_ACEOF
18166/* confdefs.h. */
18167_ACEOF
18168cat confdefs.h >>conftest.$ac_ext
18169cat >>conftest.$ac_ext <<_ACEOF
18170/* end confdefs.h. */
18171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18173#define $ac_func innocuous_$ac_func
18174
18175/* System header to define __stub macros and hopefully few prototypes,
18176 which can conflict with char $ac_func (); below.
18177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18178 <limits.h> exists even on freestanding compilers. */
18179
18180#ifdef __STDC__
18181# include <limits.h>
18182#else
18183# include <assert.h>
18184#endif
18185
18186#undef $ac_func
18187
18188/* Override any gcc2 internal prototype to avoid an error. */
18189#ifdef __cplusplus
18190extern "C"
18191{
18192#endif
18193/* We use char because int might match the return type of a gcc2
18194 builtin and then its argument prototype would still apply. */
18195char $ac_func ();
18196/* The GNU C library defines this for functions which it implements
18197 to always fail with ENOSYS. Some functions are actually named
18198 something starting with __ and the normal name is an alias. */
18199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18200choke me
18201#else
18202char (*f) () = $ac_func;
18203#endif
18204#ifdef __cplusplus
18205}
18206#endif
18207
18208int
18209main ()
18210{
18211return f != $ac_func;
18212 ;
18213 return 0;
18214}
18215_ACEOF
18216rm -f conftest.$ac_objext conftest$ac_exeext
18217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18218 (eval $ac_link) 2>conftest.er1
18219 ac_status=$?
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } &&
18225 { ac_try='test -z "$ac_c_werror_flag"
18226 || test ! -s conftest.err'
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest$ac_exeext'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 eval "$as_ac_var=yes"
18239else
18240 echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243eval "$as_ac_var=no"
18244fi
18245rm -f conftest.err conftest.$ac_objext \
18246 conftest$ac_exeext conftest.$ac_ext
18247fi
18248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18250if test `eval echo '${'$as_ac_var'}'` = yes; then
18251
18252cat >>confdefs.h <<_ACEOF
18253#define CRAY_STACKSEG_END $ac_func
18254_ACEOF
18255
18256 break
18257fi
18258
18259 done
18260fi
18261
18262echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18263echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18264if test "${ac_cv_c_stack_direction+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18266else
18267 if test "$cross_compiling" = yes; then
18268 ac_cv_c_stack_direction=0
18269else
18270 cat >conftest.$ac_ext <<_ACEOF
18271/* confdefs.h. */
18272_ACEOF
18273cat confdefs.h >>conftest.$ac_ext
18274cat >>conftest.$ac_ext <<_ACEOF
18275/* end confdefs.h. */
18276int
18277find_stack_direction ()
18278{
18279 static char *addr = 0;
18280 auto char dummy;
18281 if (addr == 0)
18282 {
18283 addr = &dummy;
18284 return find_stack_direction ();
18285 }
18286 else
18287 return (&dummy > addr) ? 1 : -1;
18288}
18289
18290int
18291main ()
18292{
18293 exit (find_stack_direction () < 0);
18294}
18295_ACEOF
18296rm -f conftest$ac_exeext
18297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18298 (eval $ac_link) 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_c_stack_direction=1
18308else
18309 echo "$as_me: program exited with status $ac_status" >&5
18310echo "$as_me: failed program was:" >&5
18311sed 's/^/| /' conftest.$ac_ext >&5
18312
18313( exit $ac_status )
18314ac_cv_c_stack_direction=-1
18315fi
18316rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18317fi
18318fi
18319echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18320echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18321
18322cat >>confdefs.h <<_ACEOF
18323#define STACK_DIRECTION $ac_cv_c_stack_direction
18324_ACEOF
18325
18326
18327fi
18328
18329
18330
18331for ac_header in stdlib.h unistd.h
18332do
18333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18334if eval "test \"\${$as_ac_Header+set}\" = set"; then
18335 echo "$as_me:$LINENO: checking for $ac_header" >&5
18336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18337if eval "test \"\${$as_ac_Header+set}\" = set"; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339fi
18340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18342else
18343 # Is the header compilable?
18344echo "$as_me:$LINENO: checking $ac_header usability" >&5
18345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18346cat >conftest.$ac_ext <<_ACEOF
18347/* confdefs.h. */
18348_ACEOF
18349cat confdefs.h >>conftest.$ac_ext
18350cat >>conftest.$ac_ext <<_ACEOF
18351/* end confdefs.h. */
18352$ac_includes_default
18353#include <$ac_header>
18354_ACEOF
18355rm -f conftest.$ac_objext
18356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_header_compiler=yes
18378else
18379 echo "$as_me: failed program was:" >&5
18380sed 's/^/| /' conftest.$ac_ext >&5
18381
18382ac_header_compiler=no
18383fi
18384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18386echo "${ECHO_T}$ac_header_compiler" >&6
18387
18388# Is the header present?
18389echo "$as_me:$LINENO: checking $ac_header presence" >&5
18390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18391cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397#include <$ac_header>
18398_ACEOF
18399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } >/dev/null; then
18407 if test -s conftest.err; then
18408 ac_cpp_err=$ac_c_preproc_warn_flag
18409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18410 else
18411 ac_cpp_err=
18412 fi
18413else
18414 ac_cpp_err=yes
18415fi
18416if test -z "$ac_cpp_err"; then
18417 ac_header_preproc=yes
18418else
18419 echo "$as_me: failed program was:" >&5
18420sed 's/^/| /' conftest.$ac_ext >&5
18421
18422 ac_header_preproc=no
18423fi
18424rm -f conftest.err conftest.$ac_ext
18425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18426echo "${ECHO_T}$ac_header_preproc" >&6
18427
18428# So? What about this header?
18429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18430 yes:no: )
18431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18435 ac_header_preproc=yes
18436 ;;
18437 no:yes:* )
18438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18450 (
18451 cat <<\_ASBOX
18452## ------------------------------------------ ##
18453## Report this to the AC_PACKAGE_NAME lists. ##
18454## ------------------------------------------ ##
18455_ASBOX
18456 ) |
18457 sed "s/^/$as_me: WARNING: /" >&2
18458 ;;
18459esac
18460echo "$as_me:$LINENO: checking for $ac_header" >&5
18461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18462if eval "test \"\${$as_ac_Header+set}\" = set"; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18464else
18465 eval "$as_ac_Header=\$ac_header_preproc"
18466fi
18467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18469
18470fi
18471if test `eval echo '${'$as_ac_Header'}'` = yes; then
18472 cat >>confdefs.h <<_ACEOF
18473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18474_ACEOF
18475
18476fi
18477
18478done
18479
18480
18481for ac_func in getpagesize
18482do
18483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18484echo "$as_me:$LINENO: checking for $ac_func" >&5
18485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18486if eval "test \"\${$as_ac_var+set}\" = set"; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488else
18489 cat >conftest.$ac_ext <<_ACEOF
18490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h. */
18495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18497#define $ac_func innocuous_$ac_func
18498
18499/* System header to define __stub macros and hopefully few prototypes,
18500 which can conflict with char $ac_func (); below.
18501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18502 <limits.h> exists even on freestanding compilers. */
18503
18504#ifdef __STDC__
18505# include <limits.h>
18506#else
18507# include <assert.h>
18508#endif
18509
18510#undef $ac_func
18511
18512/* Override any gcc2 internal prototype to avoid an error. */
18513#ifdef __cplusplus
18514extern "C"
18515{
18516#endif
18517/* We use char because int might match the return type of a gcc2
18518 builtin and then its argument prototype would still apply. */
18519char $ac_func ();
18520/* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18524choke me
18525#else
18526char (*f) () = $ac_func;
18527#endif
18528#ifdef __cplusplus
18529}
18530#endif
18531
18532int
18533main ()
18534{
18535return f != $ac_func;
18536 ;
18537 return 0;
18538}
18539_ACEOF
18540rm -f conftest.$ac_objext conftest$ac_exeext
18541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18542 (eval $ac_link) 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -z "$ac_c_werror_flag"
18550 || test ! -s conftest.err'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; } &&
18556 { ac_try='test -s conftest$ac_exeext'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 eval "$as_ac_var=yes"
18563else
18564 echo "$as_me: failed program was:" >&5
18565sed 's/^/| /' conftest.$ac_ext >&5
18566
18567eval "$as_ac_var=no"
18568fi
18569rm -f conftest.err conftest.$ac_objext \
18570 conftest$ac_exeext conftest.$ac_ext
18571fi
18572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18574if test `eval echo '${'$as_ac_var'}'` = yes; then
18575 cat >>confdefs.h <<_ACEOF
18576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18577_ACEOF
18578
18579fi
18580done
18581
18582echo "$as_me:$LINENO: checking for working mmap" >&5
18583echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18584if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586else
18587 if test "$cross_compiling" = yes; then
18588 ac_cv_func_mmap_fixed_mapped=no
18589else
18590 cat >conftest.$ac_ext <<_ACEOF
18591/* confdefs.h. */
18592_ACEOF
18593cat confdefs.h >>conftest.$ac_ext
18594cat >>conftest.$ac_ext <<_ACEOF
18595/* end confdefs.h. */
18596$ac_includes_default
18597/* malloc might have been renamed as rpl_malloc. */
18598#undef malloc
18599
18600/* Thanks to Mike Haertel and Jim Avera for this test.
18601 Here is a matrix of mmap possibilities:
18602 mmap private not fixed
18603 mmap private fixed at somewhere currently unmapped
18604 mmap private fixed at somewhere already mapped
18605 mmap shared not fixed
18606 mmap shared fixed at somewhere currently unmapped
18607 mmap shared fixed at somewhere already mapped
18608 For private mappings, we should verify that changes cannot be read()
18609 back from the file, nor mmap's back from the file at a different
18610 address. (There have been systems where private was not correctly
18611 implemented like the infamous i386 svr4.0, and systems where the
18612 VM page cache was not coherent with the file system buffer cache
18613 like early versions of FreeBSD and possibly contemporary NetBSD.)
18614 For shared mappings, we should conversely verify that changes get
18615 propagated back to all the places they're supposed to be.
18616
18617 Grep wants private fixed already mapped.
18618 The main things grep needs to know about mmap are:
18619 * does it exist and is it safe to write into the mmap'd area
18620 * how to use it (BSD variants) */
18621
18622#include <fcntl.h>
18623#include <sys/mman.h>
18624
18625#if !STDC_HEADERS && !HAVE_STDLIB_H
18626char *malloc ();
18627#endif
18628
18629/* This mess was copied from the GNU getpagesize.h. */
18630#if !HAVE_GETPAGESIZE
18631/* Assume that all systems that can run configure have sys/param.h. */
18632# if !HAVE_SYS_PARAM_H
18633# define HAVE_SYS_PARAM_H 1
18634# endif
18635
18636# ifdef _SC_PAGESIZE
18637# define getpagesize() sysconf(_SC_PAGESIZE)
18638# else /* no _SC_PAGESIZE */
18639# if HAVE_SYS_PARAM_H
18640# include <sys/param.h>
18641# ifdef EXEC_PAGESIZE
18642# define getpagesize() EXEC_PAGESIZE
18643# else /* no EXEC_PAGESIZE */
18644# ifdef NBPG
18645# define getpagesize() NBPG * CLSIZE
18646# ifndef CLSIZE
18647# define CLSIZE 1
18648# endif /* no CLSIZE */
18649# else /* no NBPG */
18650# ifdef NBPC
18651# define getpagesize() NBPC
18652# else /* no NBPC */
18653# ifdef PAGESIZE
18654# define getpagesize() PAGESIZE
18655# endif /* PAGESIZE */
18656# endif /* no NBPC */
18657# endif /* no NBPG */
18658# endif /* no EXEC_PAGESIZE */
18659# else /* no HAVE_SYS_PARAM_H */
18660# define getpagesize() 8192 /* punt totally */
18661# endif /* no HAVE_SYS_PARAM_H */
18662# endif /* no _SC_PAGESIZE */
18663
18664#endif /* no HAVE_GETPAGESIZE */
18665
18666int
18667main ()
18668{
18669 char *data, *data2, *data3;
18670 int i, pagesize;
18671 int fd;
18672
18673 pagesize = getpagesize ();
18674
18675 /* First, make a file with some known garbage in it. */
18676 data = (char *) malloc (pagesize);
18677 if (!data)
18678 exit (1);
18679 for (i = 0; i < pagesize; ++i)
18680 *(data + i) = rand ();
18681 umask (0);
18682 fd = creat ("conftest.mmap", 0600);
18683 if (fd < 0)
18684 exit (1);
18685 if (write (fd, data, pagesize) != pagesize)
18686 exit (1);
18687 close (fd);
18688
18689 /* Next, try to mmap the file at a fixed address which already has
18690 something else allocated at it. If we can, also make sure that
18691 we see the same garbage. */
18692 fd = open ("conftest.mmap", O_RDWR);
18693 if (fd < 0)
18694 exit (1);
18695 data2 = (char *) malloc (2 * pagesize);
18696 if (!data2)
18697 exit (1);
18698 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18699 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18700 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18701 exit (1);
18702 for (i = 0; i < pagesize; ++i)
18703 if (*(data + i) != *(data2 + i))
18704 exit (1);
18705
18706 /* Finally, make sure that changes to the mapped area do not
18707 percolate back to the file as seen by read(). (This is a bug on
18708 some variants of i386 svr4.0.) */
18709 for (i = 0; i < pagesize; ++i)
18710 *(data2 + i) = *(data2 + i) + 1;
18711 data3 = (char *) malloc (pagesize);
18712 if (!data3)
18713 exit (1);
18714 if (read (fd, data3, pagesize) != pagesize)
18715 exit (1);
18716 for (i = 0; i < pagesize; ++i)
18717 if (*(data + i) != *(data3 + i))
18718 exit (1);
18719 close (fd);
18720 exit (0);
18721}
18722_ACEOF
18723rm -f conftest$ac_exeext
18724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_cv_func_mmap_fixed_mapped=yes
18735else
18736 echo "$as_me: program exited with status $ac_status" >&5
18737echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740( exit $ac_status )
18741ac_cv_func_mmap_fixed_mapped=no
18742fi
18743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18744fi
18745fi
18746echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18747echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18748if test $ac_cv_func_mmap_fixed_mapped = yes; then
18749
18750cat >>confdefs.h <<\_ACEOF
18751#define HAVE_MMAP 1
18752_ACEOF
18753
18754fi
18755rm -f conftest.mmap
18756
18757echo "$as_me:$LINENO: checking for pid_t" >&5
18758echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18759if test "${ac_cv_type_pid_t+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761else
18762 cat >conftest.$ac_ext <<_ACEOF
18763/* confdefs.h. */
18764_ACEOF
18765cat confdefs.h >>conftest.$ac_ext
18766cat >>conftest.$ac_ext <<_ACEOF
18767/* end confdefs.h. */
18768$ac_includes_default
18769int
18770main ()
18771{
18772if ((pid_t *) 0)
18773 return 0;
18774if (sizeof (pid_t))
18775 return 0;
18776 ;
18777 return 0;
18778}
18779_ACEOF
18780rm -f conftest.$ac_objext
18781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18782 (eval $ac_compile) 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try='test -z "$ac_c_werror_flag"
18790 || test ! -s conftest.err'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_type_pid_t=yes
18803else
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807ac_cv_type_pid_t=no
18808fi
18809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18810fi
18811echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18812echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18813if test $ac_cv_type_pid_t = yes; then
18814 :
18815else
18816
18817cat >>confdefs.h <<_ACEOF
18818#define pid_t int
18819_ACEOF
18820
18821fi
18822
18823
18824
18825for ac_header in unistd.h vfork.h
18826do
18827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18828if eval "test \"\${$as_ac_Header+set}\" = set"; then
18829 echo "$as_me:$LINENO: checking for $ac_header" >&5
18830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18831if eval "test \"\${$as_ac_Header+set}\" = set"; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18833fi
18834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18836else
18837 # Is the header compilable?
18838echo "$as_me:$LINENO: checking $ac_header usability" >&5
18839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18840cat >conftest.$ac_ext <<_ACEOF
18841/* confdefs.h. */
18842_ACEOF
18843cat confdefs.h >>conftest.$ac_ext
18844cat >>conftest.$ac_ext <<_ACEOF
18845/* end confdefs.h. */
18846$ac_includes_default
18847#include <$ac_header>
18848_ACEOF
18849rm -f conftest.$ac_objext
18850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851 (eval $ac_compile) 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag"
18859 || test ! -s conftest.err'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest.$ac_objext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 ac_header_compiler=yes
18872else
18873 echo "$as_me: failed program was:" >&5
18874sed 's/^/| /' conftest.$ac_ext >&5
18875
18876ac_header_compiler=no
18877fi
18878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18880echo "${ECHO_T}$ac_header_compiler" >&6
18881
18882# Is the header present?
18883echo "$as_me:$LINENO: checking $ac_header presence" >&5
18884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18885cat >conftest.$ac_ext <<_ACEOF
18886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h. */
18891#include <$ac_header>
18892_ACEOF
18893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } >/dev/null; then
18901 if test -s conftest.err; then
18902 ac_cpp_err=$ac_c_preproc_warn_flag
18903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18904 else
18905 ac_cpp_err=
18906 fi
18907else
18908 ac_cpp_err=yes
18909fi
18910if test -z "$ac_cpp_err"; then
18911 ac_header_preproc=yes
18912else
18913 echo "$as_me: failed program was:" >&5
18914sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 ac_header_preproc=no
18917fi
18918rm -f conftest.err conftest.$ac_ext
18919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18920echo "${ECHO_T}$ac_header_preproc" >&6
18921
18922# So? What about this header?
18923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18924 yes:no: )
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18929 ac_header_preproc=yes
18930 ;;
18931 no:yes:* )
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18939echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18944 (
18945 cat <<\_ASBOX
18946## ------------------------------------------ ##
18947## Report this to the AC_PACKAGE_NAME lists. ##
18948## ------------------------------------------ ##
18949_ASBOX
18950 ) |
18951 sed "s/^/$as_me: WARNING: /" >&2
18952 ;;
18953esac
18954echo "$as_me:$LINENO: checking for $ac_header" >&5
18955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18956if eval "test \"\${$as_ac_Header+set}\" = set"; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958else
18959 eval "$as_ac_Header=\$ac_header_preproc"
18960fi
18961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18963
18964fi
18965if test `eval echo '${'$as_ac_Header'}'` = yes; then
18966 cat >>confdefs.h <<_ACEOF
18967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18968_ACEOF
18969
18970fi
18971
18972done
18973
18974
18975
18976for ac_func in fork vfork
18977do
18978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18979echo "$as_me:$LINENO: checking for $ac_func" >&5
18980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18981if eval "test \"\${$as_ac_var+set}\" = set"; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18983else
18984 cat >conftest.$ac_ext <<_ACEOF
18985/* confdefs.h. */
18986_ACEOF
18987cat confdefs.h >>conftest.$ac_ext
18988cat >>conftest.$ac_ext <<_ACEOF
18989/* end confdefs.h. */
18990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18992#define $ac_func innocuous_$ac_func
18993
18994/* System header to define __stub macros and hopefully few prototypes,
18995 which can conflict with char $ac_func (); below.
18996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18997 <limits.h> exists even on freestanding compilers. */
18998
18999#ifdef __STDC__
19000# include <limits.h>
19001#else
19002# include <assert.h>
19003#endif
19004
19005#undef $ac_func
19006
19007/* Override any gcc2 internal prototype to avoid an error. */
19008#ifdef __cplusplus
19009extern "C"
19010{
19011#endif
19012/* We use char because int might match the return type of a gcc2
19013 builtin and then its argument prototype would still apply. */
19014char $ac_func ();
19015/* The GNU C library defines this for functions which it implements
19016 to always fail with ENOSYS. Some functions are actually named
19017 something starting with __ and the normal name is an alias. */
19018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19019choke me
19020#else
19021char (*f) () = $ac_func;
19022#endif
19023#ifdef __cplusplus
19024}
19025#endif
19026
19027int
19028main ()
19029{
19030return f != $ac_func;
19031 ;
19032 return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext conftest$ac_exeext
19036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19037 (eval $ac_link) 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try='test -z "$ac_c_werror_flag"
19045 || test ! -s conftest.err'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest$ac_exeext'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 eval "$as_ac_var=yes"
19058else
19059 echo "$as_me: failed program was:" >&5
19060sed 's/^/| /' conftest.$ac_ext >&5
19061
19062eval "$as_ac_var=no"
19063fi
19064rm -f conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19066fi
19067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19069if test `eval echo '${'$as_ac_var'}'` = yes; then
19070 cat >>confdefs.h <<_ACEOF
19071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19072_ACEOF
19073
19074fi
19075done
19076
19077if test "x$ac_cv_func_fork" = xyes; then
19078 echo "$as_me:$LINENO: checking for working fork" >&5
19079echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19080if test "${ac_cv_func_fork_works+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083 if test "$cross_compiling" = yes; then
19084 ac_cv_func_fork_works=cross
19085else
19086 cat >conftest.$ac_ext <<_ACEOF
19087/* By Ruediger Kuhlmann. */
19088 #include <sys/types.h>
19089 #if HAVE_UNISTD_H
19090 # include <unistd.h>
19091 #endif
19092 /* Some systems only have a dummy stub for fork() */
19093 int main ()
19094 {
19095 if (fork() < 0)
19096 exit (1);
19097 exit (0);
19098 }
19099_ACEOF
19100rm -f conftest$ac_exeext
19101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19102 (eval $ac_link) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_func_fork_works=yes
19112else
19113 echo "$as_me: program exited with status $ac_status" >&5
19114echo "$as_me: failed program was:" >&5
19115sed 's/^/| /' conftest.$ac_ext >&5
19116
19117( exit $ac_status )
19118ac_cv_func_fork_works=no
19119fi
19120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19121fi
19122fi
19123echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19124echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19125
19126else
19127 ac_cv_func_fork_works=$ac_cv_func_fork
19128fi
19129if test "x$ac_cv_func_fork_works" = xcross; then
19130 case $host in
19131 *-*-amigaos* | *-*-msdosdjgpp*)
19132 # Override, as these systems have only a dummy fork() stub
19133 ac_cv_func_fork_works=no
19134 ;;
19135 *)
19136 ac_cv_func_fork_works=yes
19137 ;;
19138 esac
19139 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19140echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19141fi
19142ac_cv_func_vfork_works=$ac_cv_func_vfork
19143if test "x$ac_cv_func_vfork" = xyes; then
19144 echo "$as_me:$LINENO: checking for working vfork" >&5
19145echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19146if test "${ac_cv_func_vfork_works+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19148else
19149 if test "$cross_compiling" = yes; then
19150 ac_cv_func_vfork_works=cross
19151else
19152 cat >conftest.$ac_ext <<_ACEOF
19153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158/* Thanks to Paul Eggert for this test. */
19159#include <stdio.h>
19160#include <stdlib.h>
19161#include <sys/types.h>
19162#include <sys/stat.h>
19163#include <sys/wait.h>
19164#if HAVE_UNISTD_H
19165# include <unistd.h>
19166#endif
19167#if HAVE_VFORK_H
19168# include <vfork.h>
19169#endif
19170/* On some sparc systems, changes by the child to local and incoming
19171 argument registers are propagated back to the parent. The compiler
19172 is told about this with #include <vfork.h>, but some compilers
19173 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19174 static variable whose address is put into a register that is
19175 clobbered by the vfork. */
19176static void
19177#ifdef __cplusplus
19178sparc_address_test (int arg)
19179# else
19180sparc_address_test (arg) int arg;
19181#endif
19182{
19183 static pid_t child;
19184 if (!child) {
19185 child = vfork ();
19186 if (child < 0) {
19187 perror ("vfork");
19188 _exit(2);
19189 }
19190 if (!child) {
19191 arg = getpid();
19192 write(-1, "", 0);
19193 _exit (arg);
19194 }
19195 }
19196}
19197
19198int
19199main ()
19200{
19201 pid_t parent = getpid ();
19202 pid_t child;
19203
19204 sparc_address_test (0);
19205
19206 child = vfork ();
19207
19208 if (child == 0) {
19209 /* Here is another test for sparc vfork register problems. This
19210 test uses lots of local variables, at least as many local
19211 variables as main has allocated so far including compiler
19212 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19213 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19214 reuse the register of parent for one of the local variables,
19215 since it will think that parent can't possibly be used any more
19216 in this routine. Assigning to the local variable will thus
19217 munge parent in the parent process. */
19218 pid_t
19219 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19220 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19221 /* Convince the compiler that p..p7 are live; otherwise, it might
19222 use the same hardware register for all 8 local variables. */
19223 if (p != p1 || p != p2 || p != p3 || p != p4
19224 || p != p5 || p != p6 || p != p7)
19225 _exit(1);
19226
19227 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19228 from child file descriptors. If the child closes a descriptor
19229 before it execs or exits, this munges the parent's descriptor
19230 as well. Test for this by closing stdout in the child. */
19231 _exit(close(fileno(stdout)) != 0);
19232 } else {
19233 int status;
19234 struct stat st;
19235
19236 while (wait(&status) != child)
19237 ;
19238 exit(
19239 /* Was there some problem with vforking? */
19240 child < 0
19241
19242 /* Did the child fail? (This shouldn't happen.) */
19243 || status
19244
19245 /* Did the vfork/compiler bug occur? */
19246 || parent != getpid()
19247
19248 /* Did the file descriptor bug occur? */
19249 || fstat(fileno(stdout), &st) != 0
19250 );
19251 }
19252}
19253_ACEOF
19254rm -f conftest$ac_exeext
19255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19256 (eval $ac_link) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_cv_func_vfork_works=yes
19266else
19267 echo "$as_me: program exited with status $ac_status" >&5
19268echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5
19270
19271( exit $ac_status )
19272ac_cv_func_vfork_works=no
19273fi
19274rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19275fi
19276fi
19277echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19278echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19279
19280fi;
19281if test "x$ac_cv_func_fork_works" = xcross; then
19282 ac_cv_func_vfork_works=$ac_cv_func_vfork
19283 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19284echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19285fi
19286
19287if test "x$ac_cv_func_vfork_works" = xyes; then
19288
19289cat >>confdefs.h <<\_ACEOF
19290#define HAVE_WORKING_VFORK 1
19291_ACEOF
19292
19293else
19294
19295cat >>confdefs.h <<\_ACEOF
19296#define vfork fork
19297_ACEOF
19298
19299fi
19300if test "x$ac_cv_func_fork_works" = xyes; then
19301
19302cat >>confdefs.h <<\_ACEOF
19303#define HAVE_WORKING_FORK 1
19304_ACEOF
19305
19306fi
19307
19308
19309
19310for ac_func in canonicalize_file_name realpath
19311do
19312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19313echo "$as_me:$LINENO: checking for $ac_func" >&5
19314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19315if eval "test \"\${$as_ac_var+set}\" = set"; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19317else
19318 cat >conftest.$ac_ext <<_ACEOF
19319/* confdefs.h. */
19320_ACEOF
19321cat confdefs.h >>conftest.$ac_ext
19322cat >>conftest.$ac_ext <<_ACEOF
19323/* end confdefs.h. */
19324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19326#define $ac_func innocuous_$ac_func
19327
19328/* System header to define __stub macros and hopefully few prototypes,
19329 which can conflict with char $ac_func (); below.
19330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19331 <limits.h> exists even on freestanding compilers. */
19332
19333#ifdef __STDC__
19334# include <limits.h>
19335#else
19336# include <assert.h>
19337#endif
19338
19339#undef $ac_func
19340
19341/* Override any gcc2 internal prototype to avoid an error. */
19342#ifdef __cplusplus
19343extern "C"
19344{
19345#endif
19346/* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19348char $ac_func ();
19349/* The GNU C library defines this for functions which it implements
19350 to always fail with ENOSYS. Some functions are actually named
19351 something starting with __ and the normal name is an alias. */
19352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19353choke me
19354#else
19355char (*f) () = $ac_func;
19356#endif
19357#ifdef __cplusplus
19358}
19359#endif
19360
19361int
19362main ()
19363{
19364return f != $ac_func;
19365 ;
19366 return 0;
19367}
19368_ACEOF
19369rm -f conftest.$ac_objext conftest$ac_exeext
19370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19371 (eval $ac_link) 2>conftest.er1
19372 ac_status=$?
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest$ac_exeext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 eval "$as_ac_var=yes"
19392else
19393 echo "$as_me: failed program was:" >&5
19394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396eval "$as_ac_var=no"
19397fi
19398rm -f conftest.err conftest.$ac_objext \
19399 conftest$ac_exeext conftest.$ac_ext
19400fi
19401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19403if test `eval echo '${'$as_ac_var'}'` = yes; then
19404 cat >>confdefs.h <<_ACEOF
19405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19406_ACEOF
19407
19408fi
19409done
19410
19411
19412for ac_func in getrusage
19413do
19414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19415echo "$as_me:$LINENO: checking for $ac_func" >&5
19416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19417if eval "test \"\${$as_ac_var+set}\" = set"; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419else
19420 cat >conftest.$ac_ext <<_ACEOF
19421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
19426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19428#define $ac_func innocuous_$ac_func
19429
19430/* System header to define __stub macros and hopefully few prototypes,
19431 which can conflict with char $ac_func (); below.
19432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19433 <limits.h> exists even on freestanding compilers. */
19434
19435#ifdef __STDC__
19436# include <limits.h>
19437#else
19438# include <assert.h>
19439#endif
19440
19441#undef $ac_func
19442
19443/* Override any gcc2 internal prototype to avoid an error. */
19444#ifdef __cplusplus
19445extern "C"
19446{
19447#endif
19448/* We use char because int might match the return type of a gcc2
19449 builtin and then its argument prototype would still apply. */
19450char $ac_func ();
19451/* The GNU C library defines this for functions which it implements
19452 to always fail with ENOSYS. Some functions are actually named
19453 something starting with __ and the normal name is an alias. */
19454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19455choke me
19456#else
19457char (*f) () = $ac_func;
19458#endif
19459#ifdef __cplusplus
19460}
19461#endif
19462
19463int
19464main ()
19465{
19466return f != $ac_func;
19467 ;
19468 return 0;
19469}
19470_ACEOF
19471rm -f conftest.$ac_objext conftest$ac_exeext
19472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473 (eval $ac_link) 2>conftest.er1
19474 ac_status=$?
19475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
19480 { ac_try='test -z "$ac_c_werror_flag"
19481 || test ! -s conftest.err'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; } &&
19487 { ac_try='test -s conftest$ac_exeext'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 eval "$as_ac_var=yes"
19494else
19495 echo "$as_me: failed program was:" >&5
19496sed 's/^/| /' conftest.$ac_ext >&5
19497
19498eval "$as_ac_var=no"
19499fi
19500rm -f conftest.err conftest.$ac_objext \
19501 conftest$ac_exeext conftest.$ac_ext
19502fi
19503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19504echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19505if test `eval echo '${'$as_ac_var'}'` = yes; then
19506 cat >>confdefs.h <<_ACEOF
19507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19508_ACEOF
19509
19510fi
19511done
19512
19513
19514
19515for ac_func in getuid getgid
19516do
19517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19518echo "$as_me:$LINENO: checking for $ac_func" >&5
19519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19520if eval "test \"\${$as_ac_var+set}\" = set"; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522else
19523 cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19531#define $ac_func innocuous_$ac_func
19532
19533/* System header to define __stub macros and hopefully few prototypes,
19534 which can conflict with char $ac_func (); below.
19535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19536 <limits.h> exists even on freestanding compilers. */
19537
19538#ifdef __STDC__
19539# include <limits.h>
19540#else
19541# include <assert.h>
19542#endif
19543
19544#undef $ac_func
19545
19546/* Override any gcc2 internal prototype to avoid an error. */
19547#ifdef __cplusplus
19548extern "C"
19549{
19550#endif
19551/* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19553char $ac_func ();
19554/* The GNU C library defines this for functions which it implements
19555 to always fail with ENOSYS. Some functions are actually named
19556 something starting with __ and the normal name is an alias. */
19557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19558choke me
19559#else
19560char (*f) () = $ac_func;
19561#endif
19562#ifdef __cplusplus
19563}
19564#endif
19565
19566int
19567main ()
19568{
19569return f != $ac_func;
19570 ;
19571 return 0;
19572}
19573_ACEOF
19574rm -f conftest.$ac_objext conftest$ac_exeext
19575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest$ac_exeext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 eval "$as_ac_var=yes"
19597else
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601eval "$as_ac_var=no"
19602fi
19603rm -f conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19605fi
19606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19607echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19608if test `eval echo '${'$as_ac_var'}'` = yes; then
19609 cat >>confdefs.h <<_ACEOF
19610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19611_ACEOF
19612
19613fi
19614done
19615
19616
19617for ac_func in poll
19618do
19619as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19620echo "$as_me:$LINENO: checking for $ac_func" >&5
19621echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19622if eval "test \"\${$as_ac_var+set}\" = set"; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19624else
19625 cat >conftest.$ac_ext <<_ACEOF
19626/* confdefs.h. */
19627_ACEOF
19628cat confdefs.h >>conftest.$ac_ext
19629cat >>conftest.$ac_ext <<_ACEOF
19630/* end confdefs.h. */
19631/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19633#define $ac_func innocuous_$ac_func
19634
19635/* System header to define __stub macros and hopefully few prototypes,
19636 which can conflict with char $ac_func (); below.
19637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19638 <limits.h> exists even on freestanding compilers. */
19639
19640#ifdef __STDC__
19641# include <limits.h>
19642#else
19643# include <assert.h>
19644#endif
19645
19646#undef $ac_func
19647
19648/* Override any gcc2 internal prototype to avoid an error. */
19649#ifdef __cplusplus
19650extern "C"
19651{
19652#endif
19653/* We use char because int might match the return type of a gcc2
19654 builtin and then its argument prototype would still apply. */
19655char $ac_func ();
19656/* The GNU C library defines this for functions which it implements
19657 to always fail with ENOSYS. Some functions are actually named
19658 something starting with __ and the normal name is an alias. */
19659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19660choke me
19661#else
19662char (*f) () = $ac_func;
19663#endif
19664#ifdef __cplusplus
19665}
19666#endif
19667
19668int
19669main ()
19670{
19671return f != $ac_func;
19672 ;
19673 return 0;
19674}
19675_ACEOF
19676rm -f conftest.$ac_objext conftest$ac_exeext
19677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678 (eval $ac_link) 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest$ac_exeext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 eval "$as_ac_var=yes"
19699else
19700 echo "$as_me: failed program was:" >&5
19701sed 's/^/| /' conftest.$ac_ext >&5
19702
19703eval "$as_ac_var=no"
19704fi
19705rm -f conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19707fi
19708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19709echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19710if test `eval echo '${'$as_ac_var'}'` = yes; then
19711 cat >>confdefs.h <<_ACEOF
19712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19713_ACEOF
19714
19715fi
19716done
19717
19718
19719for ac_func in pread64
19720do
19721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19722echo "$as_me:$LINENO: checking for $ac_func" >&5
19723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19724if eval "test \"\${$as_ac_var+set}\" = set"; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19726else
19727 cat >conftest.$ac_ext <<_ACEOF
19728/* confdefs.h. */
19729_ACEOF
19730cat confdefs.h >>conftest.$ac_ext
19731cat >>conftest.$ac_ext <<_ACEOF
19732/* end confdefs.h. */
19733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19735#define $ac_func innocuous_$ac_func
19736
19737/* System header to define __stub macros and hopefully few prototypes,
19738 which can conflict with char $ac_func (); below.
19739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19740 <limits.h> exists even on freestanding compilers. */
19741
19742#ifdef __STDC__
19743# include <limits.h>
19744#else
19745# include <assert.h>
19746#endif
19747
19748#undef $ac_func
19749
19750/* Override any gcc2 internal prototype to avoid an error. */
19751#ifdef __cplusplus
19752extern "C"
19753{
19754#endif
19755/* We use char because int might match the return type of a gcc2
19756 builtin and then its argument prototype would still apply. */
19757char $ac_func ();
19758/* The GNU C library defines this for functions which it implements
19759 to always fail with ENOSYS. Some functions are actually named
19760 something starting with __ and the normal name is an alias. */
19761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19762choke me
19763#else
19764char (*f) () = $ac_func;
19765#endif
19766#ifdef __cplusplus
19767}
19768#endif
19769
19770int
19771main ()
19772{
19773return f != $ac_func;
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext conftest$ac_exeext
19779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19780 (eval $ac_link) 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest$ac_exeext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 eval "$as_ac_var=yes"
19801else
19802 echo "$as_me: failed program was:" >&5
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
19805eval "$as_ac_var=no"
19806fi
19807rm -f conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19809fi
19810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19812if test `eval echo '${'$as_ac_var'}'` = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19815_ACEOF
19816
19817fi
19818done
19819
19820
19821for ac_func in sbrk
19822do
19823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19824echo "$as_me:$LINENO: checking for $ac_func" >&5
19825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19826if eval "test \"\${$as_ac_var+set}\" = set"; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19828else
19829 cat >conftest.$ac_ext <<_ACEOF
19830/* confdefs.h. */
19831_ACEOF
19832cat confdefs.h >>conftest.$ac_ext
19833cat >>conftest.$ac_ext <<_ACEOF
19834/* end confdefs.h. */
19835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19837#define $ac_func innocuous_$ac_func
19838
19839/* System header to define __stub macros and hopefully few prototypes,
19840 which can conflict with char $ac_func (); below.
19841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19842 <limits.h> exists even on freestanding compilers. */
19843
19844#ifdef __STDC__
19845# include <limits.h>
19846#else
19847# include <assert.h>
19848#endif
19849
19850#undef $ac_func
19851
19852/* Override any gcc2 internal prototype to avoid an error. */
19853#ifdef __cplusplus
19854extern "C"
19855{
19856#endif
19857/* We use char because int might match the return type of a gcc2
19858 builtin and then its argument prototype would still apply. */
19859char $ac_func ();
19860/* The GNU C library defines this for functions which it implements
19861 to always fail with ENOSYS. Some functions are actually named
19862 something starting with __ and the normal name is an alias. */
19863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19864choke me
19865#else
19866char (*f) () = $ac_func;
19867#endif
19868#ifdef __cplusplus
19869}
19870#endif
19871
19872int
19873main ()
19874{
19875return f != $ac_func;
19876 ;
19877 return 0;
19878}
19879_ACEOF
19880rm -f conftest.$ac_objext conftest$ac_exeext
19881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882 (eval $ac_link) 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_c_werror_flag"
19890 || test ! -s conftest.err'
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); }; } &&
19896 { ac_try='test -s conftest$ac_exeext'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 eval "$as_ac_var=yes"
19903else
19904 echo "$as_me: failed program was:" >&5
19905sed 's/^/| /' conftest.$ac_ext >&5
19906
19907eval "$as_ac_var=no"
19908fi
19909rm -f conftest.err conftest.$ac_objext \
19910 conftest$ac_exeext conftest.$ac_ext
19911fi
19912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19913echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19914if test `eval echo '${'$as_ac_var'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19917_ACEOF
19918
19919fi
19920done
19921
19922
19923
19924
19925for ac_func in setpgid setpgrp setsid
19926do
19927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19928echo "$as_me:$LINENO: checking for $ac_func" >&5
19929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19930if eval "test \"\${$as_ac_var+set}\" = set"; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932else
19933 cat >conftest.$ac_ext <<_ACEOF
19934/* confdefs.h. */
19935_ACEOF
19936cat confdefs.h >>conftest.$ac_ext
19937cat >>conftest.$ac_ext <<_ACEOF
19938/* end confdefs.h. */
19939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941#define $ac_func innocuous_$ac_func
19942
19943/* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char $ac_func (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19947
19948#ifdef __STDC__
19949# include <limits.h>
19950#else
19951# include <assert.h>
19952#endif
19953
19954#undef $ac_func
19955
19956/* Override any gcc2 internal prototype to avoid an error. */
19957#ifdef __cplusplus
19958extern "C"
19959{
19960#endif
19961/* We use char because int might match the return type of a gcc2
19962 builtin and then its argument prototype would still apply. */
19963char $ac_func ();
19964/* The GNU C library defines this for functions which it implements
19965 to always fail with ENOSYS. Some functions are actually named
19966 something starting with __ and the normal name is an alias. */
19967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19968choke me
19969#else
19970char (*f) () = $ac_func;
19971#endif
19972#ifdef __cplusplus
19973}
19974#endif
19975
19976int
19977main ()
19978{
19979return f != $ac_func;
19980 ;
19981 return 0;
19982}
19983_ACEOF
19984rm -f conftest.$ac_objext conftest$ac_exeext
19985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19986 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
20007else
20008 echo "$as_me: failed program was:" >&5
20009sed 's/^/| /' conftest.$ac_ext >&5
20010
20011eval "$as_ac_var=no"
20012fi
20013rm -f conftest.err conftest.$ac_objext \
20014 conftest$ac_exeext conftest.$ac_ext
20015fi
20016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20018if test `eval echo '${'$as_ac_var'}'` = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20021_ACEOF
20022
20023fi
20024done
20025
20026
20027
20028
20029for ac_func in sigaction sigprocmask sigsetmask
20030do
20031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20032echo "$as_me:$LINENO: checking for $ac_func" >&5
20033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20034if eval "test \"\${$as_ac_var+set}\" = set"; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036else
20037 cat >conftest.$ac_ext <<_ACEOF
20038/* confdefs.h. */
20039_ACEOF
20040cat confdefs.h >>conftest.$ac_ext
20041cat >>conftest.$ac_ext <<_ACEOF
20042/* end confdefs.h. */
20043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20045#define $ac_func innocuous_$ac_func
20046
20047/* System header to define __stub macros and hopefully few prototypes,
20048 which can conflict with char $ac_func (); below.
20049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20050 <limits.h> exists even on freestanding compilers. */
20051
20052#ifdef __STDC__
20053# include <limits.h>
20054#else
20055# include <assert.h>
20056#endif
20057
20058#undef $ac_func
20059
20060/* Override any gcc2 internal prototype to avoid an error. */
20061#ifdef __cplusplus
20062extern "C"
20063{
20064#endif
20065/* We use char because int might match the return type of a gcc2
20066 builtin and then its argument prototype would still apply. */
20067char $ac_func ();
20068/* The GNU C library defines this for functions which it implements
20069 to always fail with ENOSYS. Some functions are actually named
20070 something starting with __ and the normal name is an alias. */
20071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20072choke me
20073#else
20074char (*f) () = $ac_func;
20075#endif
20076#ifdef __cplusplus
20077}
20078#endif
20079
20080int
20081main ()
20082{
20083return f != $ac_func;
20084 ;
20085 return 0;
20086}
20087_ACEOF
20088rm -f conftest.$ac_objext conftest$ac_exeext
20089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20090 (eval $ac_link) 2>conftest.er1
20091 ac_status=$?
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
20097 { ac_try='test -z "$ac_c_werror_flag"
20098 || test ! -s conftest.err'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; } &&
20104 { ac_try='test -s conftest$ac_exeext'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 eval "$as_ac_var=yes"
20111else
20112 echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115eval "$as_ac_var=no"
20116fi
20117rm -f conftest.err conftest.$ac_objext \
20118 conftest$ac_exeext conftest.$ac_ext
20119fi
20120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20122if test `eval echo '${'$as_ac_var'}'` = yes; then
20123 cat >>confdefs.h <<_ACEOF
20124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20125_ACEOF
20126
20127fi
20128done
20129
20130
20131for ac_func in socketpair
20132do
20133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20134echo "$as_me:$LINENO: checking for $ac_func" >&5
20135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20136if eval "test \"\${$as_ac_var+set}\" = set"; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20138else
20139 cat >conftest.$ac_ext <<_ACEOF
20140/* confdefs.h. */
20141_ACEOF
20142cat confdefs.h >>conftest.$ac_ext
20143cat >>conftest.$ac_ext <<_ACEOF
20144/* end confdefs.h. */
20145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20147#define $ac_func innocuous_$ac_func
20148
20149/* System header to define __stub macros and hopefully few prototypes,
20150 which can conflict with char $ac_func (); below.
20151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20152 <limits.h> exists even on freestanding compilers. */
20153
20154#ifdef __STDC__
20155# include <limits.h>
20156#else
20157# include <assert.h>
20158#endif
20159
20160#undef $ac_func
20161
20162/* Override any gcc2 internal prototype to avoid an error. */
20163#ifdef __cplusplus
20164extern "C"
20165{
20166#endif
20167/* We use char because int might match the return type of a gcc2
20168 builtin and then its argument prototype would still apply. */
20169char $ac_func ();
20170/* The GNU C library defines this for functions which it implements
20171 to always fail with ENOSYS. Some functions are actually named
20172 something starting with __ and the normal name is an alias. */
20173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20174choke me
20175#else
20176char (*f) () = $ac_func;
20177#endif
20178#ifdef __cplusplus
20179}
20180#endif
20181
20182int
20183main ()
20184{
20185return f != $ac_func;
20186 ;
20187 return 0;
20188}
20189_ACEOF
20190rm -f conftest.$ac_objext conftest$ac_exeext
20191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20192 (eval $ac_link) 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try='test -z "$ac_c_werror_flag"
20200 || test ! -s conftest.err'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest$ac_exeext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 eval "$as_ac_var=yes"
20213else
20214 echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217eval "$as_ac_var=no"
20218fi
20219rm -f conftest.err conftest.$ac_objext \
20220 conftest$ac_exeext conftest.$ac_ext
20221fi
20222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20224if test `eval echo '${'$as_ac_var'}'` = yes; then
20225 cat >>confdefs.h <<_ACEOF
20226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20227_ACEOF
20228
20229fi
20230done
20231
20232
20233for ac_func in syscall
20234do
20235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20236echo "$as_me:$LINENO: checking for $ac_func" >&5
20237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20238if eval "test \"\${$as_ac_var+set}\" = set"; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240else
20241 cat >conftest.$ac_ext <<_ACEOF
20242/* confdefs.h. */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h. */
20247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20249#define $ac_func innocuous_$ac_func
20250
20251/* System header to define __stub macros and hopefully few prototypes,
20252 which can conflict with char $ac_func (); below.
20253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20254 <limits.h> exists even on freestanding compilers. */
20255
20256#ifdef __STDC__
20257# include <limits.h>
20258#else
20259# include <assert.h>
20260#endif
20261
20262#undef $ac_func
20263
20264/* Override any gcc2 internal prototype to avoid an error. */
20265#ifdef __cplusplus
20266extern "C"
20267{
20268#endif
20269/* We use char because int might match the return type of a gcc2
20270 builtin and then its argument prototype would still apply. */
20271char $ac_func ();
20272/* The GNU C library defines this for functions which it implements
20273 to always fail with ENOSYS. Some functions are actually named
20274 something starting with __ and the normal name is an alias. */
20275#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20276choke me
20277#else
20278char (*f) () = $ac_func;
20279#endif
20280#ifdef __cplusplus
20281}
20282#endif
20283
20284int
20285main ()
20286{
20287return f != $ac_func;
20288 ;
20289 return 0;
20290}
20291_ACEOF
20292rm -f conftest.$ac_objext conftest$ac_exeext
20293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20294 (eval $ac_link) 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag"
20302 || test ! -s conftest.err'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } &&
20308 { ac_try='test -s conftest$ac_exeext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 eval "$as_ac_var=yes"
20315else
20316 echo "$as_me: failed program was:" >&5
20317sed 's/^/| /' conftest.$ac_ext >&5
20318
20319eval "$as_ac_var=no"
20320fi
20321rm -f conftest.err conftest.$ac_objext \
20322 conftest$ac_exeext conftest.$ac_ext
20323fi
20324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20326if test `eval echo '${'$as_ac_var'}'` = yes; then
20327 cat >>confdefs.h <<_ACEOF
20328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20329_ACEOF
20330
20331fi
20332done
20333
20334
20335for ac_func in ttrace
20336do
20337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20338echo "$as_me:$LINENO: checking for $ac_func" >&5
20339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20340if eval "test \"\${$as_ac_var+set}\" = set"; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20342else
20343 cat >conftest.$ac_ext <<_ACEOF
20344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
20348/* end confdefs.h. */
20349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20351#define $ac_func innocuous_$ac_func
20352
20353/* System header to define __stub macros and hopefully few prototypes,
20354 which can conflict with char $ac_func (); below.
20355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20356 <limits.h> exists even on freestanding compilers. */
20357
20358#ifdef __STDC__
20359# include <limits.h>
20360#else
20361# include <assert.h>
20362#endif
20363
20364#undef $ac_func
20365
20366/* Override any gcc2 internal prototype to avoid an error. */
20367#ifdef __cplusplus
20368extern "C"
20369{
20370#endif
20371/* We use char because int might match the return type of a gcc2
20372 builtin and then its argument prototype would still apply. */
20373char $ac_func ();
20374/* The GNU C library defines this for functions which it implements
20375 to always fail with ENOSYS. Some functions are actually named
20376 something starting with __ and the normal name is an alias. */
20377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20378choke me
20379#else
20380char (*f) () = $ac_func;
20381#endif
20382#ifdef __cplusplus
20383}
20384#endif
20385
20386int
20387main ()
20388{
20389return f != $ac_func;
20390 ;
20391 return 0;
20392}
20393_ACEOF
20394rm -f conftest.$ac_objext conftest$ac_exeext
20395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396 (eval $ac_link) 2>conftest.er1
20397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag"
20404 || test ! -s conftest.err'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest$ac_exeext'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 eval "$as_ac_var=yes"
20417else
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421eval "$as_ac_var=no"
20422fi
20423rm -f conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20425fi
20426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20428if test `eval echo '${'$as_ac_var'}'` = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20431_ACEOF
20432
20433fi
20434done
20435
20436
20437for ac_func in wborder
20438do
20439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20440echo "$as_me:$LINENO: checking for $ac_func" >&5
20441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20442if eval "test \"\${$as_ac_var+set}\" = set"; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444else
20445 cat >conftest.$ac_ext <<_ACEOF
20446/* confdefs.h. */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h. */
20451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20453#define $ac_func innocuous_$ac_func
20454
20455/* System header to define __stub macros and hopefully few prototypes,
20456 which can conflict with char $ac_func (); below.
20457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20458 <limits.h> exists even on freestanding compilers. */
20459
20460#ifdef __STDC__
20461# include <limits.h>
20462#else
20463# include <assert.h>
20464#endif
20465
20466#undef $ac_func
20467
20468/* Override any gcc2 internal prototype to avoid an error. */
20469#ifdef __cplusplus
20470extern "C"
20471{
20472#endif
20473/* We use char because int might match the return type of a gcc2
20474 builtin and then its argument prototype would still apply. */
20475char $ac_func ();
20476/* The GNU C library defines this for functions which it implements
20477 to always fail with ENOSYS. Some functions are actually named
20478 something starting with __ and the normal name is an alias. */
20479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20480choke me
20481#else
20482char (*f) () = $ac_func;
20483#endif
20484#ifdef __cplusplus
20485}
20486#endif
20487
20488int
20489main ()
20490{
20491return f != $ac_func;
20492 ;
20493 return 0;
20494}
20495_ACEOF
20496rm -f conftest.$ac_objext conftest$ac_exeext
20497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20498 (eval $ac_link) 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } &&
20505 { ac_try='test -z "$ac_c_werror_flag"
20506 || test ! -s conftest.err'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try='test -s conftest$ac_exeext'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 eval "$as_ac_var=yes"
20519else
20520 echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523eval "$as_ac_var=no"
20524fi
20525rm -f conftest.err conftest.$ac_objext \
20526 conftest$ac_exeext conftest.$ac_ext
20527fi
20528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20529echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20530if test `eval echo '${'$as_ac_var'}'` = yes; then
20531 cat >>confdefs.h <<_ACEOF
20532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20533_ACEOF
20534
20535fi
20536done
20537
20538
20539# Check the return and argument types of ptrace. No canned test for
20540# this, so roll our own.
20541gdb_ptrace_headers='
20542#if HAVE_SYS_TYPES_H
20543# include <sys/types.h>
20544#endif
20545#if HAVE_SYS_PTRACE_H
20546# include <sys/ptrace.h>
20547#endif
20548#if HAVE_UNISTD_H
20549# include <unistd.h>
20550#endif
20551'
20552# There is no point in checking if we don't have a prototype.
20553echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20554echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
20555if test "${ac_cv_have_decl_ptrace+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557else
20558 cat >conftest.$ac_ext <<_ACEOF
20559/* confdefs.h. */
20560_ACEOF
20561cat confdefs.h >>conftest.$ac_ext
20562cat >>conftest.$ac_ext <<_ACEOF
20563/* end confdefs.h. */
20564$gdb_ptrace_headers
20565
20566int
20567main ()
20568{
20569#ifndef ptrace
20570 char *p = (char *) ptrace;
20571#endif
20572
20573 ;
20574 return 0;
20575}
20576_ACEOF
20577rm -f conftest.$ac_objext
20578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20579 (eval $ac_compile) 2>conftest.er1
20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } &&
20586 { ac_try='test -z "$ac_c_werror_flag"
20587 || test ! -s conftest.err'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try='test -s conftest.$ac_objext'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_cv_have_decl_ptrace=yes
20600else
20601 echo "$as_me: failed program was:" >&5
20602sed 's/^/| /' conftest.$ac_ext >&5
20603
20604ac_cv_have_decl_ptrace=no
20605fi
20606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20607fi
20608echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20609echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
20610if test $ac_cv_have_decl_ptrace = yes; then
20611
20612cat >>confdefs.h <<_ACEOF
20613#define HAVE_DECL_PTRACE 1
20614_ACEOF
20615
20616
20617else
20618 cat >>confdefs.h <<_ACEOF
20619#define HAVE_DECL_PTRACE 0
20620_ACEOF
20621
20622
20623 : ${gdb_cv_func_ptrace_ret='int'}
20624 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20625
20626fi
20627
20628
20629# Check return type. Varargs (used on GNU/Linux) conflict with the
20630# empty argument list, so check for that explicitly.
20631echo "$as_me:$LINENO: checking return type of ptrace" >&5
20632echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20633if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20635else
20636 cat >conftest.$ac_ext <<_ACEOF
20637/* confdefs.h. */
20638_ACEOF
20639cat confdefs.h >>conftest.$ac_ext
20640cat >>conftest.$ac_ext <<_ACEOF
20641/* end confdefs.h. */
20642$gdb_ptrace_headers
20643int
20644main ()
20645{
20646extern long ptrace (enum __ptrace_request, ...);
20647 ;
20648 return 0;
20649}
20650_ACEOF
20651rm -f conftest.$ac_objext
20652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20653 (eval $ac_compile) 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag"
20661 || test ! -s conftest.err'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest.$ac_objext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 gdb_cv_func_ptrace_ret='long'
20674else
20675 echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
20678cat >conftest.$ac_ext <<_ACEOF
20679/* confdefs.h. */
20680_ACEOF
20681cat confdefs.h >>conftest.$ac_ext
20682cat >>conftest.$ac_ext <<_ACEOF
20683/* end confdefs.h. */
20684$gdb_ptrace_headers
20685int
20686main ()
20687{
20688extern int ptrace ();
20689 ;
20690 return 0;
20691}
20692_ACEOF
20693rm -f conftest.$ac_objext
20694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695 (eval $ac_compile) 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest.$ac_objext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 gdb_cv_func_ptrace_ret='int'
20716else
20717 echo "$as_me: failed program was:" >&5
20718sed 's/^/| /' conftest.$ac_ext >&5
20719
20720gdb_cv_func_ptrace_ret='long'
20721fi
20722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20723fi
20724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20725fi
20726echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20727echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20728
20729cat >>confdefs.h <<_ACEOF
20730#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20731_ACEOF
20732
20733# Check argument types.
20734echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20735echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20736if test "${gdb_cv_func_ptrace_args+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738else
20739
20740 cat >conftest.$ac_ext <<_ACEOF
20741/* confdefs.h. */
20742_ACEOF
20743cat confdefs.h >>conftest.$ac_ext
20744cat >>conftest.$ac_ext <<_ACEOF
20745/* end confdefs.h. */
20746$gdb_ptrace_headers
20747int
20748main ()
20749{
20750extern long ptrace (enum __ptrace_request, ...);
20751 ;
20752 return 0;
20753}
20754_ACEOF
20755rm -f conftest.$ac_objext
20756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757 (eval $ac_compile) 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
20764 { ac_try='test -z "$ac_c_werror_flag"
20765 || test ! -s conftest.err'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 gdb_cv_func_ptrace_args='int,int,long,long'
20778else
20779 echo "$as_me: failed program was:" >&5
20780sed 's/^/| /' conftest.$ac_ext >&5
20781
20782
20783for gdb_arg1 in 'int' 'long'; do
20784 for gdb_arg2 in 'pid_t' 'int' 'long'; do
20785 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20786 for gdb_arg4 in 'int' 'long'; do
20787 cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h. */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h. */
20793$gdb_ptrace_headers
20794int
20795main ()
20796{
20797
20798extern $gdb_cv_func_ptrace_ret
20799 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20800
20801 ;
20802 return 0;
20803}
20804_ACEOF
20805rm -f conftest.$ac_objext
20806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20807 (eval $ac_compile) 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
20814 { ac_try='test -z "$ac_c_werror_flag"
20815 || test ! -s conftest.err'
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; } &&
20821 { ac_try='test -s conftest.$ac_objext'
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20828 break 4;
20829else
20830 echo "$as_me: failed program was:" >&5
20831sed 's/^/| /' conftest.$ac_ext >&5
20832
20833fi
20834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20835 for gdb_arg5 in 'int *' 'int' 'long'; do
20836 cat >conftest.$ac_ext <<_ACEOF
20837/* confdefs.h. */
20838_ACEOF
20839cat confdefs.h >>conftest.$ac_ext
20840cat >>conftest.$ac_ext <<_ACEOF
20841/* end confdefs.h. */
20842$gdb_ptrace_headers
20843int
20844main ()
20845{
20846
20847extern $gdb_cv_func_ptrace_ret
20848 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20849
20850 ;
20851 return 0;
20852}
20853_ACEOF
20854rm -f conftest.$ac_objext
20855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856 (eval $ac_compile) 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
20863 { ac_try='test -z "$ac_c_werror_flag"
20864 || test ! -s conftest.err'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest.$ac_objext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876
20877gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20878 break 5;
20879else
20880 echo "$as_me: failed program was:" >&5
20881sed 's/^/| /' conftest.$ac_ext >&5
20882
20883fi
20884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20885 done
20886 done
20887 done
20888 done
20889done
20890# Provide a safe default value.
20891: ${gdb_cv_func_ptrace_args='int,int,long,long'}
20892
20893fi
20894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20895fi
20896echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20897echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20898ac_save_IFS=$IFS; IFS=','
20899set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20900IFS=$ac_save_IFS
20901shift
20902
20903cat >>confdefs.h <<_ACEOF
20904#define PTRACE_TYPE_ARG3 $3
20905_ACEOF
20906
20907if test -n "$5"; then
20908
20909cat >>confdefs.h <<_ACEOF
20910#define PTRACE_TYPE_ARG5 $5
20911_ACEOF
20912
20913fi
20914
20915if test "$cross_compiling" = no; then
20916 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20917echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20918if test "${ac_cv_func_setpgrp_void+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920else
20921 if test "$cross_compiling" = yes; then
20922 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20923echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20924 { (exit 1); exit 1; }; }
20925else
20926 cat >conftest.$ac_ext <<_ACEOF
20927/* confdefs.h. */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h. */
20932#if HAVE_UNISTD_H
20933# include <unistd.h>
20934#endif
20935
20936int
20937main ()
20938{
20939/* If this system has a BSD-style setpgrp which takes arguments,
20940 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20941 exit successfully. */
20942 exit (setpgrp (1,1) == -1 ? 0 : 1);
20943 ;
20944 return 0;
20945}
20946_ACEOF
20947rm -f conftest$ac_exeext
20948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949 (eval $ac_link) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_func_setpgrp_void=no
20959else
20960 echo "$as_me: program exited with status $ac_status" >&5
20961echo "$as_me: failed program was:" >&5
20962sed 's/^/| /' conftest.$ac_ext >&5
20963
20964( exit $ac_status )
20965ac_cv_func_setpgrp_void=yes
20966fi
20967rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20968fi
20969fi
20970echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20971echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20972if test $ac_cv_func_setpgrp_void = yes; then
20973
20974cat >>confdefs.h <<\_ACEOF
20975#define SETPGRP_VOID 1
20976_ACEOF
20977
20978fi
20979
20980else
20981 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20982echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20983if test "${ac_cv_func_setpgrp_void+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985else
20986 cat >conftest.$ac_ext <<_ACEOF
20987/* confdefs.h. */
20988_ACEOF
20989cat confdefs.h >>conftest.$ac_ext
20990cat >>conftest.$ac_ext <<_ACEOF
20991/* end confdefs.h. */
20992
20993#include <unistd.h>
20994
20995int
20996main ()
20997{
20998
20999 if (setpgrp(1,1) == -1)
21000 exit (0);
21001 else
21002 exit (1);
21003
21004 ;
21005 return 0;
21006}
21007_ACEOF
21008rm -f conftest.$ac_objext
21009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21010 (eval $ac_compile) 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try='test -z "$ac_c_werror_flag"
21018 || test ! -s conftest.err'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; } &&
21024 { ac_try='test -s conftest.$ac_objext'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 ac_cv_func_setpgrp_void=no
21031else
21032 echo "$as_me: failed program was:" >&5
21033sed 's/^/| /' conftest.$ac_ext >&5
21034
21035ac_cv_func_setpgrp_void=yes
21036fi
21037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21038fi
21039echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21040echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
21041if test $ac_cv_func_setpgrp_void = yes; then
21042 cat >>confdefs.h <<\_ACEOF
21043#define SETPGRP_VOID 1
21044_ACEOF
21045
21046fi
21047fi
21048
21049# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
21050# since sigsetjmp might only be defined as a macro.
21051echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21052echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
21053if test "${gdb_cv_func_sigsetjmp+set}" = set; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21055else
21056 cat >conftest.$ac_ext <<_ACEOF
21057/* confdefs.h. */
21058_ACEOF
21059cat confdefs.h >>conftest.$ac_ext
21060cat >>conftest.$ac_ext <<_ACEOF
21061/* end confdefs.h. */
21062
21063#include <setjmp.h>
21064
21065int
21066main ()
21067{
21068sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21069 ;
21070 return 0;
21071}
21072_ACEOF
21073rm -f conftest.$ac_objext
21074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075 (eval $ac_compile) 2>conftest.er1
21076 ac_status=$?
21077 grep -v '^ *+' conftest.er1 >conftest.err
21078 rm -f conftest.er1
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } &&
21082 { ac_try='test -z "$ac_c_werror_flag"
21083 || test ! -s conftest.err'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; } &&
21089 { ac_try='test -s conftest.$ac_objext'
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
21095 gdb_cv_func_sigsetjmp=yes
21096else
21097 echo "$as_me: failed program was:" >&5
21098sed 's/^/| /' conftest.$ac_ext >&5
21099
21100gdb_cv_func_sigsetjmp=no
21101fi
21102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21103fi
21104echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
21105echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
21106if test $gdb_cv_func_sigsetjmp = yes; then
21107
21108cat >>confdefs.h <<\_ACEOF
21109#define HAVE_SIGSETJMP 1
21110_ACEOF
21111
21112fi
21113
21114# Assume we'll default to using the included libiberty regex.
21115gdb_use_included_regex=yes
21116
21117# However, if the system regex is GNU regex, then default to *not*
21118# using the included regex.
21119echo "$as_me:$LINENO: checking for GNU regex" >&5
21120echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
21121if test "${gdb_cv_have_gnu_regex+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123else
21124 cat >conftest.$ac_ext <<_ACEOF
21125/* confdefs.h. */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h. */
21130#include <gnu-versions.h>
21131int
21132main ()
21133{
21134#define REGEX_INTERFACE_VERSION 1
21135#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
21136# error "Version mismatch"
21137#endif
21138 ;
21139 return 0;
21140}
21141_ACEOF
21142rm -f conftest.$ac_objext
21143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21144 (eval $ac_compile) 2>conftest.er1
21145 ac_status=$?
21146 grep -v '^ *+' conftest.er1 >conftest.err
21147 rm -f conftest.er1
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } &&
21151 { ac_try='test -z "$ac_c_werror_flag"
21152 || test ! -s conftest.err'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest.$ac_objext'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 gdb_cv_have_gnu_regex=yes
21165else
21166 echo "$as_me: failed program was:" >&5
21167sed 's/^/| /' conftest.$ac_ext >&5
21168
21169gdb_cv_have_gnu_regex=no
21170fi
21171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172fi
21173echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
21174echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
21175if test $gdb_cv_have_gnu_regex = yes; then
21176 gdb_use_included_regex=no
21177fi
21178
21179
21180# Check whether --with-included-regex or --without-included-regex was given.
21181if test "${with_included_regex+set}" = set; then
21182 withval="$with_included_regex"
21183 gdb_with_regex=$withval
21184else
21185 gdb_with_regex=$gdb_use_included_regex
21186fi;
21187if test "$gdb_with_regex" = yes; then
21188
21189cat >>confdefs.h <<\_ACEOF
21190#define USE_INCLUDED_REGEX 1
21191_ACEOF
21192
21193fi
21194
21195# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
21196echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
21197echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
21198if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200else
21201 cat >conftest.$ac_ext <<_ACEOF
21202/* confdefs.h. */
21203_ACEOF
21204cat confdefs.h >>conftest.$ac_ext
21205cat >>conftest.$ac_ext <<_ACEOF
21206/* end confdefs.h. */
21207#include <sys/param.h>
21208#include <sys/proc.h>
21209
21210
21211int
21212main ()
21213{
21214static struct thread ac_aggr;
21215if (ac_aggr.td_pcb)
21216return 0;
21217 ;
21218 return 0;
21219}
21220_ACEOF
21221rm -f conftest.$ac_objext
21222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21223 (eval $ac_compile) 2>conftest.er1
21224 ac_status=$?
21225 grep -v '^ *+' conftest.er1 >conftest.err
21226 rm -f conftest.er1
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -z "$ac_c_werror_flag"
21231 || test ! -s conftest.err'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_cv_member_struct_thread_td_pcb=yes
21244else
21245 echo "$as_me: failed program was:" >&5
21246sed 's/^/| /' conftest.$ac_ext >&5
21247
21248cat >conftest.$ac_ext <<_ACEOF
21249/* confdefs.h. */
21250_ACEOF
21251cat confdefs.h >>conftest.$ac_ext
21252cat >>conftest.$ac_ext <<_ACEOF
21253/* end confdefs.h. */
21254#include <sys/param.h>
21255#include <sys/proc.h>
21256
21257
21258int
21259main ()
21260{
21261static struct thread ac_aggr;
21262if (sizeof ac_aggr.td_pcb)
21263return 0;
21264 ;
21265 return 0;
21266}
21267_ACEOF
21268rm -f conftest.$ac_objext
21269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 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_objext'
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 ac_cv_member_struct_thread_td_pcb=yes
21291else
21292 echo "$as_me: failed program was:" >&5
21293sed 's/^/| /' conftest.$ac_ext >&5
21294
21295ac_cv_member_struct_thread_td_pcb=no
21296fi
21297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21298fi
21299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21300fi
21301echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
21302echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
21303if test $ac_cv_member_struct_thread_td_pcb = yes; then
21304
21305cat >>confdefs.h <<_ACEOF
21306#define HAVE_STRUCT_THREAD_TD_PCB 1
21307_ACEOF
21308
21309
21310fi
21311
21312
21313# See if <sys/lwp.h> defines `struct lwp`.
21314echo "$as_me:$LINENO: checking for struct lwp" >&5
21315echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
21316if test "${gdb_cv_struct_lwp+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21318else
21319 cat >conftest.$ac_ext <<_ACEOF
21320/* confdefs.h. */
21321_ACEOF
21322cat confdefs.h >>conftest.$ac_ext
21323cat >>conftest.$ac_ext <<_ACEOF
21324/* end confdefs.h. */
21325#include <sys/param.h>
21326#include <sys/lwp.h>
21327int
21328main ()
21329{
21330struct lwp l;
21331 ;
21332 return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext
21336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21337 (eval $ac_compile) 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
21344 { ac_try='test -z "$ac_c_werror_flag"
21345 || test ! -s conftest.err'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; } &&
21351 { ac_try='test -s conftest.$ac_objext'
21352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353 (eval $ac_try) 2>&5
21354 ac_status=$?
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); }; }; then
21357 gdb_cv_struct_lwp=yes
21358else
21359 echo "$as_me: failed program was:" >&5
21360sed 's/^/| /' conftest.$ac_ext >&5
21361
21362gdb_cv_struct_lwp=no
21363fi
21364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21365fi
21366echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
21367echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
21368if test $gdb_cv_struct_lwp = yes; then
21369
21370cat >>confdefs.h <<\_ACEOF
21371#define HAVE_STRUCT_LWP 1
21372_ACEOF
21373
21374fi
21375
21376# See if <machine/reg.h> degines `struct reg'.
21377echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
21378echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
21379if test "${gdb_cv_struct_reg+set}" = set; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21381else
21382 cat >conftest.$ac_ext <<_ACEOF
21383/* confdefs.h. */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h. */
21388#include <sys/types.h>
21389#include <machine/reg.h>
21390int
21391main ()
21392{
21393struct reg r;
21394 ;
21395 return 0;
21396}
21397_ACEOF
21398rm -f conftest.$ac_objext
21399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21400 (eval $ac_compile) 2>conftest.er1
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } &&
21407 { ac_try='test -z "$ac_c_werror_flag"
21408 || test ! -s conftest.err'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; } &&
21414 { ac_try='test -s conftest.$ac_objext'
21415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
21420 gdb_cv_struct_reg=yes
21421else
21422 echo "$as_me: failed program was:" >&5
21423sed 's/^/| /' conftest.$ac_ext >&5
21424
21425gdb_cv_struct_reg=no
21426fi
21427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21428fi
21429echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
21430echo "${ECHO_T}$gdb_cv_struct_reg" >&6
21431if test $gdb_cv_struct_reg = yes; then
21432
21433cat >>confdefs.h <<\_ACEOF
21434#define HAVE_STRUCT_REG 1
21435_ACEOF
21436
21437fi
21438
21439# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
21440# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
21441echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
21442echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
21443if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21445else
21446 cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h. */
21452#include <machine/reg.h>
21453
21454int
21455main ()
21456{
21457static struct reg ac_aggr;
21458if (ac_aggr.r_fs)
21459return 0;
21460 ;
21461 return 0;
21462}
21463_ACEOF
21464rm -f conftest.$ac_objext
21465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_cv_member_struct_reg_r_fs=yes
21487else
21488 echo "$as_me: failed program was:" >&5
21489sed 's/^/| /' conftest.$ac_ext >&5
21490
21491cat >conftest.$ac_ext <<_ACEOF
21492/* confdefs.h. */
21493_ACEOF
21494cat confdefs.h >>conftest.$ac_ext
21495cat >>conftest.$ac_ext <<_ACEOF
21496/* end confdefs.h. */
21497#include <machine/reg.h>
21498
21499int
21500main ()
21501{
21502static struct reg ac_aggr;
21503if (sizeof ac_aggr.r_fs)
21504return 0;
21505 ;
21506 return 0;
21507}
21508_ACEOF
21509rm -f conftest.$ac_objext
21510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21511 (eval $ac_compile) 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } &&
21518 { ac_try='test -z "$ac_c_werror_flag"
21519 || test ! -s conftest.err'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } &&
21525 { ac_try='test -s conftest.$ac_objext'
21526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21528 ac_status=$?
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; }; then
21531 ac_cv_member_struct_reg_r_fs=yes
21532else
21533 echo "$as_me: failed program was:" >&5
21534sed 's/^/| /' conftest.$ac_ext >&5
21535
21536ac_cv_member_struct_reg_r_fs=no
21537fi
21538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21539fi
21540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21541fi
21542echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21543echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
21544if test $ac_cv_member_struct_reg_r_fs = yes; then
21545
21546cat >>confdefs.h <<_ACEOF
21547#define HAVE_STRUCT_REG_R_FS 1
21548_ACEOF
21549
21550
21551fi
21552echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21553echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
21554if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21556else
21557 cat >conftest.$ac_ext <<_ACEOF
21558/* confdefs.h. */
21559_ACEOF
21560cat confdefs.h >>conftest.$ac_ext
21561cat >>conftest.$ac_ext <<_ACEOF
21562/* end confdefs.h. */
21563#include <machine/reg.h>
21564
21565int
21566main ()
21567{
21568static struct reg ac_aggr;
21569if (ac_aggr.r_gs)
21570return 0;
21571 ;
21572 return 0;
21573}
21574_ACEOF
21575rm -f conftest.$ac_objext
21576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21577 (eval $ac_compile) 2>conftest.er1
21578 ac_status=$?
21579 grep -v '^ *+' conftest.er1 >conftest.err
21580 rm -f conftest.er1
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } &&
21584 { ac_try='test -z "$ac_c_werror_flag"
21585 || test ! -s conftest.err'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; } &&
21591 { ac_try='test -s conftest.$ac_objext'
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; }; then
21597 ac_cv_member_struct_reg_r_gs=yes
21598else
21599 echo "$as_me: failed program was:" >&5
21600sed 's/^/| /' conftest.$ac_ext >&5
21601
21602cat >conftest.$ac_ext <<_ACEOF
21603/* confdefs.h. */
21604_ACEOF
21605cat confdefs.h >>conftest.$ac_ext
21606cat >>conftest.$ac_ext <<_ACEOF
21607/* end confdefs.h. */
21608#include <machine/reg.h>
21609
21610int
21611main ()
21612{
21613static struct reg ac_aggr;
21614if (sizeof ac_aggr.r_gs)
21615return 0;
21616 ;
21617 return 0;
21618}
21619_ACEOF
21620rm -f conftest.$ac_objext
21621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21622 (eval $ac_compile) 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); } &&
21629 { ac_try='test -z "$ac_c_werror_flag"
21630 || test ! -s conftest.err'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; } &&
21636 { ac_try='test -s conftest.$ac_objext'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; }; then
21642 ac_cv_member_struct_reg_r_gs=yes
21643else
21644 echo "$as_me: failed program was:" >&5
21645sed 's/^/| /' conftest.$ac_ext >&5
21646
21647ac_cv_member_struct_reg_r_gs=no
21648fi
21649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21650fi
21651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21652fi
21653echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21654echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21655if test $ac_cv_member_struct_reg_r_gs = yes; then
21656
21657cat >>confdefs.h <<_ACEOF
21658#define HAVE_STRUCT_REG_R_GS 1
21659_ACEOF
21660
21661
21662fi
21663
21664
21665# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21666echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21667echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21668if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670else
21671 cat >conftest.$ac_ext <<_ACEOF
21672/* confdefs.h. */
21673_ACEOF
21674cat confdefs.h >>conftest.$ac_ext
21675cat >>conftest.$ac_ext <<_ACEOF
21676/* end confdefs.h. */
21677#include <sys/ptrace.h>
21678int
21679main ()
21680{
21681PTRACE_GETREGS;
21682 ;
21683 return 0;
21684}
21685_ACEOF
21686rm -f conftest.$ac_objext
21687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21688 (eval $ac_compile) 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } &&
21695 { ac_try='test -z "$ac_c_werror_flag"
21696 || test ! -s conftest.err'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; } &&
21702 { ac_try='test -s conftest.$ac_objext'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; }; then
21708 gdb_cv_have_ptrace_getregs=yes
21709else
21710 echo "$as_me: failed program was:" >&5
21711sed 's/^/| /' conftest.$ac_ext >&5
21712
21713gdb_cv_have_ptrace_getregs=no
21714fi
21715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21716fi
21717
21718echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21719echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21720if test $gdb_cv_have_ptrace_getregs = yes; then
21721
21722cat >>confdefs.h <<\_ACEOF
21723#define HAVE_PTRACE_GETREGS 1
21724_ACEOF
21725
21726fi
21727
21728# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21729echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21730echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21731if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733else
21734 cat >conftest.$ac_ext <<_ACEOF
21735/* confdefs.h. */
21736_ACEOF
21737cat confdefs.h >>conftest.$ac_ext
21738cat >>conftest.$ac_ext <<_ACEOF
21739/* end confdefs.h. */
21740#include <sys/ptrace.h>
21741int
21742main ()
21743{
21744PTRACE_GETFPXREGS;
21745 ;
21746 return 0;
21747}
21748_ACEOF
21749rm -f conftest.$ac_objext
21750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
21758 { ac_try='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 gdb_cv_have_ptrace_getfpxregs=yes
21772else
21773 echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
21776gdb_cv_have_ptrace_getfpxregs=no
21777fi
21778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21779fi
21780
21781echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21782echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21783if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21784
21785cat >>confdefs.h <<\_ACEOF
21786#define HAVE_PTRACE_GETFPXREGS 1
21787_ACEOF
21788
21789fi
21790
21791# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21792echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21793echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21794if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796else
21797 cat >conftest.$ac_ext <<_ACEOF
21798/* confdefs.h. */
21799_ACEOF
21800cat confdefs.h >>conftest.$ac_ext
21801cat >>conftest.$ac_ext <<_ACEOF
21802/* end confdefs.h. */
21803#include <sys/types.h>
21804#include <sys/ptrace.h>
21805int
21806main ()
21807{
21808PT_GETDBREGS;
21809 ;
21810 return 0;
21811}
21812_ACEOF
21813rm -f conftest.$ac_objext
21814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21815 (eval $ac_compile) 2>conftest.er1
21816 ac_status=$?
21817 grep -v '^ *+' conftest.er1 >conftest.err
21818 rm -f conftest.er1
21819 cat conftest.err >&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } &&
21822 { ac_try='test -z "$ac_c_werror_flag"
21823 || test ! -s conftest.err'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; } &&
21829 { ac_try='test -s conftest.$ac_objext'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; }; then
21835 gdb_cv_have_pt_getdbregs=yes
21836else
21837 echo "$as_me: failed program was:" >&5
21838sed 's/^/| /' conftest.$ac_ext >&5
21839
21840gdb_cv_have_pt_getdbregs=no
21841fi
21842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21843fi
21844
21845echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21846echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21847if test $gdb_cv_have_pt_getdbregs = yes; then
21848
21849cat >>confdefs.h <<\_ACEOF
21850#define HAVE_PT_GETDBREGS 1
21851_ACEOF
21852
21853fi
21854
21855# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21856echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21857echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21858if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21860else
21861 cat >conftest.$ac_ext <<_ACEOF
21862/* confdefs.h. */
21863_ACEOF
21864cat confdefs.h >>conftest.$ac_ext
21865cat >>conftest.$ac_ext <<_ACEOF
21866/* end confdefs.h. */
21867#include <sys/types.h>
21868#include <sys/ptrace.h>
21869int
21870main ()
21871{
21872PT_GETXMMREGS;
21873 ;
21874 return 0;
21875}
21876_ACEOF
21877rm -f conftest.$ac_objext
21878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21879 (eval $ac_compile) 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest.$ac_objext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 gdb_cv_have_pt_getxmmregs=yes
21900else
21901 echo "$as_me: failed program was:" >&5
21902sed 's/^/| /' conftest.$ac_ext >&5
21903
21904gdb_cv_have_pt_getxmmregs=no
21905fi
21906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21907fi
21908
21909echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21910echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21911if test $gdb_cv_have_pt_getxmmregs = yes; then
21912
21913cat >>confdefs.h <<\_ACEOF
21914#define HAVE_PT_GETXMMREGS 1
21915_ACEOF
21916
21917fi
21918
21919# Detect which type of /proc is in use, such as for Unixware or Solaris.
21920
21921if test "${target}" = "${host}"; then
21922 case "${host}" in
21923 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21924
21925cat >>confdefs.h <<\_ACEOF
21926#define NEW_PROC_API 1
21927_ACEOF
21928
21929 ;;
21930 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21931
21932cat >>confdefs.h <<\_ACEOF
21933#define NEW_PROC_API 1
21934_ACEOF
21935
21936 ;;
21937 mips-sgi-irix5*)
21938 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21939
21940cat >>confdefs.h <<\_ACEOF
21941#define _KMEMUSER 1
21942_ACEOF
21943
21944 ;;
21945 esac
21946fi
21947
21948if test "$ac_cv_header_sys_procfs_h" = yes; then
21949 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21950echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
21951 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21953else
21954 cat >conftest.$ac_ext <<_ACEOF
21955/* confdefs.h. */
21956_ACEOF
21957cat confdefs.h >>conftest.$ac_ext
21958cat >>conftest.$ac_ext <<_ACEOF
21959/* end confdefs.h. */
21960
21961#define _SYSCALL32
21962#include <sys/procfs.h>
21963int
21964main ()
21965{
21966pstatus_t avar
21967 ;
21968 return 0;
21969}
21970_ACEOF
21971rm -f conftest.$ac_objext
21972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21973 (eval $ac_compile) 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } &&
21980 { ac_try='test -z "$ac_c_werror_flag"
21981 || test ! -s conftest.err'
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; } &&
21987 { ac_try='test -s conftest.$ac_objext'
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 bfd_cv_have_sys_procfs_type_pstatus_t=yes
21994else
21995 echo "$as_me: failed program was:" >&5
21996sed 's/^/| /' conftest.$ac_ext >&5
21997
21998bfd_cv_have_sys_procfs_type_pstatus_t=no
21999
22000fi
22001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22002fi
22003
22004 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
22005
22006cat >>confdefs.h <<\_ACEOF
22007#define HAVE_PSTATUS_T 1
22008_ACEOF
22009
22010 fi
22011 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
22012echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
22013
22014 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
22015echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
22016 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018else
22019 cat >conftest.$ac_ext <<_ACEOF
22020/* confdefs.h. */
22021_ACEOF
22022cat confdefs.h >>conftest.$ac_ext
22023cat >>conftest.$ac_ext <<_ACEOF
22024/* end confdefs.h. */
22025
22026#define _SYSCALL32
22027#include <sys/procfs.h>
22028int
22029main ()
22030{
22031prrun_t avar
22032 ;
22033 return 0;
22034}
22035_ACEOF
22036rm -f conftest.$ac_objext
22037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22038 (eval $ac_compile) 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_c_werror_flag"
22046 || test ! -s conftest.err'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest.$ac_objext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 bfd_cv_have_sys_procfs_type_prrun_t=yes
22059else
22060 echo "$as_me: failed program was:" >&5
22061sed 's/^/| /' conftest.$ac_ext >&5
22062
22063bfd_cv_have_sys_procfs_type_prrun_t=no
22064
22065fi
22066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22067fi
22068
22069 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
22070
22071cat >>confdefs.h <<\_ACEOF
22072#define HAVE_PRRUN_T 1
22073_ACEOF
22074
22075 fi
22076 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
22077echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
22078
22079 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
22080echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
22081 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22083else
22084 cat >conftest.$ac_ext <<_ACEOF
22085/* confdefs.h. */
22086_ACEOF
22087cat confdefs.h >>conftest.$ac_ext
22088cat >>conftest.$ac_ext <<_ACEOF
22089/* end confdefs.h. */
22090
22091#define _SYSCALL32
22092#include <sys/procfs.h>
22093int
22094main ()
22095{
22096gregset_t avar
22097 ;
22098 return 0;
22099}
22100_ACEOF
22101rm -f conftest.$ac_objext
22102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22103 (eval $ac_compile) 2>conftest.er1
22104 ac_status=$?
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
22110 { ac_try='test -z "$ac_c_werror_flag"
22111 || test ! -s conftest.err'
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest.$ac_objext'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 bfd_cv_have_sys_procfs_type_gregset_t=yes
22124else
22125 echo "$as_me: failed program was:" >&5
22126sed 's/^/| /' conftest.$ac_ext >&5
22127
22128bfd_cv_have_sys_procfs_type_gregset_t=no
22129
22130fi
22131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22132fi
22133
22134 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
22135
22136cat >>confdefs.h <<\_ACEOF
22137#define HAVE_GREGSET_T 1
22138_ACEOF
22139
22140 fi
22141 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
22142echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
22143
22144 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
22145echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
22146 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
22147 echo $ECHO_N "(cached) $ECHO_C" >&6
22148else
22149 cat >conftest.$ac_ext <<_ACEOF
22150/* confdefs.h. */
22151_ACEOF
22152cat confdefs.h >>conftest.$ac_ext
22153cat >>conftest.$ac_ext <<_ACEOF
22154/* end confdefs.h. */
22155
22156#define _SYSCALL32
22157#include <sys/procfs.h>
22158int
22159main ()
22160{
22161fpregset_t avar
22162 ;
22163 return 0;
22164}
22165_ACEOF
22166rm -f conftest.$ac_objext
22167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22168 (eval $ac_compile) 2>conftest.er1
22169 ac_status=$?
22170 grep -v '^ *+' conftest.er1 >conftest.err
22171 rm -f conftest.er1
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } &&
22175 { ac_try='test -z "$ac_c_werror_flag"
22176 || test ! -s conftest.err'
22177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22178 (eval $ac_try) 2>&5
22179 ac_status=$?
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); }; } &&
22182 { ac_try='test -s conftest.$ac_objext'
22183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184 (eval $ac_try) 2>&5
22185 ac_status=$?
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); }; }; then
22188 bfd_cv_have_sys_procfs_type_fpregset_t=yes
22189else
22190 echo "$as_me: failed program was:" >&5
22191sed 's/^/| /' conftest.$ac_ext >&5
22192
22193bfd_cv_have_sys_procfs_type_fpregset_t=no
22194
22195fi
22196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22197fi
22198
22199 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
22200
22201cat >>confdefs.h <<\_ACEOF
22202#define HAVE_FPREGSET_T 1
22203_ACEOF
22204
22205 fi
22206 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
22207echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
22208
22209 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
22210echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
22211 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22213else
22214 cat >conftest.$ac_ext <<_ACEOF
22215/* confdefs.h. */
22216_ACEOF
22217cat confdefs.h >>conftest.$ac_ext
22218cat >>conftest.$ac_ext <<_ACEOF
22219/* end confdefs.h. */
22220
22221#define _SYSCALL32
22222#include <sys/procfs.h>
22223int
22224main ()
22225{
22226prgregset_t avar
22227 ;
22228 return 0;
22229}
22230_ACEOF
22231rm -f conftest.$ac_objext
22232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22233 (eval $ac_compile) 2>conftest.er1
22234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
22240 { ac_try='test -z "$ac_c_werror_flag"
22241 || test ! -s conftest.err'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; } &&
22247 { ac_try='test -s conftest.$ac_objext'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; }; then
22253 bfd_cv_have_sys_procfs_type_prgregset_t=yes
22254else
22255 echo "$as_me: failed program was:" >&5
22256sed 's/^/| /' conftest.$ac_ext >&5
22257
22258bfd_cv_have_sys_procfs_type_prgregset_t=no
22259
22260fi
22261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22262fi
22263
22264 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
22265
22266cat >>confdefs.h <<\_ACEOF
22267#define HAVE_PRGREGSET_T 1
22268_ACEOF
22269
22270 fi
22271 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
22272echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
22273
22274 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
22275echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
22276 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22278else
22279 cat >conftest.$ac_ext <<_ACEOF
22280/* confdefs.h. */
22281_ACEOF
22282cat confdefs.h >>conftest.$ac_ext
22283cat >>conftest.$ac_ext <<_ACEOF
22284/* end confdefs.h. */
22285
22286#define _SYSCALL32
22287#include <sys/procfs.h>
22288int
22289main ()
22290{
22291prfpregset_t avar
22292 ;
22293 return 0;
22294}
22295_ACEOF
22296rm -f conftest.$ac_objext
22297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22298 (eval $ac_compile) 2>conftest.er1
22299 ac_status=$?
22300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } &&
22305 { ac_try='test -z "$ac_c_werror_flag"
22306 || test ! -s conftest.err'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22318 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
22319else
22320 echo "$as_me: failed program was:" >&5
22321sed 's/^/| /' conftest.$ac_ext >&5
22322
22323bfd_cv_have_sys_procfs_type_prfpregset_t=no
22324
22325fi
22326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22327fi
22328
22329 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22330
22331cat >>confdefs.h <<\_ACEOF
22332#define HAVE_PRFPREGSET_T 1
22333_ACEOF
22334
22335 fi
22336 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
22337echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
22338
22339 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
22340echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
22341 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343else
22344 cat >conftest.$ac_ext <<_ACEOF
22345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
22350
22351#define _SYSCALL32
22352#include <sys/procfs.h>
22353int
22354main ()
22355{
22356prgregset32_t avar
22357 ;
22358 return 0;
22359}
22360_ACEOF
22361rm -f conftest.$ac_objext
22362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363 (eval $ac_compile) 2>conftest.er1
22364 ac_status=$?
22365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -z "$ac_c_werror_flag"
22371 || test ! -s conftest.err'
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; } &&
22377 { ac_try='test -s conftest.$ac_objext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
22383 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
22384else
22385 echo "$as_me: failed program was:" >&5
22386sed 's/^/| /' conftest.$ac_ext >&5
22387
22388bfd_cv_have_sys_procfs_type_prgregset32_t=no
22389
22390fi
22391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22392fi
22393
22394 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
22395
22396cat >>confdefs.h <<\_ACEOF
22397#define HAVE_PRGREGSET32_T 1
22398_ACEOF
22399
22400 fi
22401 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
22402echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
22403
22404 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
22405echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
22406 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408else
22409 cat >conftest.$ac_ext <<_ACEOF
22410/* confdefs.h. */
22411_ACEOF
22412cat confdefs.h >>conftest.$ac_ext
22413cat >>conftest.$ac_ext <<_ACEOF
22414/* end confdefs.h. */
22415
22416#define _SYSCALL32
22417#include <sys/procfs.h>
22418int
22419main ()
22420{
22421prfpregset32_t avar
22422 ;
22423 return 0;
22424}
22425_ACEOF
22426rm -f conftest.$ac_objext
22427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22428 (eval $ac_compile) 2>conftest.er1
22429 ac_status=$?
22430 grep -v '^ *+' conftest.er1 >conftest.err
22431 rm -f conftest.er1
22432 cat conftest.err >&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } &&
22435 { ac_try='test -z "$ac_c_werror_flag"
22436 || test ! -s conftest.err'
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22439 ac_status=$?
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; } &&
22442 { ac_try='test -s conftest.$ac_objext'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
22449else
22450 echo "$as_me: failed program was:" >&5
22451sed 's/^/| /' conftest.$ac_ext >&5
22452
22453bfd_cv_have_sys_procfs_type_prfpregset32_t=no
22454
22455fi
22456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22457fi
22458
22459 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
22460
22461cat >>confdefs.h <<\_ACEOF
22462#define HAVE_PRFPREGSET32_T 1
22463_ACEOF
22464
22465 fi
22466 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
22467echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
22468
22469 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
22470echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
22471 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
22472 echo $ECHO_N "(cached) $ECHO_C" >&6
22473else
22474 cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h. */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h. */
22480
22481#define _SYSCALL32
22482#include <sys/procfs.h>
22483int
22484main ()
22485{
22486lwpid_t avar
22487 ;
22488 return 0;
22489}
22490_ACEOF
22491rm -f conftest.$ac_objext
22492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22493 (eval $ac_compile) 2>conftest.er1
22494 ac_status=$?
22495 grep -v '^ *+' conftest.er1 >conftest.err
22496 rm -f conftest.er1
22497 cat conftest.err >&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } &&
22500 { ac_try='test -z "$ac_c_werror_flag"
22501 || test ! -s conftest.err'
22502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; } &&
22507 { ac_try='test -s conftest.$ac_objext'
22508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22509 (eval $ac_try) 2>&5
22510 ac_status=$?
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); }; }; then
22513 bfd_cv_have_sys_procfs_type_lwpid_t=yes
22514else
22515 echo "$as_me: failed program was:" >&5
22516sed 's/^/| /' conftest.$ac_ext >&5
22517
22518bfd_cv_have_sys_procfs_type_lwpid_t=no
22519
22520fi
22521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22522fi
22523
22524 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
22525
22526cat >>confdefs.h <<\_ACEOF
22527#define HAVE_LWPID_T 1
22528_ACEOF
22529
22530 fi
22531 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22532echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
22533
22534 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22535echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
22536 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22538else
22539 cat >conftest.$ac_ext <<_ACEOF
22540/* confdefs.h. */
22541_ACEOF
22542cat confdefs.h >>conftest.$ac_ext
22543cat >>conftest.$ac_ext <<_ACEOF
22544/* end confdefs.h. */
22545
22546#define _SYSCALL32
22547#include <sys/procfs.h>
22548int
22549main ()
22550{
22551psaddr_t avar
22552 ;
22553 return 0;
22554}
22555_ACEOF
22556rm -f conftest.$ac_objext
22557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558 (eval $ac_compile) 2>conftest.er1
22559 ac_status=$?
22560 grep -v '^ *+' conftest.er1 >conftest.err
22561 rm -f conftest.er1
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } &&
22565 { ac_try='test -z "$ac_c_werror_flag"
22566 || test ! -s conftest.err'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest.$ac_objext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 bfd_cv_have_sys_procfs_type_psaddr_t=yes
22579else
22580 echo "$as_me: failed program was:" >&5
22581sed 's/^/| /' conftest.$ac_ext >&5
22582
22583bfd_cv_have_sys_procfs_type_psaddr_t=no
22584
22585fi
22586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22587fi
22588
22589 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
22590
22591cat >>confdefs.h <<\_ACEOF
22592#define HAVE_PSADDR_T 1
22593_ACEOF
22594
22595 fi
22596 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22597echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
22598
22599 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22600echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22601 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22602 echo $ECHO_N "(cached) $ECHO_C" >&6
22603else
22604 cat >conftest.$ac_ext <<_ACEOF
22605/* confdefs.h. */
22606_ACEOF
22607cat confdefs.h >>conftest.$ac_ext
22608cat >>conftest.$ac_ext <<_ACEOF
22609/* end confdefs.h. */
22610
22611#define _SYSCALL32
22612#include <sys/procfs.h>
22613int
22614main ()
22615{
22616prsysent_t avar
22617 ;
22618 return 0;
22619}
22620_ACEOF
22621rm -f conftest.$ac_objext
22622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>conftest.er1
22624 ac_status=$?
22625 grep -v '^ *+' conftest.er1 >conftest.err
22626 rm -f conftest.er1
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -z "$ac_c_werror_flag"
22631 || test ! -s conftest.err'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } &&
22637 { ac_try='test -s conftest.$ac_objext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 bfd_cv_have_sys_procfs_type_prsysent_t=yes
22644else
22645 echo "$as_me: failed program was:" >&5
22646sed 's/^/| /' conftest.$ac_ext >&5
22647
22648bfd_cv_have_sys_procfs_type_prsysent_t=no
22649
22650fi
22651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22652fi
22653
22654 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22655
22656cat >>confdefs.h <<\_ACEOF
22657#define HAVE_PRSYSENT_T 1
22658_ACEOF
22659
22660 fi
22661 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22662echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22663
22664 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22665echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22666 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22668else
22669 cat >conftest.$ac_ext <<_ACEOF
22670/* confdefs.h. */
22671_ACEOF
22672cat confdefs.h >>conftest.$ac_ext
22673cat >>conftest.$ac_ext <<_ACEOF
22674/* end confdefs.h. */
22675
22676#define _SYSCALL32
22677#include <sys/procfs.h>
22678int
22679main ()
22680{
22681pr_sigset_t avar
22682 ;
22683 return 0;
22684}
22685_ACEOF
22686rm -f conftest.$ac_objext
22687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22688 (eval $ac_compile) 2>conftest.er1
22689 ac_status=$?
22690 grep -v '^ *+' conftest.er1 >conftest.err
22691 rm -f conftest.er1
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } &&
22695 { ac_try='test -z "$ac_c_werror_flag"
22696 || test ! -s conftest.err'
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; } &&
22702 { ac_try='test -s conftest.$ac_objext'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; }; then
22708 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22709else
22710 echo "$as_me: failed program was:" >&5
22711sed 's/^/| /' conftest.$ac_ext >&5
22712
22713bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22714
22715fi
22716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22717fi
22718
22719 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22720
22721cat >>confdefs.h <<\_ACEOF
22722#define HAVE_PR_SIGSET_T 1
22723_ACEOF
22724
22725 fi
22726 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22727echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22728
22729 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22730echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22731 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22733else
22734 cat >conftest.$ac_ext <<_ACEOF
22735/* confdefs.h. */
22736_ACEOF
22737cat confdefs.h >>conftest.$ac_ext
22738cat >>conftest.$ac_ext <<_ACEOF
22739/* end confdefs.h. */
22740
22741#define _SYSCALL32
22742#include <sys/procfs.h>
22743int
22744main ()
22745{
22746pr_sigaction64_t avar
22747 ;
22748 return 0;
22749}
22750_ACEOF
22751rm -f conftest.$ac_objext
22752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22753 (eval $ac_compile) 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } &&
22760 { ac_try='test -z "$ac_c_werror_flag"
22761 || test ! -s conftest.err'
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest.$ac_objext'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; }; then
22773 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22774else
22775 echo "$as_me: failed program was:" >&5
22776sed 's/^/| /' conftest.$ac_ext >&5
22777
22778bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22779
22780fi
22781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22782fi
22783
22784 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22785
22786cat >>confdefs.h <<\_ACEOF
22787#define HAVE_PR_SIGACTION64_T 1
22788_ACEOF
22789
22790 fi
22791 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22792echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22793
22794 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22795echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22796 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22797 echo $ECHO_N "(cached) $ECHO_C" >&6
22798else
22799 cat >conftest.$ac_ext <<_ACEOF
22800/* confdefs.h. */
22801_ACEOF
22802cat confdefs.h >>conftest.$ac_ext
22803cat >>conftest.$ac_ext <<_ACEOF
22804/* end confdefs.h. */
22805
22806#define _SYSCALL32
22807#include <sys/procfs.h>
22808int
22809main ()
22810{
22811pr_siginfo64_t avar
22812 ;
22813 return 0;
22814}
22815_ACEOF
22816rm -f conftest.$ac_objext
22817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22818 (eval $ac_compile) 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_objext'
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 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22839else
22840 echo "$as_me: failed program was:" >&5
22841sed 's/^/| /' conftest.$ac_ext >&5
22842
22843bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22844
22845fi
22846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847fi
22848
22849 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22850
22851cat >>confdefs.h <<\_ACEOF
22852#define HAVE_PR_SIGINFO64_T 1
22853_ACEOF
22854
22855 fi
22856 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22857echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22858
22859
22860
22861
22862
22863 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22864 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22865echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22866 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22867 echo $ECHO_N "(cached) $ECHO_C" >&6
22868else
22869 if test "$cross_compiling" = yes; then
22870 gdb_cv_prfpregset_t_broken=yes
22871else
22872 cat >conftest.$ac_ext <<_ACEOF
22873/* confdefs.h. */
22874_ACEOF
22875cat confdefs.h >>conftest.$ac_ext
22876cat >>conftest.$ac_ext <<_ACEOF
22877/* end confdefs.h. */
22878#include <sys/procfs.h>
22879 int main ()
22880 {
22881 if (sizeof (prfpregset_t) == sizeof (void *))
22882 return 1;
22883 return 0;
22884 }
22885_ACEOF
22886rm -f conftest$ac_exeext
22887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22888 (eval $ac_link) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893 (eval $ac_try) 2>&5
22894 ac_status=$?
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); }; }; then
22897 gdb_cv_prfpregset_t_broken=no
22898else
22899 echo "$as_me: program exited with status $ac_status" >&5
22900echo "$as_me: failed program was:" >&5
22901sed 's/^/| /' conftest.$ac_ext >&5
22902
22903( exit $ac_status )
22904gdb_cv_prfpregset_t_broken=yes
22905fi
22906rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22907fi
22908fi
22909
22910 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22911echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22912 if test $gdb_cv_prfpregset_t_broken = yes; then
22913
22914cat >>confdefs.h <<\_ACEOF
22915#define PRFPREGSET_T_BROKEN 1
22916_ACEOF
22917
22918 fi
22919 fi
22920
22921
22922 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22923echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22924 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926else
22927 cat >conftest.$ac_ext <<_ACEOF
22928/* confdefs.h. */
22929_ACEOF
22930cat confdefs.h >>conftest.$ac_ext
22931cat >>conftest.$ac_ext <<_ACEOF
22932/* end confdefs.h. */
22933#include <unistd.h>
22934#include <sys/types.h>
22935#include <sys/procfs.h>
22936
22937int
22938main ()
22939{
22940
22941 int dummy;;
22942 dummy = ioctl(0, PIOCSET, &dummy);
22943
22944 ;
22945 return 0;
22946}
22947_ACEOF
22948rm -f conftest.$ac_objext
22949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22950 (eval $ac_compile) 2>conftest.er1
22951 ac_status=$?
22952 grep -v '^ *+' conftest.er1 >conftest.err
22953 rm -f conftest.er1
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } &&
22957 { ac_try='test -z "$ac_c_werror_flag"
22958 || test ! -s conftest.err'
22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; } &&
22964 { ac_try='test -s conftest.$ac_objext'
22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; }; then
22970 gdb_cv_have_procfs_piocset=yes
22971else
22972 echo "$as_me: failed program was:" >&5
22973sed 's/^/| /' conftest.$ac_ext >&5
22974
22975gdb_cv_have_procfs_piocset=no
22976fi
22977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22978fi
22979
22980 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22981echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
22982 if test $gdb_cv_have_procfs_piocset = yes; then
22983
22984cat >>confdefs.h <<\_ACEOF
22985#define HAVE_PROCFS_PIOCSET 1
22986_ACEOF
22987
22988 fi
22989fi
22990
22991if test ${host} = ${target} ; then
22992
22993 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22994echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
22995 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22997else
22998 cat >conftest.$ac_ext <<_ACEOF
22999/* confdefs.h. */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h. */
23004#include <link.h>
23005int
23006main ()
23007{
23008struct link_map lm; (void) lm.l_addr;
23009 ;
23010 return 0;
23011}
23012_ACEOF
23013rm -f conftest.$ac_objext
23014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23015 (eval $ac_compile) 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } &&
23022 { ac_try='test -z "$ac_c_werror_flag"
23023 || test ! -s conftest.err'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; } &&
23029 { ac_try='test -s conftest.$ac_objext'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; }; then
23035 gdb_cv_have_struct_link_map_with_l_members=yes
23036else
23037 echo "$as_me: failed program was:" >&5
23038sed 's/^/| /' conftest.$ac_ext >&5
23039
23040gdb_cv_have_struct_link_map_with_l_members=no
23041fi
23042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23043fi
23044
23045 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
23046echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
23047 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
23048
23049cat >>confdefs.h <<\_ACEOF
23050#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
23051_ACEOF
23052
23053 fi
23054
23055
23056 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
23057echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
23058 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23060else
23061 cat >conftest.$ac_ext <<_ACEOF
23062/* confdefs.h. */
23063_ACEOF
23064cat confdefs.h >>conftest.$ac_ext
23065cat >>conftest.$ac_ext <<_ACEOF
23066/* end confdefs.h. */
23067#include <sys/types.h>
23068#include <link.h>
23069int
23070main ()
23071{
23072struct link_map lm; (void) lm.lm_addr;
23073 ;
23074 return 0;
23075}
23076_ACEOF
23077rm -f conftest.$ac_objext
23078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23079 (eval $ac_compile) 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } &&
23086 { ac_try='test -z "$ac_c_werror_flag"
23087 || test ! -s conftest.err'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; } &&
23093 { ac_try='test -s conftest.$ac_objext'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 gdb_cv_have_struct_link_map_with_lm_members=yes
23100else
23101 echo "$as_me: failed program was:" >&5
23102sed 's/^/| /' conftest.$ac_ext >&5
23103
23104gdb_cv_have_struct_link_map_with_lm_members=no
23105fi
23106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23107fi
23108
23109 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
23110echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
23111 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
23112
23113cat >>confdefs.h <<\_ACEOF
23114#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
23115_ACEOF
23116
23117 fi
23118
23119
23120 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
23121echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
23122 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124else
23125 cat >conftest.$ac_ext <<_ACEOF
23126/* confdefs.h. */
23127_ACEOF
23128cat confdefs.h >>conftest.$ac_ext
23129cat >>conftest.$ac_ext <<_ACEOF
23130/* end confdefs.h. */
23131#include <sys/types.h>
23132#ifdef HAVE_NLIST_H
23133#include <nlist.h>
23134#endif
23135#include <link.h>
23136int
23137main ()
23138{
23139struct so_map lm; (void) lm.som_addr;
23140 ;
23141 return 0;
23142}
23143_ACEOF
23144rm -f conftest.$ac_objext
23145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23146 (eval $ac_compile) 2>conftest.er1
23147 ac_status=$?
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
23153 { ac_try='test -z "$ac_c_werror_flag"
23154 || test ! -s conftest.err'
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; } &&
23160 { ac_try='test -s conftest.$ac_objext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 gdb_cv_have_struct_so_map_with_som_members=yes
23167else
23168 echo "$as_me: failed program was:" >&5
23169sed 's/^/| /' conftest.$ac_ext >&5
23170
23171gdb_cv_have_struct_so_map_with_som_members=no
23172fi
23173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23174fi
23175
23176 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
23177echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
23178 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
23179
23180cat >>confdefs.h <<\_ACEOF
23181#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
23182_ACEOF
23183
23184 fi
23185
23186
23187 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
23188echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
23189 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23191else
23192 cat >conftest.$ac_ext <<_ACEOF
23193/* confdefs.h. */
23194_ACEOF
23195cat confdefs.h >>conftest.$ac_ext
23196cat >>conftest.$ac_ext <<_ACEOF
23197/* end confdefs.h. */
23198#define _SYSCALL32
23199#include <sys/link.h>
23200int
23201main ()
23202{
23203struct link_map32 l;
23204 ;
23205 return 0;
23206}
23207_ACEOF
23208rm -f conftest.$ac_objext
23209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23210 (eval $ac_compile) 2>conftest.er1
23211 ac_status=$?
23212 grep -v '^ *+' conftest.er1 >conftest.err
23213 rm -f conftest.er1
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } &&
23217 { ac_try='test -z "$ac_c_werror_flag"
23218 || test ! -s conftest.err'
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; } &&
23224 { ac_try='test -s conftest.$ac_objext'
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; }; then
23230 gdb_cv_have_struct_link_map32=yes
23231else
23232 echo "$as_me: failed program was:" >&5
23233sed 's/^/| /' conftest.$ac_ext >&5
23234
23235gdb_cv_have_struct_link_map32=no
23236fi
23237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23238fi
23239
23240 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
23241echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
23242 if test $gdb_cv_have_struct_link_map32 = yes; then
23243
23244cat >>confdefs.h <<\_ACEOF
23245#define HAVE_STRUCT_LINK_MAP32 1
23246_ACEOF
23247
23248
23249cat >>confdefs.h <<\_ACEOF
23250#define _SYSCALL32 1
23251_ACEOF
23252
23253 fi
23254fi
23255
23256# Check if the compiler supports the `long long' type.
23257
23258echo "$as_me:$LINENO: checking for long long support in compiler" >&5
23259echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
23260if test "${gdb_cv_c_long_long+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23262else
23263 cat >conftest.$ac_ext <<_ACEOF
23264/* confdefs.h. */
23265_ACEOF
23266cat confdefs.h >>conftest.$ac_ext
23267cat >>conftest.$ac_ext <<_ACEOF
23268/* end confdefs.h. */
23269extern long long foo;
23270int
23271main ()
23272{
23273switch (foo & 2) { case 0: return 1; }
23274 ;
23275 return 0;
23276}
23277_ACEOF
23278rm -f conftest.$ac_objext
23279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23280 (eval $ac_compile) 2>conftest.er1
23281 ac_status=$?
23282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
23287 { ac_try='test -z "$ac_c_werror_flag"
23288 || test ! -s conftest.err'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest.$ac_objext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 gdb_cv_c_long_long=yes
23301else
23302 echo "$as_me: failed program was:" >&5
23303sed 's/^/| /' conftest.$ac_ext >&5
23304
23305gdb_cv_c_long_long=no
23306fi
23307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23308fi
23309echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
23310echo "${ECHO_T}$gdb_cv_c_long_long" >&6
23311if test $gdb_cv_c_long_long = yes; then
23312
23313cat >>confdefs.h <<\_ACEOF
23314#define CC_HAS_LONG_LONG 1
23315_ACEOF
23316
23317fi
23318
23319# Check if the compiler and runtime support printing long longs.
23320
23321echo "$as_me:$LINENO: checking for long long support in printf" >&5
23322echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
23323if test "${gdb_cv_printf_has_long_long+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325else
23326 if test "$cross_compiling" = yes; then
23327 gdb_cv_printf_has_long_long=no
23328else
23329 cat >conftest.$ac_ext <<_ACEOF
23330/* confdefs.h. */
23331_ACEOF
23332cat confdefs.h >>conftest.$ac_ext
23333cat >>conftest.$ac_ext <<_ACEOF
23334/* end confdefs.h. */
23335$ac_includes_default
23336int
23337main ()
23338{
23339char buf[32];
23340 long long l = 0;
23341 l = (l << 16) + 0x0123;
23342 l = (l << 16) + 0x4567;
23343 l = (l << 16) + 0x89ab;
23344 l = (l << 16) + 0xcdef;
23345 sprintf (buf, "0x%016llx", l);
23346 return (strcmp ("0x0123456789abcdef", buf));
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest$ac_exeext
23352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23353 (eval $ac_link) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; }; then
23362 gdb_cv_printf_has_long_long=yes
23363else
23364 echo "$as_me: program exited with status $ac_status" >&5
23365echo "$as_me: failed program was:" >&5
23366sed 's/^/| /' conftest.$ac_ext >&5
23367
23368( exit $ac_status )
23369gdb_cv_printf_has_long_long=no
23370fi
23371rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23372fi
23373fi
23374echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
23375echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
23376if test $gdb_cv_printf_has_long_long = yes; then
23377
23378cat >>confdefs.h <<\_ACEOF
23379#define PRINTF_HAS_LONG_LONG 1
23380_ACEOF
23381
23382fi
23383
23384# Check if the compiler and runtime support printing decfloats.
23385
23386echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
23387echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
23388if test "${gdb_cv_printf_has_decfloat+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23390else
23391 if test "$cross_compiling" = yes; then
23392 gdb_cv_printf_has_decfloat=no
23393else
23394 cat >conftest.$ac_ext <<_ACEOF
23395/* confdefs.h. */
23396_ACEOF
23397cat confdefs.h >>conftest.$ac_ext
23398cat >>conftest.$ac_ext <<_ACEOF
23399/* end confdefs.h. */
23400$ac_includes_default
23401int
23402main ()
23403{
23404char buf[64];
23405 _Decimal32 d32 = 1.2345df;
23406 _Decimal64 d64 = 1.2345dd;
23407 _Decimal128 d128 = 1.2345dl;
23408 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
23409 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
23410 ;
23411 return 0;
23412}
23413_ACEOF
23414rm -f conftest$ac_exeext
23415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23416 (eval $ac_link) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 gdb_cv_printf_has_decfloat=yes
23426else
23427 echo "$as_me: program exited with status $ac_status" >&5
23428echo "$as_me: failed program was:" >&5
23429sed 's/^/| /' conftest.$ac_ext >&5
23430
23431( exit $ac_status )
23432gdb_cv_printf_has_decfloat=no
23433fi
23434rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23435fi
23436fi
23437echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
23438echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
23439if test $gdb_cv_printf_has_decfloat = yes; then
23440
23441cat >>confdefs.h <<\_ACEOF
23442#define PRINTF_HAS_DECFLOAT 1
23443_ACEOF
23444
23445fi
23446
23447# Check if the compiler supports the `long double' type. We can't use
23448# AC_C_LONG_DOUBLE because that one does additional checks on the
23449# constants defined in <float.h> that fail on some systems,
23450# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
23451
23452echo "$as_me:$LINENO: checking for long double support in compiler" >&5
23453echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
23454if test "${gdb_cv_c_long_double+set}" = set; then
23455 echo $ECHO_N "(cached) $ECHO_C" >&6
23456else
23457 cat >conftest.$ac_ext <<_ACEOF
23458/* confdefs.h. */
23459_ACEOF
23460cat confdefs.h >>conftest.$ac_ext
23461cat >>conftest.$ac_ext <<_ACEOF
23462/* end confdefs.h. */
23463long double foo;
23464_ACEOF
23465rm -f conftest.$ac_objext
23466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 (eval $ac_compile) 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
23474 { ac_try='test -z "$ac_c_werror_flag"
23475 || test ! -s conftest.err'
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23478 ac_status=$?
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; } &&
23481 { ac_try='test -s conftest.$ac_objext'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; }; then
23487 gdb_cv_c_long_double=yes
23488else
23489 echo "$as_me: failed program was:" >&5
23490sed 's/^/| /' conftest.$ac_ext >&5
23491
23492gdb_cv_c_long_double=no
23493fi
23494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23495fi
23496echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
23497echo "${ECHO_T}$gdb_cv_c_long_double" >&6
23498if test $gdb_cv_c_long_double = yes; then
23499
23500cat >>confdefs.h <<\_ACEOF
23501#define HAVE_LONG_DOUBLE 1
23502_ACEOF
23503
23504fi
23505
23506# Check if the compiler and runtime support printing long doubles.
23507
23508echo "$as_me:$LINENO: checking for long double support in printf" >&5
23509echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
23510if test "${gdb_cv_printf_has_long_double+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23512else
23513 if test "$cross_compiling" = yes; then
23514 gdb_cv_printf_has_long_double=no
23515else
23516 cat >conftest.$ac_ext <<_ACEOF
23517/* confdefs.h. */
23518_ACEOF
23519cat confdefs.h >>conftest.$ac_ext
23520cat >>conftest.$ac_ext <<_ACEOF
23521/* end confdefs.h. */
23522$ac_includes_default
23523int
23524main ()
23525{
23526char buf[16];
23527 long double f = 3.141592653;
23528 sprintf (buf, "%Lg", f);
23529 return (strncmp ("3.14159", buf, 7));
23530 ;
23531 return 0;
23532}
23533_ACEOF
23534rm -f conftest$ac_exeext
23535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23536 (eval $ac_link) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23542 ac_status=$?
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; }; then
23545 gdb_cv_printf_has_long_double=yes
23546else
23547 echo "$as_me: program exited with status $ac_status" >&5
23548echo "$as_me: failed program was:" >&5
23549sed 's/^/| /' conftest.$ac_ext >&5
23550
23551( exit $ac_status )
23552gdb_cv_printf_has_long_double=no
23553fi
23554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23555fi
23556fi
23557echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23558echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
23559if test $gdb_cv_printf_has_long_double = yes; then
23560
23561cat >>confdefs.h <<\_ACEOF
23562#define PRINTF_HAS_LONG_DOUBLE 1
23563_ACEOF
23564
23565fi
23566
23567# Check if the compiler and runtime support scanning long doubles.
23568
23569echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23570echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
23571if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23573else
23574 if test "$cross_compiling" = yes; then
23575 gdb_cv_scanf_has_long_double=no
23576else
23577 cat >conftest.$ac_ext <<_ACEOF
23578/* confdefs.h. */
23579_ACEOF
23580cat confdefs.h >>conftest.$ac_ext
23581cat >>conftest.$ac_ext <<_ACEOF
23582/* end confdefs.h. */
23583#include <stdio.h>
23584int
23585main ()
23586{
23587char *buf = "3.141592653";
23588 long double f = 0;
23589 sscanf (buf, "%Lg", &f);
23590 return !(f > 3.14159 && f < 3.14160);
23591 ;
23592 return 0;
23593}
23594_ACEOF
23595rm -f conftest$ac_exeext
23596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23597 (eval $ac_link) 2>&5
23598 ac_status=$?
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; }; then
23606 gdb_cv_scanf_has_long_double=yes
23607else
23608 echo "$as_me: program exited with status $ac_status" >&5
23609echo "$as_me: failed program was:" >&5
23610sed 's/^/| /' conftest.$ac_ext >&5
23611
23612( exit $ac_status )
23613gdb_cv_scanf_has_long_double=no
23614fi
23615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23616fi
23617fi
23618echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23619echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23620if test $gdb_cv_scanf_has_long_double = yes; then
23621
23622cat >>confdefs.h <<\_ACEOF
23623#define SCANF_HAS_LONG_DOUBLE 1
23624_ACEOF
23625
23626fi
23627
23628case ${host_os} in
23629aix*)
23630 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23631echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23632if test "${gdb_cv_bigtoc+set}" = set; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23634else
23635
23636 SAVE_LDFLAGS=$LDFLAGS
23637
23638 case $GCC in
23639 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23640 *) gdb_cv_bigtoc=-bbigtoc ;;
23641 esac
23642
23643 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23644 cat >conftest.$ac_ext <<_ACEOF
23645/* confdefs.h. */
23646_ACEOF
23647cat confdefs.h >>conftest.$ac_ext
23648cat >>conftest.$ac_ext <<_ACEOF
23649/* end confdefs.h. */
23650
23651int
23652main ()
23653{
23654int i;
23655 ;
23656 return 0;
23657}
23658_ACEOF
23659rm -f conftest.$ac_objext conftest$ac_exeext
23660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23661 (eval $ac_link) 2>conftest.er1
23662 ac_status=$?
23663 grep -v '^ *+' conftest.er1 >conftest.err
23664 rm -f conftest.er1
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -z "$ac_c_werror_flag"
23669 || test ! -s conftest.err'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; } &&
23675 { ac_try='test -s conftest$ac_exeext'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23681 :
23682else
23683 echo "$as_me: failed program was:" >&5
23684sed 's/^/| /' conftest.$ac_ext >&5
23685
23686gdb_cv_bigtoc=
23687fi
23688rm -f conftest.err conftest.$ac_objext \
23689 conftest$ac_exeext conftest.$ac_ext
23690 LDFLAGS="${SAVE_LDFLAGS}"
23691
23692fi
23693echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23694echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23695 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23696 ;;
23697esac
23698
23699
23700
23701if test ${build} = ${host} -a ${host} = ${target} ; then
23702 case ${host_os} in
23703 hpux*)
23704 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23705echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23706 if test -f /usr/include/dce/cma_config.h ; then
23707 if test "$GCC" = "yes" ; then
23708 echo "$as_me:$LINENO: result: yes" >&5
23709echo "${ECHO_T}yes" >&6
23710
23711cat >>confdefs.h <<\_ACEOF
23712#define HAVE_HPUX_THREAD_SUPPORT 1
23713_ACEOF
23714
23715 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23716 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23717 else
23718 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23719echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23720 fi
23721 else
23722 echo "$as_me:$LINENO: result: no" >&5
23723echo "${ECHO_T}no" >&6
23724 fi
23725 ;;
23726 solaris*)
23727 # See if thread_db library is around for Solaris thread debugging.
23728 # Note that we must explicitly test for version 1 of the library
23729 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23730 # the same API.
23731 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23732echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23733 if test -f /usr/lib/libthread_db.so.1 ; then
23734 echo "$as_me:$LINENO: result: yes" >&5
23735echo "${ECHO_T}yes" >&6
23736
23737cat >>confdefs.h <<\_ACEOF
23738#define HAVE_THREAD_DB_LIB 1
23739_ACEOF
23740
23741 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23742 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23743
23744echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23745echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23746if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23747 echo $ECHO_N "(cached) $ECHO_C" >&6
23748else
23749 ac_check_lib_save_LIBS=$LIBS
23750LIBS="-ldl $LIBS"
23751cat >conftest.$ac_ext <<_ACEOF
23752/* confdefs.h. */
23753_ACEOF
23754cat confdefs.h >>conftest.$ac_ext
23755cat >>conftest.$ac_ext <<_ACEOF
23756/* end confdefs.h. */
23757
23758/* Override any gcc2 internal prototype to avoid an error. */
23759#ifdef __cplusplus
23760extern "C"
23761#endif
23762/* We use char because int might match the return type of a gcc2
23763 builtin and then its argument prototype would still apply. */
23764char dlopen ();
23765int
23766main ()
23767{
23768dlopen ();
23769 ;
23770 return 0;
23771}
23772_ACEOF
23773rm -f conftest.$ac_objext conftest$ac_exeext
23774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23775 (eval $ac_link) 2>conftest.er1
23776 ac_status=$?
23777 grep -v '^ *+' conftest.er1 >conftest.err
23778 rm -f conftest.er1
23779 cat conftest.err >&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); } &&
23782 { ac_try='test -z "$ac_c_werror_flag"
23783 || test ! -s conftest.err'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; } &&
23789 { ac_try='test -s conftest$ac_exeext'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23792 ac_status=$?
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
23795 ac_cv_lib_dl_dlopen=yes
23796else
23797 echo "$as_me: failed program was:" >&5
23798sed 's/^/| /' conftest.$ac_ext >&5
23799
23800ac_cv_lib_dl_dlopen=no
23801fi
23802rm -f conftest.err conftest.$ac_objext \
23803 conftest$ac_exeext conftest.$ac_ext
23804LIBS=$ac_check_lib_save_LIBS
23805fi
23806echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23807echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23808if test $ac_cv_lib_dl_dlopen = yes; then
23809 cat >>confdefs.h <<_ACEOF
23810#define HAVE_LIBDL 1
23811_ACEOF
23812
23813 LIBS="-ldl $LIBS"
23814
23815fi
23816
23817 if test "$GCC" = "yes" ; then
23818 # The GNU linker requires the -export-dynamic option to make
23819 # all symbols visible in the dynamic symbol table.
23820 hold_ldflags=$LDFLAGS
23821 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23822echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23823 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23824 cat >conftest.$ac_ext <<_ACEOF
23825/* confdefs.h. */
23826_ACEOF
23827cat confdefs.h >>conftest.$ac_ext
23828cat >>conftest.$ac_ext <<_ACEOF
23829/* end confdefs.h. */
23830
23831int
23832main ()
23833{
23834int i;
23835 ;
23836 return 0;
23837}
23838_ACEOF
23839rm -f conftest.$ac_objext conftest$ac_exeext
23840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23841 (eval $ac_link) 2>conftest.er1
23842 ac_status=$?
23843 grep -v '^ *+' conftest.er1 >conftest.err
23844 rm -f conftest.er1
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } &&
23848 { ac_try='test -z "$ac_c_werror_flag"
23849 || test ! -s conftest.err'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; } &&
23855 { ac_try='test -s conftest$ac_exeext'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23858 ac_status=$?
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 found=yes
23862else
23863 echo "$as_me: failed program was:" >&5
23864sed 's/^/| /' conftest.$ac_ext >&5
23865
23866found=no
23867fi
23868rm -f conftest.err conftest.$ac_objext \
23869 conftest$ac_exeext conftest.$ac_ext
23870 LDFLAGS=$hold_ldflags
23871 echo "$as_me:$LINENO: result: $found" >&5
23872echo "${ECHO_T}$found" >&6
23873 if test $found = yes; then
23874 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23875 fi
23876 fi
23877 # Sun randomly tweaked the prototypes in <proc_service.h>
23878 # at one point.
23879 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23880echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23881 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23883else
23884
23885 cat >conftest.$ac_ext <<_ACEOF
23886/* confdefs.h. */
23887_ACEOF
23888cat confdefs.h >>conftest.$ac_ext
23889cat >>conftest.$ac_ext <<_ACEOF
23890/* end confdefs.h. */
23891
23892 #include <proc_service.h>
23893 ps_err_e ps_pdwrite
23894 (struct ps_prochandle*, psaddr_t, const void*, size_t);
23895
23896int
23897main ()
23898{
23899
23900 ;
23901 return 0;
23902}
23903_ACEOF
23904rm -f conftest.$ac_objext
23905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23906 (eval $ac_compile) 2>conftest.er1
23907 ac_status=$?
23908 grep -v '^ *+' conftest.er1 >conftest.err
23909 rm -f conftest.er1
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } &&
23913 { ac_try='test -z "$ac_c_werror_flag"
23914 || test ! -s conftest.err'
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; } &&
23920 { ac_try='test -s conftest.$ac_objext'
23921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922 (eval $ac_try) 2>&5
23923 ac_status=$?
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; }; then
23926 gdb_cv_proc_service_is_old=no
23927else
23928 echo "$as_me: failed program was:" >&5
23929sed 's/^/| /' conftest.$ac_ext >&5
23930
23931gdb_cv_proc_service_is_old=yes
23932fi
23933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23934
23935fi
23936
23937 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23938echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23939 if test $gdb_cv_proc_service_is_old = yes; then
23940
23941cat >>confdefs.h <<\_ACEOF
23942#define PROC_SERVICE_IS_OLD 1
23943_ACEOF
23944
23945 fi
23946 else
23947 echo "$as_me:$LINENO: result: no" >&5
23948echo "${ECHO_T}no" >&6
23949 fi
23950 ;;
23951 aix*)
23952 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23953echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
23954 if test "${gdb_cv_have_aix_thread_debug+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/pthdebug.h>
23964int
23965main ()
23966{
23967#ifndef PTHDB_VERSION_3
23968 #error
23969 #endif
23970 ;
23971 return 0;
23972}
23973_ACEOF
23974rm -f conftest.$ac_objext
23975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23976 (eval $ac_compile) 2>conftest.er1
23977 ac_status=$?
23978 grep -v '^ *+' conftest.er1 >conftest.err
23979 rm -f conftest.er1
23980 cat conftest.err >&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } &&
23983 { ac_try='test -z "$ac_c_werror_flag"
23984 || test ! -s conftest.err'
23985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23987 ac_status=$?
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; } &&
23990 { ac_try='test -s conftest.$ac_objext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23993 ac_status=$?
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 gdb_cv_have_aix_thread_debug=yes
23997else
23998 echo "$as_me: failed program was:" >&5
23999sed 's/^/| /' conftest.$ac_ext >&5
24000
24001gdb_cv_have_aix_thread_debug=no
24002fi
24003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24004fi
24005
24006 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
24007echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
24008 if test $gdb_cv_have_aix_thread_debug = yes; then
24009 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
24010 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
24011 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
24012 fi
24013 ;;
24014 esac
24015
24016fi
24017
24018if test "x$ac_cv_header_thread_db_h" = "xyes"; then
24019 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
24020echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
24021if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24023else
24024 cat >conftest.$ac_ext <<_ACEOF
24025/* confdefs.h. */
24026_ACEOF
24027cat confdefs.h >>conftest.$ac_ext
24028cat >>conftest.$ac_ext <<_ACEOF
24029/* end confdefs.h. */
24030#include <thread_db.h>
24031int
24032main ()
24033{
24034int i = TD_NOTALLOC;
24035 ;
24036 return 0;
24037}
24038_ACEOF
24039rm -f conftest.$ac_objext
24040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24041 (eval $ac_compile) 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } &&
24048 { ac_try='test -z "$ac_c_werror_flag"
24049 || test ! -s conftest.err'
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; } &&
24055 { ac_try='test -s conftest.$ac_objext'
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; }; then
24061 gdb_cv_thread_db_h_has_td_notalloc=yes
24062else
24063 echo "$as_me: failed program was:" >&5
24064sed 's/^/| /' conftest.$ac_ext >&5
24065
24066gdb_cv_thread_db_h_has_td_notalloc=no
24067
24068fi
24069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24070
24071fi
24072echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
24073echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
24074 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
24075echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
24076if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
24077 echo $ECHO_N "(cached) $ECHO_C" >&6
24078else
24079 cat >conftest.$ac_ext <<_ACEOF
24080/* confdefs.h. */
24081_ACEOF
24082cat confdefs.h >>conftest.$ac_ext
24083cat >>conftest.$ac_ext <<_ACEOF
24084/* end confdefs.h. */
24085#include <thread_db.h>
24086int
24087main ()
24088{
24089int i = TD_VERSION;
24090 ;
24091 return 0;
24092}
24093_ACEOF
24094rm -f conftest.$ac_objext
24095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096 (eval $ac_compile) 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
24103 { ac_try='test -z "$ac_c_werror_flag"
24104 || test ! -s conftest.err'
24105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; } &&
24110 { ac_try='test -s conftest.$ac_objext'
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24113 ac_status=$?
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
24116 gdb_cv_thread_db_h_has_td_version=yes
24117else
24118 echo "$as_me: failed program was:" >&5
24119sed 's/^/| /' conftest.$ac_ext >&5
24120
24121gdb_cv_thread_db_h_has_td_version=no
24122
24123fi
24124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24125
24126fi
24127echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
24128echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
24129 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
24130echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
24131if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133else
24134 cat >conftest.$ac_ext <<_ACEOF
24135/* confdefs.h. */
24136_ACEOF
24137cat confdefs.h >>conftest.$ac_ext
24138cat >>conftest.$ac_ext <<_ACEOF
24139/* end confdefs.h. */
24140#include <thread_db.h>
24141int
24142main ()
24143{
24144int i = TD_NOTLS;
24145 ;
24146 return 0;
24147}
24148_ACEOF
24149rm -f conftest.$ac_objext
24150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24151 (eval $ac_compile) 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } &&
24158 { ac_try='test -z "$ac_c_werror_flag"
24159 || test ! -s conftest.err'
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; } &&
24165 { ac_try='test -s conftest.$ac_objext'
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; }; then
24171 gdb_cv_thread_db_h_has_td_notls=yes
24172else
24173 echo "$as_me: failed program was:" >&5
24174sed 's/^/| /' conftest.$ac_ext >&5
24175
24176gdb_cv_thread_db_h_has_td_notls=no
24177
24178fi
24179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180
24181fi
24182echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
24183echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
24184fi
24185if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
24186
24187cat >>confdefs.h <<\_ACEOF
24188#define THREAD_DB_HAS_TD_NOTALLOC 1
24189_ACEOF
24190
24191fi
24192if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
24193
24194cat >>confdefs.h <<\_ACEOF
24195#define THREAD_DB_HAS_TD_VERSION 1
24196_ACEOF
24197
24198fi
24199if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
24200
24201cat >>confdefs.h <<\_ACEOF
24202#define THREAD_DB_HAS_TD_NOTLS 1
24203_ACEOF
24204
24205fi
24206
24207if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
24208 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
24209echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
24210if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24212else
24213 cat >conftest.$ac_ext <<_ACEOF
24214/* confdefs.h. */
24215_ACEOF
24216cat confdefs.h >>conftest.$ac_ext
24217cat >>conftest.$ac_ext <<_ACEOF
24218/* end confdefs.h. */
24219#include <sys/syscall.h>
24220int
24221main ()
24222{
24223int i = __NR_tkill;
24224 ;
24225 return 0;
24226}
24227_ACEOF
24228rm -f conftest.$ac_objext
24229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24230 (eval $ac_compile) 2>conftest.er1
24231 ac_status=$?
24232 grep -v '^ *+' conftest.er1 >conftest.err
24233 rm -f conftest.er1
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } &&
24237 { ac_try='test -z "$ac_c_werror_flag"
24238 || test ! -s conftest.err'
24239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240 (eval $ac_try) 2>&5
24241 ac_status=$?
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); }; } &&
24244 { ac_try='test -s conftest.$ac_objext'
24245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246 (eval $ac_try) 2>&5
24247 ac_status=$?
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); }; }; then
24250 gdb_cv_sys_syscall_h_has_tkill=yes
24251else
24252 echo "$as_me: failed program was:" >&5
24253sed 's/^/| /' conftest.$ac_ext >&5
24254
24255gdb_cv_sys_syscall_h_has_tkill=no
24256
24257fi
24258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24259
24260fi
24261echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
24262echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
24263fi
24264if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
24265
24266cat >>confdefs.h <<\_ACEOF
24267#define HAVE_TKILL_SYSCALL 1
24268_ACEOF
24269
24270fi
24271
24272echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
24273echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
24274if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24276else
24277 cat >conftest.$ac_ext <<_ACEOF
24278/* confdefs.h. */
24279_ACEOF
24280cat confdefs.h >>conftest.$ac_ext
24281cat >>conftest.$ac_ext <<_ACEOF
24282/* end confdefs.h. */
24283#include <sys/personality.h>
24284
24285int
24286main ()
24287{
24288#ifndef ADDR_NO_RANDOMIZE
24289 char *p = (char *) ADDR_NO_RANDOMIZE;
24290#endif
24291
24292 ;
24293 return 0;
24294}
24295_ACEOF
24296rm -f conftest.$ac_objext
24297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24298 (eval $ac_compile) 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } &&
24305 { ac_try='test -z "$ac_c_werror_flag"
24306 || test ! -s conftest.err'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; } &&
24312 { ac_try='test -s conftest.$ac_objext'
24313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314 (eval $ac_try) 2>&5
24315 ac_status=$?
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; }; then
24318 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
24319else
24320 echo "$as_me: failed program was:" >&5
24321sed 's/^/| /' conftest.$ac_ext >&5
24322
24323ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
24324fi
24325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24326fi
24327echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
24328echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
24329if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
24330
24331cat >>confdefs.h <<_ACEOF
24332#define HAVE_DECL_ADDR_NO_RANDOMIZE 1
24333_ACEOF
24334
24335
24336else
24337 cat >>confdefs.h <<_ACEOF
24338#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
24339_ACEOF
24340
24341
24342fi
24343
24344
24345
24346if test "$cross_compiling" = yes; then
24347 cat >conftest.$ac_ext <<_ACEOF
24348/* confdefs.h. */
24349_ACEOF
24350cat confdefs.h >>conftest.$ac_ext
24351cat >>conftest.$ac_ext <<_ACEOF
24352/* end confdefs.h. */
24353#include <sys/personality.h>
24354int
24355main ()
24356{
24357
24358# if !HAVE_DECL_ADDR_NO_RANDOMIZE
24359# define ADDR_NO_RANDOMIZE 0x0040000
24360# endif
24361 /* Test the flag could be set and stays set. */
24362 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24363 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24364 return 1
24365 ;
24366 return 0;
24367}
24368_ACEOF
24369rm -f conftest.$ac_objext conftest$ac_exeext
24370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24371 (eval $ac_link) 2>conftest.er1
24372 ac_status=$?
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } &&
24378 { ac_try='test -z "$ac_c_werror_flag"
24379 || test ! -s conftest.err'
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24382 ac_status=$?
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; } &&
24385 { ac_try='test -s conftest$ac_exeext'
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24388 ac_status=$?
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24391 have_personality=true
24392else
24393 echo "$as_me: failed program was:" >&5
24394sed 's/^/| /' conftest.$ac_ext >&5
24395
24396have_personality=false
24397fi
24398rm -f conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
24400else
24401 cat >conftest.$ac_ext <<_ACEOF
24402/* confdefs.h. */
24403_ACEOF
24404cat confdefs.h >>conftest.$ac_ext
24405cat >>conftest.$ac_ext <<_ACEOF
24406/* end confdefs.h. */
24407#include <sys/personality.h>
24408int
24409main ()
24410{
24411
24412# if !HAVE_DECL_ADDR_NO_RANDOMIZE
24413# define ADDR_NO_RANDOMIZE 0x0040000
24414# endif
24415 /* Test the flag could be set and stays set. */
24416 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24417 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24418 return 1
24419 ;
24420 return 0;
24421}
24422_ACEOF
24423rm -f conftest$ac_exeext
24424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24425 (eval $ac_link) 2>&5
24426 ac_status=$?
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; }; then
24434 have_personality=true
24435else
24436 echo "$as_me: program exited with status $ac_status" >&5
24437echo "$as_me: failed program was:" >&5
24438sed 's/^/| /' conftest.$ac_ext >&5
24439
24440( exit $ac_status )
24441have_personality=false
24442fi
24443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24444fi
24445if $have_personality
24446then
24447
24448cat >>confdefs.h <<\_ACEOF
24449#define HAVE_PERSONALITY 1
24450_ACEOF
24451
24452fi
24453
24454
24455
24456# Check whether --with-sysroot or --without-sysroot was given.
24457if test "${with_sysroot+set}" = set; then
24458 withval="$with_sysroot"
24459
24460 case ${with_sysroot} in
24461 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
24462 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
24463 esac
24464
24465 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
24466
24467 if test "x$prefix" = xNONE; then
24468 test_prefix=/usr/local
24469 else
24470 test_prefix=$prefix
24471 fi
24472 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24473 test_exec_prefix=$test_prefix
24474 else
24475 test_exec_prefix=$exec_prefix
24476 fi
24477 case ${TARGET_SYSTEM_ROOT} in
24478 "${test_prefix}"|"${test_prefix}/"*|\
24479 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
24480 '${prefix}'|'${prefix}/'*|\
24481 '${exec_prefix}'|'${exec_prefix}/'*)
24482 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
24483 TARGET_SYSTEM_ROOT_DEFINE="$t"
24484 ;;
24485 esac
24486
24487else
24488
24489 TARGET_SYSTEM_ROOT=
24490 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
24491
24492fi;
24493
24494
24495
24496# Check whether --enable-werror or --disable-werror was given.
24497if test "${enable_werror+set}" = set; then
24498 enableval="$enable_werror"
24499 case "${enableval}" in
24500 yes | y) ERROR_ON_WARNING="yes" ;;
24501 no | n) ERROR_ON_WARNING="no" ;;
24502 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
24503echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
24504 { (exit 1); exit 1; }; } ;;
24505 esac
24506fi;
24507
24508# Enable -Werror by default when using gcc
24509if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24510 ERROR_ON_WARNING=yes
24511fi
24512
24513WERROR_CFLAGS=""
24514if test "${ERROR_ON_WARNING}" = yes ; then
24515 WERROR_CFLAGS="-Werror"
24516fi
24517
24518# The entries after -Wno-pointer-sign are disabled warnings which may
24519# be enabled in the future, which can not currently be used to build
24520# GDB.
24521# NOTE: If you change this list, remember to update
24522# gdb/doc/gdbint.texinfo.
24523build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24524-Wformat-nonliteral -Wno-pointer-sign \
24525-Wno-unused -Wno-switch -Wno-char-subscripts"
24526
24527# Enable -Wno-format by default when using gcc on mingw since many
24528# GCC versions complain about %I64.
24529case "${host}" in
24530 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24531esac
24532
24533# Check whether --enable-build-warnings or --disable-build-warnings was given.
24534if test "${enable_build_warnings+set}" = set; then
24535 enableval="$enable_build_warnings"
24536 case "${enableval}" in
24537 yes) ;;
24538 no) build_warnings="-w";;
24539 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24540 build_warnings="${build_warnings} ${t}";;
24541 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24542 build_warnings="${t} ${build_warnings}";;
24543 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24544esac
24545if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24546 echo "Setting compiler warning flags = $build_warnings" 6>&1
24547fi
24548fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
24549if test "${enable_gdb_build_warnings+set}" = set; then
24550 enableval="$enable_gdb_build_warnings"
24551 case "${enableval}" in
24552 yes) ;;
24553 no) build_warnings="-w";;
24554 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24555 build_warnings="${build_warnings} ${t}";;
24556 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24557 build_warnings="${t} ${build_warnings}";;
24558 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24559esac
24560if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24561 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24562fi
24563fi; WARN_CFLAGS=""
24564if test "x${build_warnings}" != x -a "x$GCC" = xyes
24565then
24566 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24567echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
24568 # Separate out the -Werror flag as some files just cannot be
24569 # compiled with it enabled.
24570 for w in ${build_warnings}; do
24571 case $w in
24572 -Werr*) WERROR_CFLAGS=-Werror ;;
24573 *) # Check that GCC accepts it
24574 saved_CFLAGS="$CFLAGS"
24575 CFLAGS="$CFLAGS $w"
24576 cat >conftest.$ac_ext <<_ACEOF
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582
24583int
24584main ()
24585{
24586
24587 ;
24588 return 0;
24589}
24590_ACEOF
24591rm -f conftest.$ac_objext
24592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24593 (eval $ac_compile) 2>conftest.er1
24594 ac_status=$?
24595 grep -v '^ *+' conftest.er1 >conftest.err
24596 rm -f conftest.er1
24597 cat conftest.err >&5
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } &&
24600 { ac_try='test -z "$ac_c_werror_flag"
24601 || test ! -s conftest.err'
24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603 (eval $ac_try) 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest.$ac_objext'
24608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609 (eval $ac_try) 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
24613 WARN_CFLAGS="${WARN_CFLAGS} $w"
24614else
24615 echo "$as_me: failed program was:" >&5
24616sed 's/^/| /' conftest.$ac_ext >&5
24617
24618fi
24619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24620 CFLAGS="$saved_CFLAGS"
24621 esac
24622 done
24623 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24624echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
24625fi
24626
24627
24628
24629# In the Cygwin environment, we need some additional flags.
24630echo "$as_me:$LINENO: checking for cygwin" >&5
24631echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
24632if test "${gdb_cv_os_cygwin+set}" = set; then
24633 echo $ECHO_N "(cached) $ECHO_C" >&6
24634else
24635 cat >conftest.$ac_ext <<_ACEOF
24636/* confdefs.h. */
24637_ACEOF
24638cat confdefs.h >>conftest.$ac_ext
24639cat >>conftest.$ac_ext <<_ACEOF
24640/* end confdefs.h. */
24641
24642#if defined (__CYGWIN__) || defined (__CYGWIN32__)
24643lose
24644#endif
24645_ACEOF
24646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24647 $EGREP "lose" >/dev/null 2>&1; then
24648 gdb_cv_os_cygwin=yes
24649else
24650 gdb_cv_os_cygwin=no
24651fi
24652rm -f conftest*
24653
24654fi
24655echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24656echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
24657
24658
24659SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24660case ${host} in
24661 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24662 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24663 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24664esac
24665
24666
24667# libreadline needs libuser32.a in a cygwin environment
24668WIN32LIBS=
24669if test x$gdb_cv_os_cygwin = xyes; then
24670 WIN32LIBS="-luser32"
24671 case "${target}" in
24672 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24673 ;;
24674 esac
24675fi
24676
24677# The ser-tcp.c module requires sockets.
24678case ${host} in
24679 *mingw32*)
24680
24681cat >>confdefs.h <<\_ACEOF
24682#define USE_WIN32API 1
24683_ACEOF
24684
24685 WIN32LIBS="$WIN32LIBS -lws2_32"
24686 ;;
24687esac
24688
24689
24690# Add ELF support to GDB, but only if BFD includes ELF support.
24691OLD_CFLAGS=$CFLAGS
24692OLD_LDFLAGS=$LDFLAGS
24693OLD_LIBS=$LIBS
24694CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24695LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24696intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24697LIBS="-lbfd -liberty $intl $LIBS"
24698echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24699echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24700if test "${gdb_cv_var_elf+set}" = set; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24702else
24703 cat >conftest.$ac_ext <<_ACEOF
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709#include <stdlib.h>
24710#include "bfd.h"
24711#include "elf-bfd.h"
24712
24713int
24714main ()
24715{
24716bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24717 ;
24718 return 0;
24719}
24720_ACEOF
24721rm -f conftest.$ac_objext conftest$ac_exeext
24722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723 (eval $ac_link) 2>conftest.er1
24724 ac_status=$?
24725 grep -v '^ *+' conftest.er1 >conftest.err
24726 rm -f conftest.er1
24727 cat conftest.err >&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } &&
24730 { ac_try='test -z "$ac_c_werror_flag"
24731 || test ! -s conftest.err'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest$ac_exeext'
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24740 ac_status=$?
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 gdb_cv_var_elf=yes
24744else
24745 echo "$as_me: failed program was:" >&5
24746sed 's/^/| /' conftest.$ac_ext >&5
24747
24748gdb_cv_var_elf=no
24749fi
24750rm -f conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
24752fi
24753echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24754echo "${ECHO_T}$gdb_cv_var_elf" >&6
24755if test $gdb_cv_var_elf = yes; then
24756 CONFIG_OBS="$CONFIG_OBS elfread.o"
24757
24758cat >>confdefs.h <<\_ACEOF
24759#define HAVE_ELF 1
24760_ACEOF
24761
24762fi
24763CFLAGS=$OLD_CFLAGS
24764LDFLAGS=$OLD_LDFLAGS
24765LIBS=$OLD_LIBS
24766
24767# Add any host-specific objects to GDB.
24768CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24769
24770LIBGUI="../libgui/src/libgui.a"
24771GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24772
24773
24774
24775WIN32LDAPP=
24776
24777
24778
24779case "${host}" in
24780*-*-cygwin* | *-*-mingw* )
24781 configdir="win"
24782 ;;
24783*)
24784 configdir="unix"
24785 ;;
24786esac
24787
24788GDBTKLIBS=
24789if test "${enable_gdbtk}" = "yes"; then
24790
24791 # Gdbtk must have an absolute path to srcdir in order to run
24792 # properly when not installed.
24793 here=`pwd`
24794 cd ${srcdir}
24795 GDBTK_SRC_DIR=`pwd`
24796 cd $here
24797
24798
24799 #
24800 # Ok, lets find the tcl configuration
24801 # First, look for one uninstalled.
24802 # the alternative search directory is invoked by --with-tcl
24803 #
24804
24805 if test x"${no_tcl}" = x ; then
24806 # we reset no_tcl in case something fails here
24807 no_tcl=true
24808
24809# Check whether --with-tcl or --without-tcl was given.
24810if test "${with_tcl+set}" = set; then
24811 withval="$with_tcl"
24812 with_tclconfig=${withval}
24813fi;
24814 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24815echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24816 if test "${ac_cv_c_tclconfig+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24818else
24819
24820
24821 # First check to see if --with-tcl was specified.
24822 case "${host}" in
24823 *-*-cygwin*) platDir="win" ;;
24824 *) platDir="unix" ;;
24825 esac
24826 if test x"${with_tclconfig}" != x ; then
24827 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24828 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24829 else
24830 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24831echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24832 { (exit 1); exit 1; }; }
24833 fi
24834 fi
24835
24836 # then check for a private Tcl installation
24837 if test x"${ac_cv_c_tclconfig}" = x ; then
24838 for i in \
24839 ../tcl \
24840 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24841 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24842 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24843 ../../tcl \
24844 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24845 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24846 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24847 ../../../tcl \
24848 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24849 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24850 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24851 if test -f "$i/$platDir/tclConfig.sh" ; then
24852 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24853 break
24854 fi
24855 done
24856 fi
24857
24858 # on Darwin, check in Framework installation locations
24859 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24860 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24861 `ls -d /Library/Frameworks 2>/dev/null` \
24862 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24863 `ls -d /System/Library/Frameworks 2>/dev/null` \
24864 ; do
24865 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24866 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24867 break
24868 fi
24869 done
24870 fi
24871
24872 # check in a few common install locations
24873 if test x"${ac_cv_c_tclconfig}" = x ; then
24874 for i in `ls -d ${libdir} 2>/dev/null` \
24875 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24876 `ls -d ${prefix}/lib 2>/dev/null` \
24877 `ls -d /usr/local/lib 2>/dev/null` \
24878 `ls -d /usr/contrib/lib 2>/dev/null` \
24879 `ls -d /usr/lib 2>/dev/null` \
24880 ; do
24881 if test -f "$i/tclConfig.sh" ; then
24882 ac_cv_c_tclconfig=`(cd $i; pwd)`
24883 break
24884 fi
24885 done
24886 fi
24887
24888 # check in a few other private locations
24889 if test x"${ac_cv_c_tclconfig}" = x ; then
24890 for i in \
24891 ${srcdir}/../tcl \
24892 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24893 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24894 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24895 if test -f "$i/$platDir/tclConfig.sh" ; then
24896 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24897 break
24898 fi
24899 done
24900 fi
24901
24902fi
24903
24904
24905 if test x"${ac_cv_c_tclconfig}" = x ; then
24906 TCL_BIN_DIR="# no Tcl configs found"
24907 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24908echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24909 exit 0
24910 else
24911 no_tcl=
24912 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24913 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24914echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24915 fi
24916 fi
24917
24918 if test -z "${no_tcl}"; then
24919
24920 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24921echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
24922
24923 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24924 echo "$as_me:$LINENO: result: loading" >&5
24925echo "${ECHO_T}loading" >&6
24926 . ${TCL_BIN_DIR}/tclConfig.sh
24927 else
24928 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24929echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24930 fi
24931
24932 # eval is required to do the TCL_DBGX substitution
24933 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24934 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24935
24936 # If the TCL_BIN_DIR is the build directory (not the install directory),
24937 # then set the common variable name to the value of the build variables.
24938 # For example, the variable TCL_LIB_SPEC will be set to the value
24939 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24940 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24941 # installed and uninstalled version of Tcl.
24942 if test -f ${TCL_BIN_DIR}/Makefile ; then
24943 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24944 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
24945 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
24946 elif test "`uname -s`" = "Darwin"; then
24947 # If Tcl was built as a framework, attempt to use the libraries
24948 # from the framework at the given location so that linking works
24949 # against Tcl.framework installed in an arbitary location.
24950 case ${TCL_DEFS} in
24951 *TCL_FRAMEWORK*)
24952 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
24953 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
24954 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
24955 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
24956 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
24957 break
24958 fi
24959 done
24960 fi
24961 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
24962 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
24963 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
24964 fi
24965 ;;
24966 esac
24967 fi
24968
24969 # eval is required to do the TCL_DBGX substitution
24970 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
24971 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
24972 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
24973 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989 # Check for in-tree tcl
24990 here=`pwd`
24991 cd ${srcdir}/..
24992 topdir=`pwd`
24993 cd ${here}
24994
24995 intree="no"
24996 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
24997 intree="yes"
24998 fi
24999
25000 # Find Tcl private headers
25001 if test x"${intree}" = xno; then
25002
25003 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
25004echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
25005 private_dir=""
25006 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
25007 if test -f ${dir}/tclInt.h ; then
25008 private_dir=${dir}
25009 fi
25010
25011 if test x"${private_dir}" = x; then
25012 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
25013echo "$as_me: error: could not find private Tcl headers" >&2;}
25014 { (exit 1); exit 1; }; }
25015 else
25016 TCL_PRIVATE_INCLUDE="-I${private_dir}"
25017 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25018echo "${ECHO_T}${private_dir}" >&6
25019 fi
25020
25021 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
25022 TCL_LIBRARY="${TCL_LIB_SPEC}"
25023 TCL_DEPS=""
25024 else
25025 # If building tcl in the same src tree, private headers
25026 # are not needed, but we need to be sure to use the right
25027 # headers library
25028 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
25029 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
25030 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
25031 fi
25032
25033
25034
25035
25036 # If $no_tk is nonempty, then we can't do Tk, and there is no
25037 # point to doing Tcl.
25038 if test -z "${no_tk}"; then
25039
25040 #
25041 # Ok, lets find the tk configuration
25042 # First, look for one uninstalled.
25043 # the alternative search directory is invoked by --with-tk
25044 #
25045
25046 if test x"${no_tk}" = x ; then
25047 # we reset no_tk in case something fails here
25048 no_tk=true
25049
25050# Check whether --with-tk or --without-tk was given.
25051if test "${with_tk+set}" = set; then
25052 withval="$with_tk"
25053 with_tkconfig=${withval}
25054fi;
25055 echo "$as_me:$LINENO: checking for Tk configuration" >&5
25056echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
25057 if test "${ac_cv_c_tkconfig+set}" = set; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25059else
25060
25061
25062 # First check to see if --with-tkconfig was specified.
25063 if test x"${with_tkconfig}" != x ; then
25064 if test -f "${with_tkconfig}/tkConfig.sh" ; then
25065 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
25066 else
25067 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
25068echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
25069 { (exit 1); exit 1; }; }
25070 fi
25071 fi
25072
25073 # then check for a private Tk library
25074 case "${host}" in
25075 *-*-cygwin*) platDir="win" ;;
25076 *) platDir="unix" ;;
25077 esac
25078 if test x"${ac_cv_c_tkconfig}" = x ; then
25079 for i in \
25080 ../tk \
25081 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25082 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
25083 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
25084 ../../tk \
25085 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25086 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
25087 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
25088 ../../../tk \
25089 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25090 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
25091 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
25092 if test -f "$i/$platDir/tkConfig.sh" ; then
25093 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25094 break
25095 fi
25096 done
25097 fi
25098
25099 # on Darwin, check in Framework installation locations
25100 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
25101 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
25102 `ls -d /Library/Frameworks 2>/dev/null` \
25103 `ls -d /Network/Library/Frameworks 2>/dev/null` \
25104 `ls -d /System/Library/Frameworks 2>/dev/null` \
25105 ; do
25106 if test -f "$i/Tk.framework/tkConfig.sh" ; then
25107 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
25108 break
25109 fi
25110 done
25111 fi
25112
25113 # check in a few common install locations
25114 if test x"${ac_cv_c_tkconfig}" = x ; then
25115 for i in `ls -d ${libdir} 2>/dev/null` \
25116 `ls -d ${exec_prefix}/lib 2>/dev/null` \
25117 `ls -d ${prefix}/lib 2>/dev/null` \
25118 `ls -d /usr/local/lib 2>/dev/null` \
25119 `ls -d /usr/contrib/lib 2>/dev/null` \
25120 `ls -d /usr/lib 2>/dev/null` \
25121 ; do
25122 if test -f "$i/tkConfig.sh" ; then
25123 ac_cv_c_tkconfig=`(cd $i; pwd)`
25124 break
25125 fi
25126 done
25127 fi
25128 # check in a few other private locations
25129 if test x"${ac_cv_c_tkconfig}" = x ; then
25130 for i in \
25131 ${srcdir}/../tk \
25132 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25133 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
25134 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
25135 if test -f "$i/$platDir/tkConfig.sh" ; then
25136 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25137 break
25138 fi
25139 done
25140 fi
25141
25142fi
25143
25144
25145 if test x"${ac_cv_c_tkconfig}" = x ; then
25146 TK_BIN_DIR="# no Tk configs found"
25147 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
25148echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
25149 exit 0
25150 else
25151 no_tk=
25152 TK_BIN_DIR=${ac_cv_c_tkconfig}
25153 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
25154echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
25155 fi
25156 fi
25157
25158
25159 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
25160echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
25161
25162 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
25163 echo "$as_me:$LINENO: result: loading" >&5
25164echo "${ECHO_T}loading" >&6
25165 . ${TK_BIN_DIR}/tkConfig.sh
25166 else
25167 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
25168echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
25169 fi
25170
25171 # eval is required to do the TK_DBGX substitution
25172 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
25173 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
25174
25175 # If the TK_BIN_DIR is the build directory (not the install directory),
25176 # then set the common variable name to the value of the build variables.
25177 # For example, the variable TK_LIB_SPEC will be set to the value
25178 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
25179 # instead of TK_BUILD_LIB_SPEC since it will work with both an
25180 # installed and uninstalled version of Tcl.
25181 if test -f ${TK_BIN_DIR}/Makefile ; then
25182 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
25183 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
25184 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
25185 elif test "`uname -s`" = "Darwin"; then
25186 # If Tk was built as a framework, attempt to use the libraries
25187 # from the framework at the given location so that linking works
25188 # against Tk.framework installed in an arbitary location.
25189 case ${TK_DEFS} in
25190 *TK_FRAMEWORK*)
25191 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
25192 for i in "`cd ${TK_BIN_DIR}; pwd`" \
25193 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
25194 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
25195 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
25196 break
25197 fi
25198 done
25199 fi
25200 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
25201 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
25202 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
25203 fi
25204 ;;
25205 esac
25206 fi
25207
25208 # eval is required to do the TK_DBGX substitution
25209 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
25210 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
25211 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
25212 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227 # Check for in-tree Tk
25228 intree="no"
25229 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
25230 intree="yes"
25231 fi
25232
25233 # Find Tk private headers
25234 if test x"${intree}" = xno; then
25235
25236 echo "$as_me:$LINENO: checking for Tk private headers" >&5
25237echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
25238 private_dir=""
25239 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
25240 if test -f ${dir}/tkInt.h; then
25241 private_dir=${dir}
25242 fi
25243
25244 if test x"${private_dir}" = x; then
25245 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
25246echo "$as_me: error: could not find Tk private headers" >&2;}
25247 { (exit 1); exit 1; }; }
25248 else
25249 TK_PRIVATE_INCLUDE="-I${private_dir}"
25250 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25251echo "${ECHO_T}${private_dir}" >&6
25252 fi
25253
25254 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
25255 TK_LIBRARY=${TK_LIB_SPEC}
25256 TK_DEPS=""
25257 else
25258 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
25259 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
25260 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
25261 fi
25262
25263
25264
25265
25266
25267 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25268
25269 # Include some libraries that Tcl and Tk want.
25270 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25271 # Yes, the ordering seems wrong here. But it isn't.
25272 # TK_LIBS is the list of libraries that need to be linked
25273 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25274 # were in LIBS then any link tests after this point would
25275 # try to include things like `$(LIBGUI)', which wouldn't work.
25276 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25277
25278 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25279 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25280 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25281 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25282 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25283 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25284 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25285
25286 if test x$gdb_cv_os_cygwin = xyes; then
25287 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25288 WIN32LDAPP="-Wl,--subsystem,console"
25289 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25290 fi
25291 fi
25292 fi
25293
25294
25295
25296subdirs="$subdirs gdbtk"
25297
25298fi
25299
25300
25301
25302
25303
25304
25305
25306
25307echo "$as_me:$LINENO: checking for X" >&5
25308echo $ECHO_N "checking for X... $ECHO_C" >&6
25309
25310
25311# Check whether --with-x or --without-x was given.
25312if test "${with_x+set}" = set; then
25313 withval="$with_x"
25314
25315fi;
25316# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25317if test "x$with_x" = xno; then
25318 # The user explicitly disabled X.
25319 have_x=disabled
25320else
25321 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25322 # Both variables are already set.
25323 have_x=yes
25324 else
25325 if test "${ac_cv_have_x+set}" = set; then
25326 echo $ECHO_N "(cached) $ECHO_C" >&6
25327else
25328 # One or both of the vars are not set, and there is no cached value.
25329ac_x_includes=no ac_x_libraries=no
25330rm -fr conftest.dir
25331if mkdir conftest.dir; then
25332 cd conftest.dir
25333 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25334 cat >Imakefile <<'_ACEOF'
25335acfindx:
25336 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25337_ACEOF
25338 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25340 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25341 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25342 for ac_extension in a so sl; do
25343 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25344 test -f $ac_im_libdir/libX11.$ac_extension; then
25345 ac_im_usrlibdir=$ac_im_libdir; break
25346 fi
25347 done
25348 # Screen out bogus values from the imake configuration. They are
25349 # bogus both because they are the default anyway, and because
25350 # using them would break gcc on systems where it needs fixed includes.
25351 case $ac_im_incroot in
25352 /usr/include) ;;
25353 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25354 esac
25355 case $ac_im_usrlibdir in
25356 /usr/lib | /lib) ;;
25357 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25358 esac
25359 fi
25360 cd ..
25361 rm -fr conftest.dir
25362fi
25363
25364# Standard set of common directories for X headers.
25365# Check X11 before X11Rn because it is often a symlink to the current release.
25366ac_x_header_dirs='
25367/usr/X11/include
25368/usr/X11R6/include
25369/usr/X11R5/include
25370/usr/X11R4/include
25371
25372/usr/include/X11
25373/usr/include/X11R6
25374/usr/include/X11R5
25375/usr/include/X11R4
25376
25377/usr/local/X11/include
25378/usr/local/X11R6/include
25379/usr/local/X11R5/include
25380/usr/local/X11R4/include
25381
25382/usr/local/include/X11
25383/usr/local/include/X11R6
25384/usr/local/include/X11R5
25385/usr/local/include/X11R4
25386
25387/usr/X386/include
25388/usr/x386/include
25389/usr/XFree86/include/X11
25390
25391/usr/include
25392/usr/local/include
25393/usr/unsupported/include
25394/usr/athena/include
25395/usr/local/x11r5/include
25396/usr/lpp/Xamples/include
25397
25398/usr/openwin/include
25399/usr/openwin/share/include'
25400
25401if test "$ac_x_includes" = no; then
25402 # Guess where to find include files, by looking for Intrinsic.h.
25403 # First, try using that file with no special directory specified.
25404 cat >conftest.$ac_ext <<_ACEOF
25405/* confdefs.h. */
25406_ACEOF
25407cat confdefs.h >>conftest.$ac_ext
25408cat >>conftest.$ac_ext <<_ACEOF
25409/* end confdefs.h. */
25410#include <X11/Intrinsic.h>
25411_ACEOF
25412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25414 ac_status=$?
25415 grep -v '^ *+' conftest.er1 >conftest.err
25416 rm -f conftest.er1
25417 cat conftest.err >&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } >/dev/null; then
25420 if test -s conftest.err; then
25421 ac_cpp_err=$ac_c_preproc_warn_flag
25422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25423 else
25424 ac_cpp_err=
25425 fi
25426else
25427 ac_cpp_err=yes
25428fi
25429if test -z "$ac_cpp_err"; then
25430 # We can compile using X headers with no special include directory.
25431ac_x_includes=
25432else
25433 echo "$as_me: failed program was:" >&5
25434sed 's/^/| /' conftest.$ac_ext >&5
25435
25436 for ac_dir in $ac_x_header_dirs; do
25437 if test -r "$ac_dir/X11/Intrinsic.h"; then
25438 ac_x_includes=$ac_dir
25439 break
25440 fi
25441done
25442fi
25443rm -f conftest.err conftest.$ac_ext
25444fi # $ac_x_includes = no
25445
25446if test "$ac_x_libraries" = no; then
25447 # Check for the libraries.
25448 # See if we find them without any special options.
25449 # Don't add to $LIBS permanently.
25450 ac_save_LIBS=$LIBS
25451 LIBS="-lXt $LIBS"
25452 cat >conftest.$ac_ext <<_ACEOF
25453/* confdefs.h. */
25454_ACEOF
25455cat confdefs.h >>conftest.$ac_ext
25456cat >>conftest.$ac_ext <<_ACEOF
25457/* end confdefs.h. */
25458#include <X11/Intrinsic.h>
25459int
25460main ()
25461{
25462XtMalloc (0)
25463 ;
25464 return 0;
25465}
25466_ACEOF
25467rm -f conftest.$ac_objext conftest$ac_exeext
25468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25469 (eval $ac_link) 2>conftest.er1
25470 ac_status=$?
25471 grep -v '^ *+' conftest.er1 >conftest.err
25472 rm -f conftest.er1
25473 cat conftest.err >&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } &&
25476 { ac_try='test -z "$ac_c_werror_flag"
25477 || test ! -s conftest.err'
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; } &&
25483 { ac_try='test -s conftest$ac_exeext'
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 LIBS=$ac_save_LIBS
25490# We can link X programs with no special library path.
25491ac_x_libraries=
25492else
25493 echo "$as_me: failed program was:" >&5
25494sed 's/^/| /' conftest.$ac_ext >&5
25495
25496LIBS=$ac_save_LIBS
25497for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25498do
25499 # Don't even attempt the hair of trying to link an X program!
25500 for ac_extension in a so sl; do
25501 if test -r $ac_dir/libXt.$ac_extension; then
25502 ac_x_libraries=$ac_dir
25503 break 2
25504 fi
25505 done
25506done
25507fi
25508rm -f conftest.err conftest.$ac_objext \
25509 conftest$ac_exeext conftest.$ac_ext
25510fi # $ac_x_libraries = no
25511
25512if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25513 # Didn't find X anywhere. Cache the known absence of X.
25514 ac_cv_have_x="have_x=no"
25515else
25516 # Record where we found X for the cache.
25517 ac_cv_have_x="have_x=yes \
25518 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25519fi
25520fi
25521
25522 fi
25523 eval "$ac_cv_have_x"
25524fi # $with_x != no
25525
25526if test "$have_x" != yes; then
25527 echo "$as_me:$LINENO: result: $have_x" >&5
25528echo "${ECHO_T}$have_x" >&6
25529 no_x=yes
25530else
25531 # If each of the values was on the command line, it overrides each guess.
25532 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25533 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25534 # Update the cache value to reflect the command line values.
25535 ac_cv_have_x="have_x=yes \
25536 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25537 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25538echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25539fi
25540
25541
25542# Check whether we should enable the TUI, but only do so if we really
25543# can.
25544if test x"$enable_tui" != xno; then
25545 if test -d $srcdir/tui; then
25546 if test "$ac_cv_search_waddstr" != no; then
25547 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25548 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25549 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25550 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25551 CONFIG_ALL="${CONFIG_ALL} all-tui"
25552 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25553 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25554 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25555 else
25556 if test x"$enable_tui" = xyes; then
25557 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25558echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25559 { (exit 1); exit 1; }; }
25560 else
25561 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
25562echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
25563 fi
25564 fi
25565 fi
25566fi
25567
25568# Unlike the sim directory, whether a simulator is linked is controlled by
25569# presence of a gdb_sim definition in the target configure.tgt entry.
25570# This code just checks for a few cases where we'd like to ignore those
25571# definitions, even when they're present in the '.mt' file. These cases
25572# are when --disable-sim is specified, or if the simulator directory is
25573# not part of the source tree.
25574#
25575# Check whether --enable-sim or --disable-sim was given.
25576if test "${enable_sim+set}" = set; then
25577 enableval="$enable_sim"
25578 echo "enable_sim = $enable_sim";
25579 echo "enableval = ${enableval}";
25580 case "${enableval}" in
25581 yes) ignore_sim=false ;;
25582 no) ignore_sim=true ;;
25583 *) ignore_sim=false ;;
25584 esac
25585else
25586 ignore_sim=false
25587fi;
25588
25589if test ! -d "${srcdir}/../sim"; then
25590 ignore_sim=true
25591fi
25592
25593SIM=
25594SIM_OBS=
25595if test "${ignore_sim}" = "false"; then
25596 if test x"${gdb_sim}" != x ; then
25597 SIM="${gdb_sim}"
25598 SIM_OBS="remote-sim.o"
25599
25600cat >>confdefs.h <<\_ACEOF
25601#define WITH_SIM 1
25602_ACEOF
25603
25604 fi
25605fi
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620# List of host floatformats.
25621
25622cat >>confdefs.h <<_ACEOF
25623#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25624_ACEOF
25625
25626
25627cat >>confdefs.h <<_ACEOF
25628#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25629_ACEOF
25630
25631
25632cat >>confdefs.h <<_ACEOF
25633#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25634_ACEOF
25635
25636
25637# target_subdir is used by the testsuite to find the target libraries.
25638target_subdir=
25639if test "${host}" != "${target}"; then
25640 target_subdir="${target_alias}/"
25641fi
25642
25643
25644frags=
25645if test "${gdb_native}" = "yes"; then
25646 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25647 if test ! -f ${host_makefile_frag}; then
25648 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25649echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25650 { (exit 1); exit 1; }; }
25651 fi
25652 frags="$frags $host_makefile_frag"
25653else
25654 host_makefile_frag=/dev/null
25655fi
25656
25657
25658
25659
25660if test "${gdb_native}" = "yes"; then
25661# We pick this up from the host configuration file (.mh) because we
25662# do not have a native configuration Makefile fragment.
25663nativefile=`sed -n '
25664s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25665' ${host_makefile_frag}`
25666fi
25667
25668
25669if test x"${gdb_osabi}" != x ; then
25670
25671cat >>confdefs.h <<_ACEOF
25672#define GDB_OSABI_DEFAULT $gdb_osabi
25673_ACEOF
25674
25675fi
25676
25677# Enable multi-ice-gdb-server.
25678# Check whether --enable-multi-ice or --disable-multi-ice was given.
25679if test "${enable_multi_ice+set}" = set; then
25680 enableval="$enable_multi_ice"
25681 case $enableval in
25682 yes | no)
25683 ;;
25684 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25685echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25686 { (exit 1); exit 1; }; } ;;
25687 esac
25688fi;
25689if test "x$enable_multi_ice" = xyes; then
25690
25691
25692subdirs="$subdirs multi-ice"
25693
25694fi
25695
25696# We only build gdbserver automatically in a native configuration.
25697if test "$gdb_native" = "yes"; then
25698 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25699echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25700 if test "x$build_gdbserver" = xyes; then
25701 echo "$as_me:$LINENO: result: yes" >&5
25702echo "${ECHO_T}yes" >&6
25703
25704
25705subdirs="$subdirs gdbserver"
25706
25707 else
25708 echo "$as_me:$LINENO: result: no" >&5
25709echo "${ECHO_T}no" >&6
25710 fi
25711fi
25712
25713# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25714# to an empty version.
25715
25716files=
25717links=
25718
25719rm -f nm.h
25720nm_h=""
25721if test "${nativefile}" != ""; then
25722 nm_h=nm.h
25723 case "${nativefile}" in
25724 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25725 * ) GDB_NM_FILE="${nativefile}"
25726 esac
25727 files="${files} ${GDB_NM_FILE}"
25728 links="${links} nm.h"
25729
25730cat >>confdefs.h <<_ACEOF
25731#define GDB_NM_FILE "${GDB_NM_FILE}"
25732_ACEOF
25733
25734fi
25735
25736
25737ac_sources="$files"
25738ac_dests="$links"
25739while test -n "$ac_sources"; do
25740 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25741 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25742 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25743done
25744 ac_config_links="$ac_config_links $ac_config_links_1"
25745
25746
25747
25748
25749
25750
25751cat >>confdefs.h <<\_ACEOF
25752#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25753_ACEOF
25754
25755
25756
25757
25758
25759# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25760if test "${with_libiconv_prefix+set}" = set; then
25761 withval="$with_libiconv_prefix"
25762
25763 for dir in `echo "$withval" | tr : ' '`; do
25764 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25765 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25766 done
25767
25768fi;
25769
25770 echo "$as_me:$LINENO: checking for iconv" >&5
25771echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25772if test "${am_cv_func_iconv+set}" = set; then
25773 echo $ECHO_N "(cached) $ECHO_C" >&6
25774else
25775
25776 am_cv_func_iconv="no, consider installing GNU libiconv"
25777 am_cv_lib_iconv=no
25778 cat >conftest.$ac_ext <<_ACEOF
25779/* confdefs.h. */
25780_ACEOF
25781cat confdefs.h >>conftest.$ac_ext
25782cat >>conftest.$ac_ext <<_ACEOF
25783/* end confdefs.h. */
25784#include <stdlib.h>
25785#include <iconv.h>
25786int
25787main ()
25788{
25789iconv_t cd = iconv_open("","");
25790 iconv(cd,NULL,NULL,NULL,NULL);
25791 iconv_close(cd);
25792 ;
25793 return 0;
25794}
25795_ACEOF
25796rm -f conftest.$ac_objext conftest$ac_exeext
25797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25798 (eval $ac_link) 2>conftest.er1
25799 ac_status=$?
25800 grep -v '^ *+' conftest.er1 >conftest.err
25801 rm -f conftest.er1
25802 cat conftest.err >&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } &&
25805 { ac_try='test -z "$ac_c_werror_flag"
25806 || test ! -s conftest.err'
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; } &&
25812 { ac_try='test -s conftest$ac_exeext'
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; }; then
25818 am_cv_func_iconv=yes
25819else
25820 echo "$as_me: failed program was:" >&5
25821sed 's/^/| /' conftest.$ac_ext >&5
25822
25823fi
25824rm -f conftest.err conftest.$ac_objext \
25825 conftest$ac_exeext conftest.$ac_ext
25826 if test "$am_cv_func_iconv" != yes; then
25827 am_save_LIBS="$LIBS"
25828 LIBS="$LIBS -liconv"
25829 cat >conftest.$ac_ext <<_ACEOF
25830/* confdefs.h. */
25831_ACEOF
25832cat confdefs.h >>conftest.$ac_ext
25833cat >>conftest.$ac_ext <<_ACEOF
25834/* end confdefs.h. */
25835#include <stdlib.h>
25836#include <iconv.h>
25837int
25838main ()
25839{
25840iconv_t cd = iconv_open("","");
25841 iconv(cd,NULL,NULL,NULL,NULL);
25842 iconv_close(cd);
25843 ;
25844 return 0;
25845}
25846_ACEOF
25847rm -f conftest.$ac_objext conftest$ac_exeext
25848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25849 (eval $ac_link) 2>conftest.er1
25850 ac_status=$?
25851 grep -v '^ *+' conftest.er1 >conftest.err
25852 rm -f conftest.er1
25853 cat conftest.err >&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } &&
25856 { ac_try='test -z "$ac_c_werror_flag"
25857 || test ! -s conftest.err'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; } &&
25863 { ac_try='test -s conftest$ac_exeext'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 am_cv_lib_iconv=yes
25870 am_cv_func_iconv=yes
25871else
25872 echo "$as_me: failed program was:" >&5
25873sed 's/^/| /' conftest.$ac_ext >&5
25874
25875fi
25876rm -f conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
25878 LIBS="$am_save_LIBS"
25879 fi
25880
25881fi
25882echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25883echo "${ECHO_T}$am_cv_func_iconv" >&6
25884 if test "$am_cv_func_iconv" = yes; then
25885
25886cat >>confdefs.h <<\_ACEOF
25887#define HAVE_ICONV 1
25888_ACEOF
25889
25890 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25891echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25892 if test "${am_cv_proto_iconv+set}" = set; then
25893 echo $ECHO_N "(cached) $ECHO_C" >&6
25894else
25895
25896 cat >conftest.$ac_ext <<_ACEOF
25897/* confdefs.h. */
25898_ACEOF
25899cat confdefs.h >>conftest.$ac_ext
25900cat >>conftest.$ac_ext <<_ACEOF
25901/* end confdefs.h. */
25902
25903#include <stdlib.h>
25904#include <iconv.h>
25905extern
25906#ifdef __cplusplus
25907"C"
25908#endif
25909#if defined(__STDC__) || defined(__cplusplus)
25910size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25911#else
25912size_t iconv();
25913#endif
25914
25915int
25916main ()
25917{
25918
25919 ;
25920 return 0;
25921}
25922_ACEOF
25923rm -f conftest.$ac_objext
25924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25925 (eval $ac_compile) 2>conftest.er1
25926 ac_status=$?
25927 grep -v '^ *+' conftest.er1 >conftest.err
25928 rm -f conftest.er1
25929 cat conftest.err >&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } &&
25932 { ac_try='test -z "$ac_c_werror_flag"
25933 || test ! -s conftest.err'
25934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935 (eval $ac_try) 2>&5
25936 ac_status=$?
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); }; } &&
25939 { ac_try='test -s conftest.$ac_objext'
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
25945 am_cv_proto_iconv_arg1=""
25946else
25947 echo "$as_me: failed program was:" >&5
25948sed 's/^/| /' conftest.$ac_ext >&5
25949
25950am_cv_proto_iconv_arg1="const"
25951fi
25952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25953 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);"
25954fi
25955
25956 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25957 echo "$as_me:$LINENO: result: ${ac_t:-
25958 }$am_cv_proto_iconv" >&5
25959echo "${ECHO_T}${ac_t:-
25960 }$am_cv_proto_iconv" >&6
25961
25962cat >>confdefs.h <<_ACEOF
25963#define ICONV_CONST $am_cv_proto_iconv_arg1
25964_ACEOF
25965
25966 fi
25967 LIBICONV=
25968 if test "$am_cv_lib_iconv" = yes; then
25969 LIBICONV="-liconv"
25970 fi
25971
25972
25973
25974 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
25975 ac_config_commands="$ac_config_commands default"
25976cat >confcache <<\_ACEOF
25977# This file is a shell script that caches the results of configure
25978# tests run on this system so they can be shared between configure
25979# scripts and configure runs, see configure's option --config-cache.
25980# It is not useful on other systems. If it contains results you don't
25981# want to keep, you may remove or edit it.
25982#
25983# config.status only pays attention to the cache file if you give it
25984# the --recheck option to rerun configure.
25985#
25986# `ac_cv_env_foo' variables (set or unset) will be overridden when
25987# loading this file, other *unset* `ac_cv_foo' will be assigned the
25988# following values.
25989
25990_ACEOF
25991
25992# The following way of writing the cache mishandles newlines in values,
25993# but we know of no workaround that is simple, portable, and efficient.
25994# So, don't put newlines in cache variables' values.
25995# Ultrix sh set writes to stderr and can't be redirected directly,
25996# and sets the high bit in the cache file unless we assign to the vars.
25997{
25998 (set) 2>&1 |
25999 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26000 *ac_space=\ *)
26001 # `set' does not quote correctly, so add quotes (double-quote
26002 # substitution turns \\\\ into \\, and sed turns \\ into \).
26003 sed -n \
26004 "s/'/'\\\\''/g;
26005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26006 ;;
26007 *)
26008 # `set' quotes correctly as required by POSIX, so do not add quotes.
26009 sed -n \
26010 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26011 ;;
26012 esac;
26013} |
26014 sed '
26015 t clear
26016 : clear
26017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26018 t end
26019 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26020 : end' >>confcache
26021if diff $cache_file confcache >/dev/null 2>&1; then :; else
26022 if test -w $cache_file; then
26023 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26024 cat confcache >$cache_file
26025 else
26026 echo "not updating unwritable cache $cache_file"
26027 fi
26028fi
26029rm -f confcache
26030
26031test "x$prefix" = xNONE && prefix=$ac_default_prefix
26032# Let make expand exec_prefix.
26033test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26034
26035# VPATH may cause trouble with some makes, so we remove $(srcdir),
26036# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26037# trailing colons and then remove the whole line if VPATH becomes empty
26038# (actually we leave an empty line to preserve line numbers).
26039if test "x$srcdir" = x.; then
26040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26041s/:*\$(srcdir):*/:/;
26042s/:*\${srcdir}:*/:/;
26043s/:*@srcdir@:*/:/;
26044s/^\([^=]*=[ ]*\):*/\1/;
26045s/:*$//;
26046s/^[^=]*=[ ]*$//;
26047}'
26048fi
26049
26050DEFS=-DHAVE_CONFIG_H
26051
26052ac_libobjs=
26053ac_ltlibobjs=
26054for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26055 # 1. Remove the extension, and $U if already installed.
26056 ac_i=`echo "$ac_i" |
26057 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26058 # 2. Add them.
26059 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26060 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26061done
26062LIBOBJS=$ac_libobjs
26063
26064LTLIBOBJS=$ac_ltlibobjs
26065
26066
26067if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26068 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26069Usually this means the macro was only invoked conditionally." >&5
26070echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26071Usually this means the macro was only invoked conditionally." >&2;}
26072 { (exit 1); exit 1; }; }
26073fi
26074if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
26075 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
26076Usually this means the macro was only invoked conditionally." >&5
26077echo "$as_me: error: conditional \"GMAKE\" was never defined.
26078Usually this means the macro was only invoked conditionally." >&2;}
26079 { (exit 1); exit 1; }; }
26080fi
26081if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26082 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26083Usually this means the macro was only invoked conditionally." >&5
26084echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26085Usually this means the macro was only invoked conditionally." >&2;}
26086 { (exit 1); exit 1; }; }
26087fi
26088
26089 gl_libobjs=
26090 gl_ltlibobjs=
26091 if test -n "$gl_LIBOBJS"; then
26092 # Remove the extension.
26093 sed_drop_objext='s/\.o$//;s/\.obj$//'
26094 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26095 gl_libobjs="$gl_libobjs $i.$ac_objext"
26096 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26097 done
26098 fi
26099 gl_LIBOBJS=$gl_libobjs
26100
26101 gl_LTLIBOBJS=$gl_ltlibobjs
26102
26103
26104
26105 gltests_libobjs=
26106 gltests_ltlibobjs=
26107 if test -n "$gltests_LIBOBJS"; then
26108 # Remove the extension.
26109 sed_drop_objext='s/\.o$//;s/\.obj$//'
26110 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26111 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26112 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26113 done
26114 fi
26115 gltests_LIBOBJS=$gltests_libobjs
26116
26117 gltests_LTLIBOBJS=$gltests_ltlibobjs
26118
26119
26120if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26121 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26122Usually this means the macro was only invoked conditionally." >&5
26123echo "$as_me: error: conditional \"AMDEP\" was never defined.
26124Usually this means the macro was only invoked conditionally." >&2;}
26125 { (exit 1); exit 1; }; }
26126fi
26127if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26129Usually this means the macro was only invoked conditionally." >&5
26130echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26131Usually this means the macro was only invoked conditionally." >&2;}
26132 { (exit 1); exit 1; }; }
26133fi
26134
26135: ${CONFIG_STATUS=./config.status}
26136ac_clean_files_save=$ac_clean_files
26137ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26138{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26139echo "$as_me: creating $CONFIG_STATUS" >&6;}
26140cat >$CONFIG_STATUS <<_ACEOF
26141#! $SHELL
26142# Generated by $as_me.
26143# Run this file to recreate the current configuration.
26144# Compiler output produced by configure, useful for debugging
26145# configure, is in config.log if it exists.
26146
26147debug=false
26148ac_cs_recheck=false
26149ac_cs_silent=false
26150SHELL=\${CONFIG_SHELL-$SHELL}
26151_ACEOF
26152
26153cat >>$CONFIG_STATUS <<\_ACEOF
26154## --------------------- ##
26155## M4sh Initialization. ##
26156## --------------------- ##
26157
26158# Be Bourne compatible
26159if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26160 emulate sh
26161 NULLCMD=:
26162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26163 # is contrary to our usage. Disable this feature.
26164 alias -g '${1+"$@"}'='"$@"'
26165elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26166 set -o posix
26167fi
26168DUALCASE=1; export DUALCASE # for MKS sh
26169
26170# Support unset when possible.
26171if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26172 as_unset=unset
26173else
26174 as_unset=false
26175fi
26176
26177
26178# Work around bugs in pre-3.0 UWIN ksh.
26179$as_unset ENV MAIL MAILPATH
26180PS1='$ '
26181PS2='> '
26182PS4='+ '
26183
26184# NLS nuisances.
26185for as_var in \
26186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26188 LC_TELEPHONE LC_TIME
26189do
26190 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26191 eval $as_var=C; export $as_var
26192 else
26193 $as_unset $as_var
26194 fi
26195done
26196
26197# Required to use basename.
26198if expr a : '\(a\)' >/dev/null 2>&1; then
26199 as_expr=expr
26200else
26201 as_expr=false
26202fi
26203
26204if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26205 as_basename=basename
26206else
26207 as_basename=false
26208fi
26209
26210
26211# Name of the executable.
26212as_me=`$as_basename "$0" ||
26213$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26214 X"$0" : 'X\(//\)$' \| \
26215 X"$0" : 'X\(/\)$' \| \
26216 . : '\(.\)' 2>/dev/null ||
26217echo X/"$0" |
26218 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26219 /^X\/\(\/\/\)$/{ s//\1/; q; }
26220 /^X\/\(\/\).*/{ s//\1/; q; }
26221 s/.*/./; q'`
26222
26223
26224# PATH needs CR, and LINENO needs CR and PATH.
26225# Avoid depending upon Character Ranges.
26226as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26227as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26228as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26229as_cr_digits='0123456789'
26230as_cr_alnum=$as_cr_Letters$as_cr_digits
26231
26232# The user is always right.
26233if test "${PATH_SEPARATOR+set}" != set; then
26234 echo "#! /bin/sh" >conf$$.sh
26235 echo "exit 0" >>conf$$.sh
26236 chmod +x conf$$.sh
26237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26238 PATH_SEPARATOR=';'
26239 else
26240 PATH_SEPARATOR=:
26241 fi
26242 rm -f conf$$.sh
26243fi
26244
26245
26246 as_lineno_1=$LINENO
26247 as_lineno_2=$LINENO
26248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26249 test "x$as_lineno_1" != "x$as_lineno_2" &&
26250 test "x$as_lineno_3" = "x$as_lineno_2" || {
26251 # Find who we are. Look in the path if we contain no path at all
26252 # relative or not.
26253 case $0 in
26254 *[\\/]* ) as_myself=$0 ;;
26255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26256for as_dir in $PATH
26257do
26258 IFS=$as_save_IFS
26259 test -z "$as_dir" && as_dir=.
26260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26261done
26262
26263 ;;
26264 esac
26265 # We did not find ourselves, most probably we were run as `sh COMMAND'
26266 # in which case we are not to be found in the path.
26267 if test "x$as_myself" = x; then
26268 as_myself=$0
26269 fi
26270 if test ! -f "$as_myself"; then
26271 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26272echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26273 { (exit 1); exit 1; }; }
26274 fi
26275 case $CONFIG_SHELL in
26276 '')
26277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26278for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26279do
26280 IFS=$as_save_IFS
26281 test -z "$as_dir" && as_dir=.
26282 for as_base in sh bash ksh sh5; do
26283 case $as_dir in
26284 /*)
26285 if ("$as_dir/$as_base" -c '
26286 as_lineno_1=$LINENO
26287 as_lineno_2=$LINENO
26288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26289 test "x$as_lineno_1" != "x$as_lineno_2" &&
26290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26291 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26292 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26293 CONFIG_SHELL=$as_dir/$as_base
26294 export CONFIG_SHELL
26295 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26296 fi;;
26297 esac
26298 done
26299done
26300;;
26301 esac
26302
26303 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26304 # uniformly replaced by the line number. The first 'sed' inserts a
26305 # line-number line before each line; the second 'sed' does the real
26306 # work. The second script uses 'N' to pair each line-number line
26307 # with the numbered line, and appends trailing '-' during
26308 # substitution so that $LINENO is not a special case at line end.
26309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26310 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26311 sed '=' <$as_myself |
26312 sed '
26313 N
26314 s,$,-,
26315 : loop
26316 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26317 t loop
26318 s,-$,,
26319 s,^['$as_cr_digits']*\n,,
26320 ' >$as_me.lineno &&
26321 chmod +x $as_me.lineno ||
26322 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26323echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26324 { (exit 1); exit 1; }; }
26325
26326 # Don't try to exec as it changes $[0], causing all sort of problems
26327 # (the dirname of $[0] is not the place where we might find the
26328 # original and so on. Autoconf is especially sensible to this).
26329 . ./$as_me.lineno
26330 # Exit status is that of the last command.
26331 exit
26332}
26333
26334
26335case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26336 *c*,-n*) ECHO_N= ECHO_C='
26337' ECHO_T=' ' ;;
26338 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26339 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26340esac
26341
26342if expr a : '\(a\)' >/dev/null 2>&1; then
26343 as_expr=expr
26344else
26345 as_expr=false
26346fi
26347
26348rm -f conf$$ conf$$.exe conf$$.file
26349echo >conf$$.file
26350if ln -s conf$$.file conf$$ 2>/dev/null; then
26351 # We could just check for DJGPP; but this test a) works b) is more generic
26352 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26353 if test -f conf$$.exe; then
26354 # Don't use ln at all; we don't have any links
26355 as_ln_s='cp -p'
26356 else
26357 as_ln_s='ln -s'
26358 fi
26359elif ln conf$$.file conf$$ 2>/dev/null; then
26360 as_ln_s=ln
26361else
26362 as_ln_s='cp -p'
26363fi
26364rm -f conf$$ conf$$.exe conf$$.file
26365
26366if mkdir -p . 2>/dev/null; then
26367 as_mkdir_p=:
26368else
26369 test -d ./-p && rmdir ./-p
26370 as_mkdir_p=false
26371fi
26372
26373as_executable_p="test -f"
26374
26375# Sed expression to map a string onto a valid CPP name.
26376as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26377
26378# Sed expression to map a string onto a valid variable name.
26379as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26380
26381
26382# IFS
26383# We need space, tab and new line, in precisely that order.
26384as_nl='
26385'
26386IFS=" $as_nl"
26387
26388# CDPATH.
26389$as_unset CDPATH
26390
26391exec 6>&1
26392
26393# Open the log real soon, to keep \$[0] and so on meaningful, and to
26394# report actual input values of CONFIG_FILES etc. instead of their
26395# values after options handling. Logging --version etc. is OK.
26396exec 5>>config.log
26397{
26398 echo
26399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26400## Running $as_me. ##
26401_ASBOX
26402} >&5
26403cat >&5 <<_CSEOF
26404
26405This file was extended by $as_me, which was
26406generated by GNU Autoconf 2.59. Invocation command line was
26407
26408 CONFIG_FILES = $CONFIG_FILES
26409 CONFIG_HEADERS = $CONFIG_HEADERS
26410 CONFIG_LINKS = $CONFIG_LINKS
26411 CONFIG_COMMANDS = $CONFIG_COMMANDS
26412 $ $0 $@
26413
26414_CSEOF
26415echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26416echo >&5
26417_ACEOF
26418
26419# Files that config.status was made for.
26420if test -n "$ac_config_files"; then
26421 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26422fi
26423
26424if test -n "$ac_config_headers"; then
26425 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26426fi
26427
26428if test -n "$ac_config_links"; then
26429 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26430fi
26431
26432if test -n "$ac_config_commands"; then
26433 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26434fi
26435
26436cat >>$CONFIG_STATUS <<\_ACEOF
26437
26438ac_cs_usage="\
26439\`$as_me' instantiates files from templates according to the
26440current configuration.
26441
26442Usage: $0 [OPTIONS] [FILE]...
26443
26444 -h, --help print this help, then exit
26445 -V, --version print version number, then exit
26446 -q, --quiet do not print progress messages
26447 -d, --debug don't remove temporary files
26448 --recheck update $as_me by reconfiguring in the same conditions
26449 --file=FILE[:TEMPLATE]
26450 instantiate the configuration file FILE
26451 --header=FILE[:TEMPLATE]
26452 instantiate the configuration header FILE
26453
26454Configuration files:
26455$config_files
26456
26457Configuration headers:
26458$config_headers
26459
26460Configuration links:
26461$config_links
26462
26463Configuration commands:
26464$config_commands
26465
26466Report bugs to <bug-autoconf@gnu.org>."
26467_ACEOF
26468
26469cat >>$CONFIG_STATUS <<_ACEOF
26470ac_cs_version="\\
26471config.status
26472configured by $0, generated by GNU Autoconf 2.59,
26473 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26474
26475Copyright (C) 2003 Free Software Foundation, Inc.
26476This config.status script is free software; the Free Software Foundation
26477gives unlimited permission to copy, distribute and modify it."
26478srcdir=$srcdir
26479INSTALL="$INSTALL"
26480_ACEOF
26481
26482cat >>$CONFIG_STATUS <<\_ACEOF
26483# If no file are specified by the user, then we need to provide default
26484# value. By we need to know if files were specified by the user.
26485ac_need_defaults=:
26486while test $# != 0
26487do
26488 case $1 in
26489 --*=*)
26490 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26491 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26492 ac_shift=:
26493 ;;
26494 -*)
26495 ac_option=$1
26496 ac_optarg=$2
26497 ac_shift=shift
26498 ;;
26499 *) # This is not an option, so the user has probably given explicit
26500 # arguments.
26501 ac_option=$1
26502 ac_need_defaults=false;;
26503 esac
26504
26505 case $ac_option in
26506 # Handling of the options.
26507_ACEOF
26508cat >>$CONFIG_STATUS <<\_ACEOF
26509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26510 ac_cs_recheck=: ;;
26511 --version | --vers* | -V )
26512 echo "$ac_cs_version"; exit 0 ;;
26513 --he | --h)
26514 # Conflict between --help and --header
26515 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26516Try \`$0 --help' for more information." >&5
26517echo "$as_me: error: ambiguous option: $1
26518Try \`$0 --help' for more information." >&2;}
26519 { (exit 1); exit 1; }; };;
26520 --help | --hel | -h )
26521 echo "$ac_cs_usage"; exit 0 ;;
26522 --debug | --d* | -d )
26523 debug=: ;;
26524 --file | --fil | --fi | --f )
26525 $ac_shift
26526 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26527 ac_need_defaults=false;;
26528 --header | --heade | --head | --hea )
26529 $ac_shift
26530 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26531 ac_need_defaults=false;;
26532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26534 ac_cs_silent=: ;;
26535
26536 # This is an error.
26537 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26538Try \`$0 --help' for more information." >&5
26539echo "$as_me: error: unrecognized option: $1
26540Try \`$0 --help' for more information." >&2;}
26541 { (exit 1); exit 1; }; } ;;
26542
26543 *) ac_config_targets="$ac_config_targets $1" ;;
26544
26545 esac
26546 shift
26547done
26548
26549ac_configure_extra_args=
26550
26551if $ac_cs_silent; then
26552 exec 6>/dev/null
26553 ac_configure_extra_args="$ac_configure_extra_args --silent"
26554fi
26555
26556_ACEOF
26557cat >>$CONFIG_STATUS <<_ACEOF
26558if \$ac_cs_recheck; then
26559 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26560 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26561fi
26562
26563_ACEOF
26564
26565cat >>$CONFIG_STATUS <<_ACEOF
26566#
26567# INIT-COMMANDS section.
26568#
26569
26570ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
26571AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26572
26573gdb_host_cpu=$gdb_host_cpu
26574nativefile=$nativefile
26575
26576
26577_ACEOF
26578
26579
26580
26581cat >>$CONFIG_STATUS <<\_ACEOF
26582for ac_config_target in $ac_config_targets
26583do
26584 case "$ac_config_target" in
26585 # Handling of arguments.
26586 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26587 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26588 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26589 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26590 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
26591 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26592 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26593 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26595echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26596 { (exit 1); exit 1; }; };;
26597 esac
26598done
26599
26600# If the user did not use the arguments to specify the items to instantiate,
26601# then the envvar interface is used. Set only those that are not.
26602# We use the long form for the default assignment because of an extremely
26603# bizarre bug on SunOS 4.1.3.
26604if $ac_need_defaults; then
26605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26607 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26609fi
26610
26611# Have a temporary directory for convenience. Make it in the build tree
26612# simply because there is no reason to put it here, and in addition,
26613# creating and moving files from /tmp can sometimes cause problems.
26614# Create a temporary directory, and hook for its removal unless debugging.
26615$debug ||
26616{
26617 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26618 trap '{ (exit 1); exit 1; }' 1 2 13 15
26619}
26620
26621# Create a (secure) tmp directory for tmp files.
26622
26623{
26624 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26625 test -n "$tmp" && test -d "$tmp"
26626} ||
26627{
26628 tmp=./confstat$$-$RANDOM
26629 (umask 077 && mkdir $tmp)
26630} ||
26631{
26632 echo "$me: cannot create a temporary directory in ." >&2
26633 { (exit 1); exit 1; }
26634}
26635
26636_ACEOF
26637
26638cat >>$CONFIG_STATUS <<_ACEOF
26639
26640#
26641# CONFIG_FILES section.
26642#
26643
26644# No need to generate the scripts if there are no CONFIG_FILES.
26645# This happens for instance when ./config.status config.h
26646if test -n "\$CONFIG_FILES"; then
26647 # Protect against being on the right side of a sed subst in config.status.
26648 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26649 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26650s,@SHELL@,$SHELL,;t t
26651s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26652s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26653s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26654s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26655s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26656s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26657s,@exec_prefix@,$exec_prefix,;t t
26658s,@prefix@,$prefix,;t t
26659s,@program_transform_name@,$program_transform_name,;t t
26660s,@bindir@,$bindir,;t t
26661s,@sbindir@,$sbindir,;t t
26662s,@libexecdir@,$libexecdir,;t t
26663s,@datadir@,$datadir,;t t
26664s,@sysconfdir@,$sysconfdir,;t t
26665s,@sharedstatedir@,$sharedstatedir,;t t
26666s,@localstatedir@,$localstatedir,;t t
26667s,@libdir@,$libdir,;t t
26668s,@includedir@,$includedir,;t t
26669s,@oldincludedir@,$oldincludedir,;t t
26670s,@infodir@,$infodir,;t t
26671s,@mandir@,$mandir,;t t
26672s,@build_alias@,$build_alias,;t t
26673s,@host_alias@,$host_alias,;t t
26674s,@target_alias@,$target_alias,;t t
26675s,@DEFS@,$DEFS,;t t
26676s,@ECHO_C@,$ECHO_C,;t t
26677s,@ECHO_N@,$ECHO_N,;t t
26678s,@ECHO_T@,$ECHO_T,;t t
26679s,@LIBS@,$LIBS,;t t
26680s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26681s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26682s,@MAINT@,$MAINT,;t t
26683s,@CC@,$CC,;t t
26684s,@CFLAGS@,$CFLAGS,;t t
26685s,@LDFLAGS@,$LDFLAGS,;t t
26686s,@CPPFLAGS@,$CPPFLAGS,;t t
26687s,@ac_ct_CC@,$ac_ct_CC,;t t
26688s,@EXEEXT@,$EXEEXT,;t t
26689s,@OBJEXT@,$OBJEXT,;t t
26690s,@CPP@,$CPP,;t t
26691s,@EGREP@,$EGREP,;t t
26692s,@RANLIB@,$RANLIB,;t t
26693s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26694s,@build@,$build,;t t
26695s,@build_cpu@,$build_cpu,;t t
26696s,@build_vendor@,$build_vendor,;t t
26697s,@build_os@,$build_os,;t t
26698s,@host@,$host,;t t
26699s,@host_cpu@,$host_cpu,;t t
26700s,@host_vendor@,$host_vendor,;t t
26701s,@host_os@,$host_os,;t t
26702s,@target@,$target,;t t
26703s,@target_cpu@,$target_cpu,;t t
26704s,@target_vendor@,$target_vendor,;t t
26705s,@target_os@,$target_os,;t t
26706s,@am__leading_dot@,$am__leading_dot,;t t
26707s,@DEPDIR@,$DEPDIR,;t t
26708s,@CCDEPMODE@,$CCDEPMODE,;t t
26709s,@MAKE@,$MAKE,;t t
26710s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
26711s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
26712s,@SET_MAKE@,$SET_MAKE,;t t
26713s,@USE_NLS@,$USE_NLS,;t t
26714s,@LIBINTL@,$LIBINTL,;t t
26715s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26716s,@INCINTL@,$INCINTL,;t t
26717s,@XGETTEXT@,$XGETTEXT,;t t
26718s,@GMSGFMT@,$GMSGFMT,;t t
26719s,@POSUB@,$POSUB,;t t
26720s,@CATALOGS@,$CATALOGS,;t t
26721s,@DATADIRNAME@,$DATADIRNAME,;t t
26722s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26723s,@GENCAT@,$GENCAT,;t t
26724s,@CATOBJEXT@,$CATOBJEXT,;t t
26725s,@localedir@,$localedir,;t t
26726s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26727s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26728s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26729s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26730s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26731s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26732s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26733s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26734s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26735s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26736s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26737s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26738s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26739s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26740s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26741s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26742s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26743s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26744s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26745s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26746s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26747s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26748s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26749s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26750s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26751s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26752s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26753s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26754s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26755s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26756s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26757s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26758s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26759s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26760s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26761s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26762s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26763s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26764s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26765s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26766s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26767s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26768s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26769s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26770s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26771s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26772s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26773s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26774s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26775s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26776s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26777s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26778s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26779s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26780s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26781s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26782s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26783s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26784s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26785s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26786s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26787s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26788s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26789s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26790s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26791s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26792s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26793s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26794s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26795s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26796s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26797s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26798s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26799s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26800s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26801s,@STDINT_H@,$STDINT_H,;t t
26802s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26803s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26804s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26805s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26806s,@WCHAR_H@,$WCHAR_H,;t t
26807s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26808s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26809s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26810s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26811s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26812s,@PACKAGE@,$PACKAGE,;t t
26813s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26814s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26815s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26816s,@CYGPATH_W@,$CYGPATH_W,;t t
26817s,@PYTHON2_4@,$PYTHON2_4,;t t
26818s,@ACLOCAL@,$ACLOCAL,;t t
26819s,@AUTOCONF@,$AUTOCONF,;t t
26820s,@AUTOMAKE@,$AUTOMAKE,;t t
26821s,@AUTOHEADER@,$AUTOHEADER,;t t
26822s,@MAKEINFO@,$MAKEINFO,;t t
26823s,@install_sh@,$install_sh,;t t
26824s,@STRIP@,$STRIP,;t t
26825s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26826s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26827s,@mkdir_p@,$mkdir_p,;t t
26828s,@AWK@,$AWK,;t t
26829s,@AMTAR@,$AMTAR,;t t
26830s,@am__tar@,$am__tar,;t t
26831s,@am__untar@,$am__untar,;t t
26832s,@am__include@,$am__include,;t t
26833s,@am__quote@,$am__quote,;t t
26834s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26835s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26836s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26837s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26838s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26839s,@subdirs@,$subdirs,;t t
26840s,@TARGET_OBS@,$TARGET_OBS,;t t
26841s,@PKGVERSION@,$PKGVERSION,;t t
26842s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26843s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26844s,@LN_S@,$LN_S,;t t
26845s,@YACC@,$YACC,;t t
26846s,@AR@,$AR,;t t
26847s,@ac_ct_AR@,$ac_ct_AR,;t t
26848s,@DLLTOOL@,$DLLTOOL,;t t
26849s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26850s,@WINDRES@,$WINDRES,;t t
26851s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26852s,@MIG@,$MIG,;t t
26853s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26854s,@READLINE@,$READLINE,;t t
26855s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26856s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26857s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26858s,@LIBEXPAT@,$LIBEXPAT,;t t
26859s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26860s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
26861s,@ALLOCA@,$ALLOCA,;t t
26862s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26863s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26864s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26865s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26866s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26867s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26868s,@WIN32LIBS@,$WIN32LIBS,;t t
26869s,@LIBGUI@,$LIBGUI,;t t
26870s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26871s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26872s,@TCL_VERSION@,$TCL_VERSION,;t t
26873s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26874s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26875s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26876s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26877s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
26878s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26879s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26880s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26881s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26882s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26883s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26884s,@TCL_DEPS@,$TCL_DEPS,;t t
26885s,@TK_VERSION@,$TK_VERSION,;t t
26886s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26887s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26888s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26889s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
26890s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26891s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26892s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26893s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26894s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26895s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26896s,@TK_DEPS@,$TK_DEPS,;t t
26897s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26898s,@X_CFLAGS@,$X_CFLAGS,;t t
26899s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26900s,@X_LIBS@,$X_LIBS,;t t
26901s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26902s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26903s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26904s,@SIM@,$SIM,;t t
26905s,@SIM_OBS@,$SIM_OBS,;t t
26906s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26907s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26908s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26909s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26910s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26911s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26912s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26913s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26914s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26915s,@target_subdir@,$target_subdir,;t t
26916s,@frags@,$frags,;t t
26917s,@nm_h@,$nm_h,;t t
26918s,@LIBICONV@,$LIBICONV,;t t
26919s,@LIBOBJS@,$LIBOBJS,;t t
26920s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26921s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26922s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26923s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26924s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26925/@host_makefile_frag@/r $host_makefile_frag
26926s,@host_makefile_frag@,,;t t
26927CEOF
26928
26929_ACEOF
26930
26931 cat >>$CONFIG_STATUS <<\_ACEOF
26932 # Split the substitutions into bite-sized pieces for seds with
26933 # small command number limits, like on Digital OSF/1 and HP-UX.
26934 ac_max_sed_lines=48
26935 ac_sed_frag=1 # Number of current file.
26936 ac_beg=1 # First line for current file.
26937 ac_end=$ac_max_sed_lines # Line after last line for current file.
26938 ac_more_lines=:
26939 ac_sed_cmds=
26940 while $ac_more_lines; do
26941 if test $ac_beg -gt 1; then
26942 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26943 else
26944 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26945 fi
26946 if test ! -s $tmp/subs.frag; then
26947 ac_more_lines=false
26948 else
26949 # The purpose of the label and of the branching condition is to
26950 # speed up the sed processing (if there are no `@' at all, there
26951 # is no need to browse any of the substitutions).
26952 # These are the two extra sed commands mentioned above.
26953 (echo ':t
26954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26955 if test -z "$ac_sed_cmds"; then
26956 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26957 else
26958 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26959 fi
26960 ac_sed_frag=`expr $ac_sed_frag + 1`
26961 ac_beg=$ac_end
26962 ac_end=`expr $ac_end + $ac_max_sed_lines`
26963 fi
26964 done
26965 if test -z "$ac_sed_cmds"; then
26966 ac_sed_cmds=cat
26967 fi
26968fi # test -n "$CONFIG_FILES"
26969
26970_ACEOF
26971cat >>$CONFIG_STATUS <<\_ACEOF
26972for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26973 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26974 case $ac_file in
26975 - | *:- | *:-:* ) # input from stdin
26976 cat >$tmp/stdin
26977 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26978 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26979 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26980 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26981 * ) ac_file_in=$ac_file.in ;;
26982 esac
26983
26984 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26985 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26986$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26987 X"$ac_file" : 'X\(//\)[^/]' \| \
26988 X"$ac_file" : 'X\(//\)$' \| \
26989 X"$ac_file" : 'X\(/\)' \| \
26990 . : '\(.\)' 2>/dev/null ||
26991echo X"$ac_file" |
26992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26994 /^X\(\/\/\)$/{ s//\1/; q; }
26995 /^X\(\/\).*/{ s//\1/; q; }
26996 s/.*/./; q'`
26997 { if $as_mkdir_p; then
26998 mkdir -p "$ac_dir"
26999 else
27000 as_dir="$ac_dir"
27001 as_dirs=
27002 while test ! -d "$as_dir"; do
27003 as_dirs="$as_dir $as_dirs"
27004 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27005$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27006 X"$as_dir" : 'X\(//\)[^/]' \| \
27007 X"$as_dir" : 'X\(//\)$' \| \
27008 X"$as_dir" : 'X\(/\)' \| \
27009 . : '\(.\)' 2>/dev/null ||
27010echo X"$as_dir" |
27011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27013 /^X\(\/\/\)$/{ s//\1/; q; }
27014 /^X\(\/\).*/{ s//\1/; q; }
27015 s/.*/./; q'`
27016 done
27017 test ! -n "$as_dirs" || mkdir $as_dirs
27018 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27019echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27020 { (exit 1); exit 1; }; }; }
27021
27022 ac_builddir=.
27023
27024if test "$ac_dir" != .; then
27025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27026 # A "../" for each directory in $ac_dir_suffix.
27027 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27028else
27029 ac_dir_suffix= ac_top_builddir=
27030fi
27031
27032case $srcdir in
27033 .) # No --srcdir option. We are building in place.
27034 ac_srcdir=.
27035 if test -z "$ac_top_builddir"; then
27036 ac_top_srcdir=.
27037 else
27038 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27039 fi ;;
27040 [\\/]* | ?:[\\/]* ) # Absolute path.
27041 ac_srcdir=$srcdir$ac_dir_suffix;
27042 ac_top_srcdir=$srcdir ;;
27043 *) # Relative path.
27044 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27045 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27046esac
27047
27048# Do not use `cd foo && pwd` to compute absolute paths, because
27049# the directories may not exist.
27050case `pwd` in
27051.) ac_abs_builddir="$ac_dir";;
27052*)
27053 case "$ac_dir" in
27054 .) ac_abs_builddir=`pwd`;;
27055 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27056 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27057 esac;;
27058esac
27059case $ac_abs_builddir in
27060.) ac_abs_top_builddir=${ac_top_builddir}.;;
27061*)
27062 case ${ac_top_builddir}. in
27063 .) ac_abs_top_builddir=$ac_abs_builddir;;
27064 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27065 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27066 esac;;
27067esac
27068case $ac_abs_builddir in
27069.) ac_abs_srcdir=$ac_srcdir;;
27070*)
27071 case $ac_srcdir in
27072 .) ac_abs_srcdir=$ac_abs_builddir;;
27073 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27074 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27075 esac;;
27076esac
27077case $ac_abs_builddir in
27078.) ac_abs_top_srcdir=$ac_top_srcdir;;
27079*)
27080 case $ac_top_srcdir in
27081 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27082 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27083 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27084 esac;;
27085esac
27086
27087
27088 case $INSTALL in
27089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27090 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27091 esac
27092
27093 if test x"$ac_file" != x-; then
27094 { echo "$as_me:$LINENO: creating $ac_file" >&5
27095echo "$as_me: creating $ac_file" >&6;}
27096 rm -f "$ac_file"
27097 fi
27098 # Let's still pretend it is `configure' which instantiates (i.e., don't
27099 # use $as_me), people would be surprised to read:
27100 # /* config.h. Generated by config.status. */
27101 if test x"$ac_file" = x-; then
27102 configure_input=
27103 else
27104 configure_input="$ac_file. "
27105 fi
27106 configure_input=$configure_input"Generated from `echo $ac_file_in |
27107 sed 's,.*/,,'` by configure."
27108
27109 # First look for the input files in the build tree, otherwise in the
27110 # src tree.
27111 ac_file_inputs=`IFS=:
27112 for f in $ac_file_in; do
27113 case $f in
27114 -) echo $tmp/stdin ;;
27115 [\\/$]*)
27116 # Absolute (can't be DOS-style, as IFS=:)
27117 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27118echo "$as_me: error: cannot find input file: $f" >&2;}
27119 { (exit 1); exit 1; }; }
27120 echo "$f";;
27121 *) # Relative
27122 if test -f "$f"; then
27123 # Build tree
27124 echo "$f"
27125 elif test -f "$srcdir/$f"; then
27126 # Source tree
27127 echo "$srcdir/$f"
27128 else
27129 # /dev/null tree
27130 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27131echo "$as_me: error: cannot find input file: $f" >&2;}
27132 { (exit 1); exit 1; }; }
27133 fi;;
27134 esac
27135 done` || { (exit 1); exit 1; }
27136_ACEOF
27137cat >>$CONFIG_STATUS <<_ACEOF
27138 sed "$ac_vpsub
27139$extrasub
27140_ACEOF
27141cat >>$CONFIG_STATUS <<\_ACEOF
27142:t
27143/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27144s,@configure_input@,$configure_input,;t t
27145s,@srcdir@,$ac_srcdir,;t t
27146s,@abs_srcdir@,$ac_abs_srcdir,;t t
27147s,@top_srcdir@,$ac_top_srcdir,;t t
27148s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27149s,@builddir@,$ac_builddir,;t t
27150s,@abs_builddir@,$ac_abs_builddir,;t t
27151s,@top_builddir@,$ac_top_builddir,;t t
27152s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27153s,@INSTALL@,$ac_INSTALL,;t t
27154" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27155 rm -f $tmp/stdin
27156 if test x"$ac_file" != x-; then
27157 mv $tmp/out $ac_file
27158 else
27159 cat $tmp/out
27160 rm -f $tmp/out
27161 fi
27162
27163done
27164_ACEOF
27165cat >>$CONFIG_STATUS <<\_ACEOF
27166
27167#
27168# CONFIG_HEADER section.
27169#
27170
27171# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27172# NAME is the cpp macro being defined and VALUE is the value it is being given.
27173#
27174# ac_d sets the value in "#define NAME VALUE" lines.
27175ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27176ac_dB='[ ].*$,\1#\2'
27177ac_dC=' '
27178ac_dD=',;t'
27179# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27180ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27181ac_uB='$,\1#\2define\3'
27182ac_uC=' '
27183ac_uD=',;t'
27184
27185for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27186 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27187 case $ac_file in
27188 - | *:- | *:-:* ) # input from stdin
27189 cat >$tmp/stdin
27190 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27192 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27194 * ) ac_file_in=$ac_file.in ;;
27195 esac
27196
27197 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27198echo "$as_me: creating $ac_file" >&6;}
27199
27200 # First look for the input files in the build tree, otherwise in the
27201 # src tree.
27202 ac_file_inputs=`IFS=:
27203 for f in $ac_file_in; do
27204 case $f in
27205 -) echo $tmp/stdin ;;
27206 [\\/$]*)
27207 # Absolute (can't be DOS-style, as IFS=:)
27208 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27209echo "$as_me: error: cannot find input file: $f" >&2;}
27210 { (exit 1); exit 1; }; }
27211 # Do quote $f, to prevent DOS paths from being IFS'd.
27212 echo "$f";;
27213 *) # Relative
27214 if test -f "$f"; then
27215 # Build tree
27216 echo "$f"
27217 elif test -f "$srcdir/$f"; then
27218 # Source tree
27219 echo "$srcdir/$f"
27220 else
27221 # /dev/null tree
27222 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27223echo "$as_me: error: cannot find input file: $f" >&2;}
27224 { (exit 1); exit 1; }; }
27225 fi;;
27226 esac
27227 done` || { (exit 1); exit 1; }
27228 # Remove the trailing spaces.
27229 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27230
27231_ACEOF
27232
27233# Transform confdefs.h into two sed scripts, `conftest.defines' and
27234# `conftest.undefs', that substitutes the proper values into
27235# config.h.in to produce config.h. The first handles `#define'
27236# templates, and the second `#undef' templates.
27237# And first: Protect against being on the right side of a sed subst in
27238# config.status. Protect against being in an unquoted here document
27239# in config.status.
27240rm -f conftest.defines conftest.undefs
27241# Using a here document instead of a string reduces the quoting nightmare.
27242# Putting comments in sed scripts is not portable.
27243#
27244# `end' is used to avoid that the second main sed command (meant for
27245# 0-ary CPP macros) applies to n-ary macro definitions.
27246# See the Autoconf documentation for `clear'.
27247cat >confdef2sed.sed <<\_ACEOF
27248s/[\\&,]/\\&/g
27249s,[\\$`],\\&,g
27250t clear
27251: clear
27252s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27253t end
27254s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27255: end
27256_ACEOF
27257# If some macros were called several times there might be several times
27258# the same #defines, which is useless. Nevertheless, we may not want to
27259# sort them, since we want the *last* AC-DEFINE to be honored.
27260uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27261sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27262rm -f confdef2sed.sed
27263
27264# This sed command replaces #undef with comments. This is necessary, for
27265# example, in the case of _POSIX_SOURCE, which is predefined and required
27266# on some systems where configure will not decide to define it.
27267cat >>conftest.undefs <<\_ACEOF
27268s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27269_ACEOF
27270
27271# Break up conftest.defines because some shells have a limit on the size
27272# of here documents, and old seds have small limits too (100 cmds).
27273echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27274echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27275echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27276echo ' :' >>$CONFIG_STATUS
27277rm -f conftest.tail
27278while grep . conftest.defines >/dev/null
27279do
27280 # Write a limited-size here document to $tmp/defines.sed.
27281 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27282 # Speed up: don't consider the non `#define' lines.
27283 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27284 # Work around the forget-to-reset-the-flag bug.
27285 echo 't clr' >>$CONFIG_STATUS
27286 echo ': clr' >>$CONFIG_STATUS
27287 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27288 echo 'CEOF
27289 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27290 rm -f $tmp/in
27291 mv $tmp/out $tmp/in
27292' >>$CONFIG_STATUS
27293 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27294 rm -f conftest.defines
27295 mv conftest.tail conftest.defines
27296done
27297rm -f conftest.defines
27298echo ' fi # grep' >>$CONFIG_STATUS
27299echo >>$CONFIG_STATUS
27300
27301# Break up conftest.undefs because some shells have a limit on the size
27302# of here documents, and old seds have small limits too (100 cmds).
27303echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27304rm -f conftest.tail
27305while grep . conftest.undefs >/dev/null
27306do
27307 # Write a limited-size here document to $tmp/undefs.sed.
27308 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27309 # Speed up: don't consider the non `#undef'
27310 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27311 # Work around the forget-to-reset-the-flag bug.
27312 echo 't clr' >>$CONFIG_STATUS
27313 echo ': clr' >>$CONFIG_STATUS
27314 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27315 echo 'CEOF
27316 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27317 rm -f $tmp/in
27318 mv $tmp/out $tmp/in
27319' >>$CONFIG_STATUS
27320 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27321 rm -f conftest.undefs
27322 mv conftest.tail conftest.undefs
27323done
27324rm -f conftest.undefs
27325
27326cat >>$CONFIG_STATUS <<\_ACEOF
27327 # Let's still pretend it is `configure' which instantiates (i.e., don't
27328 # use $as_me), people would be surprised to read:
27329 # /* config.h. Generated by config.status. */
27330 if test x"$ac_file" = x-; then
27331 echo "/* Generated by configure. */" >$tmp/config.h
27332 else
27333 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27334 fi
27335 cat $tmp/in >>$tmp/config.h
27336 rm -f $tmp/in
27337 if test x"$ac_file" != x-; then
27338 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27339 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27340echo "$as_me: $ac_file is unchanged" >&6;}
27341 else
27342 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27343$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27344 X"$ac_file" : 'X\(//\)[^/]' \| \
27345 X"$ac_file" : 'X\(//\)$' \| \
27346 X"$ac_file" : 'X\(/\)' \| \
27347 . : '\(.\)' 2>/dev/null ||
27348echo X"$ac_file" |
27349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27351 /^X\(\/\/\)$/{ s//\1/; q; }
27352 /^X\(\/\).*/{ s//\1/; q; }
27353 s/.*/./; q'`
27354 { if $as_mkdir_p; then
27355 mkdir -p "$ac_dir"
27356 else
27357 as_dir="$ac_dir"
27358 as_dirs=
27359 while test ! -d "$as_dir"; do
27360 as_dirs="$as_dir $as_dirs"
27361 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27362$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27363 X"$as_dir" : 'X\(//\)[^/]' \| \
27364 X"$as_dir" : 'X\(//\)$' \| \
27365 X"$as_dir" : 'X\(/\)' \| \
27366 . : '\(.\)' 2>/dev/null ||
27367echo X"$as_dir" |
27368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27370 /^X\(\/\/\)$/{ s//\1/; q; }
27371 /^X\(\/\).*/{ s//\1/; q; }
27372 s/.*/./; q'`
27373 done
27374 test ! -n "$as_dirs" || mkdir $as_dirs
27375 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27376echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27377 { (exit 1); exit 1; }; }; }
27378
27379 rm -f $ac_file
27380 mv $tmp/config.h $ac_file
27381 fi
27382 else
27383 cat $tmp/config.h
27384 rm -f $tmp/config.h
27385 fi
27386# Compute $ac_file's index in $config_headers.
27387_am_stamp_count=1
27388for _am_header in $config_headers :; do
27389 case $_am_header in
27390 $ac_file | $ac_file:* )
27391 break ;;
27392 * )
27393 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27394 esac
27395done
27396echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27397$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27398 X$ac_file : 'X\(//\)[^/]' \| \
27399 X$ac_file : 'X\(//\)$' \| \
27400 X$ac_file : 'X\(/\)' \| \
27401 . : '\(.\)' 2>/dev/null ||
27402echo X$ac_file |
27403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27405 /^X\(\/\/\)$/{ s//\1/; q; }
27406 /^X\(\/\).*/{ s//\1/; q; }
27407 s/.*/./; q'`/stamp-h$_am_stamp_count
27408done
27409_ACEOF
27410cat >>$CONFIG_STATUS <<\_ACEOF
27411
27412#
27413# CONFIG_LINKS section.
27414#
27415
27416for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27417 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27418 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27419
27420 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27421echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27422
27423 if test ! -r $srcdir/$ac_source; then
27424 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27425echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27426 { (exit 1); exit 1; }; }
27427 fi
27428 rm -f $ac_dest
27429
27430 # Make relative symlinks.
27431 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27432$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27433 X"$ac_dest" : 'X\(//\)[^/]' \| \
27434 X"$ac_dest" : 'X\(//\)$' \| \
27435 X"$ac_dest" : 'X\(/\)' \| \
27436 . : '\(.\)' 2>/dev/null ||
27437echo X"$ac_dest" |
27438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27440 /^X\(\/\/\)$/{ s//\1/; q; }
27441 /^X\(\/\).*/{ s//\1/; q; }
27442 s/.*/./; q'`
27443 { if $as_mkdir_p; then
27444 mkdir -p "$ac_dest_dir"
27445 else
27446 as_dir="$ac_dest_dir"
27447 as_dirs=
27448 while test ! -d "$as_dir"; do
27449 as_dirs="$as_dir $as_dirs"
27450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27451$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27452 X"$as_dir" : 'X\(//\)[^/]' \| \
27453 X"$as_dir" : 'X\(//\)$' \| \
27454 X"$as_dir" : 'X\(/\)' \| \
27455 . : '\(.\)' 2>/dev/null ||
27456echo X"$as_dir" |
27457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27459 /^X\(\/\/\)$/{ s//\1/; q; }
27460 /^X\(\/\).*/{ s//\1/; q; }
27461 s/.*/./; q'`
27462 done
27463 test ! -n "$as_dirs" || mkdir $as_dirs
27464 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27465echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27466 { (exit 1); exit 1; }; }; }
27467
27468 ac_builddir=.
27469
27470if test "$ac_dest_dir" != .; then
27471 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27472 # A "../" for each directory in $ac_dir_suffix.
27473 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27474else
27475 ac_dir_suffix= ac_top_builddir=
27476fi
27477
27478case $srcdir in
27479 .) # No --srcdir option. We are building in place.
27480 ac_srcdir=.
27481 if test -z "$ac_top_builddir"; then
27482 ac_top_srcdir=.
27483 else
27484 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27485 fi ;;
27486 [\\/]* | ?:[\\/]* ) # Absolute path.
27487 ac_srcdir=$srcdir$ac_dir_suffix;
27488 ac_top_srcdir=$srcdir ;;
27489 *) # Relative path.
27490 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27491 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27492esac
27493
27494# Do not use `cd foo && pwd` to compute absolute paths, because
27495# the directories may not exist.
27496case `pwd` in
27497.) ac_abs_builddir="$ac_dest_dir";;
27498*)
27499 case "$ac_dest_dir" in
27500 .) ac_abs_builddir=`pwd`;;
27501 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27502 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27503 esac;;
27504esac
27505case $ac_abs_builddir in
27506.) ac_abs_top_builddir=${ac_top_builddir}.;;
27507*)
27508 case ${ac_top_builddir}. in
27509 .) ac_abs_top_builddir=$ac_abs_builddir;;
27510 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27511 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27512 esac;;
27513esac
27514case $ac_abs_builddir in
27515.) ac_abs_srcdir=$ac_srcdir;;
27516*)
27517 case $ac_srcdir in
27518 .) ac_abs_srcdir=$ac_abs_builddir;;
27519 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27520 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27521 esac;;
27522esac
27523case $ac_abs_builddir in
27524.) ac_abs_top_srcdir=$ac_top_srcdir;;
27525*)
27526 case $ac_top_srcdir in
27527 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27528 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27529 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27530 esac;;
27531esac
27532
27533
27534 case $srcdir in
27535 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27536 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27537 esac
27538
27539 # Try a symlink, then a hard link, then a copy.
27540 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27541 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27542 cp -p $srcdir/$ac_source $ac_dest ||
27543 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27544echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27545 { (exit 1); exit 1; }; }
27546done
27547_ACEOF
27548cat >>$CONFIG_STATUS <<\_ACEOF
27549
27550#
27551# CONFIG_COMMANDS section.
27552#
27553for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27554 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27555 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27556 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27557$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27558 X"$ac_dest" : 'X\(//\)[^/]' \| \
27559 X"$ac_dest" : 'X\(//\)$' \| \
27560 X"$ac_dest" : 'X\(/\)' \| \
27561 . : '\(.\)' 2>/dev/null ||
27562echo X"$ac_dest" |
27563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27565 /^X\(\/\/\)$/{ s//\1/; q; }
27566 /^X\(\/\).*/{ s//\1/; q; }
27567 s/.*/./; q'`
27568 { if $as_mkdir_p; then
27569 mkdir -p "$ac_dir"
27570 else
27571 as_dir="$ac_dir"
27572 as_dirs=
27573 while test ! -d "$as_dir"; do
27574 as_dirs="$as_dir $as_dirs"
27575 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27576$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27577 X"$as_dir" : 'X\(//\)[^/]' \| \
27578 X"$as_dir" : 'X\(//\)$' \| \
27579 X"$as_dir" : 'X\(/\)' \| \
27580 . : '\(.\)' 2>/dev/null ||
27581echo X"$as_dir" |
27582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27584 /^X\(\/\/\)$/{ s//\1/; q; }
27585 /^X\(\/\).*/{ s//\1/; q; }
27586 s/.*/./; q'`
27587 done
27588 test ! -n "$as_dirs" || mkdir $as_dirs
27589 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27590echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27591 { (exit 1); exit 1; }; }; }
27592
27593 ac_builddir=.
27594
27595if test "$ac_dir" != .; then
27596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27597 # A "../" for each directory in $ac_dir_suffix.
27598 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27599else
27600 ac_dir_suffix= ac_top_builddir=
27601fi
27602
27603case $srcdir in
27604 .) # No --srcdir option. We are building in place.
27605 ac_srcdir=.
27606 if test -z "$ac_top_builddir"; then
27607 ac_top_srcdir=.
27608 else
27609 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27610 fi ;;
27611 [\\/]* | ?:[\\/]* ) # Absolute path.
27612 ac_srcdir=$srcdir$ac_dir_suffix;
27613 ac_top_srcdir=$srcdir ;;
27614 *) # Relative path.
27615 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27616 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27617esac
27618
27619# Do not use `cd foo && pwd` to compute absolute paths, because
27620# the directories may not exist.
27621case `pwd` in
27622.) ac_abs_builddir="$ac_dir";;
27623*)
27624 case "$ac_dir" in
27625 .) ac_abs_builddir=`pwd`;;
27626 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27627 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27628 esac;;
27629esac
27630case $ac_abs_builddir in
27631.) ac_abs_top_builddir=${ac_top_builddir}.;;
27632*)
27633 case ${ac_top_builddir}. in
27634 .) ac_abs_top_builddir=$ac_abs_builddir;;
27635 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27636 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27637 esac;;
27638esac
27639case $ac_abs_builddir in
27640.) ac_abs_srcdir=$ac_srcdir;;
27641*)
27642 case $ac_srcdir in
27643 .) ac_abs_srcdir=$ac_abs_builddir;;
27644 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27645 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27646 esac;;
27647esac
27648case $ac_abs_builddir in
27649.) ac_abs_top_srcdir=$ac_top_srcdir;;
27650*)
27651 case $ac_top_srcdir in
27652 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27653 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27654 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27655 esac;;
27656esac
27657
27658
27659 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27660echo "$as_me: executing $ac_dest commands" >&6;}
27661 case $ac_dest in
27662 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
27663 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27664 # Strip MF so we end up with the name of the file.
27665 mf=`echo "$mf" | sed -e 's/:.*$//'`
27666 # Check whether this is an Automake generated Makefile or not.
27667 # We used to match only the files named `Makefile.in', but
27668 # some people rename them; so instead we look at the file content.
27669 # Grep'ing the first line is not enough: some people post-process
27670 # each Makefile.in and add a new line on top of each file to say so.
27671 # So let's grep whole file.
27672 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27673 dirpart=`(dirname "$mf") 2>/dev/null ||
27674$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27675 X"$mf" : 'X\(//\)[^/]' \| \
27676 X"$mf" : 'X\(//\)$' \| \
27677 X"$mf" : 'X\(/\)' \| \
27678 . : '\(.\)' 2>/dev/null ||
27679echo X"$mf" |
27680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27682 /^X\(\/\/\)$/{ s//\1/; q; }
27683 /^X\(\/\).*/{ s//\1/; q; }
27684 s/.*/./; q'`
27685 else
27686 continue
27687 fi
27688 # Extract the definition of DEPDIR, am__include, and am__quote
27689 # from the Makefile without running `make'.
27690 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27691 test -z "$DEPDIR" && continue
27692 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27693 test -z "am__include" && continue
27694 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27695 # When using ansi2knr, U may be empty or an underscore; expand it
27696 U=`sed -n 's/^U = //p' < "$mf"`
27697 # Find all dependency output files, they are included files with
27698 # $(DEPDIR) in their names. We invoke sed twice because it is the
27699 # simplest approach to changing $(DEPDIR) to its actual value in the
27700 # expansion.
27701 for file in `sed -n "
27702 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27703 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27704 # Make sure the directory exists.
27705 test -f "$dirpart/$file" && continue
27706 fdir=`(dirname "$file") 2>/dev/null ||
27707$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27708 X"$file" : 'X\(//\)[^/]' \| \
27709 X"$file" : 'X\(//\)$' \| \
27710 X"$file" : 'X\(/\)' \| \
27711 . : '\(.\)' 2>/dev/null ||
27712echo X"$file" |
27713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27715 /^X\(\/\/\)$/{ s//\1/; q; }
27716 /^X\(\/\).*/{ s//\1/; q; }
27717 s/.*/./; q'`
27718 { if $as_mkdir_p; then
27719 mkdir -p $dirpart/$fdir
27720 else
27721 as_dir=$dirpart/$fdir
27722 as_dirs=
27723 while test ! -d "$as_dir"; do
27724 as_dirs="$as_dir $as_dirs"
27725 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27726$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27727 X"$as_dir" : 'X\(//\)[^/]' \| \
27728 X"$as_dir" : 'X\(//\)$' \| \
27729 X"$as_dir" : 'X\(/\)' \| \
27730 . : '\(.\)' 2>/dev/null ||
27731echo X"$as_dir" |
27732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27734 /^X\(\/\/\)$/{ s//\1/; q; }
27735 /^X\(\/\).*/{ s//\1/; q; }
27736 s/.*/./; q'`
27737 done
27738 test ! -n "$as_dirs" || mkdir $as_dirs
27739 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27740echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27741 { (exit 1); exit 1; }; }; }
27742
27743 # echo "creating $dirpart/$file"
27744 echo '# dummy' > "$dirpart/$file"
27745 done
27746done
27747 ;;
27748 default )
27749
27750sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27751mv -f Makefile.tmp Makefile
27752
27753
27754case x$CONFIG_HEADERS in
27755xconfig.h:config.in)
27756echo > stamp-h ;;
27757esac
27758 ;;
27759 esac
27760done
27761_ACEOF
27762
27763cat >>$CONFIG_STATUS <<\_ACEOF
27764
27765{ (exit 0); exit 0; }
27766_ACEOF
27767chmod +x $CONFIG_STATUS
27768ac_clean_files=$ac_clean_files_save
27769
27770
27771# configure is writing to config.log, and then calls config.status.
27772# config.status does its own redirection, appending to config.log.
27773# Unfortunately, on DOS this fails, as config.log is still kept open
27774# by configure, so config.status won't be able to write to it; its
27775# output is simply discarded. So we exec the FD to /dev/null,
27776# effectively closing config.log, so it can be properly (re)opened and
27777# appended to by config.status. When coming back to configure, we
27778# need to make the FD available again.
27779if test "$no_create" != yes; then
27780 ac_cs_success=:
27781 ac_config_status_args=
27782 test "$silent" = yes &&
27783 ac_config_status_args="$ac_config_status_args --quiet"
27784 exec 5>/dev/null
27785 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27786 exec 5>>config.log
27787 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27788 # would make configure fail if this is the last instruction.
27789 $ac_cs_success || { (exit 1); exit 1; }
27790fi
27791
27792#
27793# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27794#
27795if test "$no_recursion" != yes; then
27796
27797 # Remove --cache-file and --srcdir arguments so they do not pile up.
27798 ac_sub_configure_args=
27799 ac_prev=
27800 eval "set x $ac_configure_args"
27801 shift
27802 for ac_arg
27803 do
27804 if test -n "$ac_prev"; then
27805 ac_prev=
27806 continue
27807 fi
27808 case $ac_arg in
27809 -cache-file | --cache-file | --cache-fil | --cache-fi \
27810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27811 ac_prev=cache_file ;;
27812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27814 | --c=*)
27815 ;;
27816 --config-cache | -C)
27817 ;;
27818 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27819 ac_prev=srcdir ;;
27820 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27821 ;;
27822 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27823 ac_prev=prefix ;;
27824 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27825 ;;
27826 *)
27827 case $ac_arg in
27828 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27829 esac
27830 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27831 esac
27832 done
27833
27834 # Always prepend --prefix to ensure using the same prefix
27835 # in subdir configurations.
27836 ac_arg="--prefix=$prefix"
27837 case $ac_arg in
27838 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27839 esac
27840 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27841
27842 ac_popdir=`pwd`
27843 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27844
27845 # Do not complain, so a configure script can configure whichever
27846 # parts of a large source tree are present.
27847 test -d "$srcdir/$ac_dir" || continue
27848
27849 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27850echo "$as_me: configuring in $ac_dir" >&6;}
27851 { if $as_mkdir_p; then
27852 mkdir -p "$ac_dir"
27853 else
27854 as_dir="$ac_dir"
27855 as_dirs=
27856 while test ! -d "$as_dir"; do
27857 as_dirs="$as_dir $as_dirs"
27858 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27859$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27860 X"$as_dir" : 'X\(//\)[^/]' \| \
27861 X"$as_dir" : 'X\(//\)$' \| \
27862 X"$as_dir" : 'X\(/\)' \| \
27863 . : '\(.\)' 2>/dev/null ||
27864echo X"$as_dir" |
27865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27867 /^X\(\/\/\)$/{ s//\1/; q; }
27868 /^X\(\/\).*/{ s//\1/; q; }
27869 s/.*/./; q'`
27870 done
27871 test ! -n "$as_dirs" || mkdir $as_dirs
27872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27873echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27874 { (exit 1); exit 1; }; }; }
27875
27876 ac_builddir=.
27877
27878if test "$ac_dir" != .; then
27879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27880 # A "../" for each directory in $ac_dir_suffix.
27881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27882else
27883 ac_dir_suffix= ac_top_builddir=
27884fi
27885
27886case $srcdir in
27887 .) # No --srcdir option. We are building in place.
27888 ac_srcdir=.
27889 if test -z "$ac_top_builddir"; then
27890 ac_top_srcdir=.
27891 else
27892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27893 fi ;;
27894 [\\/]* | ?:[\\/]* ) # Absolute path.
27895 ac_srcdir=$srcdir$ac_dir_suffix;
27896 ac_top_srcdir=$srcdir ;;
27897 *) # Relative path.
27898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27900esac
27901
27902# Do not use `cd foo && pwd` to compute absolute paths, because
27903# the directories may not exist.
27904case `pwd` in
27905.) ac_abs_builddir="$ac_dir";;
27906*)
27907 case "$ac_dir" in
27908 .) ac_abs_builddir=`pwd`;;
27909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27911 esac;;
27912esac
27913case $ac_abs_builddir in
27914.) ac_abs_top_builddir=${ac_top_builddir}.;;
27915*)
27916 case ${ac_top_builddir}. in
27917 .) ac_abs_top_builddir=$ac_abs_builddir;;
27918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27920 esac;;
27921esac
27922case $ac_abs_builddir in
27923.) ac_abs_srcdir=$ac_srcdir;;
27924*)
27925 case $ac_srcdir in
27926 .) ac_abs_srcdir=$ac_abs_builddir;;
27927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27929 esac;;
27930esac
27931case $ac_abs_builddir in
27932.) ac_abs_top_srcdir=$ac_top_srcdir;;
27933*)
27934 case $ac_top_srcdir in
27935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27938 esac;;
27939esac
27940
27941
27942 cd "$ac_dir"
27943
27944 # Check for guested configure; otherwise get Cygnus style configure.
27945 if test -f "$ac_srcdir/configure.gnu"; then
27946 ac_sub_configure=$ac_srcdir/configure.gnu
27947 elif test -f "$ac_srcdir/configure"; then
27948 ac_sub_configure=$ac_srcdir/configure
27949 elif test -f "$ac_srcdir/configure.in"; then
27950 # This should be Cygnus configure.
27951 ac_sub_configure=$ac_aux_dir/configure
27952 else
27953 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27954echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27955 ac_sub_configure=
27956 fi
27957
27958 # The recursion is here.
27959 if test -n "$ac_sub_configure"; then
27960 # Make the cache file name correct relative to the subdirectory.
27961 case $cache_file in
27962 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27963 *) # Relative path.
27964 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27965 esac
27966
27967 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27968echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27969 # The eval makes quoting arguments work.
27970 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27971 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27972 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27973echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27974 { (exit 1); exit 1; }; }
27975 fi
27976
27977 cd "$ac_popdir"
27978 done
27979fi
27980
27981
27982exit 0
This page took 0.125808 seconds and 4 git commands to generate.