]> Git Repo - binutils.git/blame_incremental - gdb/configure
gdb:
[binutils.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 LIBICONV LIBICONV_INCLUDE LIBICONV_LIBDIR 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 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-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
889 --with-system-readline use installed readline library
890 --with-expat include expat support (auto/yes/no)
891 --with-gnu-ld assume the C compiler uses GNU ld default=no
892 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
893 --without-libexpat-prefix don't search for libexpat in includedir and libdir
894 --with-python include python support (auto/yes/no/<path>)
895 --without-included-regex don't use included regex; this is the default
896 on systems with version 2 of the GNU C library
897 (use with caution on other system)
898 --with-sysroot=DIR Search for usr/lib et al within DIR.
899 --with-system-gdbinit=file Automatically load a system-wide gdbinit file
900 --with-tcl directory containing tcl configuration (tclConfig.sh)
901 --with-tk directory containing tk configuration (tkConfig.sh)
902 --with-x use the X Window System
903
904Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
911 CPP C preprocessor
912
913Use these variables to override the choices made by `configure' or to help
914it to find libraries and programs with nonstandard names/locations.
915
916_ACEOF
917fi
918
919if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
921 ac_popdir=`pwd`
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
924 ac_builddir=.
925
926if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930else
931 ac_dir_suffix= ac_top_builddir=
932fi
933
934case $srcdir in
935 .) # No --srcdir option. We are building in place.
936 ac_srcdir=.
937 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=.
939 else
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 fi ;;
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
945 *) # Relative path.
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948esac
949
950# Do not use `cd foo && pwd` to compute absolute paths, because
951# the directories may not exist.
952case `pwd` in
953.) ac_abs_builddir="$ac_dir";;
954*)
955 case "$ac_dir" in
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_builddir=${ac_top_builddir}.;;
963*)
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_srcdir=$ac_srcdir;;
972*)
973 case $ac_srcdir in
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 esac;;
978esac
979case $ac_abs_builddir in
980.) ac_abs_top_srcdir=$ac_top_srcdir;;
981*)
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986 esac;;
987esac
988
989 cd $ac_dir
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
992 echo
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
995 echo
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
999 echo
1000 $ac_configure --help
1001 else
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 fi
1004 cd $ac_popdir
1005 done
1006fi
1007
1008test -n "$ac_init_help" && exit 0
1009if $ac_init_version; then
1010 cat <<\_ACEOF
1011
1012Copyright (C) 2003 Free Software Foundation, Inc.
1013This configure script is free software; the Free Software Foundation
1014gives unlimited permission to copy, distribute and modify it.
1015_ACEOF
1016 exit 0
1017fi
1018exec 5>config.log
1019cat >&5 <<_ACEOF
1020This file contains any messages produced by compilers while
1021running configure, to aid debugging if configure makes a mistake.
1022
1023It was created by $as_me, which was
1024generated by GNU Autoconf 2.59. Invocation command line was
1025
1026 $ $0 $@
1027
1028_ACEOF
1029{
1030cat <<_ASUNAME
1031## --------- ##
1032## Platform. ##
1033## --------- ##
1034
1035hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040
1041/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043
1044/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1048/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051
1052_ASUNAME
1053
1054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055for as_dir in $PATH
1056do
1057 IFS=$as_save_IFS
1058 test -z "$as_dir" && as_dir=.
1059 echo "PATH: $as_dir"
1060done
1061
1062} >&5
1063
1064cat >&5 <<_ACEOF
1065
1066
1067## ----------- ##
1068## Core tests. ##
1069## ----------- ##
1070
1071_ACEOF
1072
1073
1074# Keep a trace of the command line.
1075# Strip out --no-create and --no-recursion so they do not pile up.
1076# Strip out --silent because we don't want to record it for future runs.
1077# Also quote any args containing shell meta-characters.
1078# Make two passes to allow for proper duplicate-argument suppression.
1079ac_configure_args=
1080ac_configure_args0=
1081ac_configure_args1=
1082ac_sep=
1083ac_must_keep_next=false
1084for ac_pass in 1 2
1085do
1086 for ac_arg
1087 do
1088 case $ac_arg in
1089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 continue ;;
1093 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 esac
1096 case $ac_pass in
1097 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 2)
1099 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100 if test $ac_must_keep_next = true; then
1101 ac_must_keep_next=false # Got value, back to normal.
1102 else
1103 case $ac_arg in
1104 *=* | --config-cache | -C | -disable-* | --disable-* \
1105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107 | -with-* | --with-* | -without-* | --without-* | --x)
1108 case "$ac_configure_args0 " in
1109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 esac
1111 ;;
1112 -* ) ac_must_keep_next=true ;;
1113 esac
1114 fi
1115 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116 # Get rid of the leading space.
1117 ac_sep=" "
1118 ;;
1119 esac
1120 done
1121done
1122$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124
1125# When interrupted or exit'd, cleanup temporary files, and complete
1126# config.log. We remove comments because anyway the quotes in there
1127# would cause problems or look ugly.
1128# WARNING: Be sure not to use single quotes in there, as some shells,
1129# such as our DU 5.0 friend, will then `close' the trap.
1130trap 'exit_status=$?
1131 # Save into config.log some information that might help in debugging.
1132 {
1133 echo
1134
1135 cat <<\_ASBOX
1136## ---------------- ##
1137## Cache variables. ##
1138## ---------------- ##
1139_ASBOX
1140 echo
1141 # The following way of writing the cache mishandles newlines in values,
1142{
1143 (set) 2>&1 |
1144 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145 *ac_space=\ *)
1146 sed -n \
1147 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149 ;;
1150 *)
1151 sed -n \
1152 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153 ;;
1154 esac;
1155}
1156 echo
1157
1158 cat <<\_ASBOX
1159## ----------------- ##
1160## Output variables. ##
1161## ----------------- ##
1162_ASBOX
1163 echo
1164 for ac_var in $ac_subst_vars
1165 do
1166 eval ac_val=$`echo $ac_var`
1167 echo "$ac_var='"'"'$ac_val'"'"'"
1168 done | sort
1169 echo
1170
1171 if test -n "$ac_subst_files"; then
1172 cat <<\_ASBOX
1173## ------------- ##
1174## Output files. ##
1175## ------------- ##
1176_ASBOX
1177 echo
1178 for ac_var in $ac_subst_files
1179 do
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1182 done | sort
1183 echo
1184 fi
1185
1186 if test -s confdefs.h; then
1187 cat <<\_ASBOX
1188## ----------- ##
1189## confdefs.h. ##
1190## ----------- ##
1191_ASBOX
1192 echo
1193 sed "/^$/d" confdefs.h | sort
1194 echo
1195 fi
1196 test "$ac_signal" != 0 &&
1197 echo "$as_me: caught signal $ac_signal"
1198 echo "$as_me: exit $exit_status"
1199 } >&5
1200 rm -f core *.core &&
1201 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 exit $exit_status
1203 ' 0
1204for ac_signal in 1 2 13 15; do
1205 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206done
1207ac_signal=0
1208
1209# confdefs.h avoids OS command line length limits that DEFS can exceed.
1210rm -rf conftest* confdefs.h
1211# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212echo >confdefs.h
1213
1214# Predefined preprocessor variables.
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_NAME "$PACKAGE_NAME"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_VERSION "$PACKAGE_VERSION"
1228_ACEOF
1229
1230
1231cat >>confdefs.h <<_ACEOF
1232#define PACKAGE_STRING "$PACKAGE_STRING"
1233_ACEOF
1234
1235
1236cat >>confdefs.h <<_ACEOF
1237#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238_ACEOF
1239
1240
1241# Let the site file select an alternate cache file if it wants to.
1242# Prefer explicitly selected file to automatically selected ones.
1243if test -z "$CONFIG_SITE"; then
1244 if test "x$prefix" != xNONE; then
1245 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 else
1247 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248 fi
1249fi
1250for ac_site_file in $CONFIG_SITE; do
1251 if test -r "$ac_site_file"; then
1252 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253echo "$as_me: loading site script $ac_site_file" >&6;}
1254 sed 's/^/| /' "$ac_site_file" >&5
1255 . "$ac_site_file"
1256 fi
1257done
1258
1259if test -r "$cache_file"; then
1260 # Some versions of bash will fail to source /dev/null (special
1261 # files actually), so we avoid doing that.
1262 if test -f "$cache_file"; then
1263 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264echo "$as_me: loading cache $cache_file" >&6;}
1265 case $cache_file in
1266 [\\/]* | ?:[\\/]* ) . $cache_file;;
1267 *) . ./$cache_file;;
1268 esac
1269 fi
1270else
1271 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272echo "$as_me: creating cache $cache_file" >&6;}
1273 >$cache_file
1274fi
1275
1276# Check that the precious variables saved in the cache have kept the same
1277# value.
1278ac_cache_corrupted=false
1279for ac_var in `(set) 2>&1 |
1280 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282 eval ac_new_set=\$ac_env_${ac_var}_set
1283 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284 eval ac_new_val="\$ac_env_${ac_var}_value"
1285 case $ac_old_set,$ac_new_set in
1286 set,)
1287 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289 ac_cache_corrupted=: ;;
1290 ,set)
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1294 ,);;
1295 *)
1296 if test "x$ac_old_val" != "x$ac_new_val"; then
1297 # differences in whitespace do not lead to failure.
1298 ac_old_val_w=`echo x $ac_old_val`
1299 ac_new_val_w=`echo x $ac_new_val`
1300 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 ac_cache_corrupted=:
1304 else
1305 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1306echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1307 eval $ac_var=\$ac_old_val
1308 fi
1309 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1310echo "$as_me: former value: \`$ac_old_val'" >&2;}
1311 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1312echo "$as_me: current value: \`$ac_new_val'" >&2;}
1313 fi;;
1314 esac
1315 # Pass precious variables to config.status.
1316 if test "$ac_new_set" = set; then
1317 case $ac_new_val in
1318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1320 *) ac_arg=$ac_var=$ac_new_val ;;
1321 esac
1322 case " $ac_configure_args " in
1323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1324 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325 esac
1326 fi
1327done
1328if $ac_cache_corrupted; then
1329 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1330echo "$as_me: error: in \`$ac_pwd':" >&2;}
1331 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1332echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1333 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1334echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1335 { (exit 1); exit 1; }; }
1336fi
1337
1338ac_ext=c
1339ac_cpp='$CPP $CPPFLAGS'
1340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1342ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343
1344
1345gl_header_list="$gl_header_list stdint.h"
1346gl_header_list="$gl_header_list wchar.h"
1347gl_header_list="$gl_header_list string.h"
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368 ac_config_headers="$ac_config_headers config.h:config.in"
1369
1370echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1371echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1372 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1373if test "${enable_maintainer_mode+set}" = set; then
1374 enableval="$enable_maintainer_mode"
1375 USE_MAINTAINER_MODE=$enableval
1376else
1377 USE_MAINTAINER_MODE=no
1378fi;
1379 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1380echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1381
1382
1383if test $USE_MAINTAINER_MODE = yes; then
1384 MAINTAINER_MODE_TRUE=
1385 MAINTAINER_MODE_FALSE='#'
1386else
1387 MAINTAINER_MODE_TRUE='#'
1388 MAINTAINER_MODE_FALSE=
1389fi
1390
1391 MAINT=$MAINTAINER_MODE_TRUE
1392
1393
1394
1395ac_ext=c
1396ac_cpp='$CPP $CPPFLAGS'
1397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1399ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1402set dummy ${ac_tool_prefix}gcc; ac_word=$2
1403echo "$as_me:$LINENO: checking for $ac_word" >&5
1404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407else
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1410else
1411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412for as_dir in $PATH
1413do
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1421 fi
1422done
1423done
1424
1425fi
1426fi
1427CC=$ac_cv_prog_CC
1428if test -n "$CC"; then
1429 echo "$as_me:$LINENO: result: $CC" >&5
1430echo "${ECHO_T}$CC" >&6
1431else
1432 echo "$as_me:$LINENO: result: no" >&5
1433echo "${ECHO_T}no" >&6
1434fi
1435
1436fi
1437if test -z "$ac_cv_prog_CC"; then
1438 ac_ct_CC=$CC
1439 # Extract the first word of "gcc", so it can be a program name with args.
1440set dummy gcc; ac_word=$2
1441echo "$as_me:$LINENO: checking for $ac_word" >&5
1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445else
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448else
1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450for as_dir in $PATH
1451do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_ac_ct_CC="gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460done
1461done
1462
1463fi
1464fi
1465ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466if test -n "$ac_ct_CC"; then
1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468echo "${ECHO_T}$ac_ct_CC" >&6
1469else
1470 echo "$as_me:$LINENO: result: no" >&5
1471echo "${ECHO_T}no" >&6
1472fi
1473
1474 CC=$ac_ct_CC
1475else
1476 CC="$ac_cv_prog_CC"
1477fi
1478
1479if test -z "$CC"; then
1480 if test -n "$ac_tool_prefix"; then
1481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1482set dummy ${ac_tool_prefix}cc; ac_word=$2
1483echo "$as_me:$LINENO: checking for $ac_word" >&5
1484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487else
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1490else
1491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492for as_dir in $PATH
1493do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_CC="${ac_tool_prefix}cc"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 break 2
1501 fi
1502done
1503done
1504
1505fi
1506fi
1507CC=$ac_cv_prog_CC
1508if test -n "$CC"; then
1509 echo "$as_me:$LINENO: result: $CC" >&5
1510echo "${ECHO_T}$CC" >&6
1511else
1512 echo "$as_me:$LINENO: result: no" >&5
1513echo "${ECHO_T}no" >&6
1514fi
1515
1516fi
1517if test -z "$ac_cv_prog_CC"; then
1518 ac_ct_CC=$CC
1519 # Extract the first word of "cc", so it can be a program name with args.
1520set dummy cc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 if test -n "$ac_ct_CC"; then
1527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_ac_ct_CC="cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540done
1541done
1542
1543fi
1544fi
1545ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546if test -n "$ac_ct_CC"; then
1547 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548echo "${ECHO_T}$ac_ct_CC" >&6
1549else
1550 echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554 CC=$ac_ct_CC
1555else
1556 CC="$ac_cv_prog_CC"
1557fi
1558
1559fi
1560if test -z "$CC"; then
1561 # Extract the first word of "cc", so it can be a program name with args.
1562set dummy cc; ac_word=$2
1563echo "$as_me:$LINENO: checking for $ac_word" >&5
1564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565if test "${ac_cv_prog_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 if test -n "$CC"; then
1569 ac_cv_prog_CC="$CC" # Let the user override the test.
1570else
1571 ac_prog_rejected=no
1572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573for as_dir in $PATH
1574do
1575 IFS=$as_save_IFS
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1580 ac_prog_rejected=yes
1581 continue
1582 fi
1583 ac_cv_prog_CC="cc"
1584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585 break 2
1586 fi
1587done
1588done
1589
1590if test $ac_prog_rejected = yes; then
1591 # We found a bogon in the path, so make sure we never use it.
1592 set dummy $ac_cv_prog_CC
1593 shift
1594 if test $# != 0; then
1595 # We chose a different compiler from the bogus one.
1596 # However, it has the same basename, so the bogon will be chosen
1597 # first if we set CC to just the basename; use the full file name.
1598 shift
1599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1600 fi
1601fi
1602fi
1603fi
1604CC=$ac_cv_prog_CC
1605if test -n "$CC"; then
1606 echo "$as_me:$LINENO: result: $CC" >&5
1607echo "${ECHO_T}$CC" >&6
1608else
1609 echo "$as_me:$LINENO: result: no" >&5
1610echo "${ECHO_T}no" >&6
1611fi
1612
1613fi
1614if test -z "$CC"; then
1615 if test -n "$ac_tool_prefix"; then
1616 for ac_prog in cl
1617 do
1618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620echo "$as_me:$LINENO: checking for $ac_word" >&5
1621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1624else
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1627else
1628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629for as_dir in $PATH
1630do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637 break 2
1638 fi
1639done
1640done
1641
1642fi
1643fi
1644CC=$ac_cv_prog_CC
1645if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647echo "${ECHO_T}$CC" >&6
1648else
1649 echo "$as_me:$LINENO: result: no" >&5
1650echo "${ECHO_T}no" >&6
1651fi
1652
1653 test -n "$CC" && break
1654 done
1655fi
1656if test -z "$CC"; then
1657 ac_ct_CC=$CC
1658 for ac_prog in cl
1659do
1660 # Extract the first word of "$ac_prog", so it can be a program name with args.
1661set dummy $ac_prog; ac_word=$2
1662echo "$as_me:$LINENO: checking for $ac_word" >&5
1663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669else
1670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671for as_dir in $PATH
1672do
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_ac_ct_CC="$ac_prog"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 break 2
1680 fi
1681done
1682done
1683
1684fi
1685fi
1686ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687if test -n "$ac_ct_CC"; then
1688 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689echo "${ECHO_T}$ac_ct_CC" >&6
1690else
1691 echo "$as_me:$LINENO: result: no" >&5
1692echo "${ECHO_T}no" >&6
1693fi
1694
1695 test -n "$ac_ct_CC" && break
1696done
1697
1698 CC=$ac_ct_CC
1699fi
1700
1701fi
1702
1703
1704test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1705echo "$as_me: error: in \`$ac_pwd':" >&2;}
1706{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1707See \`config.log' for more details." >&5
1708echo "$as_me: error: no acceptable C compiler found in \$PATH
1709See \`config.log' for more details." >&2;}
1710 { (exit 1); exit 1; }; }; }
1711
1712# Provide some information about the compiler.
1713echo "$as_me:$LINENO:" \
1714 "checking for C compiler version" >&5
1715ac_compiler=`set X $ac_compile; echo $2`
1716{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1717 (eval $ac_compiler --version </dev/null >&5) 2>&5
1718 ac_status=$?
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }
1721{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1722 (eval $ac_compiler -v </dev/null >&5) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }
1726{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1727 (eval $ac_compiler -V </dev/null >&5) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }
1731
1732cat >conftest.$ac_ext <<_ACEOF
1733/* confdefs.h. */
1734_ACEOF
1735cat confdefs.h >>conftest.$ac_ext
1736cat >>conftest.$ac_ext <<_ACEOF
1737/* end confdefs.h. */
1738
1739int
1740main ()
1741{
1742
1743 ;
1744 return 0;
1745}
1746_ACEOF
1747ac_clean_files_save=$ac_clean_files
1748ac_clean_files="$ac_clean_files a.out a.exe b.out"
1749# Try to create an executable without -o first, disregard a.out.
1750# It will help us diagnose broken compilers, and finding out an intuition
1751# of exeext.
1752echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1753echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1754ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1755if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1756 (eval $ac_link_default) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }; then
1760 # Find the output, starting from the most likely. This scheme is
1761# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762# resort.
1763
1764# Be careful to initialize this variable, since it used to be cached.
1765# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766ac_cv_exeext=
1767# b.out is created by i960 compilers.
1768for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1769do
1770 test -f "$ac_file" || continue
1771 case $ac_file in
1772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1773 ;;
1774 conftest.$ac_ext )
1775 # This is the source file.
1776 ;;
1777 [ab].out )
1778 # We found the default executable, but exeext='' is most
1779 # certainly right.
1780 break;;
1781 *.* )
1782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 # FIXME: I believe we export ac_cv_exeext for Libtool,
1784 # but it would be cool to find out if it's true. Does anybody
1785 # maintain Libtool? --akim.
1786 export ac_cv_exeext
1787 break;;
1788 * )
1789 break;;
1790 esac
1791done
1792else
1793 echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1797echo "$as_me: error: in \`$ac_pwd':" >&2;}
1798{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1799See \`config.log' for more details." >&5
1800echo "$as_me: error: C compiler cannot create executables
1801See \`config.log' for more details." >&2;}
1802 { (exit 77); exit 77; }; }; }
1803fi
1804
1805ac_exeext=$ac_cv_exeext
1806echo "$as_me:$LINENO: result: $ac_file" >&5
1807echo "${ECHO_T}$ac_file" >&6
1808
1809# Check the compiler produces executables we can run. If not, either
1810# the compiler is broken, or we cross compile.
1811echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1812echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1813# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1814# If not cross compiling, check that we can run a simple program.
1815if test "$cross_compiling" != yes; then
1816 if { ac_try='./$ac_file'
1817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1818 (eval $ac_try) 2>&5
1819 ac_status=$?
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; }; then
1822 cross_compiling=no
1823 else
1824 if test "$cross_compiling" = maybe; then
1825 cross_compiling=yes
1826 else
1827 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1828echo "$as_me: error: in \`$ac_pwd':" >&2;}
1829{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1830If you meant to cross compile, use \`--host'.
1831See \`config.log' for more details." >&5
1832echo "$as_me: error: cannot run C compiled programs.
1833If you meant to cross compile, use \`--host'.
1834See \`config.log' for more details." >&2;}
1835 { (exit 1); exit 1; }; }; }
1836 fi
1837 fi
1838fi
1839echo "$as_me:$LINENO: result: yes" >&5
1840echo "${ECHO_T}yes" >&6
1841
1842rm -f a.out a.exe conftest$ac_cv_exeext b.out
1843ac_clean_files=$ac_clean_files_save
1844# Check the compiler produces executables we can run. If not, either
1845# the compiler is broken, or we cross compile.
1846echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1847echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1848echo "$as_me:$LINENO: result: $cross_compiling" >&5
1849echo "${ECHO_T}$cross_compiling" >&6
1850
1851echo "$as_me:$LINENO: checking for suffix of executables" >&5
1852echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1854 (eval $ac_link) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; then
1858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1859# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1860# work properly (i.e., refer to `conftest.exe'), while it won't with
1861# `rm'.
1862for ac_file in conftest.exe conftest conftest.*; do
1863 test -f "$ac_file" || continue
1864 case $ac_file in
1865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1867 export ac_cv_exeext
1868 break;;
1869 * ) break;;
1870 esac
1871done
1872else
1873 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1874echo "$as_me: error: in \`$ac_pwd':" >&2;}
1875{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1876See \`config.log' for more details." >&5
1877echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1878See \`config.log' for more details." >&2;}
1879 { (exit 1); exit 1; }; }; }
1880fi
1881
1882rm -f conftest$ac_cv_exeext
1883echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1884echo "${ECHO_T}$ac_cv_exeext" >&6
1885
1886rm -f conftest.$ac_ext
1887EXEEXT=$ac_cv_exeext
1888ac_exeext=$EXEEXT
1889echo "$as_me:$LINENO: checking for suffix of object files" >&5
1890echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1891if test "${ac_cv_objext+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894 cat >conftest.$ac_ext <<_ACEOF
1895/* confdefs.h. */
1896_ACEOF
1897cat confdefs.h >>conftest.$ac_ext
1898cat >>conftest.$ac_ext <<_ACEOF
1899/* end confdefs.h. */
1900
1901int
1902main ()
1903{
1904
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909rm -f conftest.o conftest.obj
1910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1916 case $ac_file in
1917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1919 break;;
1920 esac
1921done
1922else
1923 echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1927echo "$as_me: error: in \`$ac_pwd':" >&2;}
1928{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1929See \`config.log' for more details." >&5
1930echo "$as_me: error: cannot compute suffix of object files: cannot compile
1931See \`config.log' for more details." >&2;}
1932 { (exit 1); exit 1; }; }; }
1933fi
1934
1935rm -f conftest.$ac_cv_objext conftest.$ac_ext
1936fi
1937echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1938echo "${ECHO_T}$ac_cv_objext" >&6
1939OBJEXT=$ac_cv_objext
1940ac_objext=$OBJEXT
1941echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1942echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1943if test "${ac_cv_c_compiler_gnu+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945else
1946 cat >conftest.$ac_ext <<_ACEOF
1947/* confdefs.h. */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h. */
1952
1953int
1954main ()
1955{
1956#ifndef __GNUC__
1957 choke me
1958#endif
1959
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964rm -f conftest.$ac_objext
1965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>conftest.er1
1967 ac_status=$?
1968 grep -v '^ *+' conftest.er1 >conftest.err
1969 rm -f conftest.er1
1970 cat conftest.err >&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); } &&
1973 { ac_try='test -z "$ac_c_werror_flag"
1974 || test ! -s conftest.err'
1975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1976 (eval $ac_try) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; } &&
1980 { ac_try='test -s conftest.$ac_objext'
1981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982 (eval $ac_try) 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; }; then
1986 ac_compiler_gnu=yes
1987else
1988 echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991ac_compiler_gnu=no
1992fi
1993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1994ac_cv_c_compiler_gnu=$ac_compiler_gnu
1995
1996fi
1997echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1998echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1999GCC=`test $ac_compiler_gnu = yes && echo yes`
2000ac_test_CFLAGS=${CFLAGS+set}
2001ac_save_CFLAGS=$CFLAGS
2002CFLAGS="-g"
2003echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2004echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2005if test "${ac_cv_prog_cc_g+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007else
2008 cat >conftest.$ac_ext <<_ACEOF
2009/* confdefs.h. */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h. */
2014
2015int
2016main ()
2017{
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023rm -f conftest.$ac_objext
2024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>conftest.er1
2026 ac_status=$?
2027 grep -v '^ *+' conftest.er1 >conftest.err
2028 rm -f conftest.er1
2029 cat conftest.err >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -z "$ac_c_werror_flag"
2033 || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_cv_prog_cc_g=yes
2046else
2047 echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050ac_cv_prog_cc_g=no
2051fi
2052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2053fi
2054echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2055echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2056if test "$ac_test_CFLAGS" = set; then
2057 CFLAGS=$ac_save_CFLAGS
2058elif test $ac_cv_prog_cc_g = yes; then
2059 if test "$GCC" = yes; then
2060 CFLAGS="-g -O2"
2061 else
2062 CFLAGS="-g"
2063 fi
2064else
2065 if test "$GCC" = yes; then
2066 CFLAGS="-O2"
2067 else
2068 CFLAGS=
2069 fi
2070fi
2071echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2072echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2073if test "${ac_cv_prog_cc_stdc+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076 ac_cv_prog_cc_stdc=no
2077ac_save_CC=$CC
2078cat >conftest.$ac_ext <<_ACEOF
2079/* confdefs.h. */
2080_ACEOF
2081cat confdefs.h >>conftest.$ac_ext
2082cat >>conftest.$ac_ext <<_ACEOF
2083/* end confdefs.h. */
2084#include <stdarg.h>
2085#include <stdio.h>
2086#include <sys/types.h>
2087#include <sys/stat.h>
2088/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2089struct buf { int x; };
2090FILE * (*rcsopen) (struct buf *, struct stat *, int);
2091static char *e (p, i)
2092 char **p;
2093 int i;
2094{
2095 return p[i];
2096}
2097static char *f (char * (*g) (char **, int), char **p, ...)
2098{
2099 char *s;
2100 va_list v;
2101 va_start (v,p);
2102 s = g (p, va_arg (v,int));
2103 va_end (v);
2104 return s;
2105}
2106
2107/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2108 function prototypes and stuff, but not '\xHH' hex character constants.
2109 These don't provoke an error unfortunately, instead are silently treated
2110 as 'x'. The following induces an error, until -std1 is added to get
2111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2112 array size at least. It's necessary to write '\x00'==0 to get something
2113 that's true only with -std1. */
2114int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2115
2116int test (int i, double x);
2117struct s1 {int (*f) (int a);};
2118struct s2 {int (*f) (double a);};
2119int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2120int argc;
2121char **argv;
2122int
2123main ()
2124{
2125return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130# Don't try gcc -ansi; that turns off useful extensions and
2131# breaks some systems' header files.
2132# AIX -qlanglvl=ansi
2133# Ultrix and OSF/1 -std1
2134# HP-UX 10.20 and later -Ae
2135# HP-UX older versions -Aa -D_HPUX_SOURCE
2136# SVR4 -Xc -D__EXTENSIONS__
2137for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2138do
2139 CC="$ac_save_CC $ac_arg"
2140 rm -f conftest.$ac_objext
2141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2143 ac_status=$?
2144 grep -v '^ *+' conftest.er1 >conftest.err
2145 rm -f conftest.er1
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_c_werror_flag"
2150 || test ! -s conftest.err'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 (eval $ac_try) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 ac_cv_prog_cc_stdc=$ac_arg
2163break
2164else
2165 echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168fi
2169rm -f conftest.err conftest.$ac_objext
2170done
2171rm -f conftest.$ac_ext conftest.$ac_objext
2172CC=$ac_save_CC
2173
2174fi
2175
2176case "x$ac_cv_prog_cc_stdc" in
2177 x|xno)
2178 echo "$as_me:$LINENO: result: none needed" >&5
2179echo "${ECHO_T}none needed" >&6 ;;
2180 *)
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2182echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2183 CC="$CC $ac_cv_prog_cc_stdc" ;;
2184esac
2185
2186# Some people use a C++ compiler to compile C. Since we use `exit',
2187# in C++ we need to declare it. In case someone uses the same compiler
2188# for both compiling C and C++ we need to have the C++ compiler decide
2189# the declaration of exit, since it's the most demanding environment.
2190cat >conftest.$ac_ext <<_ACEOF
2191#ifndef __cplusplus
2192 choke me
2193#endif
2194_ACEOF
2195rm -f conftest.$ac_objext
2196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 for ac_declaration in \
2218 '' \
2219 'extern "C" void std::exit (int) throw (); using std::exit;' \
2220 'extern "C" void std::exit (int); using std::exit;' \
2221 'extern "C" void exit (int) throw ();' \
2222 'extern "C" void exit (int);' \
2223 'void exit (int);'
2224do
2225 cat >conftest.$ac_ext <<_ACEOF
2226/* confdefs.h. */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h. */
2231$ac_declaration
2232#include <stdlib.h>
2233int
2234main ()
2235{
2236exit (42);
2237 ;
2238 return 0;
2239}
2240_ACEOF
2241rm -f conftest.$ac_objext
2242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2244 ac_status=$?
2245 grep -v '^ *+' conftest.er1 >conftest.err
2246 rm -f conftest.er1
2247 cat conftest.err >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 :
2264else
2265 echo "$as_me: failed program was:" >&5
2266sed 's/^/| /' conftest.$ac_ext >&5
2267
2268continue
2269fi
2270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2271 cat >conftest.$ac_ext <<_ACEOF
2272/* confdefs.h. */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h. */
2277$ac_declaration
2278int
2279main ()
2280{
2281exit (42);
2282 ;
2283 return 0;
2284}
2285_ACEOF
2286rm -f conftest.$ac_objext
2287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2289 ac_status=$?
2290 grep -v '^ *+' conftest.er1 >conftest.err
2291 rm -f conftest.er1
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 break
2309else
2310 echo "$as_me: failed program was:" >&5
2311sed 's/^/| /' conftest.$ac_ext >&5
2312
2313fi
2314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2315done
2316rm -f conftest*
2317if test -n "$ac_declaration"; then
2318 echo '#ifdef __cplusplus' >>confdefs.h
2319 echo $ac_declaration >>confdefs.h
2320 echo '#endif' >>confdefs.h
2321fi
2322
2323else
2324 echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327fi
2328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336cat >>confdefs.h <<\_ACEOF
2337#define _GNU_SOURCE 1
2338_ACEOF
2339
2340
2341
2342ac_ext=c
2343ac_cpp='$CPP $CPPFLAGS'
2344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2348echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2349# On Suns, sometimes $CPP names a directory.
2350if test -n "$CPP" && test -d "$CPP"; then
2351 CPP=
2352fi
2353if test -z "$CPP"; then
2354 if test "${ac_cv_prog_CPP+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357 # Double quotes because CPP needs to be expanded
2358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2359 do
2360 ac_preproc_ok=false
2361for ac_c_preproc_warn_flag in '' yes
2362do
2363 # Use a header file that comes with gcc, so configuring glibc
2364 # with a fresh cross-compiler works.
2365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2366 # <limits.h> exists even on freestanding compilers.
2367 # On the NeXT, cc -E runs the code through the compiler's parser,
2368 # not just through cpp. "Syntax error" is here to catch this case.
2369 cat >conftest.$ac_ext <<_ACEOF
2370/* confdefs.h. */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h. */
2375#ifdef __STDC__
2376# include <limits.h>
2377#else
2378# include <assert.h>
2379#endif
2380 Syntax error
2381_ACEOF
2382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } >/dev/null; then
2390 if test -s conftest.err; then
2391 ac_cpp_err=$ac_c_preproc_warn_flag
2392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2393 else
2394 ac_cpp_err=
2395 fi
2396else
2397 ac_cpp_err=yes
2398fi
2399if test -z "$ac_cpp_err"; then
2400 :
2401else
2402 echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 # Broken: fails on valid input.
2406continue
2407fi
2408rm -f conftest.err conftest.$ac_ext
2409
2410 # OK, works on sane cases. Now check whether non-existent headers
2411 # can be detected and how.
2412 cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
2418#include <ac_nonexistent.h>
2419_ACEOF
2420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } >/dev/null; then
2428 if test -s conftest.err; then
2429 ac_cpp_err=$ac_c_preproc_warn_flag
2430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2431 else
2432 ac_cpp_err=
2433 fi
2434else
2435 ac_cpp_err=yes
2436fi
2437if test -z "$ac_cpp_err"; then
2438 # Broken: success on invalid input.
2439continue
2440else
2441 echo "$as_me: failed program was:" >&5
2442sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 # Passes both tests.
2445ac_preproc_ok=:
2446break
2447fi
2448rm -f conftest.err conftest.$ac_ext
2449
2450done
2451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2452rm -f conftest.err conftest.$ac_ext
2453if $ac_preproc_ok; then
2454 break
2455fi
2456
2457 done
2458 ac_cv_prog_CPP=$CPP
2459
2460fi
2461 CPP=$ac_cv_prog_CPP
2462else
2463 ac_cv_prog_CPP=$CPP
2464fi
2465echo "$as_me:$LINENO: result: $CPP" >&5
2466echo "${ECHO_T}$CPP" >&6
2467ac_preproc_ok=false
2468for ac_c_preproc_warn_flag in '' yes
2469do
2470 # Use a header file that comes with gcc, so configuring glibc
2471 # with a fresh cross-compiler works.
2472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2473 # <limits.h> exists even on freestanding compilers.
2474 # On the NeXT, cc -E runs the code through the compiler's parser,
2475 # not just through cpp. "Syntax error" is here to catch this case.
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482#ifdef __STDC__
2483# include <limits.h>
2484#else
2485# include <assert.h>
2486#endif
2487 Syntax error
2488_ACEOF
2489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2491 ac_status=$?
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } >/dev/null; then
2497 if test -s conftest.err; then
2498 ac_cpp_err=$ac_c_preproc_warn_flag
2499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2500 else
2501 ac_cpp_err=
2502 fi
2503else
2504 ac_cpp_err=yes
2505fi
2506if test -z "$ac_cpp_err"; then
2507 :
2508else
2509 echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 # Broken: fails on valid input.
2513continue
2514fi
2515rm -f conftest.err conftest.$ac_ext
2516
2517 # OK, works on sane cases. Now check whether non-existent headers
2518 # can be detected and how.
2519 cat >conftest.$ac_ext <<_ACEOF
2520/* confdefs.h. */
2521_ACEOF
2522cat confdefs.h >>conftest.$ac_ext
2523cat >>conftest.$ac_ext <<_ACEOF
2524/* end confdefs.h. */
2525#include <ac_nonexistent.h>
2526_ACEOF
2527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } >/dev/null; then
2535 if test -s conftest.err; then
2536 ac_cpp_err=$ac_c_preproc_warn_flag
2537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2538 else
2539 ac_cpp_err=
2540 fi
2541else
2542 ac_cpp_err=yes
2543fi
2544if test -z "$ac_cpp_err"; then
2545 # Broken: success on invalid input.
2546continue
2547else
2548 echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 # Passes both tests.
2552ac_preproc_ok=:
2553break
2554fi
2555rm -f conftest.err conftest.$ac_ext
2556
2557done
2558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2559rm -f conftest.err conftest.$ac_ext
2560if $ac_preproc_ok; then
2561 :
2562else
2563 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2564echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2566See \`config.log' for more details." >&5
2567echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2568See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }; }
2570fi
2571
2572ac_ext=c
2573ac_cpp='$CPP $CPPFLAGS'
2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577
2578
2579echo "$as_me:$LINENO: checking for egrep" >&5
2580echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2581if test "${ac_cv_prog_egrep+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2585 then ac_cv_prog_egrep='grep -E'
2586 else ac_cv_prog_egrep='egrep'
2587 fi
2588fi
2589echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2590echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2591 EGREP=$ac_cv_prog_egrep
2592
2593
2594
2595echo "$as_me:$LINENO: checking for AIX" >&5
2596echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2597cat >conftest.$ac_ext <<_ACEOF
2598/* confdefs.h. */
2599_ACEOF
2600cat confdefs.h >>conftest.$ac_ext
2601cat >>conftest.$ac_ext <<_ACEOF
2602/* end confdefs.h. */
2603#ifdef _AIX
2604 yes
2605#endif
2606
2607_ACEOF
2608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2609 $EGREP "yes" >/dev/null 2>&1; then
2610 echo "$as_me:$LINENO: result: yes" >&5
2611echo "${ECHO_T}yes" >&6
2612cat >>confdefs.h <<\_ACEOF
2613#define _ALL_SOURCE 1
2614_ACEOF
2615
2616else
2617 echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6
2619fi
2620rm -f conftest*
2621
2622
2623echo "$as_me:$LINENO: checking for library containing strerror" >&5
2624echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2625if test "${ac_cv_search_strerror+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628 ac_func_search_save_LIBS=$LIBS
2629ac_cv_search_strerror=no
2630cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h. */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h. */
2636
2637/* Override any gcc2 internal prototype to avoid an error. */
2638#ifdef __cplusplus
2639extern "C"
2640#endif
2641/* We use char because int might match the return type of a gcc2
2642 builtin and then its argument prototype would still apply. */
2643char strerror ();
2644int
2645main ()
2646{
2647strerror ();
2648 ;
2649 return 0;
2650}
2651_ACEOF
2652rm -f conftest.$ac_objext conftest$ac_exeext
2653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2654 (eval $ac_link) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest$ac_exeext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_cv_search_strerror="none required"
2675else
2676 echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679fi
2680rm -f conftest.err conftest.$ac_objext \
2681 conftest$ac_exeext conftest.$ac_ext
2682if test "$ac_cv_search_strerror" = no; then
2683 for ac_lib in cposix; do
2684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2685 cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
2691
2692/* Override any gcc2 internal prototype to avoid an error. */
2693#ifdef __cplusplus
2694extern "C"
2695#endif
2696/* We use char because int might match the return type of a gcc2
2697 builtin and then its argument prototype would still apply. */
2698char strerror ();
2699int
2700main ()
2701{
2702strerror ();
2703 ;
2704 return 0;
2705}
2706_ACEOF
2707rm -f conftest.$ac_objext conftest$ac_exeext
2708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2709 (eval $ac_link) 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_c_werror_flag"
2717 || test ! -s conftest.err'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest$ac_exeext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 ac_cv_search_strerror="-l$ac_lib"
2730break
2731else
2732 echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735fi
2736rm -f conftest.err conftest.$ac_objext \
2737 conftest$ac_exeext conftest.$ac_ext
2738 done
2739fi
2740LIBS=$ac_func_search_save_LIBS
2741fi
2742echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2743echo "${ECHO_T}$ac_cv_search_strerror" >&6
2744if test "$ac_cv_search_strerror" != no; then
2745 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2746
2747fi
2748
2749if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2751set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2752echo "$as_me:$LINENO: checking for $ac_word" >&5
2753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754if test "${ac_cv_prog_RANLIB+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756else
2757 if test -n "$RANLIB"; then
2758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771done
2772done
2773
2774fi
2775fi
2776RANLIB=$ac_cv_prog_RANLIB
2777if test -n "$RANLIB"; then
2778 echo "$as_me:$LINENO: result: $RANLIB" >&5
2779echo "${ECHO_T}$RANLIB" >&6
2780else
2781 echo "$as_me:$LINENO: result: no" >&5
2782echo "${ECHO_T}no" >&6
2783fi
2784
2785fi
2786if test -z "$ac_cv_prog_RANLIB"; then
2787 ac_ct_RANLIB=$RANLIB
2788 # Extract the first word of "ranlib", so it can be a program name with args.
2789set dummy ranlib; ac_word=$2
2790echo "$as_me:$LINENO: checking for $ac_word" >&5
2791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795 if test -n "$ac_ct_RANLIB"; then
2796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_ac_ct_RANLIB="ranlib"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809done
2810done
2811
2812 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2813fi
2814fi
2815ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2816if test -n "$ac_ct_RANLIB"; then
2817 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2818echo "${ECHO_T}$ac_ct_RANLIB" >&6
2819else
2820 echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6
2822fi
2823
2824 RANLIB=$ac_ct_RANLIB
2825else
2826 RANLIB="$ac_cv_prog_RANLIB"
2827fi
2828
2829echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2830echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2831if test "${ac_cv_header_stdc+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834 cat >conftest.$ac_ext <<_ACEOF
2835/* confdefs.h. */
2836_ACEOF
2837cat confdefs.h >>conftest.$ac_ext
2838cat >>conftest.$ac_ext <<_ACEOF
2839/* end confdefs.h. */
2840#include <stdlib.h>
2841#include <stdarg.h>
2842#include <string.h>
2843#include <float.h>
2844
2845int
2846main ()
2847{
2848
2849 ;
2850 return 0;
2851}
2852_ACEOF
2853rm -f conftest.$ac_objext
2854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>conftest.er1
2856 ac_status=$?
2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -z "$ac_c_werror_flag"
2863 || test ! -s conftest.err'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 ac_cv_header_stdc=yes
2876else
2877 echo "$as_me: failed program was:" >&5
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
2880ac_cv_header_stdc=no
2881fi
2882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883
2884if test $ac_cv_header_stdc = yes; then
2885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2886 cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
2892#include <string.h>
2893
2894_ACEOF
2895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2896 $EGREP "memchr" >/dev/null 2>&1; then
2897 :
2898else
2899 ac_cv_header_stdc=no
2900fi
2901rm -f conftest*
2902
2903fi
2904
2905if test $ac_cv_header_stdc = yes; then
2906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2907 cat >conftest.$ac_ext <<_ACEOF
2908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
2913#include <stdlib.h>
2914
2915_ACEOF
2916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917 $EGREP "free" >/dev/null 2>&1; then
2918 :
2919else
2920 ac_cv_header_stdc=no
2921fi
2922rm -f conftest*
2923
2924fi
2925
2926if test $ac_cv_header_stdc = yes; then
2927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2928 if test "$cross_compiling" = yes; then
2929 :
2930else
2931 cat >conftest.$ac_ext <<_ACEOF
2932/* confdefs.h. */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h. */
2937#include <ctype.h>
2938#if ((' ' & 0x0FF) == 0x020)
2939# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2940# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2941#else
2942# define ISLOWER(c) \
2943 (('a' <= (c) && (c) <= 'i') \
2944 || ('j' <= (c) && (c) <= 'r') \
2945 || ('s' <= (c) && (c) <= 'z'))
2946# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2947#endif
2948
2949#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2950int
2951main ()
2952{
2953 int i;
2954 for (i = 0; i < 256; i++)
2955 if (XOR (islower (i), ISLOWER (i))
2956 || toupper (i) != TOUPPER (i))
2957 exit(2);
2958 exit (0);
2959}
2960_ACEOF
2961rm -f conftest$ac_exeext
2962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963 (eval $ac_link) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 :
2973else
2974 echo "$as_me: program exited with status $ac_status" >&5
2975echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978( exit $ac_status )
2979ac_cv_header_stdc=no
2980fi
2981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2982fi
2983fi
2984fi
2985echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2986echo "${ECHO_T}$ac_cv_header_stdc" >&6
2987if test $ac_cv_header_stdc = yes; then
2988
2989cat >>confdefs.h <<\_ACEOF
2990#define STDC_HEADERS 1
2991_ACEOF
2992
2993fi
2994
2995# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3006 inttypes.h stdint.h unistd.h
3007do
3008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3009echo "$as_me:$LINENO: checking for $ac_header" >&5
3010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3011if eval "test \"\${$as_ac_Header+set}\" = set"; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013else
3014 cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h. */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
3019/* end confdefs.h. */
3020$ac_includes_default
3021
3022#include <$ac_header>
3023_ACEOF
3024rm -f conftest.$ac_objext
3025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026 (eval $ac_compile) 2>conftest.er1
3027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -z "$ac_c_werror_flag"
3034 || test ! -s conftest.err'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; } &&
3040 { ac_try='test -s conftest.$ac_objext'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 eval "$as_ac_Header=yes"
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051eval "$as_ac_Header=no"
3052fi
3053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054fi
3055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3057if test `eval echo '${'$as_ac_Header'}'` = yes; then
3058 cat >>confdefs.h <<_ACEOF
3059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3060_ACEOF
3061
3062fi
3063
3064done
3065
3066
3067
3068 if test "${ac_cv_header_minix_config_h+set}" = set; then
3069 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3070echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3071if test "${ac_cv_header_minix_config_h+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073fi
3074echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3075echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3076else
3077 # Is the header compilable?
3078echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3079echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3080cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086$ac_includes_default
3087#include <minix/config.h>
3088_ACEOF
3089rm -f conftest.$ac_objext
3090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_header_compiler=yes
3112else
3113 echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116ac_header_compiler=no
3117fi
3118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3120echo "${ECHO_T}$ac_header_compiler" >&6
3121
3122# Is the header present?
3123echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3124echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3125cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h. */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h. */
3131#include <minix/config.h>
3132_ACEOF
3133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3144 else
3145 ac_cpp_err=
3146 fi
3147else
3148 ac_cpp_err=yes
3149fi
3150if test -z "$ac_cpp_err"; then
3151 ac_header_preproc=yes
3152else
3153 echo "$as_me: failed program was:" >&5
3154sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 ac_header_preproc=no
3157fi
3158rm -f conftest.err conftest.$ac_ext
3159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3160echo "${ECHO_T}$ac_header_preproc" >&6
3161
3162# So? What about this header?
3163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3164 yes:no: )
3165 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3166echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3167 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3168echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3169 ac_header_preproc=yes
3170 ;;
3171 no:yes:* )
3172 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3173echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3175echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3177echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3179echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3181echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3183echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3184 (
3185 cat <<\_ASBOX
3186## ------------------------------------------ ##
3187## Report this to the AC_PACKAGE_NAME lists. ##
3188## ------------------------------------------ ##
3189_ASBOX
3190 ) |
3191 sed "s/^/$as_me: WARNING: /" >&2
3192 ;;
3193esac
3194echo "$as_me:$LINENO: checking for minix/config.h" >&5
3195echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3196if test "${ac_cv_header_minix_config_h+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199 ac_cv_header_minix_config_h=$ac_header_preproc
3200fi
3201echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3202echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3203
3204fi
3205if test $ac_cv_header_minix_config_h = yes; then
3206 MINIX=yes
3207else
3208 MINIX=
3209fi
3210
3211
3212 if test "$MINIX" = yes; then
3213
3214cat >>confdefs.h <<\_ACEOF
3215#define _POSIX_SOURCE 1
3216_ACEOF
3217
3218
3219cat >>confdefs.h <<\_ACEOF
3220#define _POSIX_1_SOURCE 2
3221_ACEOF
3222
3223
3224cat >>confdefs.h <<\_ACEOF
3225#define _MINIX 1
3226_ACEOF
3227
3228 fi
3229
3230
3231
3232 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3233echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3234if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
3237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243
3244# define __EXTENSIONS__ 1
3245 $ac_includes_default
3246int
3247main ()
3248{
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
3254rm -f conftest.$ac_objext
3255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -z "$ac_c_werror_flag"
3264 || test ! -s conftest.err'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; } &&
3270 { ac_try='test -s conftest.$ac_objext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 ac_cv_safe_to_define___extensions__=yes
3277else
3278 echo "$as_me: failed program was:" >&5
3279sed 's/^/| /' conftest.$ac_ext >&5
3280
3281ac_cv_safe_to_define___extensions__=no
3282fi
3283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3284fi
3285echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3286echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3287 test $ac_cv_safe_to_define___extensions__ = yes &&
3288 cat >>confdefs.h <<\_ACEOF
3289#define __EXTENSIONS__ 1
3290_ACEOF
3291
3292 cat >>confdefs.h <<\_ACEOF
3293#define _ALL_SOURCE 1
3294_ACEOF
3295
3296 cat >>confdefs.h <<\_ACEOF
3297#define _GNU_SOURCE 1
3298_ACEOF
3299
3300 cat >>confdefs.h <<\_ACEOF
3301#define _POSIX_PTHREAD_SEMANTICS 1
3302_ACEOF
3303
3304 cat >>confdefs.h <<\_ACEOF
3305#define _TANDEM_SOURCE 1
3306_ACEOF
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3318echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3319if test "${am_cv_prog_cc_stdc+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322 am_cv_prog_cc_stdc=no
3323ac_save_CC="$CC"
3324# Don't try gcc -ansi; that turns off useful extensions and
3325# breaks some systems' header files.
3326# AIX -qlanglvl=ansi
3327# Ultrix and OSF/1 -std1
3328# HP-UX 10.20 and later -Ae
3329# HP-UX older versions -Aa -D_HPUX_SOURCE
3330# SVR4 -Xc -D__EXTENSIONS__
3331for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332do
3333 CC="$ac_save_CC $ac_arg"
3334 cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h. */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
3339/* end confdefs.h. */
3340#include <stdarg.h>
3341#include <stdio.h>
3342#include <sys/types.h>
3343#include <sys/stat.h>
3344/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345struct buf { int x; };
3346FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347static char *e (p, i)
3348 char **p;
3349 int i;
3350{
3351 return p[i];
3352}
3353static char *f (char * (*g) (char **, int), char **p, ...)
3354{
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361}
3362int test (int i, double x);
3363struct s1 {int (*f) (int a);};
3364struct s2 {int (*f) (double a);};
3365int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3366int argc;
3367char **argv;
3368
3369int
3370main ()
3371{
3372
3373return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3374
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -z "$ac_c_werror_flag"
3389 || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try='test -s conftest.$ac_objext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 (eval $ac_try) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 am_cv_prog_cc_stdc="$ac_arg"; break
3402else
3403 echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406fi
3407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408done
3409CC="$ac_save_CC"
3410
3411fi
3412
3413if test -z "$am_cv_prog_cc_stdc"; then
3414 echo "$as_me:$LINENO: result: none needed" >&5
3415echo "${ECHO_T}none needed" >&6
3416else
3417 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3418echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3419fi
3420case "x$am_cv_prog_cc_stdc" in
3421 x|xno) ;;
3422 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3423esac
3424
3425
3426ac_aux_dir=
3427for ac_dir in .. $srcdir/..; do
3428 if test -f $ac_dir/install-sh; then
3429 ac_aux_dir=$ac_dir
3430 ac_install_sh="$ac_aux_dir/install-sh -c"
3431 break
3432 elif test -f $ac_dir/install.sh; then
3433 ac_aux_dir=$ac_dir
3434 ac_install_sh="$ac_aux_dir/install.sh -c"
3435 break
3436 elif test -f $ac_dir/shtool; then
3437 ac_aux_dir=$ac_dir
3438 ac_install_sh="$ac_aux_dir/shtool install -c"
3439 break
3440 fi
3441done
3442if test -z "$ac_aux_dir"; then
3443 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3444echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3445 { (exit 1); exit 1; }; }
3446fi
3447ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3448ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3449ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3450
3451# Make sure we can run config.sub.
3452$ac_config_sub sun4 >/dev/null 2>&1 ||
3453 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3454echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3455 { (exit 1); exit 1; }; }
3456
3457echo "$as_me:$LINENO: checking build system type" >&5
3458echo $ECHO_N "checking build system type... $ECHO_C" >&6
3459if test "${ac_cv_build+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462 ac_cv_build_alias=$build_alias
3463test -z "$ac_cv_build_alias" &&
3464 ac_cv_build_alias=`$ac_config_guess`
3465test -z "$ac_cv_build_alias" &&
3466 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3467echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3468 { (exit 1); exit 1; }; }
3469ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3470 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3471echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3472 { (exit 1); exit 1; }; }
3473
3474fi
3475echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3476echo "${ECHO_T}$ac_cv_build" >&6
3477build=$ac_cv_build
3478build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3479build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3480build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3481
3482
3483echo "$as_me:$LINENO: checking host system type" >&5
3484echo $ECHO_N "checking host system type... $ECHO_C" >&6
3485if test "${ac_cv_host+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488 ac_cv_host_alias=$host_alias
3489test -z "$ac_cv_host_alias" &&
3490 ac_cv_host_alias=$ac_cv_build_alias
3491ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3493echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3494 { (exit 1); exit 1; }; }
3495
3496fi
3497echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3498echo "${ECHO_T}$ac_cv_host" >&6
3499host=$ac_cv_host
3500host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3501host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3502host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3503
3504
3505echo "$as_me:$LINENO: checking target system type" >&5
3506echo $ECHO_N "checking target system type... $ECHO_C" >&6
3507if test "${ac_cv_target+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 ac_cv_target_alias=$target_alias
3511test "x$ac_cv_target_alias" = "x" &&
3512 ac_cv_target_alias=$ac_cv_host_alias
3513ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3515echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3517
3518fi
3519echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3520echo "${ECHO_T}$ac_cv_target" >&6
3521target=$ac_cv_target
3522target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3523target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3524target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3525
3526
3527# The aliases save the names the user supplied, while $host etc.
3528# will get canonicalized.
3529test -n "$target_alias" &&
3530 test "$program_prefix$program_suffix$program_transform_name" = \
3531 NONENONEs,x,x, &&
3532 program_prefix=${target_alias}-
3533
3534# Dependency checking.
3535rm -rf .tst 2>/dev/null
3536mkdir .tst 2>/dev/null
3537if test -d .tst; then
3538 am__leading_dot=.
3539else
3540 am__leading_dot=_
3541fi
3542rmdir .tst 2>/dev/null
3543
3544DEPDIR="${am__leading_dot}deps"
3545
3546 ac_config_commands="$ac_config_commands depdir"
3547
3548
3549depcc="$CC" am_compiler_list=
3550
3551am_depcomp=$ac_aux_dir/depcomp
3552echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3553echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3554if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 if test -f "$am_depcomp"; then
3558 # We make a subdir and do the tests there. Otherwise we can end up
3559 # making bogus files that we don't know about and never remove. For
3560 # instance it was reported that on HP-UX the gcc test will end up
3561 # making a dummy file named `D' -- because `-MD' means `put the output
3562 # in D'.
3563 mkdir conftest.dir
3564 # Copy depcomp to subdir because otherwise we won't find it if we're
3565 # using a relative directory.
3566 cp "$am_depcomp" conftest.dir
3567 cd conftest.dir
3568 # We will build objects and dependencies in a subdirectory because
3569 # it helps to detect inapplicable dependency modes. For instance
3570 # both Tru64's cc and ICC support -MD to output dependencies as a
3571 # side effect of compilation, but ICC will put the dependencies in
3572 # the current directory while Tru64 will put them in the object
3573 # directory.
3574 mkdir sub
3575
3576 am_cv_CC_dependencies_compiler_type=none
3577 if test "$am_compiler_list" = ""; then
3578 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579 fi
3580 for depmode in $am_compiler_list; do
3581 if test $depmode = none; then break; fi
3582
3583 echo "$as_me:$LINENO: trying $depmode" >&5
3584 # Setup a source with many dependencies, because some compilers
3585 # like to wrap large dependency lists on column 80 (with \), and
3586 # we should not choose a depcomp mode which is confused by this.
3587 #
3588 # We need to recreate these files for each test, as the compiler may
3589 # overwrite some of them when testing with obscure command lines.
3590 # This happens at least with the AIX C compiler.
3591 : > sub/conftest.c
3592 for i in 1 2 3 4 5 6; do
3593 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3594 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3595 # Solaris 8's {/usr,}/bin/sh.
3596 touch sub/conftst$i.h
3597 done
3598 echo "include sub/conftest.Po" > confmf
3599
3600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601 # mode. It turns out that the SunPro C++ compiler does not properly
3602 # handle `-M -o', and we need to detect this.
3603 depcmd="depmode=$depmode \
3604 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3606 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3607 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3608 if env $depcmd > conftest.err 2>&1 &&
3609 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3610 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3611 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3612 # icc doesn't choke on unknown options, it will just issue warnings
3613 # or remarks (even with -Werror). So we grep stderr for any message
3614 # that says an option was ignored or not supported.
3615 # When given -MP, icc 7.0 and 7.1 complain thusly:
3616 # icc: Command line warning: ignoring option '-M'; no argument required
3617 # The diagnosis changed in icc 8.0:
3618 # icc: Command line remark: option '-MP' not supported
3619 if (grep 'ignoring option' conftest.err ||
3620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3621 am_cv_CC_dependencies_compiler_type=$depmode
3622 echo "$as_me:$LINENO: success" >&5
3623 break
3624 fi
3625 fi
3626 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3627 sed -e 's/^/| /' < conftest.err >&5
3628 done
3629
3630 cd ..
3631 rm -rf conftest.dir
3632else
3633 am_cv_CC_dependencies_compiler_type=none
3634fi
3635
3636fi
3637echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3638echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3639if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3640then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3641echo "$as_me: error: no usable dependency style found" >&2;}
3642 { (exit 1); exit 1; }; }
3643else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3644
3645fi
3646
3647
3648# Check for the 'make' the user wants to use.
3649for ac_prog in make
3650do
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652set dummy $ac_prog; ac_word=$2
3653echo "$as_me:$LINENO: checking for $ac_word" >&5
3654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655if test "${ac_cv_prog_MAKE+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 if test -n "$MAKE"; then
3659 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3660else
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_MAKE="$ac_prog"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672done
3673done
3674
3675fi
3676fi
3677MAKE=$ac_cv_prog_MAKE
3678if test -n "$MAKE"; then
3679 echo "$as_me:$LINENO: result: $MAKE" >&5
3680echo "${ECHO_T}$MAKE" >&6
3681else
3682 echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
3684fi
3685
3686 test -n "$MAKE" && break
3687done
3688
3689MAKE_IS_GNU=
3690case "`$MAKE --version 2>&1 | sed 1q`" in
3691 *GNU*)
3692 MAKE_IS_GNU=yes
3693 ;;
3694esac
3695
3696
3697if test "$MAKE_IS_GNU" = yes; then
3698 GMAKE_TRUE=
3699 GMAKE_FALSE='#'
3700else
3701 GMAKE_TRUE='#'
3702 GMAKE_FALSE=
3703fi
3704
3705echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3706echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3707set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3708if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711 cat >conftest.make <<\_ACEOF
3712all:
3713 @echo 'ac_maketemp="$(MAKE)"'
3714_ACEOF
3715# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3716eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3717if test -n "$ac_maketemp"; then
3718 eval ac_cv_prog_make_${ac_make}_set=yes
3719else
3720 eval ac_cv_prog_make_${ac_make}_set=no
3721fi
3722rm -f conftest.make
3723fi
3724if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3725 echo "$as_me:$LINENO: result: yes" >&5
3726echo "${ECHO_T}yes" >&6
3727 SET_MAKE=
3728else
3729 echo "$as_me:$LINENO: result: no" >&5
3730echo "${ECHO_T}no" >&6
3731 SET_MAKE="MAKE=${MAKE-make}"
3732fi
3733
3734
3735
3736CONFIG_OBS=
3737CONFIG_DEPS=
3738CONFIG_SRCS=
3739ENABLE_CFLAGS=
3740
3741CONFIG_ALL=
3742CONFIG_CLEAN=
3743CONFIG_INSTALL=
3744CONFIG_UNINSTALL=
3745
3746# If we haven't got the data from the intl directory,
3747# assume NLS is disabled.
3748USE_NLS=no
3749LIBINTL=
3750LIBINTL_DEP=
3751INCINTL=
3752XGETTEXT=
3753GMSGFMT=
3754POSUB=
3755
3756if test -f ../intl/config.intl; then
3757 . ../intl/config.intl
3758fi
3759echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3760echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3761if test x"$USE_NLS" != xyes; then
3762 echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6
3764else
3765 echo "$as_me:$LINENO: result: yes" >&5
3766echo "${ECHO_T}yes" >&6
3767
3768cat >>confdefs.h <<\_ACEOF
3769#define ENABLE_NLS 1
3770_ACEOF
3771
3772
3773 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3774echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3775 # Look for .po and .gmo files in the source directory.
3776 CATALOGS=
3777 XLINGUAS=
3778 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3779 # If there aren't any .gmo files the shell will give us the
3780 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3781 # weeded out.
3782 case "$cat" in *\**)
3783 continue;;
3784 esac
3785 # The quadruple backslash is collapsed to a double backslash
3786 # by the backticks, then collapsed again by the double quotes,
3787 # leaving us with one backslash in the sed expression (right
3788 # before the dot that mustn't act as a wildcard).
3789 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3790 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3791 # The user is allowed to set LINGUAS to a list of languages to
3792 # install catalogs for. If it's empty that means "all of them."
3793 if test "x$LINGUAS" = x; then
3794 CATALOGS="$CATALOGS $cat"
3795 XLINGUAS="$XLINGUAS $lang"
3796 else
3797 case "$LINGUAS" in *$lang*)
3798 CATALOGS="$CATALOGS $cat"
3799 XLINGUAS="$XLINGUAS $lang"
3800 ;;
3801 esac
3802 fi
3803 done
3804 LINGUAS="$XLINGUAS"
3805 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3806echo "${ECHO_T}$LINGUAS" >&6
3807
3808
3809 DATADIRNAME=share
3810
3811 INSTOBJEXT=.mo
3812
3813 GENCAT=gencat
3814
3815 CATOBJEXT=.gmo
3816
3817fi
3818
3819localedir='${datadir}/locale'
3820
3821
3822if test x"$USE_NLS" = xyes; then
3823 CONFIG_ALL="$CONFIG_ALL all-po"
3824 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3825 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3826 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3827fi
3828
3829
3830 GNULIB_MEMMEM=0;
3831 GNULIB_MEMPCPY=0;
3832 GNULIB_MEMRCHR=0;
3833 GNULIB_STPCPY=0;
3834 GNULIB_STPNCPY=0;
3835 GNULIB_STRCHRNUL=0;
3836 GNULIB_STRDUP=0;
3837 GNULIB_STRNDUP=0;
3838 GNULIB_STRNLEN=0;
3839 GNULIB_STRPBRK=0;
3840 GNULIB_STRSEP=0;
3841 GNULIB_STRSTR=0;
3842 GNULIB_STRCASESTR=0;
3843 GNULIB_STRTOK_R=0;
3844 GNULIB_MBSLEN=0;
3845 GNULIB_MBSNLEN=0;
3846 GNULIB_MBSCHR=0;
3847 GNULIB_MBSRCHR=0;
3848 GNULIB_MBSSTR=0;
3849 GNULIB_MBSCASECMP=0;
3850 GNULIB_MBSNCASECMP=0;
3851 GNULIB_MBSPCASECMP=0;
3852 GNULIB_MBSCASESTR=0;
3853 GNULIB_MBSCSPN=0;
3854 GNULIB_MBSPBRK=0;
3855 GNULIB_MBSSPN=0;
3856 GNULIB_MBSSEP=0;
3857 GNULIB_MBSTOK_R=0;
3858 GNULIB_STRERROR=0;
3859 GNULIB_STRSIGNAL=0;
3860 HAVE_DECL_MEMMEM=1;
3861 HAVE_MEMPCPY=1;
3862 HAVE_DECL_MEMRCHR=1;
3863 HAVE_STPCPY=1;
3864 HAVE_STPNCPY=1;
3865 HAVE_STRCHRNUL=1;
3866 HAVE_DECL_STRDUP=1;
3867 HAVE_STRNDUP=1;
3868 HAVE_DECL_STRNDUP=1;
3869 HAVE_DECL_STRNLEN=1;
3870 HAVE_STRPBRK=1;
3871 HAVE_STRSEP=1;
3872 HAVE_STRCASESTR=1;
3873 HAVE_DECL_STRTOK_R=1;
3874 HAVE_DECL_STRERROR=1;
3875 HAVE_DECL_STRSIGNAL=1;
3876 REPLACE_STRERROR=0;
3877 REPLACE_STRSIGNAL=0;
3878 REPLACE_MEMMEM=0;
3879 REPLACE_STRCASESTR=0;
3880 REPLACE_STRSTR=0;
3881
3882
3883 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3884echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3885if test "${ac_cv_have_decl_memmem+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
3894$ac_includes_default
3895int
3896main ()
3897{
3898#ifndef memmem
3899 char *p = (char *) memmem;
3900#endif
3901
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_c_werror_flag"
3916 || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 ac_cv_have_decl_memmem=yes
3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933ac_cv_have_decl_memmem=no
3934fi
3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936fi
3937echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3938echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3939if test $ac_cv_have_decl_memmem = yes; then
3940
3941cat >>confdefs.h <<_ACEOF
3942#define HAVE_DECL_MEMMEM 1
3943_ACEOF
3944
3945
3946else
3947 cat >>confdefs.h <<_ACEOF
3948#define HAVE_DECL_MEMMEM 0
3949_ACEOF
3950
3951
3952fi
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968for ac_func in memmem
3969do
3970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3971echo "$as_me:$LINENO: checking for $ac_func" >&5
3972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3973if eval "test \"\${$as_ac_var+set}\" = set"; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 cat >conftest.$ac_ext <<_ACEOF
3977/* confdefs.h. */
3978_ACEOF
3979cat confdefs.h >>conftest.$ac_ext
3980cat >>conftest.$ac_ext <<_ACEOF
3981/* end confdefs.h. */
3982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3984#define $ac_func innocuous_$ac_func
3985
3986/* System header to define __stub macros and hopefully few prototypes,
3987 which can conflict with char $ac_func (); below.
3988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 <limits.h> exists even on freestanding compilers. */
3990
3991#ifdef __STDC__
3992# include <limits.h>
3993#else
3994# include <assert.h>
3995#endif
3996
3997#undef $ac_func
3998
3999/* Override any gcc2 internal prototype to avoid an error. */
4000#ifdef __cplusplus
4001extern "C"
4002{
4003#endif
4004/* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4006char $ac_func ();
4007/* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4011choke me
4012#else
4013char (*f) () = $ac_func;
4014#endif
4015#ifdef __cplusplus
4016}
4017#endif
4018
4019int
4020main ()
4021{
4022return f != $ac_func;
4023 ;
4024 return 0;
4025}
4026_ACEOF
4027rm -f conftest.$ac_objext conftest$ac_exeext
4028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029 (eval $ac_link) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag"
4037 || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 eval "$as_ac_var=yes"
4050else
4051 echo "$as_me: failed program was:" >&5
4052sed 's/^/| /' conftest.$ac_ext >&5
4053
4054eval "$as_ac_var=no"
4055fi
4056rm -f conftest.err conftest.$ac_objext \
4057 conftest$ac_exeext conftest.$ac_ext
4058fi
4059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4061if test `eval echo '${'$as_ac_var'}'` = yes; then
4062 cat >>confdefs.h <<_ACEOF
4063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4064_ACEOF
4065
4066else
4067
4068 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4069
4070fi
4071done
4072
4073
4074
4075 :
4076
4077
4078
4079
4080
4081 if test $ac_cv_have_decl_memmem = no; then
4082 HAVE_DECL_MEMMEM=0
4083 fi
4084 :
4085
4086
4087 echo "$as_me:$LINENO: checking for long long int" >&5
4088echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4089if test "${ac_cv_type_long_long_int+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092 cat >conftest.$ac_ext <<_ACEOF
4093
4094 /* confdefs.h. */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h. */
4099/* For now, do not test the preprocessor; as of 2007 there are too many
4100 implementations with broken preprocessors. Perhaps this can
4101 be revisited in 2012. In the meantime, code should not expect
4102 #if to work with literals wider than 32 bits. */
4103 /* Test literals. */
4104 long long int ll = 9223372036854775807ll;
4105 long long int nll = -9223372036854775807LL;
4106 unsigned long long int ull = 18446744073709551615ULL;
4107 /* Test constant expressions. */
4108 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4109 ? 1 : -1)];
4110 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4111 ? 1 : -1)];
4112 int i = 63;
4113int
4114main ()
4115{
4116/* Test availability of runtime routines for shift and division. */
4117 long long int llmax = 9223372036854775807ll;
4118 unsigned long long int ullmax = 18446744073709551615ull;
4119 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4120 | (llmax / ll) | (llmax % ll)
4121 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4122 | (ullmax / ull) | (ullmax % ull));
4123 ;
4124 return 0;
4125}
4126
4127_ACEOF
4128rm -f conftest.$ac_objext conftest$ac_exeext
4129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4130 (eval $ac_link) 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag"
4138 || test ! -s conftest.err'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; } &&
4144 { ac_try='test -s conftest$ac_exeext'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 if test "$cross_compiling" = yes; then
4151 ac_cv_type_long_long_int=yes
4152else
4153 cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h. */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h. */
4159#include <limits.h>
4160 #ifndef LLONG_MAX
4161 # define HALF \
4162 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4163 # define LLONG_MAX (HALF - 1 + HALF)
4164 #endif
4165int
4166main ()
4167{
4168long long int n = 1;
4169 int i;
4170 for (i = 0; ; i++)
4171 {
4172 long long int m = n << i;
4173 if (m >> i != n)
4174 return 1;
4175 if (LLONG_MAX / 2 < m)
4176 break;
4177 }
4178 return 0;
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest$ac_exeext
4184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185 (eval $ac_link) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_type_long_long_int=yes
4195else
4196 echo "$as_me: program exited with status $ac_status" >&5
4197echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200( exit $ac_status )
4201ac_cv_type_long_long_int=no
4202fi
4203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4204fi
4205else
4206 echo "$as_me: failed program was:" >&5
4207sed 's/^/| /' conftest.$ac_ext >&5
4208
4209ac_cv_type_long_long_int=no
4210fi
4211rm -f conftest.err conftest.$ac_objext \
4212 conftest$ac_exeext conftest.$ac_ext
4213fi
4214echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4215echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4216 if test $ac_cv_type_long_long_int = yes; then
4217
4218cat >>confdefs.h <<\_ACEOF
4219#define HAVE_LONG_LONG_INT 1
4220_ACEOF
4221
4222 fi
4223
4224
4225 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4226echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4227if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230 cat >conftest.$ac_ext <<_ACEOF
4231
4232 /* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
4237/* For now, do not test the preprocessor; as of 2007 there are too many
4238 implementations with broken preprocessors. Perhaps this can
4239 be revisited in 2012. In the meantime, code should not expect
4240 #if to work with literals wider than 32 bits. */
4241 /* Test literals. */
4242 long long int ll = 9223372036854775807ll;
4243 long long int nll = -9223372036854775807LL;
4244 unsigned long long int ull = 18446744073709551615ULL;
4245 /* Test constant expressions. */
4246 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4247 ? 1 : -1)];
4248 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4249 ? 1 : -1)];
4250 int i = 63;
4251int
4252main ()
4253{
4254/* Test availability of runtime routines for shift and division. */
4255 long long int llmax = 9223372036854775807ll;
4256 unsigned long long int ullmax = 18446744073709551615ull;
4257 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4258 | (llmax / ll) | (llmax % ll)
4259 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4260 | (ullmax / ull) | (ullmax % ull));
4261 ;
4262 return 0;
4263}
4264
4265_ACEOF
4266rm -f conftest.$ac_objext conftest$ac_exeext
4267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4268 (eval $ac_link) 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag"
4276 || test ! -s conftest.err'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest$ac_exeext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_cv_type_unsigned_long_long_int=yes
4289else
4290 echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293ac_cv_type_unsigned_long_long_int=no
4294fi
4295rm -f conftest.err conftest.$ac_objext \
4296 conftest$ac_exeext conftest.$ac_ext
4297fi
4298echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4299echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4300 if test $ac_cv_type_unsigned_long_long_int = yes; then
4301
4302cat >>confdefs.h <<\_ACEOF
4303#define HAVE_UNSIGNED_LONG_LONG_INT 1
4304_ACEOF
4305
4306 fi
4307
4308
4309
4310 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4311echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4312if test "${gl_cv_have_include_next+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315 rm -rf conftestd1 conftestd2
4316 mkdir conftestd1 conftestd2
4317 cat <<EOF > conftestd1/conftest.h
4318#define DEFINED_IN_CONFTESTD1
4319#include_next <conftest.h>
4320#ifdef DEFINED_IN_CONFTESTD2
4321int foo;
4322#else
4323#error "include_next doesn't work"
4324#endif
4325EOF
4326 cat <<EOF > conftestd2/conftest.h
4327#ifndef DEFINED_IN_CONFTESTD1
4328#error "include_next test doesn't work"
4329#endif
4330#define DEFINED_IN_CONFTESTD2
4331EOF
4332 save_CPPFLAGS="$CPPFLAGS"
4333 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4334 cat >conftest.$ac_ext <<_ACEOF
4335#include <conftest.h>
4336_ACEOF
4337rm -f conftest.$ac_objext
4338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag"
4347 || test ! -s conftest.err'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; } &&
4353 { ac_try='test -s conftest.$ac_objext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 gl_cv_have_include_next=yes
4360else
4361 echo "$as_me: failed program was:" >&5
4362sed 's/^/| /' conftest.$ac_ext >&5
4363
4364gl_cv_have_include_next=no
4365fi
4366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4367 CPPFLAGS="$save_CPPFLAGS"
4368 rm -rf conftestd1 conftestd2
4369
4370fi
4371echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4372echo "${ECHO_T}$gl_cv_have_include_next" >&6
4373 if test $gl_cv_have_include_next = yes; then
4374
4375
4376cat >>confdefs.h <<\_ACEOF
4377#define HAVE_INCLUDE_NEXT 1
4378_ACEOF
4379
4380
4381 INCLUDE_NEXT=include_next
4382 else
4383 INCLUDE_NEXT=include
4384 fi
4385
4386
4387
4388
4389
4390
4391
4392for ac_header in $gl_header_list
4393do
4394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395if eval "test \"\${$as_ac_Header+set}\" = set"; then
4396 echo "$as_me:$LINENO: checking for $ac_header" >&5
4397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4398if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400fi
4401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4403else
4404 # Is the header compilable?
4405echo "$as_me:$LINENO: checking $ac_header usability" >&5
4406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4407cat >conftest.$ac_ext <<_ACEOF
4408/* confdefs.h. */
4409_ACEOF
4410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
4412/* end confdefs.h. */
4413$ac_includes_default
4414#include <$ac_header>
4415_ACEOF
4416rm -f conftest.$ac_objext
4417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } &&
4425 { ac_try='test -z "$ac_c_werror_flag"
4426 || test ! -s conftest.err'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 (eval $ac_try) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; } &&
4432 { ac_try='test -s conftest.$ac_objext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_header_compiler=yes
4439else
4440 echo "$as_me: failed program was:" >&5
4441sed 's/^/| /' conftest.$ac_ext >&5
4442
4443ac_header_compiler=no
4444fi
4445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4447echo "${ECHO_T}$ac_header_compiler" >&6
4448
4449# Is the header present?
4450echo "$as_me:$LINENO: checking $ac_header presence" >&5
4451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4452cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h. */
4458#include <$ac_header>
4459_ACEOF
4460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_c_preproc_warn_flag
4470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4471 else
4472 ac_cpp_err=
4473 fi
4474else
4475 ac_cpp_err=yes
4476fi
4477if test -z "$ac_cpp_err"; then
4478 ac_header_preproc=yes
4479else
4480 echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 ac_header_preproc=no
4484fi
4485rm -f conftest.err conftest.$ac_ext
4486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4487echo "${ECHO_T}$ac_header_preproc" >&6
4488
4489# So? What about this header?
4490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4491 yes:no: )
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4496 ac_header_preproc=yes
4497 ;;
4498 no:yes:* )
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4511 (
4512 cat <<\_ASBOX
4513## ------------------------------------------ ##
4514## Report this to the AC_PACKAGE_NAME lists. ##
4515## ------------------------------------------ ##
4516_ASBOX
4517 ) |
4518 sed "s/^/$as_me: WARNING: /" >&2
4519 ;;
4520esac
4521echo "$as_me:$LINENO: checking for $ac_header" >&5
4522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526 eval "$as_ac_Header=\$ac_header_preproc"
4527fi
4528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4530
4531fi
4532if test `eval echo '${'$as_ac_Header'}'` = yes; then
4533 cat >>confdefs.h <<_ACEOF
4534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4535_ACEOF
4536
4537fi
4538
4539done
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4553echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4554if test "${ac_cv_c_restrict+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557 ac_cv_c_restrict=no
4558 # The order here caters to the fact that C++ does not require restrict.
4559 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4560 cat >conftest.$ac_ext <<_ACEOF
4561/* confdefs.h. */
4562_ACEOF
4563cat confdefs.h >>conftest.$ac_ext
4564cat >>conftest.$ac_ext <<_ACEOF
4565/* end confdefs.h. */
4566typedef int * int_ptr;
4567 int foo (int_ptr $ac_kw ip) {
4568 return ip[0];
4569 }
4570int
4571main ()
4572{
4573int s[1];
4574 int * $ac_kw t = s;
4575 t[0] = 0;
4576 return foo(t)
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581rm -f conftest.$ac_objext
4582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_c_restrict=$ac_kw
4604else
4605 echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608fi
4609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4610 test "$ac_cv_c_restrict" != no && break
4611 done
4612
4613fi
4614echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4615echo "${ECHO_T}$ac_cv_c_restrict" >&6
4616
4617
4618 case $ac_cv_c_restrict in
4619 restrict) ;;
4620 no) cat >>confdefs.h <<\_ACEOF
4621#define restrict
4622_ACEOF
4623 ;;
4624 *) cat >>confdefs.h <<_ACEOF
4625#define restrict $ac_cv_c_restrict
4626_ACEOF
4627 ;;
4628 esac
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642 :
4643
4644
4645
4646
4647
4648
4649
4650 if test $gl_cv_have_include_next = yes; then
4651 gl_cv_next_string_h='<'string.h'>'
4652 else
4653 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4654echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4655if test "${gl_cv_next_string_h+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658
4659 if test $ac_cv_header_string_h = yes; then
4660 cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
4666#include <string.h>
4667
4668_ACEOF
4669 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 sed -n '\#/string.h#{
4671 s#.*"\(.*/string.h\)".*#\1#
4672 s#^/[^/]#//&#
4673 p
4674 q
4675 }'`'"'
4676 else
4677 gl_cv_next_string_h='<'string.h'>'
4678 fi
4679
4680fi
4681echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4682echo "${ECHO_T}$gl_cv_next_string_h" >&6
4683 fi
4684 NEXT_STRING_H=$gl_cv_next_string_h
4685
4686
4687
4688
4689
4690 GNULIB_WCWIDTH=0;
4691 HAVE_DECL_WCWIDTH=1;
4692 REPLACE_WCWIDTH=0;
4693 WCHAR_H=
4694
4695
4696
4697
4698
4699if false; then
4700 GL_COND_LIBTOOL_TRUE=
4701 GL_COND_LIBTOOL_FALSE='#'
4702else
4703 GL_COND_LIBTOOL_TRUE='#'
4704 GL_COND_LIBTOOL_FALSE=
4705fi
4706
4707 gl_cond_libtool=false
4708 gl_libdeps=
4709 gl_ltlibdeps=
4710
4711
4712
4713 gl_source_base='gnulib'
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723for ac_func in memchr
4724do
4725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4726echo "$as_me:$LINENO: checking for $ac_func" >&5
4727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4728if eval "test \"\${$as_ac_var+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731 cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
4737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4739#define $ac_func innocuous_$ac_func
4740
4741/* System header to define __stub macros and hopefully few prototypes,
4742 which can conflict with char $ac_func (); below.
4743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744 <limits.h> exists even on freestanding compilers. */
4745
4746#ifdef __STDC__
4747# include <limits.h>
4748#else
4749# include <assert.h>
4750#endif
4751
4752#undef $ac_func
4753
4754/* Override any gcc2 internal prototype to avoid an error. */
4755#ifdef __cplusplus
4756extern "C"
4757{
4758#endif
4759/* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4761char $ac_func ();
4762/* The GNU C library defines this for functions which it implements
4763 to always fail with ENOSYS. Some functions are actually named
4764 something starting with __ and the normal name is an alias. */
4765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4766choke me
4767#else
4768char (*f) () = $ac_func;
4769#endif
4770#ifdef __cplusplus
4771}
4772#endif
4773
4774int
4775main ()
4776{
4777return f != $ac_func;
4778 ;
4779 return 0;
4780}
4781_ACEOF
4782rm -f conftest.$ac_objext conftest$ac_exeext
4783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag"
4792 || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest$ac_exeext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 eval "$as_ac_var=yes"
4805else
4806 echo "$as_me: failed program was:" >&5
4807sed 's/^/| /' conftest.$ac_ext >&5
4808
4809eval "$as_ac_var=no"
4810fi
4811rm -f conftest.err conftest.$ac_objext \
4812 conftest$ac_exeext conftest.$ac_ext
4813fi
4814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4815echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4816if test `eval echo '${'$as_ac_var'}'` = yes; then
4817 cat >>confdefs.h <<_ACEOF
4818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4819_ACEOF
4820
4821else
4822
4823 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4824
4825fi
4826done
4827
4828
4829 if test $ac_cv_func_memchr = no; then
4830
4831
4832for ac_header in bp-sym.h
4833do
4834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo "$as_me:$LINENO: checking for $ac_header" >&5
4837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840fi
4841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843else
4844 # Is the header compilable?
4845echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h. */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h. */
4853$ac_includes_default
4854#include <$ac_header>
4855_ACEOF
4856rm -f conftest.$ac_objext
4857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_header_compiler=yes
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883ac_header_compiler=no
4884fi
4885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4887echo "${ECHO_T}$ac_header_compiler" >&6
4888
4889# Is the header present?
4890echo "$as_me:$LINENO: checking $ac_header presence" >&5
4891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4892cat >conftest.$ac_ext <<_ACEOF
4893/* confdefs.h. */
4894_ACEOF
4895cat confdefs.h >>conftest.$ac_ext
4896cat >>conftest.$ac_ext <<_ACEOF
4897/* end confdefs.h. */
4898#include <$ac_header>
4899_ACEOF
4900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } >/dev/null; then
4908 if test -s conftest.err; then
4909 ac_cpp_err=$ac_c_preproc_warn_flag
4910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4911 else
4912 ac_cpp_err=
4913 fi
4914else
4915 ac_cpp_err=yes
4916fi
4917if test -z "$ac_cpp_err"; then
4918 ac_header_preproc=yes
4919else
4920 echo "$as_me: failed program was:" >&5
4921sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ac_header_preproc=no
4924fi
4925rm -f conftest.err conftest.$ac_ext
4926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4927echo "${ECHO_T}$ac_header_preproc" >&6
4928
4929# So? What about this header?
4930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4931 yes:no: )
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4936 ac_header_preproc=yes
4937 ;;
4938 no:yes:* )
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4951 (
4952 cat <<\_ASBOX
4953## ------------------------------------------ ##
4954## Report this to the AC_PACKAGE_NAME lists. ##
4955## ------------------------------------------ ##
4956_ASBOX
4957 ) |
4958 sed "s/^/$as_me: WARNING: /" >&2
4959 ;;
4960esac
4961echo "$as_me:$LINENO: checking for $ac_header" >&5
4962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4963if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965else
4966 eval "$as_ac_Header=\$ac_header_preproc"
4967fi
4968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4970
4971fi
4972if test `eval echo '${'$as_ac_Header'}'` = yes; then
4973 cat >>confdefs.h <<_ACEOF
4974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4975_ACEOF
4976
4977fi
4978
4979done
4980
4981
4982 fi
4983
4984
4985 echo "$as_me:$LINENO: checking for working memcmp" >&5
4986echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4987if test "${ac_cv_func_memcmp_working+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 if test "$cross_compiling" = yes; then
4991 ac_cv_func_memcmp_working=no
4992else
4993 cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h. */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h. */
4999$ac_includes_default
5000int
5001main ()
5002{
5003
5004 /* Some versions of memcmp are not 8-bit clean. */
5005 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5006 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5007 exit (1);
5008
5009 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5010 or more and with at least one buffer not starting on a 4-byte boundary.
5011 William Lewis provided this test program. */
5012 {
5013 char foo[21];
5014 char bar[21];
5015 int i;
5016 for (i = 0; i < 4; i++)
5017 {
5018 char *a = foo + i;
5019 char *b = bar + i;
5020 strcpy (a, "--------01111111");
5021 strcpy (b, "--------10000000");
5022 if (memcmp (a, b, 16) >= 0)
5023 exit (1);
5024 }
5025 exit (0);
5026 }
5027
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032rm -f conftest$ac_exeext
5033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_func_memcmp_working=yes
5044else
5045 echo "$as_me: program exited with status $ac_status" >&5
5046echo "$as_me: failed program was:" >&5
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
5049( exit $ac_status )
5050ac_cv_func_memcmp_working=no
5051fi
5052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5053fi
5054fi
5055echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5056echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5057test $ac_cv_func_memcmp_working = no &&
5058
5059
5060
5061
5062
5063
5064 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5065
5066
5067 if test $ac_cv_func_memcmp_working = no; then
5068
5069cat >>confdefs.h <<\_ACEOF
5070#define memcmp rpl_memcmp
5071_ACEOF
5072
5073 :
5074 fi
5075
5076
5077
5078 if test $ac_cv_have_decl_memmem = yes; then
5079 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5080echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5081if test "${gl_cv_func_memmem_works+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 if test "$cross_compiling" = yes; then
5085 gl_cv_func_memmem_works="guessing no"
5086else
5087 cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093
5094#include <string.h> /* for memmem */
5095#include <stdlib.h> /* for malloc */
5096#include <unistd.h> /* for alarm */
5097
5098int
5099main ()
5100{
5101size_t m = 1000000;
5102 char *haystack = (char *) malloc (2 * m + 1);
5103 char *needle = (char *) malloc (m + 1);
5104 void *result = 0;
5105 /* Failure to compile this test due to missing alarm is okay,
5106 since all such platforms (mingw) also lack memmem. */
5107 alarm (5);
5108 /* Check for quadratic performance. */
5109 if (haystack && needle)
5110 {
5111 memset (haystack, 'A', 2 * m);
5112 haystack[2 * m] = 'B';
5113 memset (needle, 'A', m);
5114 needle[m] = 'B';
5115 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5116 }
5117 /* Check for empty needle behavior. */
5118 return !result || !memmem ("a", 1, 0, 0);
5119 ;
5120 return 0;
5121}
5122_ACEOF
5123rm -f conftest$ac_exeext
5124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125 (eval $ac_link) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 gl_cv_func_memmem_works=yes
5135else
5136 echo "$as_me: program exited with status $ac_status" >&5
5137echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140( exit $ac_status )
5141gl_cv_func_memmem_works=no
5142fi
5143rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5144fi
5145fi
5146echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5147echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5148 if test "$gl_cv_func_memmem_works" != yes; then
5149 REPLACE_MEMMEM=1
5150
5151
5152
5153
5154
5155
5156
5157 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5158
5159 fi
5160 fi
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174for ac_func in memmem
5175do
5176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5177echo "$as_me:$LINENO: checking for $ac_func" >&5
5178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5179if eval "test \"\${$as_ac_var+set}\" = set"; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182 cat >conftest.$ac_ext <<_ACEOF
5183/* confdefs.h. */
5184_ACEOF
5185cat confdefs.h >>conftest.$ac_ext
5186cat >>conftest.$ac_ext <<_ACEOF
5187/* end confdefs.h. */
5188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5190#define $ac_func innocuous_$ac_func
5191
5192/* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char $ac_func (); below.
5194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 <limits.h> exists even on freestanding compilers. */
5196
5197#ifdef __STDC__
5198# include <limits.h>
5199#else
5200# include <assert.h>
5201#endif
5202
5203#undef $ac_func
5204
5205/* Override any gcc2 internal prototype to avoid an error. */
5206#ifdef __cplusplus
5207extern "C"
5208{
5209#endif
5210/* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5212char $ac_func ();
5213/* The GNU C library defines this for functions which it implements
5214 to always fail with ENOSYS. Some functions are actually named
5215 something starting with __ and the normal name is an alias. */
5216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5217choke me
5218#else
5219char (*f) () = $ac_func;
5220#endif
5221#ifdef __cplusplus
5222}
5223#endif
5224
5225int
5226main ()
5227{
5228return f != $ac_func;
5229 ;
5230 return 0;
5231}
5232_ACEOF
5233rm -f conftest.$ac_objext conftest$ac_exeext
5234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235 (eval $ac_link) 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag"
5243 || test ! -s conftest.err'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest$ac_exeext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 (eval $ac_try) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 eval "$as_ac_var=yes"
5256else
5257 echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
5260eval "$as_ac_var=no"
5261fi
5262rm -f conftest.err conftest.$ac_objext \
5263 conftest$ac_exeext conftest.$ac_ext
5264fi
5265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5267if test `eval echo '${'$as_ac_var'}'` = yes; then
5268 cat >>confdefs.h <<_ACEOF
5269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5270_ACEOF
5271
5272else
5273
5274 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5275
5276fi
5277done
5278
5279
5280
5281 :
5282
5283
5284
5285
5286
5287 if test $ac_cv_have_decl_memmem = no; then
5288 HAVE_DECL_MEMMEM=0
5289 fi
5290 :
5291
5292
5293
5294 GNULIB_MEMMEM=1
5295
5296
5297
5298
5299 if test $ac_cv_type_long_long_int = yes; then
5300 HAVE_LONG_LONG_INT=1
5301 else
5302 HAVE_LONG_LONG_INT=0
5303 fi
5304
5305
5306 if test $ac_cv_type_unsigned_long_long_int = yes; then
5307 HAVE_UNSIGNED_LONG_LONG_INT=1
5308 else
5309 HAVE_UNSIGNED_LONG_LONG_INT=0
5310 fi
5311
5312
5313 if test $ac_cv_header_inttypes_h = yes; then
5314 HAVE_INTTYPES_H=1
5315 else
5316 HAVE_INTTYPES_H=0
5317 fi
5318
5319
5320 if test $ac_cv_header_sys_types_h = yes; then
5321 HAVE_SYS_TYPES_H=1
5322 else
5323 HAVE_SYS_TYPES_H=0
5324 fi
5325
5326
5327
5328
5329
5330 :
5331
5332
5333
5334
5335
5336
5337
5338 if test $gl_cv_have_include_next = yes; then
5339 gl_cv_next_stdint_h='<'stdint.h'>'
5340 else
5341 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5342echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5343if test "${gl_cv_next_stdint_h+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346
5347 if test $ac_cv_header_stdint_h = yes; then
5348 cat >conftest.$ac_ext <<_ACEOF
5349/* confdefs.h. */
5350_ACEOF
5351cat confdefs.h >>conftest.$ac_ext
5352cat >>conftest.$ac_ext <<_ACEOF
5353/* end confdefs.h. */
5354#include <stdint.h>
5355
5356_ACEOF
5357 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 sed -n '\#/stdint.h#{
5359 s#.*"\(.*/stdint.h\)".*#\1#
5360 s#^/[^/]#//&#
5361 p
5362 q
5363 }'`'"'
5364 else
5365 gl_cv_next_stdint_h='<'stdint.h'>'
5366 fi
5367
5368fi
5369echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5370echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5371 fi
5372 NEXT_STDINT_H=$gl_cv_next_stdint_h
5373
5374
5375
5376 if test $ac_cv_header_stdint_h = yes; then
5377 HAVE_STDINT_H=1
5378 else
5379 HAVE_STDINT_H=0
5380 fi
5381
5382
5383 if test $ac_cv_header_stdint_h = yes; then
5384 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5385echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5386if test "${gl_cv_header_working_stdint_h+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388else
5389 gl_cv_header_working_stdint_h=no
5390 cat >conftest.$ac_ext <<_ACEOF
5391
5392 /* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397
5398#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5399#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5400#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5401#include <stdint.h>
5402/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5403#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5404#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5405#endif
5406
5407
5408 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5409 included before <wchar.h>. */
5410 #include <stddef.h>
5411 #include <signal.h>
5412 #if HAVE_WCHAR_H
5413 # include <stdio.h>
5414 # include <time.h>
5415 # include <wchar.h>
5416 #endif
5417
5418
5419#ifdef INT8_MAX
5420int8_t a1 = INT8_MAX;
5421int8_t a1min = INT8_MIN;
5422#endif
5423#ifdef INT16_MAX
5424int16_t a2 = INT16_MAX;
5425int16_t a2min = INT16_MIN;
5426#endif
5427#ifdef INT32_MAX
5428int32_t a3 = INT32_MAX;
5429int32_t a3min = INT32_MIN;
5430#endif
5431#ifdef INT64_MAX
5432int64_t a4 = INT64_MAX;
5433int64_t a4min = INT64_MIN;
5434#endif
5435#ifdef UINT8_MAX
5436uint8_t b1 = UINT8_MAX;
5437#else
5438typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5439#endif
5440#ifdef UINT16_MAX
5441uint16_t b2 = UINT16_MAX;
5442#endif
5443#ifdef UINT32_MAX
5444uint32_t b3 = UINT32_MAX;
5445#endif
5446#ifdef UINT64_MAX
5447uint64_t b4 = UINT64_MAX;
5448#endif
5449int_least8_t c1 = INT8_C (0x7f);
5450int_least8_t c1max = INT_LEAST8_MAX;
5451int_least8_t c1min = INT_LEAST8_MIN;
5452int_least16_t c2 = INT16_C (0x7fff);
5453int_least16_t c2max = INT_LEAST16_MAX;
5454int_least16_t c2min = INT_LEAST16_MIN;
5455int_least32_t c3 = INT32_C (0x7fffffff);
5456int_least32_t c3max = INT_LEAST32_MAX;
5457int_least32_t c3min = INT_LEAST32_MIN;
5458int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5459int_least64_t c4max = INT_LEAST64_MAX;
5460int_least64_t c4min = INT_LEAST64_MIN;
5461uint_least8_t d1 = UINT8_C (0xff);
5462uint_least8_t d1max = UINT_LEAST8_MAX;
5463uint_least16_t d2 = UINT16_C (0xffff);
5464uint_least16_t d2max = UINT_LEAST16_MAX;
5465uint_least32_t d3 = UINT32_C (0xffffffff);
5466uint_least32_t d3max = UINT_LEAST32_MAX;
5467uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5468uint_least64_t d4max = UINT_LEAST64_MAX;
5469int_fast8_t e1 = INT_FAST8_MAX;
5470int_fast8_t e1min = INT_FAST8_MIN;
5471int_fast16_t e2 = INT_FAST16_MAX;
5472int_fast16_t e2min = INT_FAST16_MIN;
5473int_fast32_t e3 = INT_FAST32_MAX;
5474int_fast32_t e3min = INT_FAST32_MIN;
5475int_fast64_t e4 = INT_FAST64_MAX;
5476int_fast64_t e4min = INT_FAST64_MIN;
5477uint_fast8_t f1 = UINT_FAST8_MAX;
5478uint_fast16_t f2 = UINT_FAST16_MAX;
5479uint_fast32_t f3 = UINT_FAST32_MAX;
5480uint_fast64_t f4 = UINT_FAST64_MAX;
5481#ifdef INTPTR_MAX
5482intptr_t g = INTPTR_MAX;
5483intptr_t gmin = INTPTR_MIN;
5484#endif
5485#ifdef UINTPTR_MAX
5486uintptr_t h = UINTPTR_MAX;
5487#endif
5488intmax_t i = INTMAX_MAX;
5489uintmax_t j = UINTMAX_MAX;
5490
5491#include <limits.h> /* for CHAR_BIT */
5492#define TYPE_MINIMUM(t) \
5493 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5494#define TYPE_MAXIMUM(t) \
5495 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5496struct s {
5497 int check_PTRDIFF:
5498 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5499 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5500 ? 1 : -1;
5501 /* Detect bug in FreeBSD 6.0 / ia64. */
5502 int check_SIG_ATOMIC:
5503 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5504 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5505 ? 1 : -1;
5506 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5507 int check_WCHAR:
5508 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5509 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5510 ? 1 : -1;
5511 /* Detect bug in mingw. */
5512 int check_WINT:
5513 WINT_MIN == TYPE_MINIMUM (wint_t)
5514 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5515 ? 1 : -1;
5516
5517 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5518 int check_UINT8_C:
5519 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5520 int check_UINT16_C:
5521 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5522
5523 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5524#ifdef UINT8_MAX
5525 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5526#endif
5527#ifdef UINT16_MAX
5528 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5529#endif
5530#ifdef UINT32_MAX
5531 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5532#endif
5533#ifdef UINT64_MAX
5534 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5535#endif
5536 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5537 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5538 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5539 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5540 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5541 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5542 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5543 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5544 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5545 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5546 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5547};
5548
5549int
5550main ()
5551{
5552
5553 ;
5554 return 0;
5555}
5556_ACEOF
5557rm -f conftest.$ac_objext
5558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -z "$ac_c_werror_flag"
5567 || test ! -s conftest.err'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 gl_cv_header_working_stdint_h=yes
5580else
5581 echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
5584fi
5585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586fi
5587echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5588echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5589 fi
5590 if test "$gl_cv_header_working_stdint_h" = yes; then
5591 STDINT_H=
5592 else
5593
5594
5595for ac_header in sys/inttypes.h sys/bitypes.h
5596do
5597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5598if eval "test \"\${$as_ac_Header+set}\" = set"; then
5599 echo "$as_me:$LINENO: checking for $ac_header" >&5
5600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5601if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603fi
5604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606else
5607 # Is the header compilable?
5608echo "$as_me:$LINENO: checking $ac_header usability" >&5
5609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5610cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
5616$ac_includes_default
5617#include <$ac_header>
5618_ACEOF
5619rm -f conftest.$ac_objext
5620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -z "$ac_c_werror_flag"
5629 || test ! -s conftest.err'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 ac_header_compiler=yes
5642else
5643 echo "$as_me: failed program was:" >&5
5644sed 's/^/| /' conftest.$ac_ext >&5
5645
5646ac_header_compiler=no
5647fi
5648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5650echo "${ECHO_T}$ac_header_compiler" >&6
5651
5652# Is the header present?
5653echo "$as_me:$LINENO: checking $ac_header presence" >&5
5654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5655cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h. */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h. */
5661#include <$ac_header>
5662_ACEOF
5663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null; then
5671 if test -s conftest.err; then
5672 ac_cpp_err=$ac_c_preproc_warn_flag
5673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5674 else
5675 ac_cpp_err=
5676 fi
5677else
5678 ac_cpp_err=yes
5679fi
5680if test -z "$ac_cpp_err"; then
5681 ac_header_preproc=yes
5682else
5683 echo "$as_me: failed program was:" >&5
5684sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 ac_header_preproc=no
5687fi
5688rm -f conftest.err conftest.$ac_ext
5689echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5690echo "${ECHO_T}$ac_header_preproc" >&6
5691
5692# So? What about this header?
5693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5694 yes:no: )
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5699 ac_header_preproc=yes
5700 ;;
5701 no:yes:* )
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5714 (
5715 cat <<\_ASBOX
5716## ------------------------------------------ ##
5717## Report this to the AC_PACKAGE_NAME lists. ##
5718## ------------------------------------------ ##
5719_ASBOX
5720 ) |
5721 sed "s/^/$as_me: WARNING: /" >&2
5722 ;;
5723esac
5724echo "$as_me:$LINENO: checking for $ac_header" >&5
5725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5726if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729 eval "$as_ac_Header=\$ac_header_preproc"
5730fi
5731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5733
5734fi
5735if test `eval echo '${'$as_ac_Header'}'` = yes; then
5736 cat >>confdefs.h <<_ACEOF
5737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738_ACEOF
5739
5740fi
5741
5742done
5743
5744 if test $ac_cv_header_sys_inttypes_h = yes; then
5745 HAVE_SYS_INTTYPES_H=1
5746 else
5747 HAVE_SYS_INTTYPES_H=0
5748 fi
5749
5750 if test $ac_cv_header_sys_bitypes_h = yes; then
5751 HAVE_SYS_BITYPES_H=1
5752 else
5753 HAVE_SYS_BITYPES_H=0
5754 fi
5755
5756
5757
5758 :
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5774 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5775echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5776if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779 if test "$cross_compiling" = yes; then
5780 # Depending upon the size, compute the lo and hi bounds.
5781cat >conftest.$ac_ext <<_ACEOF
5782/* confdefs.h. */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h. */
5787
5788 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5789 included before <wchar.h>. */
5790 #include <stddef.h>
5791 #include <signal.h>
5792 #if HAVE_WCHAR_H
5793 # include <stdio.h>
5794 # include <time.h>
5795 # include <wchar.h>
5796 #endif
5797
5798#include <limits.h>
5799int
5800main ()
5801{
5802static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5803test_array [0] = 0
5804
5805 ;
5806 return 0;
5807}
5808_ACEOF
5809rm -f conftest.$ac_objext
5810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_lo=0 ac_mid=0
5832 while :; do
5833 cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
5839
5840 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5841 included before <wchar.h>. */
5842 #include <stddef.h>
5843 #include <signal.h>
5844 #if HAVE_WCHAR_H
5845 # include <stdio.h>
5846 # include <time.h>
5847 # include <wchar.h>
5848 #endif
5849
5850#include <limits.h>
5851int
5852main ()
5853{
5854static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5855test_array [0] = 0
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861rm -f conftest.$ac_objext
5862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863 (eval $ac_compile) 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } &&
5870 { ac_try='test -z "$ac_c_werror_flag"
5871 || test ! -s conftest.err'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_hi=$ac_mid; break
5884else
5885 echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888ac_lo=`expr $ac_mid + 1`
5889 if test $ac_lo -le $ac_mid; then
5890 ac_lo= ac_hi=
5891 break
5892 fi
5893 ac_mid=`expr 2 '*' $ac_mid + 1`
5894fi
5895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 done
5897else
5898 echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907
5908 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5909 included before <wchar.h>. */
5910 #include <stddef.h>
5911 #include <signal.h>
5912 #if HAVE_WCHAR_H
5913 # include <stdio.h>
5914 # include <time.h>
5915 # include <wchar.h>
5916 #endif
5917
5918#include <limits.h>
5919int
5920main ()
5921{
5922static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5923test_array [0] = 0
5924
5925 ;
5926 return 0;
5927}
5928_ACEOF
5929rm -f conftest.$ac_objext
5930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_hi=-1 ac_mid=-1
5952 while :; do
5953 cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
5959
5960 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5961 included before <wchar.h>. */
5962 #include <stddef.h>
5963 #include <signal.h>
5964 #if HAVE_WCHAR_H
5965 # include <stdio.h>
5966 # include <time.h>
5967 # include <wchar.h>
5968 #endif
5969
5970#include <limits.h>
5971int
5972main ()
5973{
5974static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5975test_array [0] = 0
5976
5977 ;
5978 return 0;
5979}
5980_ACEOF
5981rm -f conftest.$ac_objext
5982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_lo=$ac_mid; break
6004else
6005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008ac_hi=`expr '(' $ac_mid ')' - 1`
6009 if test $ac_mid -le $ac_hi; then
6010 ac_lo= ac_hi=
6011 break
6012 fi
6013 ac_mid=`expr 2 '*' $ac_mid`
6014fi
6015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 done
6017else
6018 echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021ac_lo= ac_hi=
6022fi
6023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024fi
6025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026# Binary search between lo and hi bounds.
6027while test "x$ac_lo" != "x$ac_hi"; do
6028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6029 cat >conftest.$ac_ext <<_ACEOF
6030/* confdefs.h. */
6031_ACEOF
6032cat confdefs.h >>conftest.$ac_ext
6033cat >>conftest.$ac_ext <<_ACEOF
6034/* end confdefs.h. */
6035
6036 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6037 included before <wchar.h>. */
6038 #include <stddef.h>
6039 #include <signal.h>
6040 #if HAVE_WCHAR_H
6041 # include <stdio.h>
6042 # include <time.h>
6043 # include <wchar.h>
6044 #endif
6045
6046#include <limits.h>
6047int
6048main ()
6049{
6050static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6051test_array [0] = 0
6052
6053 ;
6054 return 0;
6055}
6056_ACEOF
6057rm -f conftest.$ac_objext
6058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_hi=$ac_mid
6080else
6081 echo "$as_me: failed program was:" >&5
6082sed 's/^/| /' conftest.$ac_ext >&5
6083
6084ac_lo=`expr '(' $ac_mid ')' + 1`
6085fi
6086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087done
6088case $ac_lo in
6089?*) result=$ac_lo;;
6090'') result=unknown ;;
6091esac
6092else
6093 if test "$cross_compiling" = yes; then
6094 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6095echo "$as_me: error: in \`$ac_pwd':" >&2;}
6096{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6097See \`config.log' for more details." >&5
6098echo "$as_me: error: cannot run test program while cross compiling
6099See \`config.log' for more details." >&2;}
6100 { (exit 1); exit 1; }; }; }
6101else
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108
6109 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6110 included before <wchar.h>. */
6111 #include <stddef.h>
6112 #include <signal.h>
6113 #if HAVE_WCHAR_H
6114 # include <stdio.h>
6115 # include <time.h>
6116 # include <wchar.h>
6117 #endif
6118
6119#include <limits.h>
6120long longval () { return sizeof ($gltype) * CHAR_BIT; }
6121unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6122#include <stdio.h>
6123#include <stdlib.h>
6124int
6125main ()
6126{
6127
6128 FILE *f = fopen ("conftest.val", "w");
6129 if (! f)
6130 exit (1);
6131 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6132 {
6133 long i = longval ();
6134 if (i != (sizeof ($gltype) * CHAR_BIT))
6135 exit (1);
6136 fprintf (f, "%ld\n", i);
6137 }
6138 else
6139 {
6140 unsigned long i = ulongval ();
6141 if (i != (sizeof ($gltype) * CHAR_BIT))
6142 exit (1);
6143 fprintf (f, "%lu\n", i);
6144 }
6145 exit (ferror (f) || fclose (f) != 0);
6146
6147 ;
6148 return 0;
6149}
6150_ACEOF
6151rm -f conftest$ac_exeext
6152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153 (eval $ac_link) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 result=`cat conftest.val`
6163else
6164 echo "$as_me: program exited with status $ac_status" >&5
6165echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168( exit $ac_status )
6169result=unknown
6170fi
6171rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6172fi
6173fi
6174rm -f conftest.val
6175 eval gl_cv_bitsizeof_${gltype}=\$result
6176
6177fi
6178echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6179echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6180 eval result=\$gl_cv_bitsizeof_${gltype}
6181 if test $result = unknown; then
6182 result=0
6183 fi
6184 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6185 cat >>confdefs.h <<_ACEOF
6186#define BITSIZEOF_${GLTYPE} $result
6187_ACEOF
6188
6189 eval BITSIZEOF_${GLTYPE}=\$result
6190 done
6191
6192
6193
6194
6195
6196
6197
6198 for gltype in sig_atomic_t wchar_t wint_t ; do
6199 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6200echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6201if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204 cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h. */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h. */
6210
6211 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6212 included before <wchar.h>. */
6213 #include <stddef.h>
6214 #include <signal.h>
6215 #if HAVE_WCHAR_H
6216 # include <stdio.h>
6217 # include <time.h>
6218 # include <wchar.h>
6219 #endif
6220
6221 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6222int
6223main ()
6224{
6225
6226 ;
6227 return 0;
6228}
6229_ACEOF
6230rm -f conftest.$ac_objext
6231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 result=yes
6253else
6254 echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257result=no
6258fi
6259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 eval gl_cv_type_${gltype}_signed=\$result
6261
6262fi
6263echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6264echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6265 eval result=\$gl_cv_type_${gltype}_signed
6266 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6267 if test "$result" = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269#define HAVE_SIGNED_${GLTYPE} 1
6270_ACEOF
6271
6272 eval HAVE_SIGNED_${GLTYPE}=1
6273 else
6274 eval HAVE_SIGNED_${GLTYPE}=0
6275 fi
6276 done
6277
6278
6279 gl_cv_type_ptrdiff_t_signed=yes
6280 gl_cv_type_size_t_signed=no
6281
6282
6283
6284
6285
6286
6287
6288 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6289 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6290echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6291if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293else
6294 eval gl_cv_type_${gltype}_suffix=no
6295 eval result=\$gl_cv_type_${gltype}_signed
6296 if test "$result" = yes; then
6297 glsufu=
6298 else
6299 glsufu=u
6300 fi
6301 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6302 case $glsuf in
6303 '') gltype1='int';;
6304 l) gltype1='long int';;
6305 ll) gltype1='long long int';;
6306 i64) gltype1='__int64';;
6307 u) gltype1='unsigned int';;
6308 ul) gltype1='unsigned long int';;
6309 ull) gltype1='unsigned long long int';;
6310 ui64)gltype1='unsigned __int64';;
6311 esac
6312 cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h. */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h. */
6318
6319 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6320 included before <wchar.h>. */
6321 #include <stddef.h>
6322 #include <signal.h>
6323 #if HAVE_WCHAR_H
6324 # include <stdio.h>
6325 # include <time.h>
6326 # include <wchar.h>
6327 #endif
6328
6329 extern $gltype foo;
6330 extern $gltype1 foo;
6331int
6332main ()
6333{
6334
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext
6340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 eval gl_cv_type_${gltype}_suffix=\$glsuf
6362else
6363 echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366fi
6367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6368 eval result=\$gl_cv_type_${gltype}_suffix
6369 test "$result" != no && break
6370 done
6371fi
6372echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6373echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6374 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6375 eval result=\$gl_cv_type_${gltype}_suffix
6376 test "$result" = no && result=
6377 eval ${GLTYPE}_SUFFIX=\$result
6378 cat >>confdefs.h <<_ACEOF
6379#define ${GLTYPE}_SUFFIX $result
6380_ACEOF
6381
6382 done
6383
6384
6385
6386 STDINT_H=stdint.h
6387 fi
6388
6389
6390
6391
6392
6393
6394
6395 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6396echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6397if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399else
6400 cat >conftest.$ac_ext <<_ACEOF
6401#include <wchar.h>
6402wchar_t w;
6403_ACEOF
6404rm -f conftest.$ac_objext
6405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 gl_cv_header_wchar_h_standalone=yes
6427else
6428 echo "$as_me: failed program was:" >&5
6429sed 's/^/| /' conftest.$ac_ext >&5
6430
6431gl_cv_header_wchar_h_standalone=no
6432fi
6433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434fi
6435echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6436echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6437 if test $gl_cv_header_wchar_h_standalone != yes; then
6438 WCHAR_H=wchar.h
6439 fi
6440
6441
6442 :
6443
6444
6445
6446
6447
6448 if test $ac_cv_header_wchar_h = yes; then
6449 HAVE_WCHAR_H=1
6450 else
6451 HAVE_WCHAR_H=0
6452 fi
6453
6454
6455
6456
6457 :
6458
6459
6460
6461
6462
6463
6464
6465 if test $gl_cv_have_include_next = yes; then
6466 gl_cv_next_wchar_h='<'wchar.h'>'
6467 else
6468 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6469echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6470if test "${gl_cv_next_wchar_h+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
6473
6474 if test $ac_cv_header_wchar_h = yes; then
6475 cat >conftest.$ac_ext <<_ACEOF
6476/* confdefs.h. */
6477_ACEOF
6478cat confdefs.h >>conftest.$ac_ext
6479cat >>conftest.$ac_ext <<_ACEOF
6480/* end confdefs.h. */
6481#include <wchar.h>
6482
6483_ACEOF
6484 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6485 sed -n '\#/wchar.h#{
6486 s#.*"\(.*/wchar.h\)".*#\1#
6487 s#^/[^/]#//&#
6488 p
6489 q
6490 }'`'"'
6491 else
6492 gl_cv_next_wchar_h='<'wchar.h'>'
6493 fi
6494
6495fi
6496echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6497echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6498 fi
6499 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6500
6501
6502
6503
6504
6505
6506
6507
6508 gltests_libdeps=
6509 gltests_ltlibdeps=
6510
6511
6512
6513 gl_source_base='tests'
6514
6515
6516
6517
6518 LIBGNU_LIBDEPS="$gl_libdeps"
6519
6520 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6521
6522
6523
6524# For Makefile dependencies.
6525GNULIB_STDINT_H=
6526if test x"$STDINT_H" != x; then
6527 GNULIB_STDINT_H=gnulib/$STDINT_H
6528fi
6529
6530
6531PACKAGE=gdb
6532
6533cat >>confdefs.h <<_ACEOF
6534#define PACKAGE "$PACKAGE"
6535_ACEOF
6536
6537
6538
6539# GDB does not use automake, but gnulib does. This line lets us
6540# generate its Makefile.in.
6541am__api_version="1.9"
6542# Find a good install program. We prefer a C program (faster),
6543# so one script is as good as another. But avoid the broken or
6544# incompatible versions:
6545# SysV /etc/install, /usr/sbin/install
6546# SunOS /usr/etc/install
6547# IRIX /sbin/install
6548# AIX /bin/install
6549# AmigaOS /C/install, which installs bootblocks on floppy discs
6550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6551# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6553# OS/2's system install, which has a completely different semantic
6554# ./install, which can be erroneously created by make from ./install.sh.
6555# Reject install programs that cannot install multiple files.
6556echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6557echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6558if test -z "$INSTALL"; then
6559if test "${ac_cv_path_install+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 # Account for people who put trailing slashes in PATH elements.
6568case $as_dir/ in
6569 ./ | .// | /cC/* | \
6570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6571 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6572 /usr/ucb/* ) ;;
6573 *)
6574 # OSF1 and SCO ODT 3.0 have their own names for install.
6575 # Don't use installbsd from OSF since it installs stuff as root
6576 # by default.
6577 for ac_prog in ginstall scoinst install; do
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6580 if test $ac_prog = install &&
6581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6582 # AIX install. It has an incompatible calling convention.
6583 :
6584 elif test $ac_prog = install &&
6585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6586 # program-specific install script used by HP pwplus--don't use.
6587 :
6588 else
6589 rm -rf conftest.one conftest.two conftest.dir
6590 echo one > conftest.one
6591 echo two > conftest.two
6592 mkdir conftest.dir
6593 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6594 test -s conftest.one && test -s conftest.two &&
6595 test -s conftest.dir/conftest.one &&
6596 test -s conftest.dir/conftest.two
6597 then
6598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6599 break 3
6600 fi
6601 fi
6602 fi
6603 done
6604 done
6605 ;;
6606esac
6607done
6608
6609rm -rf conftest.one conftest.two conftest.dir
6610
6611fi
6612 if test "${ac_cv_path_install+set}" = set; then
6613 INSTALL=$ac_cv_path_install
6614 else
6615 # As a last resort, use the slow shell script. Don't cache a
6616 # value for INSTALL within a source directory, because that will
6617 # break other packages using the cache if that directory is
6618 # removed, or if the value is a relative name.
6619 INSTALL=$ac_install_sh
6620 fi
6621fi
6622echo "$as_me:$LINENO: result: $INSTALL" >&5
6623echo "${ECHO_T}$INSTALL" >&6
6624
6625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6626# It thinks the first close brace ends the variable substitution.
6627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6628
6629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6630
6631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6632
6633echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6634echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6635# Just in case
6636sleep 1
6637echo timestamp > conftest.file
6638# Do `set' in a subshell so we don't clobber the current shell's
6639# arguments. Must try -L first in case configure is actually a
6640# symlink; some systems play weird games with the mod time of symlinks
6641# (eg FreeBSD returns the mod time of the symlink's containing
6642# directory).
6643if (
6644 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6645 if test "$*" = "X"; then
6646 # -L didn't work.
6647 set X `ls -t $srcdir/configure conftest.file`
6648 fi
6649 rm -f conftest.file
6650 if test "$*" != "X $srcdir/configure conftest.file" \
6651 && test "$*" != "X conftest.file $srcdir/configure"; then
6652
6653 # If neither matched, then we have a broken ls. This can happen
6654 # if, for instance, CONFIG_SHELL is bash and it inherits a
6655 # broken ls alias from the environment. This has actually
6656 # happened. Such a system could not be considered "sane".
6657 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6658alias in your environment" >&5
6659echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6660alias in your environment" >&2;}
6661 { (exit 1); exit 1; }; }
6662 fi
6663
6664 test "$2" = conftest.file
6665 )
6666then
6667 # Ok.
6668 :
6669else
6670 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6671Check your system clock" >&5
6672echo "$as_me: error: newly created file is older than distributed files!
6673Check your system clock" >&2;}
6674 { (exit 1); exit 1; }; }
6675fi
6676echo "$as_me:$LINENO: result: yes" >&5
6677echo "${ECHO_T}yes" >&6
6678test "$program_prefix" != NONE &&
6679 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6680# Use a double $ so make ignores it.
6681test "$program_suffix" != NONE &&
6682 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6683# Double any \ or $. echo might interpret backslashes.
6684# By default was `s,x,x', remove it if useless.
6685cat <<\_ACEOF >conftest.sed
6686s/[\\$]/&&/g;s/;s,x,x,$//
6687_ACEOF
6688program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6689rm conftest.sed
6690
6691# expand $ac_aux_dir to an absolute path
6692am_aux_dir=`cd $ac_aux_dir && pwd`
6693
6694test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6695# Use eval to expand $SHELL
6696if eval "$MISSING --run true"; then
6697 am_missing_run="$MISSING --run "
6698else
6699 am_missing_run=
6700 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6701echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6702fi
6703
6704if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6705 # We used to keeping the `.' as first argument, in order to
6706 # allow $(mkdir_p) to be used without argument. As in
6707 # $(mkdir_p) $(somedir)
6708 # where $(somedir) is conditionally defined. However this is wrong
6709 # for two reasons:
6710 # 1. if the package is installed by a user who cannot write `.'
6711 # make install will fail,
6712 # 2. the above comment should most certainly read
6713 # $(mkdir_p) $(DESTDIR)$(somedir)
6714 # so it does not work when $(somedir) is undefined and
6715 # $(DESTDIR) is not.
6716 # To support the latter case, we have to write
6717 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6718 # so the `.' trick is pointless.
6719 mkdir_p='mkdir -p --'
6720else
6721 # On NextStep and OpenStep, the `mkdir' command does not
6722 # recognize any option. It will interpret all options as
6723 # directories to create, and then abort because `.' already
6724 # exists.
6725 for d in ./-p ./--version;
6726 do
6727 test -d $d && rmdir $d
6728 done
6729 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6730 if test -f "$ac_aux_dir/mkinstalldirs"; then
6731 mkdir_p='$(mkinstalldirs)'
6732 else
6733 mkdir_p='$(install_sh) -d'
6734 fi
6735fi
6736
6737for ac_prog in gawk mawk nawk awk
6738do
6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
6740set dummy $ac_prog; ac_word=$2
6741echo "$as_me:$LINENO: checking for $ac_word" >&5
6742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6743if test "${ac_cv_prog_AWK+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745else
6746 if test -n "$AWK"; then
6747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_AWK="$ac_prog"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
6761done
6762
6763fi
6764fi
6765AWK=$ac_cv_prog_AWK
6766if test -n "$AWK"; then
6767 echo "$as_me:$LINENO: result: $AWK" >&5
6768echo "${ECHO_T}$AWK" >&6
6769else
6770 echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6
6772fi
6773
6774 test -n "$AWK" && break
6775done
6776
6777 ac_config_commands="$ac_config_commands depfiles"
6778
6779
6780am_make=${MAKE-make}
6781cat > confinc << 'END'
6782am__doit:
6783 @echo done
6784.PHONY: am__doit
6785END
6786# If we don't find an include directive, just comment out the code.
6787echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6788echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6789am__include="#"
6790am__quote=
6791_am_result=none
6792# First try GNU make style include.
6793echo "include confinc" > confmf
6794# We grep out `Entering directory' and `Leaving directory'
6795# messages which can occur if `w' ends up in MAKEFLAGS.
6796# In particular we don't look at `^make:' because GNU make might
6797# be invoked under some other name (usually "gmake"), in which
6798# case it prints its new name instead of `make'.
6799if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6800 am__include=include
6801 am__quote=
6802 _am_result=GNU
6803fi
6804# Now try BSD make style include.
6805if test "$am__include" = "#"; then
6806 echo '.include "confinc"' > confmf
6807 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6808 am__include=.include
6809 am__quote="\""
6810 _am_result=BSD
6811 fi
6812fi
6813
6814
6815echo "$as_me:$LINENO: result: $_am_result" >&5
6816echo "${ECHO_T}$_am_result" >&6
6817rm -f confinc confmf
6818
6819# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6820if test "${enable_dependency_tracking+set}" = set; then
6821 enableval="$enable_dependency_tracking"
6822
6823fi;
6824if test "x$enable_dependency_tracking" != xno; then
6825 am_depcomp="$ac_aux_dir/depcomp"
6826 AMDEPBACKSLASH='\'
6827fi
6828
6829
6830if test "x$enable_dependency_tracking" != xno; then
6831 AMDEP_TRUE=
6832 AMDEP_FALSE='#'
6833else
6834 AMDEP_TRUE='#'
6835 AMDEP_FALSE=
6836fi
6837
6838
6839
6840# test to see if srcdir already configured
6841if test "`cd $srcdir && pwd`" != "`pwd`" &&
6842 test -f $srcdir/config.status; then
6843 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6844echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6845 { (exit 1); exit 1; }; }
6846fi
6847
6848# test whether we have cygpath
6849if test -z "$CYGPATH_W"; then
6850 if (cygpath --version) >/dev/null 2>/dev/null; then
6851 CYGPATH_W='cygpath -w'
6852 else
6853 CYGPATH_W=echo
6854 fi
6855fi
6856
6857
6858# Define the identity of the package.
6859 PACKAGE=gdb
6860 VERSION=UNUSED-VERSION
6861
6862
6863# Some tools Automake needs.
6864
6865ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6866
6867
6868AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6869
6870
6871AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6872
6873
6874AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6875
6876
6877MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6878
6879install_sh=${install_sh-"$am_aux_dir/install-sh"}
6880
6881# Installed binaries are usually stripped using `strip' when the user
6882# run `make install-strip'. However `strip' might not be the right
6883# tool to use in cross-compilation environments, therefore Automake
6884# will honor the `STRIP' environment variable to overrule this program.
6885if test "$cross_compiling" != no; then
6886 if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888set dummy ${ac_tool_prefix}strip; ac_word=$2
6889echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6891if test "${ac_cv_prog_STRIP+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894 if test -n "$STRIP"; then
6895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909done
6910
6911fi
6912fi
6913STRIP=$ac_cv_prog_STRIP
6914if test -n "$STRIP"; then
6915 echo "$as_me:$LINENO: result: $STRIP" >&5
6916echo "${ECHO_T}$STRIP" >&6
6917else
6918 echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6
6920fi
6921
6922fi
6923if test -z "$ac_cv_prog_STRIP"; then
6924 ac_ct_STRIP=$STRIP
6925 # Extract the first word of "strip", so it can be a program name with args.
6926set dummy strip; ac_word=$2
6927echo "$as_me:$LINENO: checking for $ac_word" >&5
6928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 if test -n "$ac_ct_STRIP"; then
6933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_ac_ct_STRIP="strip"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948
6949 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6950fi
6951fi
6952ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6953if test -n "$ac_ct_STRIP"; then
6954 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6955echo "${ECHO_T}$ac_ct_STRIP" >&6
6956else
6957 echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6
6959fi
6960
6961 STRIP=$ac_ct_STRIP
6962else
6963 STRIP="$ac_cv_prog_STRIP"
6964fi
6965
6966fi
6967INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6968
6969# We need awk for the "check" target. The system "awk" is bad on
6970# some platforms.
6971# Always define AMTAR for backward compatibility.
6972
6973AMTAR=${AMTAR-"${am_missing_run}tar"}
6974
6975am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6976
6977
6978
6979
6980depcc="$CC" am_compiler_list=
6981
6982echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6983echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6984if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986else
6987 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6988 # We make a subdir and do the tests there. Otherwise we can end up
6989 # making bogus files that we don't know about and never remove. For
6990 # instance it was reported that on HP-UX the gcc test will end up
6991 # making a dummy file named `D' -- because `-MD' means `put the output
6992 # in D'.
6993 mkdir conftest.dir
6994 # Copy depcomp to subdir because otherwise we won't find it if we're
6995 # using a relative directory.
6996 cp "$am_depcomp" conftest.dir
6997 cd conftest.dir
6998 # We will build objects and dependencies in a subdirectory because
6999 # it helps to detect inapplicable dependency modes. For instance
7000 # both Tru64's cc and ICC support -MD to output dependencies as a
7001 # side effect of compilation, but ICC will put the dependencies in
7002 # the current directory while Tru64 will put them in the object
7003 # directory.
7004 mkdir sub
7005
7006 am_cv_CC_dependencies_compiler_type=none
7007 if test "$am_compiler_list" = ""; then
7008 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7009 fi
7010 for depmode in $am_compiler_list; do
7011 # Setup a source with many dependencies, because some compilers
7012 # like to wrap large dependency lists on column 80 (with \), and
7013 # we should not choose a depcomp mode which is confused by this.
7014 #
7015 # We need to recreate these files for each test, as the compiler may
7016 # overwrite some of them when testing with obscure command lines.
7017 # This happens at least with the AIX C compiler.
7018 : > sub/conftest.c
7019 for i in 1 2 3 4 5 6; do
7020 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7021 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7022 # Solaris 8's {/usr,}/bin/sh.
7023 touch sub/conftst$i.h
7024 done
7025 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7026
7027 case $depmode in
7028 nosideeffect)
7029 # after this tag, mechanisms are not by side-effect, so they'll
7030 # only be used when explicitly requested
7031 if test "x$enable_dependency_tracking" = xyes; then
7032 continue
7033 else
7034 break
7035 fi
7036 ;;
7037 none) break ;;
7038 esac
7039 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7040 # mode. It turns out that the SunPro C++ compiler does not properly
7041 # handle `-M -o', and we need to detect this.
7042 if depmode=$depmode \
7043 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7045 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7046 >/dev/null 2>conftest.err &&
7047 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7048 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7049 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7050 # icc doesn't choke on unknown options, it will just issue warnings
7051 # or remarks (even with -Werror). So we grep stderr for any message
7052 # that says an option was ignored or not supported.
7053 # When given -MP, icc 7.0 and 7.1 complain thusly:
7054 # icc: Command line warning: ignoring option '-M'; no argument required
7055 # The diagnosis changed in icc 8.0:
7056 # icc: Command line remark: option '-MP' not supported
7057 if (grep 'ignoring option' conftest.err ||
7058 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7059 am_cv_CC_dependencies_compiler_type=$depmode
7060 break
7061 fi
7062 fi
7063 done
7064
7065 cd ..
7066 rm -rf conftest.dir
7067else
7068 am_cv_CC_dependencies_compiler_type=none
7069fi
7070
7071fi
7072echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7073echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7074CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7075
7076
7077
7078if
7079 test "x$enable_dependency_tracking" != xno \
7080 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7081 am__fastdepCC_TRUE=
7082 am__fastdepCC_FALSE='#'
7083else
7084 am__fastdepCC_TRUE='#'
7085 am__fastdepCC_FALSE=
7086fi
7087
7088
7089
7090
7091debugdir=${libdir}/debug
7092
7093
7094# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7095if test "${with_separate_debug_dir+set}" = set; then
7096 withval="$with_separate_debug_dir"
7097 debugdir="${withval}"
7098fi;
7099
7100
7101 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7102 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7103 ac_define_dir=`eval echo $debugdir`
7104 ac_define_dir=`eval echo $ac_define_dir`
7105
7106cat >>confdefs.h <<_ACEOF
7107#define DEBUGDIR "$ac_define_dir"
7108_ACEOF
7109
7110
7111#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7112
7113if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7114 if test "x$prefix" = xNONE; then
7115 test_prefix=/usr/local
7116 else
7117 test_prefix=$prefix
7118 fi
7119else
7120 test_prefix=$exec_prefix
7121fi
7122case ${debugdir} in
7123"${test_prefix}"|"${test_prefix}/"*|\
7124'${exec_prefix}'|'${exec_prefix}/'*)
7125
7126cat >>confdefs.h <<\_ACEOF
7127#define DEBUGDIR_RELOCATABLE 1
7128_ACEOF
7129
7130 ;;
7131esac
7132
7133
7134
7135subdirs="$subdirs doc testsuite"
7136
7137
7138# Check whether to support alternative target configurations
7139# Check whether --enable-targets or --disable-targets was given.
7140if test "${enable_targets+set}" = set; then
7141 enableval="$enable_targets"
7142 case "${enableval}" in
7143 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7144echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7145 { (exit 1); exit 1; }; }
7146 ;;
7147 no) enable_targets= ;;
7148 *) enable_targets=$enableval ;;
7149esac
7150fi;
7151
7152# Check whether to enable 64-bit support on 32-bit hosts
7153# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7154if test "${enable_64_bit_bfd+set}" = set; then
7155 enableval="$enable_64_bit_bfd"
7156 case "${enableval}" in
7157 yes) want64=true ;;
7158 no) want64=false ;;
7159 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7160echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7161 { (exit 1); exit 1; }; } ;;
7162esac
7163else
7164 want64=false
7165fi;
7166# Provide defaults for some variables set by the per-host and per-target
7167# configuration.
7168gdb_host_obs=posix-hdep.o
7169
7170if test "${target}" = "${host}"; then
7171 gdb_native=yes
7172else
7173 gdb_native=no
7174fi
7175
7176. $srcdir/configure.host
7177
7178# Accumulate some settings from configure.tgt over all enabled targets
7179
7180TARGET_OBS=
7181all_targets=
7182
7183for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7184do
7185 if test "$targ_alias" = "all"; then
7186 all_targets=true
7187 else
7188 # Canonicalize the secondary target names.
7189 result=`$ac_config_sub $targ_alias 2>/dev/null`
7190 if test -n "$result"; then
7191 targ=$result
7192 else
7193 targ=$targ_alias
7194 fi
7195
7196 . ${srcdir}/configure.tgt
7197
7198 # Target-specific object files
7199 for i in ${gdb_target_obs}; do
7200 case " $TARGET_OBS " in
7201 *" ${i} "*) ;;
7202 *)
7203 TARGET_OBS="$TARGET_OBS ${i}"
7204 ;;
7205 esac
7206 done
7207
7208 # Check whether this target needs 64-bit CORE_ADDR
7209 if test x${want64} = xfalse; then
7210 . ${srcdir}/../bfd/config.bfd
7211 fi
7212 fi
7213done
7214
7215if test x${all_targets} = xtrue; then
7216
7217 # We want all 64-bit targets if we either:
7218 # - run on a 64-bit host or
7219 # - already require 64-bit support for some other target or
7220 # - the --enable-64-bit-bfd option was supplied
7221 # Otherwise we only support all 32-bit targets.
7222 #
7223 # NOTE: This test must be in sync with the corresponding
7224 # tests in BFD!
7225
7226 if test x${want64} = xfalse; then
7227 echo "$as_me:$LINENO: checking for long" >&5
7228echo $ECHO_N "checking for long... $ECHO_C" >&6
7229if test "${ac_cv_type_long+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 cat >conftest.$ac_ext <<_ACEOF
7233/* confdefs.h. */
7234_ACEOF
7235cat confdefs.h >>conftest.$ac_ext
7236cat >>conftest.$ac_ext <<_ACEOF
7237/* end confdefs.h. */
7238$ac_includes_default
7239int
7240main ()
7241{
7242if ((long *) 0)
7243 return 0;
7244if (sizeof (long))
7245 return 0;
7246 ;
7247 return 0;
7248}
7249_ACEOF
7250rm -f conftest.$ac_objext
7251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7252 (eval $ac_compile) 2>conftest.er1
7253 ac_status=$?
7254 grep -v '^ *+' conftest.er1 >conftest.err
7255 rm -f conftest.er1
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -z "$ac_c_werror_flag"
7260 || test ! -s conftest.err'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 (eval $ac_try) 2>&5
7263 ac_status=$?
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; } &&
7266 { ac_try='test -s conftest.$ac_objext'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 ac_cv_type_long=yes
7273else
7274 echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277ac_cv_type_long=no
7278fi
7279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7280fi
7281echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7282echo "${ECHO_T}$ac_cv_type_long" >&6
7283
7284echo "$as_me:$LINENO: checking size of long" >&5
7285echo $ECHO_N "checking size of long... $ECHO_C" >&6
7286if test "${ac_cv_sizeof_long+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289 if test "$ac_cv_type_long" = yes; then
7290 # The cast to unsigned long works around a bug in the HP C Compiler
7291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7293 # This bug is HP SR number 8606223364.
7294 if test "$cross_compiling" = yes; then
7295 # Depending upon the size, compute the lo and hi bounds.
7296cat >conftest.$ac_ext <<_ACEOF
7297/* confdefs.h. */
7298_ACEOF
7299cat confdefs.h >>conftest.$ac_ext
7300cat >>conftest.$ac_ext <<_ACEOF
7301/* end confdefs.h. */
7302$ac_includes_default
7303int
7304main ()
7305{
7306static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7307test_array [0] = 0
7308
7309 ;
7310 return 0;
7311}
7312_ACEOF
7313rm -f conftest.$ac_objext
7314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7315 (eval $ac_compile) 2>conftest.er1
7316 ac_status=$?
7317 grep -v '^ *+' conftest.er1 >conftest.err
7318 rm -f conftest.er1
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -z "$ac_c_werror_flag"
7323 || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_lo=0 ac_mid=0
7336 while :; do
7337 cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343$ac_includes_default
7344int
7345main ()
7346{
7347static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7348test_array [0] = 0
7349
7350 ;
7351 return 0;
7352}
7353_ACEOF
7354rm -f conftest.$ac_objext
7355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try='test -z "$ac_c_werror_flag"
7364 || test ! -s conftest.err'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 (eval $ac_try) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; } &&
7370 { ac_try='test -s conftest.$ac_objext'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7376 ac_hi=$ac_mid; break
7377else
7378 echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381ac_lo=`expr $ac_mid + 1`
7382 if test $ac_lo -le $ac_mid; then
7383 ac_lo= ac_hi=
7384 break
7385 fi
7386 ac_mid=`expr 2 '*' $ac_mid + 1`
7387fi
7388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389 done
7390else
7391 echo "$as_me: failed program was:" >&5
7392sed 's/^/| /' conftest.$ac_ext >&5
7393
7394cat >conftest.$ac_ext <<_ACEOF
7395/* confdefs.h. */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h. */
7400$ac_includes_default
7401int
7402main ()
7403{
7404static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7405test_array [0] = 0
7406
7407 ;
7408 return 0;
7409}
7410_ACEOF
7411rm -f conftest.$ac_objext
7412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413 (eval $ac_compile) 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag"
7421 || test ! -s conftest.err'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 (eval $ac_try) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_hi=-1 ac_mid=-1
7434 while :; do
7435 cat >conftest.$ac_ext <<_ACEOF
7436/* confdefs.h. */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
7440/* end confdefs.h. */
7441$ac_includes_default
7442int
7443main ()
7444{
7445static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7446test_array [0] = 0
7447
7448 ;
7449 return 0;
7450}
7451_ACEOF
7452rm -f conftest.$ac_objext
7453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454 (eval $ac_compile) 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } &&
7461 { ac_try='test -z "$ac_c_werror_flag"
7462 || test ! -s conftest.err'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; } &&
7468 { ac_try='test -s conftest.$ac_objext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7474 ac_lo=$ac_mid; break
7475else
7476 echo "$as_me: failed program was:" >&5
7477sed 's/^/| /' conftest.$ac_ext >&5
7478
7479ac_hi=`expr '(' $ac_mid ')' - 1`
7480 if test $ac_mid -le $ac_hi; then
7481 ac_lo= ac_hi=
7482 break
7483 fi
7484 ac_mid=`expr 2 '*' $ac_mid`
7485fi
7486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487 done
7488else
7489 echo "$as_me: failed program was:" >&5
7490sed 's/^/| /' conftest.$ac_ext >&5
7491
7492ac_lo= ac_hi=
7493fi
7494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7495fi
7496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497# Binary search between lo and hi bounds.
7498while test "x$ac_lo" != "x$ac_hi"; do
7499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7500 cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h. */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h. */
7506$ac_includes_default
7507int
7508main ()
7509{
7510static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7511test_array [0] = 0
7512
7513 ;
7514 return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext
7518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_hi=$ac_mid
7540else
7541 echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544ac_lo=`expr '(' $ac_mid ')' + 1`
7545fi
7546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547done
7548case $ac_lo in
7549?*) ac_cv_sizeof_long=$ac_lo;;
7550'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7551echo "$as_me: error: in \`$ac_pwd':" >&2;}
7552{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7553See \`config.log' for more details." >&5
7554echo "$as_me: error: cannot compute sizeof (long), 77
7555See \`config.log' for more details." >&2;}
7556 { (exit 1); exit 1; }; }; } ;;
7557esac
7558else
7559 if test "$cross_compiling" = yes; then
7560 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7561echo "$as_me: error: in \`$ac_pwd':" >&2;}
7562{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7563See \`config.log' for more details." >&5
7564echo "$as_me: error: cannot run test program while cross compiling
7565See \`config.log' for more details." >&2;}
7566 { (exit 1); exit 1; }; }; }
7567else
7568 cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
7574$ac_includes_default
7575long longval () { return (long) (sizeof (long)); }
7576unsigned long ulongval () { return (long) (sizeof (long)); }
7577#include <stdio.h>
7578#include <stdlib.h>
7579int
7580main ()
7581{
7582
7583 FILE *f = fopen ("conftest.val", "w");
7584 if (! f)
7585 exit (1);
7586 if (((long) (sizeof (long))) < 0)
7587 {
7588 long i = longval ();
7589 if (i != ((long) (sizeof (long))))
7590 exit (1);
7591 fprintf (f, "%ld\n", i);
7592 }
7593 else
7594 {
7595 unsigned long i = ulongval ();
7596 if (i != ((long) (sizeof (long))))
7597 exit (1);
7598 fprintf (f, "%lu\n", i);
7599 }
7600 exit (ferror (f) || fclose (f) != 0);
7601
7602 ;
7603 return 0;
7604}
7605_ACEOF
7606rm -f conftest$ac_exeext
7607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608 (eval $ac_link) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 ac_cv_sizeof_long=`cat conftest.val`
7618else
7619 echo "$as_me: program exited with status $ac_status" >&5
7620echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623( exit $ac_status )
7624{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7625echo "$as_me: error: in \`$ac_pwd':" >&2;}
7626{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7627See \`config.log' for more details." >&5
7628echo "$as_me: error: cannot compute sizeof (long), 77
7629See \`config.log' for more details." >&2;}
7630 { (exit 1); exit 1; }; }; }
7631fi
7632rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7633fi
7634fi
7635rm -f conftest.val
7636else
7637 ac_cv_sizeof_long=0
7638fi
7639fi
7640echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7641echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7642cat >>confdefs.h <<_ACEOF
7643#define SIZEOF_LONG $ac_cv_sizeof_long
7644_ACEOF
7645
7646
7647 if test "x${ac_cv_sizeof_long}" = "x8"; then
7648 want64=true
7649 fi
7650 fi
7651 if test x${want64} = xtrue; then
7652 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7653 else
7654 TARGET_OBS='$(ALL_TARGET_OBS)'
7655 fi
7656fi
7657
7658
7659
7660# For other settings, only the main target counts.
7661gdb_sim=
7662gdb_osabi=
7663build_gdbserver=
7664targ=$target; . ${srcdir}/configure.tgt
7665
7666# Fetch the default architecture and default target vector from BFD.
7667targ=$target; . $srcdir/../bfd/config.bfd
7668
7669# We only want the first architecture, so strip off the others if
7670# there is more than one.
7671targ_archs=`echo $targ_archs | sed 's/ .*//'`
7672
7673if test "x$targ_archs" != x; then
7674
7675cat >>confdefs.h <<_ACEOF
7676#define DEFAULT_BFD_ARCH $targ_archs
7677_ACEOF
7678
7679fi
7680if test "x$targ_defvec" != x; then
7681
7682cat >>confdefs.h <<_ACEOF
7683#define DEFAULT_BFD_VEC $targ_defvec
7684_ACEOF
7685
7686fi
7687
7688# The CLI cannot be disabled yet, but may be in the future.
7689
7690# Enable CLI.
7691# Check whether --enable-gdbcli or --disable-gdbcli was given.
7692if test "${enable_gdbcli+set}" = set; then
7693 enableval="$enable_gdbcli"
7694 case $enableval in
7695 yes)
7696 ;;
7697 no)
7698 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7699echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7700 { (exit 1); exit 1; }; } ;;
7701 *)
7702 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7703echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7704 { (exit 1); exit 1; }; } ;;
7705 esac
7706else
7707 enable_gdbcli=yes
7708fi;
7709if test x"$enable_gdbcli" = xyes; then
7710 if test -d $srcdir/cli; then
7711 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7712 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7713 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7714 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7715 fi
7716fi
7717
7718# Enable MI.
7719# Check whether --enable-gdbmi or --disable-gdbmi was given.
7720if test "${enable_gdbmi+set}" = set; then
7721 enableval="$enable_gdbmi"
7722 case $enableval in
7723 yes | no)
7724 ;;
7725 *)
7726 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7727echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7728 { (exit 1); exit 1; }; } ;;
7729 esac
7730else
7731 enable_gdbmi=yes
7732fi;
7733if test x"$enable_gdbmi" = xyes; then
7734 if test -d $srcdir/mi; then
7735 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7736 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7737 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7738 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7739 fi
7740fi
7741
7742# Enable TUI.
7743# Check whether --enable-tui or --disable-tui was given.
7744if test "${enable_tui+set}" = set; then
7745 enableval="$enable_tui"
7746 case $enableval in
7747 yes | no | auto)
7748 ;;
7749 *)
7750 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7751echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7752 { (exit 1); exit 1; }; } ;;
7753 esac
7754else
7755 enable_tui=auto
7756fi;
7757
7758# Enable gdbtk.
7759# Check whether --enable-gdbtk or --disable-gdbtk was given.
7760if test "${enable_gdbtk+set}" = set; then
7761 enableval="$enable_gdbtk"
7762 case $enableval in
7763 yes | no)
7764 ;;
7765 *)
7766 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7767echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7768 { (exit 1); exit 1; }; } ;;
7769 esac
7770else
7771 if test -d $srcdir/gdbtk; then
7772 enable_gdbtk=yes
7773 else
7774 enable_gdbtk=no
7775 fi
7776fi;
7777# We unconditionally disable gdbtk tests on selected platforms.
7778case $host_os in
7779 go32* | windows*)
7780 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7781echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7782 enable_gdbtk=no ;;
7783esac
7784
7785# Libunwind support.
7786
7787# Check whether --with-libunwind or --without-libunwind was given.
7788if test "${with_libunwind+set}" = set; then
7789 withval="$with_libunwind"
7790 case "${withval}" in
7791 yes) enable_libunwind=yes ;;
7792 no) enable_libunwind=no ;;
7793 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7794echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7795 { (exit 1); exit 1; }; } ;;
7796esac
7797else
7798
7799
7800
7801for ac_header in libunwind.h libunwind-ia64.h
7802do
7803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7804if eval "test \"\${$as_ac_Header+set}\" = set"; then
7805 echo "$as_me:$LINENO: checking for $ac_header" >&5
7806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7807if eval "test \"\${$as_ac_Header+set}\" = set"; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809fi
7810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7812else
7813 # Is the header compilable?
7814echo "$as_me:$LINENO: checking $ac_header usability" >&5
7815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7816cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h. */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
7821/* end confdefs.h. */
7822$ac_includes_default
7823#include <$ac_header>
7824_ACEOF
7825rm -f conftest.$ac_objext
7826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7827 (eval $ac_compile) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest.$ac_objext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_header_compiler=yes
7848else
7849 echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852ac_header_compiler=no
7853fi
7854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7856echo "${ECHO_T}$ac_header_compiler" >&6
7857
7858# Is the header present?
7859echo "$as_me:$LINENO: checking $ac_header presence" >&5
7860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7861cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h. */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */
7867#include <$ac_header>
7868_ACEOF
7869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } >/dev/null; then
7877 if test -s conftest.err; then
7878 ac_cpp_err=$ac_c_preproc_warn_flag
7879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7880 else
7881 ac_cpp_err=
7882 fi
7883else
7884 ac_cpp_err=yes
7885fi
7886if test -z "$ac_cpp_err"; then
7887 ac_header_preproc=yes
7888else
7889 echo "$as_me: failed program was:" >&5
7890sed 's/^/| /' conftest.$ac_ext >&5
7891
7892 ac_header_preproc=no
7893fi
7894rm -f conftest.err conftest.$ac_ext
7895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7896echo "${ECHO_T}$ac_header_preproc" >&6
7897
7898# So? What about this header?
7899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900 yes:no: )
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7905 ac_header_preproc=yes
7906 ;;
7907 no:yes:* )
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7915echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7920 (
7921 cat <<\_ASBOX
7922## ------------------------------------------ ##
7923## Report this to the AC_PACKAGE_NAME lists. ##
7924## ------------------------------------------ ##
7925_ASBOX
7926 ) |
7927 sed "s/^/$as_me: WARNING: /" >&2
7928 ;;
7929esac
7930echo "$as_me:$LINENO: checking for $ac_header" >&5
7931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7932if eval "test \"\${$as_ac_Header+set}\" = set"; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935 eval "$as_ac_Header=\$ac_header_preproc"
7936fi
7937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7939
7940fi
7941if test `eval echo '${'$as_ac_Header'}'` = yes; then
7942 cat >>confdefs.h <<_ACEOF
7943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7944_ACEOF
7945
7946fi
7947
7948done
7949
7950 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7951 enable_libunwind=yes;
7952 fi
7953
7954fi;
7955
7956if test x"$enable_libunwind" = xyes; then
7957
7958
7959for ac_header in libunwind.h libunwind-ia64.h
7960do
7961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7962if eval "test \"\${$as_ac_Header+set}\" = set"; then
7963 echo "$as_me:$LINENO: checking for $ac_header" >&5
7964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7965if eval "test \"\${$as_ac_Header+set}\" = set"; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967fi
7968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7970else
7971 # Is the header compilable?
7972echo "$as_me:$LINENO: checking $ac_header usability" >&5
7973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7974cat >conftest.$ac_ext <<_ACEOF
7975/* confdefs.h. */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h. */
7980$ac_includes_default
7981#include <$ac_header>
7982_ACEOF
7983rm -f conftest.$ac_objext
7984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -z "$ac_c_werror_flag"
7993 || test ! -s conftest.err'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; } &&
7999 { ac_try='test -s conftest.$ac_objext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 (eval $ac_try) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 ac_header_compiler=yes
8006else
8007 echo "$as_me: failed program was:" >&5
8008sed 's/^/| /' conftest.$ac_ext >&5
8009
8010ac_header_compiler=no
8011fi
8012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8014echo "${ECHO_T}$ac_header_compiler" >&6
8015
8016# Is the header present?
8017echo "$as_me:$LINENO: checking $ac_header presence" >&5
8018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8019cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8025#include <$ac_header>
8026_ACEOF
8027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null; then
8035 if test -s conftest.err; then
8036 ac_cpp_err=$ac_c_preproc_warn_flag
8037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8038 else
8039 ac_cpp_err=
8040 fi
8041else
8042 ac_cpp_err=yes
8043fi
8044if test -z "$ac_cpp_err"; then
8045 ac_header_preproc=yes
8046else
8047 echo "$as_me: failed program was:" >&5
8048sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 ac_header_preproc=no
8051fi
8052rm -f conftest.err conftest.$ac_ext
8053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054echo "${ECHO_T}$ac_header_preproc" >&6
8055
8056# So? What about this header?
8057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8058 yes:no: )
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8063 ac_header_preproc=yes
8064 ;;
8065 no:yes:* )
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8073echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8078 (
8079 cat <<\_ASBOX
8080## ------------------------------------------ ##
8081## Report this to the AC_PACKAGE_NAME lists. ##
8082## ------------------------------------------ ##
8083_ASBOX
8084 ) |
8085 sed "s/^/$as_me: WARNING: /" >&2
8086 ;;
8087esac
8088echo "$as_me:$LINENO: checking for $ac_header" >&5
8089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8090if eval "test \"\${$as_ac_Header+set}\" = set"; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093 eval "$as_ac_Header=\$ac_header_preproc"
8094fi
8095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097
8098fi
8099if test `eval echo '${'$as_ac_Header'}'` = yes; then
8100 cat >>confdefs.h <<_ACEOF
8101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8102_ACEOF
8103
8104fi
8105
8106done
8107
8108
8109cat >>confdefs.h <<\_ACEOF
8110#define HAVE_LIBUNWIND 1
8111_ACEOF
8112
8113 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8114 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8115 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8116fi
8117
8118# Profiling support.
8119# Check whether --enable-profiling or --disable-profiling was given.
8120if test "${enable_profiling+set}" = set; then
8121 enableval="$enable_profiling"
8122 case $enableval in
8123 yes | no)
8124 ;;
8125 *)
8126 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8127echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8128 { (exit 1); exit 1; }; } ;;
8129 esac
8130else
8131 enable_profiling=no
8132fi;
8133
8134
8135
8136for ac_func in monstartup _mcleanup
8137do
8138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139echo "$as_me:$LINENO: checking for $ac_func" >&5
8140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8141if eval "test \"\${$as_ac_var+set}\" = set"; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 cat >conftest.$ac_ext <<_ACEOF
8145/* confdefs.h. */
8146_ACEOF
8147cat confdefs.h >>conftest.$ac_ext
8148cat >>conftest.$ac_ext <<_ACEOF
8149/* end confdefs.h. */
8150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8152#define $ac_func innocuous_$ac_func
8153
8154/* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char $ac_func (); below.
8156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157 <limits.h> exists even on freestanding compilers. */
8158
8159#ifdef __STDC__
8160# include <limits.h>
8161#else
8162# include <assert.h>
8163#endif
8164
8165#undef $ac_func
8166
8167/* Override any gcc2 internal prototype to avoid an error. */
8168#ifdef __cplusplus
8169extern "C"
8170{
8171#endif
8172/* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8174char $ac_func ();
8175/* The GNU C library defines this for functions which it implements
8176 to always fail with ENOSYS. Some functions are actually named
8177 something starting with __ and the normal name is an alias. */
8178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8179choke me
8180#else
8181char (*f) () = $ac_func;
8182#endif
8183#ifdef __cplusplus
8184}
8185#endif
8186
8187int
8188main ()
8189{
8190return f != $ac_func;
8191 ;
8192 return 0;
8193}
8194_ACEOF
8195rm -f conftest.$ac_objext conftest$ac_exeext
8196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197 (eval $ac_link) 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag"
8205 || test ! -s conftest.err'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; } &&
8211 { ac_try='test -s conftest$ac_exeext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 eval "$as_ac_var=yes"
8218else
8219 echo "$as_me: failed program was:" >&5
8220sed 's/^/| /' conftest.$ac_ext >&5
8221
8222eval "$as_ac_var=no"
8223fi
8224rm -f conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8226fi
8227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8229if test `eval echo '${'$as_ac_var'}'` = yes; then
8230 cat >>confdefs.h <<_ACEOF
8231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8232_ACEOF
8233
8234fi
8235done
8236
8237echo "$as_me:$LINENO: checking for _etext" >&5
8238echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8239if test "${ac_cv_var__etext+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else
8242 cat >conftest.$ac_ext <<_ACEOF
8243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
8248#include <stdlib.h>
8249extern char _etext;
8250
8251int
8252main ()
8253{
8254free (&_etext);
8255 ;
8256 return 0;
8257}
8258_ACEOF
8259rm -f conftest.$ac_objext conftest$ac_exeext
8260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261 (eval $ac_link) 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag"
8269 || test ! -s conftest.err'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest$ac_exeext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 (eval $ac_try) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 ac_cv_var__etext=yes
8282else
8283 echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286ac_cv_var__etext=no
8287fi
8288rm -f conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8290fi
8291echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8292echo "${ECHO_T}$ac_cv_var__etext" >&6
8293if test $ac_cv_var__etext = yes; then
8294
8295cat >>confdefs.h <<\_ACEOF
8296#define HAVE__ETEXT 1
8297_ACEOF
8298
8299fi
8300echo "$as_me:$LINENO: checking for etext" >&5
8301echo $ECHO_N "checking for etext... $ECHO_C" >&6
8302if test "${ac_cv_var_etext+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304else
8305 cat >conftest.$ac_ext <<_ACEOF
8306/* confdefs.h. */
8307_ACEOF
8308cat confdefs.h >>conftest.$ac_ext
8309cat >>conftest.$ac_ext <<_ACEOF
8310/* end confdefs.h. */
8311#include <stdlib.h>
8312extern char etext;
8313
8314int
8315main ()
8316{
8317free (&etext);
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_var_etext=yes
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
8349ac_cv_var_etext=no
8350fi
8351rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353fi
8354echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8355echo "${ECHO_T}$ac_cv_var_etext" >&6
8356if test $ac_cv_var_etext = yes; then
8357
8358cat >>confdefs.h <<\_ACEOF
8359#define HAVE_ETEXT 1
8360_ACEOF
8361
8362fi
8363if test "$enable_profiling" = yes ; then
8364 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8365 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8366echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8367 { (exit 1); exit 1; }; }
8368 fi
8369 PROFILE_CFLAGS=-pg
8370 OLD_CFLAGS="$CFLAGS"
8371 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8372
8373 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8374echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8375if test "${ac_cv_cc_supports_pg+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 cat >conftest.$ac_ext <<_ACEOF
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
8384
8385int
8386main ()
8387{
8388int x;
8389 ;
8390 return 0;
8391}
8392_ACEOF
8393rm -f conftest.$ac_objext
8394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag"
8403 || test ! -s conftest.err'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_cv_cc_supports_pg=yes
8416else
8417 echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420ac_cv_cc_supports_pg=no
8421fi
8422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8423fi
8424echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8425echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8426
8427 if test $ac_cv_cc_supports_pg = no; then
8428 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8429echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8430 { (exit 1); exit 1; }; }
8431 fi
8432
8433 CFLAGS="$OLD_CFLAGS"
8434fi
8435
8436
8437
8438# Check whether --with-pkgversion or --without-pkgversion was given.
8439if test "${with_pkgversion+set}" = set; then
8440 withval="$with_pkgversion"
8441 case "$withval" in
8442 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8443echo "$as_me: error: package version not specified" >&2;}
8444 { (exit 1); exit 1; }; } ;;
8445 no) PKGVERSION= ;;
8446 *) PKGVERSION="($withval) " ;;
8447 esac
8448else
8449 PKGVERSION="(GDB) "
8450
8451fi;
8452
8453
8454
8455
8456# Check whether --with-bugurl or --without-bugurl was given.
8457if test "${with_bugurl+set}" = set; then
8458 withval="$with_bugurl"
8459 case "$withval" in
8460 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8461echo "$as_me: error: bug URL not specified" >&2;}
8462 { (exit 1); exit 1; }; } ;;
8463 no) BUGURL=
8464 ;;
8465 *) BUGURL="$withval"
8466 ;;
8467 esac
8468else
8469 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8470
8471fi;
8472 case ${BUGURL} in
8473 "")
8474 REPORT_BUGS_TO=
8475 REPORT_BUGS_TEXI=
8476 ;;
8477 *)
8478 REPORT_BUGS_TO="<$BUGURL>"
8479 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8480 ;;
8481 esac;
8482
8483
8484
8485
8486cat >>confdefs.h <<_ACEOF
8487#define PKGVERSION "$PKGVERSION"
8488_ACEOF
8489
8490
8491cat >>confdefs.h <<_ACEOF
8492#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8493_ACEOF
8494
8495
8496# --------------------- #
8497# Checks for programs. #
8498# --------------------- #
8499
8500for ac_prog in gawk mawk nawk awk
8501do
8502 # Extract the first word of "$ac_prog", so it can be a program name with args.
8503set dummy $ac_prog; ac_word=$2
8504echo "$as_me:$LINENO: checking for $ac_word" >&5
8505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8506if test "${ac_cv_prog_AWK+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509 if test -n "$AWK"; then
8510 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8511else
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_AWK="$ac_prog"
8520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 break 2
8522 fi
8523done
8524done
8525
8526fi
8527fi
8528AWK=$ac_cv_prog_AWK
8529if test -n "$AWK"; then
8530 echo "$as_me:$LINENO: result: $AWK" >&5
8531echo "${ECHO_T}$AWK" >&6
8532else
8533 echo "$as_me:$LINENO: result: no" >&5
8534echo "${ECHO_T}no" >&6
8535fi
8536
8537 test -n "$AWK" && break
8538done
8539
8540# Find a good install program. We prefer a C program (faster),
8541# so one script is as good as another. But avoid the broken or
8542# incompatible versions:
8543# SysV /etc/install, /usr/sbin/install
8544# SunOS /usr/etc/install
8545# IRIX /sbin/install
8546# AIX /bin/install
8547# AmigaOS /C/install, which installs bootblocks on floppy discs
8548# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8549# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8551# OS/2's system install, which has a completely different semantic
8552# ./install, which can be erroneously created by make from ./install.sh.
8553# Reject install programs that cannot install multiple files.
8554echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8555echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8556if test -z "$INSTALL"; then
8557if test "${ac_cv_path_install+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 # Account for people who put trailing slashes in PATH elements.
8566case $as_dir/ in
8567 ./ | .// | /cC/* | \
8568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8570 /usr/ucb/* ) ;;
8571 *)
8572 # OSF1 and SCO ODT 3.0 have their own names for install.
8573 # Don't use installbsd from OSF since it installs stuff as root
8574 # by default.
8575 for ac_prog in ginstall scoinst install; do
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8578 if test $ac_prog = install &&
8579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8580 # AIX install. It has an incompatible calling convention.
8581 :
8582 elif test $ac_prog = install &&
8583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8584 # program-specific install script used by HP pwplus--don't use.
8585 :
8586 else
8587 rm -rf conftest.one conftest.two conftest.dir
8588 echo one > conftest.one
8589 echo two > conftest.two
8590 mkdir conftest.dir
8591 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8592 test -s conftest.one && test -s conftest.two &&
8593 test -s conftest.dir/conftest.one &&
8594 test -s conftest.dir/conftest.two
8595 then
8596 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8597 break 3
8598 fi
8599 fi
8600 fi
8601 done
8602 done
8603 ;;
8604esac
8605done
8606
8607rm -rf conftest.one conftest.two conftest.dir
8608
8609fi
8610 if test "${ac_cv_path_install+set}" = set; then
8611 INSTALL=$ac_cv_path_install
8612 else
8613 # As a last resort, use the slow shell script. Don't cache a
8614 # value for INSTALL within a source directory, because that will
8615 # break other packages using the cache if that directory is
8616 # removed, or if the value is a relative name.
8617 INSTALL=$ac_install_sh
8618 fi
8619fi
8620echo "$as_me:$LINENO: result: $INSTALL" >&5
8621echo "${ECHO_T}$INSTALL" >&6
8622
8623# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8624# It thinks the first close brace ends the variable substitution.
8625test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8626
8627test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8628
8629test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8630
8631echo "$as_me:$LINENO: checking whether ln -s works" >&5
8632echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8633LN_S=$as_ln_s
8634if test "$LN_S" = "ln -s"; then
8635 echo "$as_me:$LINENO: result: yes" >&5
8636echo "${ECHO_T}yes" >&6
8637else
8638 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8639echo "${ECHO_T}no, using $LN_S" >&6
8640fi
8641
8642if test -n "$ac_tool_prefix"; then
8643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8644set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8645echo "$as_me:$LINENO: checking for $ac_word" >&5
8646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8647if test "${ac_cv_prog_RANLIB+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649else
8650 if test -n "$RANLIB"; then
8651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8652else
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664done
8665done
8666
8667fi
8668fi
8669RANLIB=$ac_cv_prog_RANLIB
8670if test -n "$RANLIB"; then
8671 echo "$as_me:$LINENO: result: $RANLIB" >&5
8672echo "${ECHO_T}$RANLIB" >&6
8673else
8674 echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
8676fi
8677
8678fi
8679if test -z "$ac_cv_prog_RANLIB"; then
8680 ac_ct_RANLIB=$RANLIB
8681 # Extract the first word of "ranlib", so it can be a program name with args.
8682set dummy ranlib; ac_word=$2
8683echo "$as_me:$LINENO: checking for $ac_word" >&5
8684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8685if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687else
8688 if test -n "$ac_ct_RANLIB"; then
8689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8690else
8691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692for as_dir in $PATH
8693do
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_ac_ct_RANLIB="ranlib"
8699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8701 fi
8702done
8703done
8704
8705 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8706fi
8707fi
8708ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8709if test -n "$ac_ct_RANLIB"; then
8710 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8711echo "${ECHO_T}$ac_ct_RANLIB" >&6
8712else
8713 echo "$as_me:$LINENO: result: no" >&5
8714echo "${ECHO_T}no" >&6
8715fi
8716
8717 RANLIB=$ac_ct_RANLIB
8718else
8719 RANLIB="$ac_cv_prog_RANLIB"
8720fi
8721
8722for ac_prog in 'bison -y' byacc
8723do
8724 # Extract the first word of "$ac_prog", so it can be a program name with args.
8725set dummy $ac_prog; ac_word=$2
8726echo "$as_me:$LINENO: checking for $ac_word" >&5
8727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8728if test "${ac_cv_prog_YACC+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730else
8731 if test -n "$YACC"; then
8732 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8733else
8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735for as_dir in $PATH
8736do
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_YACC="$ac_prog"
8742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8744 fi
8745done
8746done
8747
8748fi
8749fi
8750YACC=$ac_cv_prog_YACC
8751if test -n "$YACC"; then
8752 echo "$as_me:$LINENO: result: $YACC" >&5
8753echo "${ECHO_T}$YACC" >&6
8754else
8755 echo "$as_me:$LINENO: result: no" >&5
8756echo "${ECHO_T}no" >&6
8757fi
8758
8759 test -n "$YACC" && break
8760done
8761test -n "$YACC" || YACC="yacc"
8762
8763
8764if test -n "$ac_tool_prefix"; then
8765 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8766set dummy ${ac_tool_prefix}ar; ac_word=$2
8767echo "$as_me:$LINENO: checking for $ac_word" >&5
8768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8769if test "${ac_cv_prog_AR+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771else
8772 if test -n "$AR"; then
8773 ac_cv_prog_AR="$AR" # Let the user override the test.
8774else
8775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776for as_dir in $PATH
8777do
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782 ac_cv_prog_AR="${ac_tool_prefix}ar"
8783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 break 2
8785 fi
8786done
8787done
8788
8789fi
8790fi
8791AR=$ac_cv_prog_AR
8792if test -n "$AR"; then
8793 echo "$as_me:$LINENO: result: $AR" >&5
8794echo "${ECHO_T}$AR" >&6
8795else
8796 echo "$as_me:$LINENO: result: no" >&5
8797echo "${ECHO_T}no" >&6
8798fi
8799
8800fi
8801if test -z "$ac_cv_prog_AR"; then
8802 ac_ct_AR=$AR
8803 # Extract the first word of "ar", so it can be a program name with args.
8804set dummy ar; ac_word=$2
8805echo "$as_me:$LINENO: checking for $ac_word" >&5
8806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8807if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809else
8810 if test -n "$ac_ct_AR"; then
8811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8812else
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820 ac_cv_prog_ac_ct_AR="ar"
8821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824done
8825done
8826
8827fi
8828fi
8829ac_ct_AR=$ac_cv_prog_ac_ct_AR
8830if test -n "$ac_ct_AR"; then
8831 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8832echo "${ECHO_T}$ac_ct_AR" >&6
8833else
8834 echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
8836fi
8837
8838 AR=$ac_ct_AR
8839else
8840 AR="$ac_cv_prog_AR"
8841fi
8842
8843if test -n "$ac_tool_prefix"; then
8844 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8845set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8846echo "$as_me:$LINENO: checking for $ac_word" >&5
8847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8848if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850else
8851 if test -n "$DLLTOOL"; then
8852 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8853else
8854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855for as_dir in $PATH
8856do
8857 IFS=$as_save_IFS
8858 test -z "$as_dir" && as_dir=.
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8861 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8863 break 2
8864 fi
8865done
8866done
8867
8868fi
8869fi
8870DLLTOOL=$ac_cv_prog_DLLTOOL
8871if test -n "$DLLTOOL"; then
8872 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8873echo "${ECHO_T}$DLLTOOL" >&6
8874else
8875 echo "$as_me:$LINENO: result: no" >&5
8876echo "${ECHO_T}no" >&6
8877fi
8878
8879fi
8880if test -z "$ac_cv_prog_DLLTOOL"; then
8881 ac_ct_DLLTOOL=$DLLTOOL
8882 # Extract the first word of "dlltool", so it can be a program name with args.
8883set dummy dlltool; ac_word=$2
8884echo "$as_me:$LINENO: checking for $ac_word" >&5
8885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8886if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888else
8889 if test -n "$ac_ct_DLLTOOL"; then
8890 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8891else
8892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893for as_dir in $PATH
8894do
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8899 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 break 2
8902 fi
8903done
8904done
8905
8906fi
8907fi
8908ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8909if test -n "$ac_ct_DLLTOOL"; then
8910 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8911echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8912else
8913 echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
8915fi
8916
8917 DLLTOOL=$ac_ct_DLLTOOL
8918else
8919 DLLTOOL="$ac_cv_prog_DLLTOOL"
8920fi
8921
8922if test -n "$ac_tool_prefix"; then
8923 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8924set dummy ${ac_tool_prefix}windres; ac_word=$2
8925echo "$as_me:$LINENO: checking for $ac_word" >&5
8926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927if test "${ac_cv_prog_WINDRES+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929else
8930 if test -n "$WINDRES"; then
8931 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8932else
8933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934for as_dir in $PATH
8935do
8936 IFS=$as_save_IFS
8937 test -z "$as_dir" && as_dir=.
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8940 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 break 2
8943 fi
8944done
8945done
8946
8947fi
8948fi
8949WINDRES=$ac_cv_prog_WINDRES
8950if test -n "$WINDRES"; then
8951 echo "$as_me:$LINENO: result: $WINDRES" >&5
8952echo "${ECHO_T}$WINDRES" >&6
8953else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956fi
8957
8958fi
8959if test -z "$ac_cv_prog_WINDRES"; then
8960 ac_ct_WINDRES=$WINDRES
8961 # Extract the first word of "windres", so it can be a program name with args.
8962set dummy windres; ac_word=$2
8963echo "$as_me:$LINENO: checking for $ac_word" >&5
8964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8965if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967else
8968 if test -n "$ac_ct_WINDRES"; then
8969 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8970else
8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972for as_dir in $PATH
8973do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978 ac_cv_prog_ac_ct_WINDRES="windres"
8979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8981 fi
8982done
8983done
8984
8985fi
8986fi
8987ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8988if test -n "$ac_ct_WINDRES"; then
8989 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
8990echo "${ECHO_T}$ac_ct_WINDRES" >&6
8991else
8992 echo "$as_me:$LINENO: result: no" >&5
8993echo "${ECHO_T}no" >&6
8994fi
8995
8996 WINDRES=$ac_ct_WINDRES
8997else
8998 WINDRES="$ac_cv_prog_WINDRES"
8999fi
9000
9001
9002# Needed for GNU/Hurd.
9003if test -n "$ac_tool_prefix"; then
9004 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9005set dummy ${ac_tool_prefix}mig; ac_word=$2
9006echo "$as_me:$LINENO: checking for $ac_word" >&5
9007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9008if test "${ac_cv_prog_MIG+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010else
9011 if test -n "$MIG"; then
9012 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9013else
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 break 2
9024 fi
9025done
9026done
9027
9028fi
9029fi
9030MIG=$ac_cv_prog_MIG
9031if test -n "$MIG"; then
9032 echo "$as_me:$LINENO: result: $MIG" >&5
9033echo "${ECHO_T}$MIG" >&6
9034else
9035 echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
9037fi
9038
9039fi
9040if test -z "$ac_cv_prog_MIG"; then
9041 ac_ct_MIG=$MIG
9042 # Extract the first word of "mig", so it can be a program name with args.
9043set dummy mig; ac_word=$2
9044echo "$as_me:$LINENO: checking for $ac_word" >&5
9045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9046if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048else
9049 if test -n "$ac_ct_MIG"; then
9050 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9051else
9052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in $PATH
9054do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_ac_ct_MIG="mig"
9060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063done
9064done
9065
9066fi
9067fi
9068ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9069if test -n "$ac_ct_MIG"; then
9070 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9071echo "${ECHO_T}$ac_ct_MIG" >&6
9072else
9073 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6
9075fi
9076
9077 MIG=$ac_ct_MIG
9078else
9079 MIG="$ac_cv_prog_MIG"
9080fi
9081
9082
9083# ---------------------- #
9084# Checks for libraries. #
9085# ---------------------- #
9086
9087# We might need to link with -lm; most simulators need it.
9088
9089echo "$as_me:$LINENO: checking for main in -lm" >&5
9090echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9091if test "${ac_cv_lib_m_main+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093else
9094 ac_check_lib_save_LIBS=$LIBS
9095LIBS="-lm $LIBS"
9096cat >conftest.$ac_ext <<_ACEOF
9097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
9102
9103
9104int
9105main ()
9106{
9107main ();
9108 ;
9109 return 0;
9110}
9111_ACEOF
9112rm -f conftest.$ac_objext conftest$ac_exeext
9113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag"
9122 || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try='test -s conftest$ac_exeext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_cv_lib_m_main=yes
9135else
9136 echo "$as_me: failed program was:" >&5
9137sed 's/^/| /' conftest.$ac_ext >&5
9138
9139ac_cv_lib_m_main=no
9140fi
9141rm -f conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143LIBS=$ac_check_lib_save_LIBS
9144fi
9145echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9146echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9147if test $ac_cv_lib_m_main = yes; then
9148 cat >>confdefs.h <<_ACEOF
9149#define HAVE_LIBM 1
9150_ACEOF
9151
9152 LIBS="-lm $LIBS"
9153
9154fi
9155
9156
9157# We need to link with -lw to get `wctype' on Solaris before Solaris
9158# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9159# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9160# is known to have this problem). Therefore we avoid libw if we can.
9161echo "$as_me:$LINENO: checking for wctype" >&5
9162echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9163if test "${ac_cv_func_wctype+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166 cat >conftest.$ac_ext <<_ACEOF
9167/* confdefs.h. */
9168_ACEOF
9169cat confdefs.h >>conftest.$ac_ext
9170cat >>conftest.$ac_ext <<_ACEOF
9171/* end confdefs.h. */
9172/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9174#define wctype innocuous_wctype
9175
9176/* System header to define __stub macros and hopefully few prototypes,
9177 which can conflict with char wctype (); below.
9178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9179 <limits.h> exists even on freestanding compilers. */
9180
9181#ifdef __STDC__
9182# include <limits.h>
9183#else
9184# include <assert.h>
9185#endif
9186
9187#undef wctype
9188
9189/* Override any gcc2 internal prototype to avoid an error. */
9190#ifdef __cplusplus
9191extern "C"
9192{
9193#endif
9194/* We use char because int might match the return type of a gcc2
9195 builtin and then its argument prototype would still apply. */
9196char wctype ();
9197/* The GNU C library defines this for functions which it implements
9198 to always fail with ENOSYS. Some functions are actually named
9199 something starting with __ and the normal name is an alias. */
9200#if defined (__stub_wctype) || defined (__stub___wctype)
9201choke me
9202#else
9203char (*f) () = wctype;
9204#endif
9205#ifdef __cplusplus
9206}
9207#endif
9208
9209int
9210main ()
9211{
9212return f != wctype;
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217rm -f conftest.$ac_objext conftest$ac_exeext
9218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest$ac_exeext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_func_wctype=yes
9240else
9241 echo "$as_me: failed program was:" >&5
9242sed 's/^/| /' conftest.$ac_ext >&5
9243
9244ac_cv_func_wctype=no
9245fi
9246rm -f conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248fi
9249echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9250echo "${ECHO_T}$ac_cv_func_wctype" >&6
9251if test $ac_cv_func_wctype = yes; then
9252 :
9253else
9254
9255echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9256echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9257if test "${ac_cv_lib_w_wctype+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260 ac_check_lib_save_LIBS=$LIBS
9261LIBS="-lw $LIBS"
9262cat >conftest.$ac_ext <<_ACEOF
9263/* confdefs.h. */
9264_ACEOF
9265cat confdefs.h >>conftest.$ac_ext
9266cat >>conftest.$ac_ext <<_ACEOF
9267/* end confdefs.h. */
9268
9269/* Override any gcc2 internal prototype to avoid an error. */
9270#ifdef __cplusplus
9271extern "C"
9272#endif
9273/* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */
9275char wctype ();
9276int
9277main ()
9278{
9279wctype ();
9280 ;
9281 return 0;
9282}
9283_ACEOF
9284rm -f conftest.$ac_objext conftest$ac_exeext
9285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_lib_w_wctype=yes
9307else
9308 echo "$as_me: failed program was:" >&5
9309sed 's/^/| /' conftest.$ac_ext >&5
9310
9311ac_cv_lib_w_wctype=no
9312fi
9313rm -f conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315LIBS=$ac_check_lib_save_LIBS
9316fi
9317echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9318echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9319if test $ac_cv_lib_w_wctype = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321#define HAVE_LIBW 1
9322_ACEOF
9323
9324 LIBS="-lw $LIBS"
9325
9326fi
9327
9328fi
9329
9330
9331# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9332echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9333echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9334if test "${ac_cv_search_gethostbyname+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337 ac_func_search_save_LIBS=$LIBS
9338ac_cv_search_gethostbyname=no
9339cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h. */
9345
9346/* Override any gcc2 internal prototype to avoid an error. */
9347#ifdef __cplusplus
9348extern "C"
9349#endif
9350/* We use char because int might match the return type of a gcc2
9351 builtin and then its argument prototype would still apply. */
9352char gethostbyname ();
9353int
9354main ()
9355{
9356gethostbyname ();
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -z "$ac_c_werror_flag"
9371 || test ! -s conftest.err'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; } &&
9377 { ac_try='test -s conftest$ac_exeext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_cv_search_gethostbyname="none required"
9384else
9385 echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388fi
9389rm -f conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391if test "$ac_cv_search_gethostbyname" = no; then
9392 for ac_lib in nsl; do
9393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9394 cat >conftest.$ac_ext <<_ACEOF
9395/* confdefs.h. */
9396_ACEOF
9397cat confdefs.h >>conftest.$ac_ext
9398cat >>conftest.$ac_ext <<_ACEOF
9399/* end confdefs.h. */
9400
9401/* Override any gcc2 internal prototype to avoid an error. */
9402#ifdef __cplusplus
9403extern "C"
9404#endif
9405/* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9407char gethostbyname ();
9408int
9409main ()
9410{
9411gethostbyname ();
9412 ;
9413 return 0;
9414}
9415_ACEOF
9416rm -f conftest.$ac_objext conftest$ac_exeext
9417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9419 ac_status=$?
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_search_gethostbyname="-l$ac_lib"
9439break
9440else
9441 echo "$as_me: failed program was:" >&5
9442sed 's/^/| /' conftest.$ac_ext >&5
9443
9444fi
9445rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 done
9448fi
9449LIBS=$ac_func_search_save_LIBS
9450fi
9451echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9452echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9453if test "$ac_cv_search_gethostbyname" != no; then
9454 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9455
9456fi
9457
9458
9459# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9460echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9461echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9462if test "${ac_cv_search_socketpair+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464else
9465 ac_func_search_save_LIBS=$LIBS
9466ac_cv_search_socketpair=no
9467cat >conftest.$ac_ext <<_ACEOF
9468/* confdefs.h. */
9469_ACEOF
9470cat confdefs.h >>conftest.$ac_ext
9471cat >>conftest.$ac_ext <<_ACEOF
9472/* end confdefs.h. */
9473
9474/* Override any gcc2 internal prototype to avoid an error. */
9475#ifdef __cplusplus
9476extern "C"
9477#endif
9478/* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9480char socketpair ();
9481int
9482main ()
9483{
9484socketpair ();
9485 ;
9486 return 0;
9487}
9488_ACEOF
9489rm -f conftest.$ac_objext conftest$ac_exeext
9490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>conftest.er1
9492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag"
9499 || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 ac_cv_search_socketpair="none required"
9512else
9513 echo "$as_me: failed program was:" >&5
9514sed 's/^/| /' conftest.$ac_ext >&5
9515
9516fi
9517rm -f conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519if test "$ac_cv_search_socketpair" = no; then
9520 for ac_lib in socket; do
9521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9522 cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
9528
9529/* Override any gcc2 internal prototype to avoid an error. */
9530#ifdef __cplusplus
9531extern "C"
9532#endif
9533/* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535char socketpair ();
9536int
9537main ()
9538{
9539socketpair ();
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext conftest$ac_exeext
9545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -z "$ac_c_werror_flag"
9554 || test ! -s conftest.err'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; } &&
9560 { ac_try='test -s conftest$ac_exeext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_search_socketpair="-l$ac_lib"
9567break
9568else
9569 echo "$as_me: failed program was:" >&5
9570sed 's/^/| /' conftest.$ac_ext >&5
9571
9572fi
9573rm -f conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 done
9576fi
9577LIBS=$ac_func_search_save_LIBS
9578fi
9579echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9580echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9581if test "$ac_cv_search_socketpair" != no; then
9582 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9583
9584fi
9585
9586
9587# Link in zlib if we can. This allows us to read compressed debug sections.
9588echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9589echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9590if test "${ac_cv_search_zlibVersion+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593 ac_func_search_save_LIBS=$LIBS
9594ac_cv_search_zlibVersion=no
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601
9602/* Override any gcc2 internal prototype to avoid an error. */
9603#ifdef __cplusplus
9604extern "C"
9605#endif
9606/* We use char because int might match the return type of a gcc2
9607 builtin and then its argument prototype would still apply. */
9608char zlibVersion ();
9609int
9610main ()
9611{
9612zlibVersion ();
9613 ;
9614 return 0;
9615}
9616_ACEOF
9617rm -f conftest.$ac_objext conftest$ac_exeext
9618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9619 (eval $ac_link) 2>conftest.er1
9620 ac_status=$?
9621 grep -v '^ *+' conftest.er1 >conftest.err
9622 rm -f conftest.er1
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -z "$ac_c_werror_flag"
9627 || test ! -s conftest.err'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest$ac_exeext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 ac_cv_search_zlibVersion="none required"
9640else
9641 echo "$as_me: failed program was:" >&5
9642sed 's/^/| /' conftest.$ac_ext >&5
9643
9644fi
9645rm -f conftest.err conftest.$ac_objext \
9646 conftest$ac_exeext conftest.$ac_ext
9647if test "$ac_cv_search_zlibVersion" = no; then
9648 for ac_lib in z; do
9649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9650 cat >conftest.$ac_ext <<_ACEOF
9651/* confdefs.h. */
9652_ACEOF
9653cat confdefs.h >>conftest.$ac_ext
9654cat >>conftest.$ac_ext <<_ACEOF
9655/* end confdefs.h. */
9656
9657/* Override any gcc2 internal prototype to avoid an error. */
9658#ifdef __cplusplus
9659extern "C"
9660#endif
9661/* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9663char zlibVersion ();
9664int
9665main ()
9666{
9667zlibVersion ();
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext conftest$ac_exeext
9673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9674 (eval $ac_link) 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag"
9682 || test ! -s conftest.err'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; } &&
9688 { ac_try='test -s conftest$ac_exeext'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 ac_cv_search_zlibVersion="-l$ac_lib"
9695break
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700fi
9701rm -f conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 done
9704fi
9705LIBS=$ac_func_search_save_LIBS
9706fi
9707echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9708echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9709if test "$ac_cv_search_zlibVersion" != no; then
9710 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9711
9712for ac_header in zlib.h
9713do
9714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715if eval "test \"\${$as_ac_Header+set}\" = set"; then
9716 echo "$as_me:$LINENO: checking for $ac_header" >&5
9717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9718if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720fi
9721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723else
9724 # Is the header compilable?
9725echo "$as_me:$LINENO: checking $ac_header usability" >&5
9726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9727cat >conftest.$ac_ext <<_ACEOF
9728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
9733$ac_includes_default
9734#include <$ac_header>
9735_ACEOF
9736rm -f conftest.$ac_objext
9737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -z "$ac_c_werror_flag"
9746 || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_header_compiler=yes
9759else
9760 echo "$as_me: failed program was:" >&5
9761sed 's/^/| /' conftest.$ac_ext >&5
9762
9763ac_header_compiler=no
9764fi
9765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767echo "${ECHO_T}$ac_header_compiler" >&6
9768
9769# Is the header present?
9770echo "$as_me:$LINENO: checking $ac_header presence" >&5
9771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9772cat >conftest.$ac_ext <<_ACEOF
9773/* confdefs.h. */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h. */
9778#include <$ac_header>
9779_ACEOF
9780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } >/dev/null; then
9788 if test -s conftest.err; then
9789 ac_cpp_err=$ac_c_preproc_warn_flag
9790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9791 else
9792 ac_cpp_err=
9793 fi
9794else
9795 ac_cpp_err=yes
9796fi
9797if test -z "$ac_cpp_err"; then
9798 ac_header_preproc=yes
9799else
9800 echo "$as_me: failed program was:" >&5
9801sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_header_preproc=no
9804fi
9805rm -f conftest.err conftest.$ac_ext
9806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9807echo "${ECHO_T}$ac_header_preproc" >&6
9808
9809# So? What about this header?
9810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9811 yes:no: )
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9816 ac_header_preproc=yes
9817 ;;
9818 no:yes:* )
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9826echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9831 (
9832 cat <<\_ASBOX
9833## ------------------------------------------ ##
9834## Report this to the AC_PACKAGE_NAME lists. ##
9835## ------------------------------------------ ##
9836_ASBOX
9837 ) |
9838 sed "s/^/$as_me: WARNING: /" >&2
9839 ;;
9840esac
9841echo "$as_me:$LINENO: checking for $ac_header" >&5
9842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9843if eval "test \"\${$as_ac_Header+set}\" = set"; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845else
9846 eval "$as_ac_Header=\$ac_header_preproc"
9847fi
9848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9850
9851fi
9852if test `eval echo '${'$as_ac_Header'}'` = yes; then
9853 cat >>confdefs.h <<_ACEOF
9854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9855_ACEOF
9856
9857fi
9858
9859done
9860
9861fi
9862
9863
9864# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9865echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9866echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9867if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870 ac_func_search_save_LIBS=$LIBS
9871ac_cv_search_dlgetmodinfo=no
9872cat >conftest.$ac_ext <<_ACEOF
9873/* confdefs.h. */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h. */
9878
9879/* Override any gcc2 internal prototype to avoid an error. */
9880#ifdef __cplusplus
9881extern "C"
9882#endif
9883/* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9885char dlgetmodinfo ();
9886int
9887main ()
9888{
9889dlgetmodinfo ();
9890 ;
9891 return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext conftest$ac_exeext
9895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_search_dlgetmodinfo="none required"
9917else
9918 echo "$as_me: failed program was:" >&5
9919sed 's/^/| /' conftest.$ac_ext >&5
9920
9921fi
9922rm -f conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924if test "$ac_cv_search_dlgetmodinfo" = no; then
9925 for ac_lib in dl xpdl; do
9926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928/* confdefs.h. */
9929_ACEOF
9930cat confdefs.h >>conftest.$ac_ext
9931cat >>conftest.$ac_ext <<_ACEOF
9932/* end confdefs.h. */
9933
9934/* Override any gcc2 internal prototype to avoid an error. */
9935#ifdef __cplusplus
9936extern "C"
9937#endif
9938/* We use char because int might match the return type of a gcc2
9939 builtin and then its argument prototype would still apply. */
9940char dlgetmodinfo ();
9941int
9942main ()
9943{
9944dlgetmodinfo ();
9945 ;
9946 return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext conftest$ac_exeext
9950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_cv_search_dlgetmodinfo="-l$ac_lib"
9972break
9973else
9974 echo "$as_me: failed program was:" >&5
9975sed 's/^/| /' conftest.$ac_ext >&5
9976
9977fi
9978rm -f conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 done
9981fi
9982LIBS=$ac_func_search_save_LIBS
9983fi
9984echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
9985echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
9986if test "$ac_cv_search_dlgetmodinfo" != no; then
9987 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
9988
9989fi
9990
9991
9992
9993
9994
9995# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9996if test "${with_libiconv_prefix+set}" = set; then
9997 withval="$with_libiconv_prefix"
9998
9999 for dir in `echo "$withval" | tr : ' '`; do
10000 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10001 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; LDFLAGS="$LDFLAGS -L$dir/lib"; fi
10002 done
10003
10004fi;
10005
10006 BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10007 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10008
10009 echo "$as_me:$LINENO: checking for iconv" >&5
10010echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10011if test "${am_cv_func_iconv+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014
10015 am_cv_func_iconv="no, consider installing GNU libiconv"
10016 am_cv_lib_iconv=no
10017 am_cv_use_build_libiconv=no
10018 cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h. */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h. */
10024#include <stdlib.h>
10025#include <iconv.h>
10026int
10027main ()
10028{
10029iconv_t cd = iconv_open("","");
10030 iconv(cd,NULL,NULL,NULL,NULL);
10031 iconv_close(cd);
10032 ;
10033 return 0;
10034}
10035_ACEOF
10036rm -f conftest.$ac_objext conftest$ac_exeext
10037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 am_cv_func_iconv=yes
10059else
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
10063fi
10064rm -f conftest.err conftest.$ac_objext \
10065 conftest$ac_exeext conftest.$ac_ext
10066 if test "$am_cv_func_iconv" != yes; then
10067 am_save_LIBS="$LIBS"
10068 LIBS="$LIBS -liconv"
10069 cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h. */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h. */
10075#include <stdlib.h>
10076#include <iconv.h>
10077int
10078main ()
10079{
10080iconv_t cd = iconv_open("","");
10081 iconv(cd,NULL,NULL,NULL,NULL);
10082 iconv_close(cd);
10083 ;
10084 return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 am_cv_lib_iconv=yes
10110 am_cv_func_iconv=yes
10111else
10112 echo "$as_me: failed program was:" >&5
10113sed 's/^/| /' conftest.$ac_ext >&5
10114
10115fi
10116rm -f conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS="$am_save_LIBS"
10119 fi
10120 # Look for libiconv in the build tree.
10121 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10122 am_save_LIBS="$LIBS"
10123 am_save_CPPFLAGS="$CPPFLAGS"
10124 LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10125 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10126 cat >conftest.$ac_ext <<_ACEOF
10127/* confdefs.h. */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h. */
10132#include <stdlib.h>
10133#include <iconv.h>
10134int
10135main ()
10136{
10137iconv_t cd = iconv_open("","");
10138 iconv(cd,NULL,NULL,NULL,NULL);
10139 iconv_close(cd);
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146 (eval $ac_link) 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
10153 { ac_try='test -z "$ac_c_werror_flag"
10154 || test ! -s conftest.err'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try='test -s conftest$ac_exeext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 am_cv_lib_iconv=yes
10167 am_cv_func_iconv=yes
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172fi
10173rm -f conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 LIBS="$am_save_LIBS"
10176 if test "$am_cv_func_iconv" = "yes"; then
10177 am_cv_use_build_libiconv=yes
10178 else
10179 CPPFLAGS="$am_save_CPPFLAGS"
10180 fi
10181 fi
10182
10183fi
10184echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10185echo "${ECHO_T}$am_cv_func_iconv" >&6
10186 if test "$am_cv_func_iconv" = yes; then
10187
10188cat >>confdefs.h <<\_ACEOF
10189#define HAVE_ICONV 1
10190_ACEOF
10191
10192 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10193echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10194 if test "${am_cv_proto_iconv+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196else
10197
10198 cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204
10205#include <stdlib.h>
10206#include <iconv.h>
10207extern
10208#ifdef __cplusplus
10209"C"
10210#endif
10211#if defined(__STDC__) || defined(__cplusplus)
10212size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10213#else
10214size_t iconv();
10215#endif
10216
10217int
10218main ()
10219{
10220
10221 ;
10222 return 0;
10223}
10224_ACEOF
10225rm -f conftest.$ac_objext
10226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227 (eval $ac_compile) 2>conftest.er1
10228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag"
10235 || test ! -s conftest.err'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest.$ac_objext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 am_cv_proto_iconv_arg1=""
10248else
10249 echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
10252am_cv_proto_iconv_arg1="const"
10253fi
10254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10255 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);"
10256fi
10257
10258 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10259 echo "$as_me:$LINENO: result: ${ac_t:-
10260 }$am_cv_proto_iconv" >&5
10261echo "${ECHO_T}${ac_t:-
10262 }$am_cv_proto_iconv" >&6
10263
10264cat >>confdefs.h <<_ACEOF
10265#define ICONV_CONST $am_cv_proto_iconv_arg1
10266_ACEOF
10267
10268 fi
10269 LIBICONV=
10270 if test "$am_cv_lib_iconv" = yes; then
10271 LIBICONV="-liconv"
10272 fi
10273 if test "$am_cv_use_build_libiconv" = yes; then
10274 LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
10275 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10276 fi
10277
10278
10279
10280
10281
10282# On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10283# There is a very specific comment in /usr/include/curses.h explaining that
10284# termcap routines built into libcurses must not be used.
10285#
10286# The symptoms we observed so far is GDB unexpectedly changing
10287# the terminal settings when tgetent is called - this is particularly
10288# visible as the output is missing carriage returns, and so rapidly
10289# becomes very hard to read.
10290#
10291# The readline configure script has already decided that libtermcap
10292# was enough for its purposes, and so decided to build readline using
10293# libtermcap. Since the TUI mode requires curses, building GDB with
10294# TUI enabled results in both libraries to be used at the same time,
10295# which is not allowed. This basically means that GDB with TUI is
10296# broken on alpha-osf.
10297
10298case $host_os in
10299 alpha*-*-osf* )
10300 if "$enable_tui" = "yes"; then
10301 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10302echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10303 { (exit 1); exit 1; }; }
10304 fi
10305 if "$enable_tui" = "auto"; then
10306 enable_tui=no
10307 fi
10308 ;;
10309esac
10310
10311# Check whether we should enable the TUI, but only do so if we really
10312# can.
10313if test x"$enable_tui" != xno; then
10314 if test -d $srcdir/tui; then
10315 # For the TUI, we need enhanced curses functionality.
10316 #
10317 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10318 # curses library because the latter might not provide all the
10319 # functionality we need. However, this leads to problems on systems
10320 # where the linker searches /usr/local/lib, but the compiler doesn't
10321 # search /usr/local/include, if ncurses is installed in /usr/local. A
10322 # default installation of ncurses on alpha*-dec-osf* will lead to such
10323 # a situation.
10324 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10325echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10326if test "${ac_cv_search_waddstr+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328else
10329 ac_func_search_save_LIBS=$LIBS
10330ac_cv_search_waddstr=no
10331cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h. */
10337
10338/* Override any gcc2 internal prototype to avoid an error. */
10339#ifdef __cplusplus
10340extern "C"
10341#endif
10342/* We use char because int might match the return type of a gcc2
10343 builtin and then its argument prototype would still apply. */
10344char waddstr ();
10345int
10346main ()
10347{
10348waddstr ();
10349 ;
10350 return 0;
10351}
10352_ACEOF
10353rm -f conftest.$ac_objext conftest$ac_exeext
10354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355 (eval $ac_link) 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -z "$ac_c_werror_flag"
10363 || test ! -s conftest.err'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_cv_search_waddstr="none required"
10376else
10377 echo "$as_me: failed program was:" >&5
10378sed 's/^/| /' conftest.$ac_ext >&5
10379
10380fi
10381rm -f conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383if test "$ac_cv_search_waddstr" = no; then
10384 for ac_lib in ncurses cursesX curses; do
10385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10386 cat >conftest.$ac_ext <<_ACEOF
10387/* confdefs.h. */
10388_ACEOF
10389cat confdefs.h >>conftest.$ac_ext
10390cat >>conftest.$ac_ext <<_ACEOF
10391/* end confdefs.h. */
10392
10393/* Override any gcc2 internal prototype to avoid an error. */
10394#ifdef __cplusplus
10395extern "C"
10396#endif
10397/* We use char because int might match the return type of a gcc2
10398 builtin and then its argument prototype would still apply. */
10399char waddstr ();
10400int
10401main ()
10402{
10403waddstr ();
10404 ;
10405 return 0;
10406}
10407_ACEOF
10408rm -f conftest.$ac_objext conftest$ac_exeext
10409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>conftest.er1
10411 ac_status=$?
10412 grep -v '^ *+' conftest.er1 >conftest.err
10413 rm -f conftest.er1
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -z "$ac_c_werror_flag"
10418 || test ! -s conftest.err'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_search_waddstr="-l$ac_lib"
10431break
10432else
10433 echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
10436fi
10437rm -f conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 done
10440fi
10441LIBS=$ac_func_search_save_LIBS
10442fi
10443echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10444echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10445if test "$ac_cv_search_waddstr" != no; then
10446 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10447
10448fi
10449
10450
10451 if test "$ac_cv_search_waddstr" != no; then
10452 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10453 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10454 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10455 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10456 CONFIG_ALL="${CONFIG_ALL} all-tui"
10457 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10458 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10459 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10460 else
10461 if test x"$enable_tui" = xyes; then
10462 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10463echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10464 { (exit 1); exit 1; }; }
10465 else
10466 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10467echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10468 fi
10469 fi
10470 fi
10471fi
10472
10473# Since GDB uses Readline, we need termcap functionality. In many
10474# cases this will be provided by the curses library, but some systems
10475# have a seperate termcap library, or no curses library at all.
10476
10477case $host_os in
10478 cygwin*)
10479 if test -d $srcdir/libtermcap; then
10480 LIBS="../libtermcap/libtermcap.a $LIBS"
10481 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10482 fi ;;
10483 go32* | *djgpp*)
10484 ac_cv_search_tgetent="none required"
10485 ;;
10486 *mingw32*)
10487 ac_cv_search_tgetent="none required"
10488 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10489 ;;
10490esac
10491
10492# These are the libraries checked by Readline.
10493echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10494echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10495if test "${ac_cv_search_tgetent+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497else
10498 ac_func_search_save_LIBS=$LIBS
10499ac_cv_search_tgetent=no
10500cat >conftest.$ac_ext <<_ACEOF
10501/* confdefs.h. */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h. */
10506
10507/* Override any gcc2 internal prototype to avoid an error. */
10508#ifdef __cplusplus
10509extern "C"
10510#endif
10511/* We use char because int might match the return type of a gcc2
10512 builtin and then its argument prototype would still apply. */
10513char tgetent ();
10514int
10515main ()
10516{
10517tgetent ();
10518 ;
10519 return 0;
10520}
10521_ACEOF
10522rm -f conftest.$ac_objext conftest$ac_exeext
10523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag"
10532 || test ! -s conftest.err'
10533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; } &&
10538 { ac_try='test -s conftest$ac_exeext'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_search_tgetent="none required"
10545else
10546 echo "$as_me: failed program was:" >&5
10547sed 's/^/| /' conftest.$ac_ext >&5
10548
10549fi
10550rm -f conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552if test "$ac_cv_search_tgetent" = no; then
10553 for ac_lib in termcap tinfo curses ncurses; do
10554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10555 cat >conftest.$ac_ext <<_ACEOF
10556/* confdefs.h. */
10557_ACEOF
10558cat confdefs.h >>conftest.$ac_ext
10559cat >>conftest.$ac_ext <<_ACEOF
10560/* end confdefs.h. */
10561
10562/* Override any gcc2 internal prototype to avoid an error. */
10563#ifdef __cplusplus
10564extern "C"
10565#endif
10566/* We use char because int might match the return type of a gcc2
10567 builtin and then its argument prototype would still apply. */
10568char tgetent ();
10569int
10570main ()
10571{
10572tgetent ();
10573 ;
10574 return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext conftest$ac_exeext
10578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579 (eval $ac_link) 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -z "$ac_c_werror_flag"
10587 || test ! -s conftest.err'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; } &&
10593 { ac_try='test -s conftest$ac_exeext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_cv_search_tgetent="-l$ac_lib"
10600break
10601else
10602 echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
10605fi
10606rm -f conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 done
10609fi
10610LIBS=$ac_func_search_save_LIBS
10611fi
10612echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10613echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10614if test "$ac_cv_search_tgetent" != no; then
10615 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10616
10617fi
10618
10619
10620if test "$ac_cv_search_tgetent" = no; then
10621 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10622echo "$as_me: error: no termcap library found" >&2;}
10623 { (exit 1); exit 1; }; }
10624fi
10625
10626
10627# Check whether --with-system-readline or --without-system-readline was given.
10628if test "${with_system_readline+set}" = set; then
10629 withval="$with_system_readline"
10630
10631fi;
10632
10633if test "$with_system_readline" = yes; then
10634 READLINE=-lreadline
10635 READLINE_DEPS=
10636 READLINE_CFLAGS=
10637else
10638 READLINE='$(READLINE_DIR)/libreadline.a'
10639 READLINE_DEPS='$(READLINE)'
10640 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10641fi
10642
10643
10644
10645
10646
10647# Check whether --with-expat or --without-expat was given.
10648if test "${with_expat+set}" = set; then
10649 withval="$with_expat"
10650
10651else
10652 with_expat=auto
10653fi;
10654echo "$as_me:$LINENO: checking whether to use expat" >&5
10655echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10656echo "$as_me:$LINENO: result: $with_expat" >&5
10657echo "${ECHO_T}$with_expat" >&6
10658
10659if test "${with_expat}" = no; then
10660 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10661echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10662 HAVE_LIBEXPAT=no
10663else
10664
10665 if test "X$prefix" = "XNONE"; then
10666 acl_final_prefix="$ac_default_prefix"
10667 else
10668 acl_final_prefix="$prefix"
10669 fi
10670 if test "X$exec_prefix" = "XNONE"; then
10671 acl_final_exec_prefix='${prefix}'
10672 else
10673 acl_final_exec_prefix="$exec_prefix"
10674 fi
10675 acl_save_prefix="$prefix"
10676 prefix="$acl_final_prefix"
10677 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10678 prefix="$acl_save_prefix"
10679
10680
10681# Check whether --with-gnu-ld or --without-gnu-ld was given.
10682if test "${with_gnu_ld+set}" = set; then
10683 withval="$with_gnu_ld"
10684 test "$withval" = no || with_gnu_ld=yes
10685else
10686 with_gnu_ld=no
10687fi;
10688# Prepare PATH_SEPARATOR.
10689# The user is always right.
10690if test "${PATH_SEPARATOR+set}" != set; then
10691 echo "#! /bin/sh" >conf$$.sh
10692 echo "exit 0" >>conf$$.sh
10693 chmod +x conf$$.sh
10694 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10695 PATH_SEPARATOR=';'
10696 else
10697 PATH_SEPARATOR=:
10698 fi
10699 rm -f conf$$.sh
10700fi
10701ac_prog=ld
10702if test "$GCC" = yes; then
10703 # Check if gcc -print-prog-name=ld gives a path.
10704 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10705echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10706 case $host in
10707 *-*-mingw*)
10708 # gcc leaves a trailing carriage return which upsets mingw
10709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10710 *)
10711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10712 esac
10713 case $ac_prog in
10714 # Accept absolute paths.
10715 [\\/]* | [A-Za-z]:[\\/]*)
10716 re_direlt='/[^/][^/]*/\.\./'
10717 # Canonicalize the path of ld
10718 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10720 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10721 done
10722 test -z "$LD" && LD="$ac_prog"
10723 ;;
10724 "")
10725 # If it fails, then pretend we aren't using GCC.
10726 ac_prog=ld
10727 ;;
10728 *)
10729 # If it is relative, then search for the first ld in PATH.
10730 with_gnu_ld=unknown
10731 ;;
10732 esac
10733elif test "$with_gnu_ld" = yes; then
10734 echo "$as_me:$LINENO: checking for GNU ld" >&5
10735echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10736else
10737 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10738echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10739fi
10740if test "${acl_cv_path_LD+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742else
10743 if test -z "$LD"; then
10744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10745 for ac_dir in $PATH; do
10746 test -z "$ac_dir" && ac_dir=.
10747 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10748 acl_cv_path_LD="$ac_dir/$ac_prog"
10749 # Check to see if the program is GNU ld. I'd rather use --version,
10750 # but apparently some GNU ld's only accept -v.
10751 # Break only if it was the GNU/non-GNU ld that we prefer.
10752 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10753 test "$with_gnu_ld" != no && break
10754 else
10755 test "$with_gnu_ld" != yes && break
10756 fi
10757 fi
10758 done
10759 IFS="$ac_save_ifs"
10760else
10761 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10762fi
10763fi
10764
10765LD="$acl_cv_path_LD"
10766if test -n "$LD"; then
10767 echo "$as_me:$LINENO: result: $LD" >&5
10768echo "${ECHO_T}$LD" >&6
10769else
10770 echo "$as_me:$LINENO: result: no" >&5
10771echo "${ECHO_T}no" >&6
10772fi
10773test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10774echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10775 { (exit 1); exit 1; }; }
10776echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10777echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10778if test "${acl_cv_prog_gnu_ld+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780else
10781 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10782if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10783 acl_cv_prog_gnu_ld=yes
10784else
10785 acl_cv_prog_gnu_ld=no
10786fi
10787fi
10788echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10789echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10790with_gnu_ld=$acl_cv_prog_gnu_ld
10791
10792
10793
10794 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10795echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10796if test "${acl_cv_rpath+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799
10800 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10801 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10802 . ./conftest.sh
10803 rm -f ./conftest.sh
10804 acl_cv_rpath=done
10805
10806fi
10807echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10808echo "${ECHO_T}$acl_cv_rpath" >&6
10809 wl="$acl_cv_wl"
10810 libext="$acl_cv_libext"
10811 shlibext="$acl_cv_shlibext"
10812 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10813 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10814 hardcode_direct="$acl_cv_hardcode_direct"
10815 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10816 # Check whether --enable-rpath or --disable-rpath was given.
10817if test "${enable_rpath+set}" = set; then
10818 enableval="$enable_rpath"
10819 :
10820else
10821 enable_rpath=yes
10822fi;
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832 use_additional=yes
10833
10834 acl_save_prefix="$prefix"
10835 prefix="$acl_final_prefix"
10836 acl_save_exec_prefix="$exec_prefix"
10837 exec_prefix="$acl_final_exec_prefix"
10838
10839 eval additional_includedir=\"$includedir\"
10840 eval additional_libdir=\"$libdir\"
10841
10842 exec_prefix="$acl_save_exec_prefix"
10843 prefix="$acl_save_prefix"
10844
10845
10846# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10847if test "${with_libexpat_prefix+set}" = set; then
10848 withval="$with_libexpat_prefix"
10849
10850 if test "X$withval" = "Xno"; then
10851 use_additional=no
10852 else
10853 if test "X$withval" = "X"; then
10854
10855 acl_save_prefix="$prefix"
10856 prefix="$acl_final_prefix"
10857 acl_save_exec_prefix="$exec_prefix"
10858 exec_prefix="$acl_final_exec_prefix"
10859
10860 eval additional_includedir=\"$includedir\"
10861 eval additional_libdir=\"$libdir\"
10862
10863 exec_prefix="$acl_save_exec_prefix"
10864 prefix="$acl_save_prefix"
10865
10866 else
10867 additional_includedir="$withval/include"
10868 additional_libdir="$withval/lib"
10869 fi
10870 fi
10871
10872fi;
10873 LIBEXPAT=
10874 LTLIBEXPAT=
10875 INCEXPAT=
10876 rpathdirs=
10877 ltrpathdirs=
10878 names_already_handled=
10879 names_next_round='expat '
10880 while test -n "$names_next_round"; do
10881 names_this_round="$names_next_round"
10882 names_next_round=
10883 for name in $names_this_round; do
10884 already_handled=
10885 for n in $names_already_handled; do
10886 if test "$n" = "$name"; then
10887 already_handled=yes
10888 break
10889 fi
10890 done
10891 if test -z "$already_handled"; then
10892 names_already_handled="$names_already_handled $name"
10893 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10894 eval value=\"\$HAVE_LIB$uppername\"
10895 if test -n "$value"; then
10896 if test "$value" = yes; then
10897 eval value=\"\$LIB$uppername\"
10898 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10899 eval value=\"\$LTLIB$uppername\"
10900 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10901 else
10902 :
10903 fi
10904 else
10905 found_dir=
10906 found_la=
10907 found_so=
10908 found_a=
10909 if test $use_additional = yes; then
10910 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10911 found_dir="$additional_libdir"
10912 found_so="$additional_libdir/lib$name.$shlibext"
10913 if test -f "$additional_libdir/lib$name.la"; then
10914 found_la="$additional_libdir/lib$name.la"
10915 fi
10916 else
10917 if test -f "$additional_libdir/lib$name.$libext"; then
10918 found_dir="$additional_libdir"
10919 found_a="$additional_libdir/lib$name.$libext"
10920 if test -f "$additional_libdir/lib$name.la"; then
10921 found_la="$additional_libdir/lib$name.la"
10922 fi
10923 fi
10924 fi
10925 fi
10926 if test "X$found_dir" = "X"; then
10927 for x in $LDFLAGS $LTLIBEXPAT; do
10928
10929 acl_save_prefix="$prefix"
10930 prefix="$acl_final_prefix"
10931 acl_save_exec_prefix="$exec_prefix"
10932 exec_prefix="$acl_final_exec_prefix"
10933 eval x=\"$x\"
10934 exec_prefix="$acl_save_exec_prefix"
10935 prefix="$acl_save_prefix"
10936
10937 case "$x" in
10938 -L*)
10939 dir=`echo "X$x" | sed -e 's/^X-L//'`
10940 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10941 found_dir="$dir"
10942 found_so="$dir/lib$name.$shlibext"
10943 if test -f "$dir/lib$name.la"; then
10944 found_la="$dir/lib$name.la"
10945 fi
10946 else
10947 if test -f "$dir/lib$name.$libext"; then
10948 found_dir="$dir"
10949 found_a="$dir/lib$name.$libext"
10950 if test -f "$dir/lib$name.la"; then
10951 found_la="$dir/lib$name.la"
10952 fi
10953 fi
10954 fi
10955 ;;
10956 esac
10957 if test "X$found_dir" != "X"; then
10958 break
10959 fi
10960 done
10961 fi
10962 if test "X$found_dir" != "X"; then
10963 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10964 if test "X$found_so" != "X"; then
10965 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10966 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10967 else
10968 haveit=
10969 for x in $ltrpathdirs; do
10970 if test "X$x" = "X$found_dir"; then
10971 haveit=yes
10972 break
10973 fi
10974 done
10975 if test -z "$haveit"; then
10976 ltrpathdirs="$ltrpathdirs $found_dir"
10977 fi
10978 if test "$hardcode_direct" = yes; then
10979 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10980 else
10981 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10982 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10983 haveit=
10984 for x in $rpathdirs; do
10985 if test "X$x" = "X$found_dir"; then
10986 haveit=yes
10987 break
10988 fi
10989 done
10990 if test -z "$haveit"; then
10991 rpathdirs="$rpathdirs $found_dir"
10992 fi
10993 else
10994 haveit=
10995 for x in $LDFLAGS $LIBEXPAT; do
10996
10997 acl_save_prefix="$prefix"
10998 prefix="$acl_final_prefix"
10999 acl_save_exec_prefix="$exec_prefix"
11000 exec_prefix="$acl_final_exec_prefix"
11001 eval x=\"$x\"
11002 exec_prefix="$acl_save_exec_prefix"
11003 prefix="$acl_save_prefix"
11004
11005 if test "X$x" = "X-L$found_dir"; then
11006 haveit=yes
11007 break
11008 fi
11009 done
11010 if test -z "$haveit"; then
11011 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11012 fi
11013 if test "$hardcode_minus_L" != no; then
11014 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11015 else
11016 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11017 fi
11018 fi
11019 fi
11020 fi
11021 else
11022 if test "X$found_a" != "X"; then
11023 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11024 else
11025 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11026 fi
11027 fi
11028 additional_includedir=
11029 case "$found_dir" in
11030 */lib | */lib/)
11031 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11032 additional_includedir="$basedir/include"
11033 ;;
11034 esac
11035 if test "X$additional_includedir" != "X"; then
11036 if test "X$additional_includedir" != "X/usr/include"; then
11037 haveit=
11038 if test "X$additional_includedir" = "X/usr/local/include"; then
11039 if test -n "$GCC"; then
11040 case $host_os in
11041 linux*) haveit=yes;;
11042 esac
11043 fi
11044 fi
11045 if test -z "$haveit"; then
11046 for x in $CPPFLAGS $INCEXPAT; do
11047
11048 acl_save_prefix="$prefix"
11049 prefix="$acl_final_prefix"
11050 acl_save_exec_prefix="$exec_prefix"
11051 exec_prefix="$acl_final_exec_prefix"
11052 eval x=\"$x\"
11053 exec_prefix="$acl_save_exec_prefix"
11054 prefix="$acl_save_prefix"
11055
11056 if test "X$x" = "X-I$additional_includedir"; then
11057 haveit=yes
11058 break
11059 fi
11060 done
11061 if test -z "$haveit"; then
11062 if test -d "$additional_includedir"; then
11063 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11064 fi
11065 fi
11066 fi
11067 fi
11068 fi
11069 if test -n "$found_la"; then
11070 save_libdir="$libdir"
11071 case "$found_la" in
11072 */* | *\\*) . "$found_la" ;;
11073 *) . "./$found_la" ;;
11074 esac
11075 libdir="$save_libdir"
11076 for dep in $dependency_libs; do
11077 case "$dep" in
11078 -L*)
11079 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11080 if test "X$additional_libdir" != "X/usr/lib"; then
11081 haveit=
11082 if test "X$additional_libdir" = "X/usr/local/lib"; then
11083 if test -n "$GCC"; then
11084 case $host_os in
11085 linux*) haveit=yes;;
11086 esac
11087 fi
11088 fi
11089 if test -z "$haveit"; then
11090 haveit=
11091 for x in $LDFLAGS $LIBEXPAT; do
11092
11093 acl_save_prefix="$prefix"
11094 prefix="$acl_final_prefix"
11095 acl_save_exec_prefix="$exec_prefix"
11096 exec_prefix="$acl_final_exec_prefix"
11097 eval x=\"$x\"
11098 exec_prefix="$acl_save_exec_prefix"
11099 prefix="$acl_save_prefix"
11100
11101 if test "X$x" = "X-L$additional_libdir"; then
11102 haveit=yes
11103 break
11104 fi
11105 done
11106 if test -z "$haveit"; then
11107 if test -d "$additional_libdir"; then
11108 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11109 fi
11110 fi
11111 haveit=
11112 for x in $LDFLAGS $LTLIBEXPAT; do
11113
11114 acl_save_prefix="$prefix"
11115 prefix="$acl_final_prefix"
11116 acl_save_exec_prefix="$exec_prefix"
11117 exec_prefix="$acl_final_exec_prefix"
11118 eval x=\"$x\"
11119 exec_prefix="$acl_save_exec_prefix"
11120 prefix="$acl_save_prefix"
11121
11122 if test "X$x" = "X-L$additional_libdir"; then
11123 haveit=yes
11124 break
11125 fi
11126 done
11127 if test -z "$haveit"; then
11128 if test -d "$additional_libdir"; then
11129 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11130 fi
11131 fi
11132 fi
11133 fi
11134 ;;
11135 -R*)
11136 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11137 if test "$enable_rpath" != no; then
11138 haveit=
11139 for x in $rpathdirs; do
11140 if test "X$x" = "X$dir"; then
11141 haveit=yes
11142 break
11143 fi
11144 done
11145 if test -z "$haveit"; then
11146 rpathdirs="$rpathdirs $dir"
11147 fi
11148 haveit=
11149 for x in $ltrpathdirs; do
11150 if test "X$x" = "X$dir"; then
11151 haveit=yes
11152 break
11153 fi
11154 done
11155 if test -z "$haveit"; then
11156 ltrpathdirs="$ltrpathdirs $dir"
11157 fi
11158 fi
11159 ;;
11160 -l*)
11161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11162 ;;
11163 *.la)
11164 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11165 ;;
11166 *)
11167 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11168 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11169 ;;
11170 esac
11171 done
11172 fi
11173 else
11174 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11175 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11176 fi
11177 fi
11178 fi
11179 done
11180 done
11181 if test "X$rpathdirs" != "X"; then
11182 if test -n "$hardcode_libdir_separator"; then
11183 alldirs=
11184 for found_dir in $rpathdirs; do
11185 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11186 done
11187 acl_save_libdir="$libdir"
11188 libdir="$alldirs"
11189 eval flag=\"$hardcode_libdir_flag_spec\"
11190 libdir="$acl_save_libdir"
11191 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11192 else
11193 for found_dir in $rpathdirs; do
11194 acl_save_libdir="$libdir"
11195 libdir="$found_dir"
11196 eval flag=\"$hardcode_libdir_flag_spec\"
11197 libdir="$acl_save_libdir"
11198 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11199 done
11200 fi
11201 fi
11202 if test "X$ltrpathdirs" != "X"; then
11203 for found_dir in $ltrpathdirs; do
11204 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11205 done
11206 fi
11207
11208
11209 ac_save_CPPFLAGS="$CPPFLAGS"
11210
11211 for element in $INCEXPAT; do
11212 haveit=
11213 for x in $CPPFLAGS; do
11214
11215 acl_save_prefix="$prefix"
11216 prefix="$acl_final_prefix"
11217 acl_save_exec_prefix="$exec_prefix"
11218 exec_prefix="$acl_final_exec_prefix"
11219 eval x=\"$x\"
11220 exec_prefix="$acl_save_exec_prefix"
11221 prefix="$acl_save_prefix"
11222
11223 if test "X$x" = "X$element"; then
11224 haveit=yes
11225 break
11226 fi
11227 done
11228 if test -z "$haveit"; then
11229 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11230 fi
11231 done
11232
11233
11234 echo "$as_me:$LINENO: checking for libexpat" >&5
11235echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11236if test "${ac_cv_libexpat+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239
11240 ac_save_LIBS="$LIBS"
11241 LIBS="$LIBS $LIBEXPAT"
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248#include "expat.h"
11249int
11250main ()
11251{
11252XML_Parser p = XML_ParserCreate (0);
11253 ;
11254 return 0;
11255}
11256_ACEOF
11257rm -f conftest.$ac_objext conftest$ac_exeext
11258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest$ac_exeext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_cv_libexpat=yes
11280else
11281 echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284ac_cv_libexpat=no
11285fi
11286rm -f conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 LIBS="$ac_save_LIBS"
11289
11290fi
11291echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11292echo "${ECHO_T}$ac_cv_libexpat" >&6
11293 if test "$ac_cv_libexpat" = yes; then
11294 HAVE_LIBEXPAT=yes
11295
11296cat >>confdefs.h <<\_ACEOF
11297#define HAVE_LIBEXPAT 1
11298_ACEOF
11299
11300 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11301echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11302 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11303echo "${ECHO_T}$LIBEXPAT" >&6
11304 else
11305 HAVE_LIBEXPAT=no
11306 CPPFLAGS="$ac_save_CPPFLAGS"
11307 LIBEXPAT=
11308 LTLIBEXPAT=
11309 fi
11310
11311
11312
11313
11314
11315
11316 if test "$HAVE_LIBEXPAT" != yes; then
11317 if test "$with_expat" = yes; then
11318 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11319echo "$as_me: error: expat is missing or unusable" >&2;}
11320 { (exit 1); exit 1; }; }
11321 else
11322 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11323echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11324 fi
11325 else
11326 save_LIBS=$LIBS
11327 LIBS="$LIBS $LIBEXPAT"
11328
11329for ac_func in XML_StopParser
11330do
11331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11332echo "$as_me:$LINENO: checking for $ac_func" >&5
11333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11334if eval "test \"\${$as_ac_var+set}\" = set"; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336else
11337 cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
11343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11345#define $ac_func innocuous_$ac_func
11346
11347/* System header to define __stub macros and hopefully few prototypes,
11348 which can conflict with char $ac_func (); below.
11349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11350 <limits.h> exists even on freestanding compilers. */
11351
11352#ifdef __STDC__
11353# include <limits.h>
11354#else
11355# include <assert.h>
11356#endif
11357
11358#undef $ac_func
11359
11360/* Override any gcc2 internal prototype to avoid an error. */
11361#ifdef __cplusplus
11362extern "C"
11363{
11364#endif
11365/* We use char because int might match the return type of a gcc2
11366 builtin and then its argument prototype would still apply. */
11367char $ac_func ();
11368/* The GNU C library defines this for functions which it implements
11369 to always fail with ENOSYS. Some functions are actually named
11370 something starting with __ and the normal name is an alias. */
11371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11372choke me
11373#else
11374char (*f) () = $ac_func;
11375#endif
11376#ifdef __cplusplus
11377}
11378#endif
11379
11380int
11381main ()
11382{
11383return f != $ac_func;
11384 ;
11385 return 0;
11386}
11387_ACEOF
11388rm -f conftest.$ac_objext conftest$ac_exeext
11389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390 (eval $ac_link) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest$ac_exeext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 eval "$as_ac_var=yes"
11411else
11412 echo "$as_me: failed program was:" >&5
11413sed 's/^/| /' conftest.$ac_ext >&5
11414
11415eval "$as_ac_var=no"
11416fi
11417rm -f conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419fi
11420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11422if test `eval echo '${'$as_ac_var'}'` = yes; then
11423 cat >>confdefs.h <<_ACEOF
11424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11425_ACEOF
11426
11427fi
11428done
11429
11430 LIBS=$save_LIBS
11431 fi
11432fi
11433
11434
11435
11436
11437# Check whether --with-python or --without-python was given.
11438if test "${with_python+set}" = set; then
11439 withval="$with_python"
11440
11441else
11442 with_python=auto
11443fi;
11444echo "$as_me:$LINENO: checking whether to use python" >&5
11445echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11446echo "$as_me:$LINENO: result: $with_python" >&5
11447echo "${ECHO_T}$with_python" >&6
11448
11449if test "${with_python}" = no; then
11450 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11451echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11452 have_libpython=no
11453else
11454 case "${with_python}" in
11455 yes | auto)
11456 # Leave as empty, use defaults.
11457 python_includes=
11458 python_libs=
11459 ;;
11460 /*)
11461 python_includes="-I${with_python}/include"
11462 python_libs="-L${with_python}/lib"
11463 ;;
11464 *)
11465 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11466echo "$as_me: error: invalid value for --with-python" >&2;}
11467 { (exit 1); exit 1; }; }
11468 ;;
11469 esac
11470
11471 save_CPPFLAGS=$CPPFLAGS
11472 CPPFLAGS="$CPPFLAGS ${python_includes}"
11473 save_LIBS=$LIBS
11474 LIBS="$LIBS ${python_libs}"
11475 have_libpython=no
11476 if test "${have_libpython}" = no; then
11477
11478 version=python2.6
11479
11480
11481 HAVE_LIBPYTHON2_6=no
11482 echo "$as_me:$LINENO: checking for ${version}" >&5
11483echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11484 save_LIBS=$LIBS
11485 LIBS="$LIBS -l${version}"
11486 cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
11492#include "${version}/Python.h"
11493int
11494main ()
11495{
11496Py_Initialize ();
11497 ;
11498 return 0;
11499}
11500_ACEOF
11501rm -f conftest.$ac_objext conftest$ac_exeext
11502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11503 (eval $ac_link) 2>conftest.er1
11504 ac_status=$?
11505 grep -v '^ *+' conftest.er1 >conftest.err
11506 rm -f conftest.er1
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -z "$ac_c_werror_flag"
11511 || test ! -s conftest.err'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; } &&
11517 { ac_try='test -s conftest$ac_exeext'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 HAVE_LIBPYTHON2_6=yes
11524 have_libpython=yes
11525else
11526 echo "$as_me: failed program was:" >&5
11527sed 's/^/| /' conftest.$ac_ext >&5
11528
11529LIBS=$save_LIBS
11530fi
11531rm -f conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11534echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11535
11536 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11537
11538cat >>confdefs.h <<\_ACEOF
11539#define HAVE_LIBPYTHON2_6 1
11540_ACEOF
11541
11542 fi
11543 fi
11544 if test ${have_libpython} = no; then
11545
11546 version=python2.5
11547
11548
11549 HAVE_LIBPYTHON2_5=no
11550 echo "$as_me:$LINENO: checking for ${version}" >&5
11551echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11552 save_LIBS=$LIBS
11553 LIBS="$LIBS -l${version}"
11554 cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560#include "${version}/Python.h"
11561int
11562main ()
11563{
11564Py_Initialize ();
11565 ;
11566 return 0;
11567}
11568_ACEOF
11569rm -f conftest.$ac_objext conftest$ac_exeext
11570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571 (eval $ac_link) 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -z "$ac_c_werror_flag"
11579 || test ! -s conftest.err'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; } &&
11585 { ac_try='test -s conftest$ac_exeext'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 HAVE_LIBPYTHON2_5=yes
11592 have_libpython=yes
11593else
11594 echo "$as_me: failed program was:" >&5
11595sed 's/^/| /' conftest.$ac_ext >&5
11596
11597LIBS=$save_LIBS
11598fi
11599rm -f conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11602echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11603
11604 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11605
11606cat >>confdefs.h <<\_ACEOF
11607#define HAVE_LIBPYTHON2_5 1
11608_ACEOF
11609
11610 fi
11611 fi
11612 if test ${have_libpython} = no; then
11613
11614 version=python2.4
11615
11616
11617 HAVE_LIBPYTHON2_4=no
11618 echo "$as_me:$LINENO: checking for ${version}" >&5
11619echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11620 save_LIBS=$LIBS
11621 LIBS="$LIBS -l${version}"
11622 cat >conftest.$ac_ext <<_ACEOF
11623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
11628#include "${version}/Python.h"
11629int
11630main ()
11631{
11632Py_Initialize ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 HAVE_LIBPYTHON2_4=yes
11660 have_libpython=yes
11661else
11662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665LIBS=$save_LIBS
11666fi
11667rm -f conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11670echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11671
11672 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11673
11674cat >>confdefs.h <<\_ACEOF
11675#define HAVE_LIBPYTHON2_4 1
11676_ACEOF
11677
11678 fi
11679 fi
11680 if test ${have_libpython} = no; then
11681 case "${with_python}" in
11682 yes)
11683 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11684echo "$as_me: error: python is missing or unusable" >&2;}
11685 { (exit 1); exit 1; }; }
11686 ;;
11687 auto)
11688 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11689echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11690 ;;
11691 *)
11692 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11693echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11694 { (exit 1); exit 1; }; }
11695 ;;
11696 esac
11697 CPPFLAGS=$save_CPPFLAGS
11698 LIBS=$save_LIBS
11699 fi
11700fi
11701
11702if test "${have_libpython}" = yes; then
11703
11704cat >>confdefs.h <<\_ACEOF
11705#define HAVE_PYTHON 1
11706_ACEOF
11707
11708 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11709 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11710 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11711 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11712
11713 # Flags needed to compile Python code (taken from python-config --cflags).
11714 # We cannot call python-config directly because it will output whatever was
11715 # used when compiling the Python interpreter itself, including flags which
11716 # would make the python-related objects be compiled differently from the
11717 # rest of GDB (e.g., -O2 and -fPIC).
11718 if test "${GCC}" = yes; then
11719 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11720 fi
11721
11722 if test "x${tentative_python_cflags}" != x; then
11723 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11724echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11725 for flag in ${tentative_python_cflags}; do
11726 # Check that the compiler accepts it
11727 saved_CFLAGS="$CFLAGS"
11728 CFLAGS="$CFLAGS $flag"
11729 cat >conftest.$ac_ext <<_ACEOF
11730/* confdefs.h. */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h. */
11735
11736int
11737main ()
11738{
11739
11740 ;
11741 return 0;
11742}
11743_ACEOF
11744rm -f conftest.$ac_objext
11745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746 (eval $ac_compile) 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11767else
11768 echo "$as_me: failed program was:" >&5
11769sed 's/^/| /' conftest.$ac_ext >&5
11770
11771fi
11772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11773 CFLAGS="$saved_CFLAGS"
11774 done
11775 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11776echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11777 fi
11778else
11779 # Even if Python support is not compiled in, we need to have these files
11780 # included in order to recognize the GDB command "python".
11781 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11782 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11783fi
11784
11785
11786# ------------------------- #
11787# Checks for header files. #
11788# ------------------------- #
11789
11790
11791
11792
11793
11794
11795ac_header_dirent=no
11796for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11797 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11798echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11799echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11800if eval "test \"\${$as_ac_Header+set}\" = set"; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809#include <sys/types.h>
11810#include <$ac_hdr>
11811
11812int
11813main ()
11814{
11815if ((DIR *) 0)
11816return 0;
11817 ;
11818 return 0;
11819}
11820_ACEOF
11821rm -f conftest.$ac_objext
11822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag"
11831 || test ! -s conftest.err'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; } &&
11837 { ac_try='test -s conftest.$ac_objext'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 eval "$as_ac_Header=yes"
11844else
11845 echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848eval "$as_ac_Header=no"
11849fi
11850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11851fi
11852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11854if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11857_ACEOF
11858
11859ac_header_dirent=$ac_hdr; break
11860fi
11861
11862done
11863# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11864if test $ac_header_dirent = dirent.h; then
11865 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11866echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11867if test "${ac_cv_search_opendir+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869else
11870 ac_func_search_save_LIBS=$LIBS
11871ac_cv_search_opendir=no
11872cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878
11879/* Override any gcc2 internal prototype to avoid an error. */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883/* We use char because int might match the return type of a gcc2
11884 builtin and then its argument prototype would still apply. */
11885char opendir ();
11886int
11887main ()
11888{
11889opendir ();
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894rm -f conftest.$ac_objext conftest$ac_exeext
11895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 ac_cv_search_opendir="none required"
11917else
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
11921fi
11922rm -f conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924if test "$ac_cv_search_opendir" = no; then
11925 for ac_lib in dir; do
11926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11927 cat >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="-l$ac_lib"
11972break
11973else
11974 echo "$as_me: failed program was:" >&5
11975sed 's/^/| /' conftest.$ac_ext >&5
11976
11977fi
11978rm -f conftest.err conftest.$ac_objext \
11979 conftest$ac_exeext conftest.$ac_ext
11980 done
11981fi
11982LIBS=$ac_func_search_save_LIBS
11983fi
11984echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11985echo "${ECHO_T}$ac_cv_search_opendir" >&6
11986if test "$ac_cv_search_opendir" != no; then
11987 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11988
11989fi
11990
11991else
11992 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11993echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11994if test "${ac_cv_search_opendir+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 ac_func_search_save_LIBS=$LIBS
11998ac_cv_search_opendir=no
11999cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
12005
12006/* Override any gcc2 internal prototype to avoid an error. */
12007#ifdef __cplusplus
12008extern "C"
12009#endif
12010/* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012char opendir ();
12013int
12014main ()
12015{
12016opendir ();
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext conftest$ac_exeext
12022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag"
12031 || test ! -s conftest.err'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_search_opendir="none required"
12044else
12045 echo "$as_me: failed program was:" >&5
12046sed 's/^/| /' conftest.$ac_ext >&5
12047
12048fi
12049rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051if test "$ac_cv_search_opendir" = no; then
12052 for ac_lib in x; do
12053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060
12061/* Override any gcc2 internal prototype to avoid an error. */
12062#ifdef __cplusplus
12063extern "C"
12064#endif
12065/* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12067char opendir ();
12068int
12069main ()
12070{
12071opendir ();
12072 ;
12073 return 0;
12074}
12075_ACEOF
12076rm -f conftest.$ac_objext conftest$ac_exeext
12077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12078 (eval $ac_link) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag"
12086 || test ! -s conftest.err'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest$ac_exeext'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 ac_cv_search_opendir="-l$ac_lib"
12099break
12100else
12101 echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104fi
12105rm -f conftest.err conftest.$ac_objext \
12106 conftest$ac_exeext conftest.$ac_ext
12107 done
12108fi
12109LIBS=$ac_func_search_save_LIBS
12110fi
12111echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12112echo "${ECHO_T}$ac_cv_search_opendir" >&6
12113if test "$ac_cv_search_opendir" != no; then
12114 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12115
12116fi
12117
12118fi
12119
12120echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12121echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12122if test "${ac_cv_header_stat_broken+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124else
12125 cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h. */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h. */
12131#include <sys/types.h>
12132#include <sys/stat.h>
12133
12134#if defined(S_ISBLK) && defined(S_IFDIR)
12135# if S_ISBLK (S_IFDIR)
12136You lose.
12137# endif
12138#endif
12139
12140#if defined(S_ISBLK) && defined(S_IFCHR)
12141# if S_ISBLK (S_IFCHR)
12142You lose.
12143# endif
12144#endif
12145
12146#if defined(S_ISLNK) && defined(S_IFREG)
12147# if S_ISLNK (S_IFREG)
12148You lose.
12149# endif
12150#endif
12151
12152#if defined(S_ISSOCK) && defined(S_IFREG)
12153# if S_ISSOCK (S_IFREG)
12154You lose.
12155# endif
12156#endif
12157
12158_ACEOF
12159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12160 $EGREP "You lose" >/dev/null 2>&1; then
12161 ac_cv_header_stat_broken=yes
12162else
12163 ac_cv_header_stat_broken=no
12164fi
12165rm -f conftest*
12166
12167fi
12168echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12169echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12170if test $ac_cv_header_stat_broken = yes; then
12171
12172cat >>confdefs.h <<\_ACEOF
12173#define STAT_MACROS_BROKEN 1
12174_ACEOF
12175
12176fi
12177
12178echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12179echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12180if test "${ac_cv_header_stdc+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12182else
12183 cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h. */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h. */
12189#include <stdlib.h>
12190#include <stdarg.h>
12191#include <string.h>
12192#include <float.h>
12193
12194int
12195main ()
12196{
12197
12198 ;
12199 return 0;
12200}
12201_ACEOF
12202rm -f conftest.$ac_objext
12203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_header_stdc=yes
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229ac_cv_header_stdc=no
12230fi
12231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232
12233if test $ac_cv_header_stdc = yes; then
12234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12235 cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241#include <string.h>
12242
12243_ACEOF
12244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12245 $EGREP "memchr" >/dev/null 2>&1; then
12246 :
12247else
12248 ac_cv_header_stdc=no
12249fi
12250rm -f conftest*
12251
12252fi
12253
12254if test $ac_cv_header_stdc = yes; then
12255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12256 cat >conftest.$ac_ext <<_ACEOF
12257/* confdefs.h. */
12258_ACEOF
12259cat confdefs.h >>conftest.$ac_ext
12260cat >>conftest.$ac_ext <<_ACEOF
12261/* end confdefs.h. */
12262#include <stdlib.h>
12263
12264_ACEOF
12265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12266 $EGREP "free" >/dev/null 2>&1; then
12267 :
12268else
12269 ac_cv_header_stdc=no
12270fi
12271rm -f conftest*
12272
12273fi
12274
12275if test $ac_cv_header_stdc = yes; then
12276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12277 if test "$cross_compiling" = yes; then
12278 :
12279else
12280 cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286#include <ctype.h>
12287#if ((' ' & 0x0FF) == 0x020)
12288# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12289# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12290#else
12291# define ISLOWER(c) \
12292 (('a' <= (c) && (c) <= 'i') \
12293 || ('j' <= (c) && (c) <= 'r') \
12294 || ('s' <= (c) && (c) <= 'z'))
12295# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12296#endif
12297
12298#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12299int
12300main ()
12301{
12302 int i;
12303 for (i = 0; i < 256; i++)
12304 if (XOR (islower (i), ISLOWER (i))
12305 || toupper (i) != TOUPPER (i))
12306 exit(2);
12307 exit (0);
12308}
12309_ACEOF
12310rm -f conftest$ac_exeext
12311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12312 (eval $ac_link) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 :
12322else
12323 echo "$as_me: program exited with status $ac_status" >&5
12324echo "$as_me: failed program was:" >&5
12325sed 's/^/| /' conftest.$ac_ext >&5
12326
12327( exit $ac_status )
12328ac_cv_header_stdc=no
12329fi
12330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12331fi
12332fi
12333fi
12334echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12335echo "${ECHO_T}$ac_cv_header_stdc" >&6
12336if test $ac_cv_header_stdc = yes; then
12337
12338cat >>confdefs.h <<\_ACEOF
12339#define STDC_HEADERS 1
12340_ACEOF
12341
12342fi
12343
12344# elf_hp.h is for HP/UX 64-bit shared library support.
12345# FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12346# unconditionally, so what's the point in checking these?
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12385 thread_db.h gnu/libc-version.h signal.h stddef.h \
12386 stdlib.h string.h memory.h strings.h sys/fault.h \
12387 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12388 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12389 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12390 sys/types.h sys/wait.h wait.h termios.h termio.h \
12391 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12392do
12393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12394if eval "test \"\${$as_ac_Header+set}\" = set"; then
12395 echo "$as_me:$LINENO: checking for $ac_header" >&5
12396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12397if eval "test \"\${$as_ac_Header+set}\" = set"; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399fi
12400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12402else
12403 # Is the header compilable?
12404echo "$as_me:$LINENO: checking $ac_header usability" >&5
12405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12406cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412$ac_includes_default
12413#include <$ac_header>
12414_ACEOF
12415rm -f conftest.$ac_objext
12416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_header_compiler=yes
12438else
12439 echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
12442ac_header_compiler=no
12443fi
12444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12446echo "${ECHO_T}$ac_header_compiler" >&6
12447
12448# Is the header present?
12449echo "$as_me:$LINENO: checking $ac_header presence" >&5
12450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12451cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457#include <$ac_header>
12458_ACEOF
12459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } >/dev/null; then
12467 if test -s conftest.err; then
12468 ac_cpp_err=$ac_c_preproc_warn_flag
12469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12470 else
12471 ac_cpp_err=
12472 fi
12473else
12474 ac_cpp_err=yes
12475fi
12476if test -z "$ac_cpp_err"; then
12477 ac_header_preproc=yes
12478else
12479 echo "$as_me: failed program was:" >&5
12480sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 ac_header_preproc=no
12483fi
12484rm -f conftest.err conftest.$ac_ext
12485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12486echo "${ECHO_T}$ac_header_preproc" >&6
12487
12488# So? What about this header?
12489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12490 yes:no: )
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12495 ac_header_preproc=yes
12496 ;;
12497 no:yes:* )
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12510 (
12511 cat <<\_ASBOX
12512## ------------------------------------------ ##
12513## Report this to the AC_PACKAGE_NAME lists. ##
12514## ------------------------------------------ ##
12515_ASBOX
12516 ) |
12517 sed "s/^/$as_me: WARNING: /" >&2
12518 ;;
12519esac
12520echo "$as_me:$LINENO: checking for $ac_header" >&5
12521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12522if eval "test \"\${$as_ac_Header+set}\" = set"; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524else
12525 eval "$as_ac_Header=\$ac_header_preproc"
12526fi
12527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12529
12530fi
12531if test `eval echo '${'$as_ac_Header'}'` = yes; then
12532 cat >>confdefs.h <<_ACEOF
12533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12534_ACEOF
12535
12536fi
12537
12538done
12539
12540
12541for ac_header in link.h
12542do
12543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12544echo "$as_me:$LINENO: checking for $ac_header" >&5
12545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12546if eval "test \"\${$as_ac_Header+set}\" = set"; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548else
12549 cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h. */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */
12555#if HAVE_SYS_TYPES_H
12556# include <sys/types.h>
12557#endif
12558#if HAVE_NLIST_H
12559# include <nlist.h>
12560#endif
12561
12562
12563#include <$ac_header>
12564_ACEOF
12565rm -f conftest.$ac_objext
12566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>conftest.er1
12568 ac_status=$?
12569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -z "$ac_c_werror_flag"
12575 || test ! -s conftest.err'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest.$ac_objext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 eval "$as_ac_Header=yes"
12588else
12589 echo "$as_me: failed program was:" >&5
12590sed 's/^/| /' conftest.$ac_ext >&5
12591
12592eval "$as_ac_Header=no"
12593fi
12594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12595fi
12596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12598if test `eval echo '${'$as_ac_Header'}'` = yes; then
12599 cat >>confdefs.h <<_ACEOF
12600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12601_ACEOF
12602
12603fi
12604
12605done
12606
12607
12608for ac_header in sys/proc.h
12609do
12610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12611echo "$as_me:$LINENO: checking for $ac_header" >&5
12612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12613if eval "test \"\${$as_ac_Header+set}\" = set"; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
12616 cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622#if HAVE_SYS_PARAM_H
12623# include <sys/param.h>
12624#endif
12625
12626
12627#include <$ac_header>
12628_ACEOF
12629rm -f conftest.$ac_objext
12630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12631 (eval $ac_compile) 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag"
12639 || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest.$ac_objext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 eval "$as_ac_Header=yes"
12652else
12653 echo "$as_me: failed program was:" >&5
12654sed 's/^/| /' conftest.$ac_ext >&5
12655
12656eval "$as_ac_Header=no"
12657fi
12658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659fi
12660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12662if test `eval echo '${'$as_ac_Header'}'` = yes; then
12663 cat >>confdefs.h <<_ACEOF
12664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12665_ACEOF
12666
12667fi
12668
12669done
12670
12671
12672for ac_header in sys/user.h
12673do
12674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12675echo "$as_me:$LINENO: checking for $ac_header" >&5
12676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12677if eval "test \"\${$as_ac_Header+set}\" = set"; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12679else
12680 cat >conftest.$ac_ext <<_ACEOF
12681/* confdefs.h. */
12682_ACEOF
12683cat confdefs.h >>conftest.$ac_ext
12684cat >>conftest.$ac_ext <<_ACEOF
12685/* end confdefs.h. */
12686#if HAVE_SYS_PARAM_H
12687# include <sys/param.h>
12688#endif
12689
12690
12691#include <$ac_header>
12692_ACEOF
12693rm -f conftest.$ac_objext
12694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag"
12703 || test ! -s conftest.err'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest.$ac_objext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 eval "$as_ac_Header=yes"
12716else
12717 echo "$as_me: failed program was:" >&5
12718sed 's/^/| /' conftest.$ac_ext >&5
12719
12720eval "$as_ac_Header=no"
12721fi
12722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12723fi
12724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12726if test `eval echo '${'$as_ac_Header'}'` = yes; then
12727 cat >>confdefs.h <<_ACEOF
12728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12729_ACEOF
12730
12731fi
12732
12733done
12734
12735
12736# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12737# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12738# think that we don't have <curses.h> if we're using GCC.
12739case $host_os in
12740 solaris2.[789])
12741 if test "$GCC" = yes; then
12742
12743cat >>confdefs.h <<\_ACEOF
12744#define _MSE_INT_H 1
12745_ACEOF
12746
12747 fi ;;
12748esac
12749
12750
12751
12752
12753
12754for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12755do
12756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12757if eval "test \"\${$as_ac_Header+set}\" = set"; then
12758 echo "$as_me:$LINENO: checking for $ac_header" >&5
12759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12760if eval "test \"\${$as_ac_Header+set}\" = set"; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762fi
12763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12765else
12766 # Is the header compilable?
12767echo "$as_me:$LINENO: checking $ac_header usability" >&5
12768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12769cat >conftest.$ac_ext <<_ACEOF
12770/* confdefs.h. */
12771_ACEOF
12772cat confdefs.h >>conftest.$ac_ext
12773cat >>conftest.$ac_ext <<_ACEOF
12774/* end confdefs.h. */
12775$ac_includes_default
12776#include <$ac_header>
12777_ACEOF
12778rm -f conftest.$ac_objext
12779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest.$ac_objext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_header_compiler=yes
12801else
12802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
12804
12805ac_header_compiler=no
12806fi
12807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12809echo "${ECHO_T}$ac_header_compiler" >&6
12810
12811# Is the header present?
12812echo "$as_me:$LINENO: checking $ac_header presence" >&5
12813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12814cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h. */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h. */
12820#include <$ac_header>
12821_ACEOF
12822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } >/dev/null; then
12830 if test -s conftest.err; then
12831 ac_cpp_err=$ac_c_preproc_warn_flag
12832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12833 else
12834 ac_cpp_err=
12835 fi
12836else
12837 ac_cpp_err=yes
12838fi
12839if test -z "$ac_cpp_err"; then
12840 ac_header_preproc=yes
12841else
12842 echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 ac_header_preproc=no
12846fi
12847rm -f conftest.err conftest.$ac_ext
12848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12849echo "${ECHO_T}$ac_header_preproc" >&6
12850
12851# So? What about this header?
12852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12853 yes:no: )
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12858 ac_header_preproc=yes
12859 ;;
12860 no:yes:* )
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12873 (
12874 cat <<\_ASBOX
12875## ------------------------------------------ ##
12876## Report this to the AC_PACKAGE_NAME lists. ##
12877## ------------------------------------------ ##
12878_ASBOX
12879 ) |
12880 sed "s/^/$as_me: WARNING: /" >&2
12881 ;;
12882esac
12883echo "$as_me:$LINENO: checking for $ac_header" >&5
12884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12885if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887else
12888 eval "$as_ac_Header=\$ac_header_preproc"
12889fi
12890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12892
12893fi
12894if test `eval echo '${'$as_ac_Header'}'` = yes; then
12895 cat >>confdefs.h <<_ACEOF
12896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12897_ACEOF
12898
12899fi
12900
12901done
12902
12903
12904for ac_header in term.h
12905do
12906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12907echo "$as_me:$LINENO: checking for $ac_header" >&5
12908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12909if eval "test \"\${$as_ac_Header+set}\" = set"; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911else
12912 cat >conftest.$ac_ext <<_ACEOF
12913/* confdefs.h. */
12914_ACEOF
12915cat confdefs.h >>conftest.$ac_ext
12916cat >>conftest.$ac_ext <<_ACEOF
12917/* end confdefs.h. */
12918#if HAVE_CURSES_H
12919# include <curses.h>
12920#endif
12921
12922
12923#include <$ac_header>
12924_ACEOF
12925rm -f conftest.$ac_objext
12926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>conftest.er1
12928 ac_status=$?
12929 grep -v '^ *+' conftest.er1 >conftest.err
12930 rm -f conftest.er1
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_c_werror_flag"
12935 || test ! -s conftest.err'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest.$ac_objext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 eval "$as_ac_Header=yes"
12948else
12949 echo "$as_me: failed program was:" >&5
12950sed 's/^/| /' conftest.$ac_ext >&5
12951
12952eval "$as_ac_Header=no"
12953fi
12954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12955fi
12956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12958if test `eval echo '${'$as_ac_Header'}'` = yes; then
12959 cat >>confdefs.h <<_ACEOF
12960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12961_ACEOF
12962
12963fi
12964
12965done
12966
12967
12968# ------------------------- #
12969# Checks for declarations. #
12970# ------------------------- #
12971
12972echo "$as_me:$LINENO: checking whether free is declared" >&5
12973echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12974if test "${ac_cv_have_decl_free+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976else
12977 cat >conftest.$ac_ext <<_ACEOF
12978/* confdefs.h. */
12979_ACEOF
12980cat confdefs.h >>conftest.$ac_ext
12981cat >>conftest.$ac_ext <<_ACEOF
12982/* end confdefs.h. */
12983$ac_includes_default
12984int
12985main ()
12986{
12987#ifndef free
12988 char *p = (char *) free;
12989#endif
12990
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995rm -f conftest.$ac_objext
12996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag"
13005 || test ! -s conftest.err'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest.$ac_objext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_have_decl_free=yes
13018else
13019 echo "$as_me: failed program was:" >&5
13020sed 's/^/| /' conftest.$ac_ext >&5
13021
13022ac_cv_have_decl_free=no
13023fi
13024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13025fi
13026echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13027echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13028if test $ac_cv_have_decl_free = yes; then
13029
13030cat >>confdefs.h <<_ACEOF
13031#define HAVE_DECL_FREE 1
13032_ACEOF
13033
13034
13035else
13036 cat >>confdefs.h <<_ACEOF
13037#define HAVE_DECL_FREE 0
13038_ACEOF
13039
13040
13041fi
13042echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13043echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13044if test "${ac_cv_have_decl_malloc+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046else
13047 cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
13052/* end confdefs.h. */
13053$ac_includes_default
13054int
13055main ()
13056{
13057#ifndef malloc
13058 char *p = (char *) malloc;
13059#endif
13060
13061 ;
13062 return 0;
13063}
13064_ACEOF
13065rm -f conftest.$ac_objext
13066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 (eval $ac_compile) 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag"
13075 || test ! -s conftest.err'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13078 ac_status=$?
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_cv_have_decl_malloc=yes
13088else
13089 echo "$as_me: failed program was:" >&5
13090sed 's/^/| /' conftest.$ac_ext >&5
13091
13092ac_cv_have_decl_malloc=no
13093fi
13094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13095fi
13096echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13097echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13098if test $ac_cv_have_decl_malloc = yes; then
13099
13100cat >>confdefs.h <<_ACEOF
13101#define HAVE_DECL_MALLOC 1
13102_ACEOF
13103
13104
13105else
13106 cat >>confdefs.h <<_ACEOF
13107#define HAVE_DECL_MALLOC 0
13108_ACEOF
13109
13110
13111fi
13112echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13113echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13114if test "${ac_cv_have_decl_realloc+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116else
13117 cat >conftest.$ac_ext <<_ACEOF
13118/* confdefs.h. */
13119_ACEOF
13120cat confdefs.h >>conftest.$ac_ext
13121cat >>conftest.$ac_ext <<_ACEOF
13122/* end confdefs.h. */
13123$ac_includes_default
13124int
13125main ()
13126{
13127#ifndef realloc
13128 char *p = (char *) realloc;
13129#endif
13130
13131 ;
13132 return 0;
13133}
13134_ACEOF
13135rm -f conftest.$ac_objext
13136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137 (eval $ac_compile) 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
13144 { ac_try='test -z "$ac_c_werror_flag"
13145 || test ! -s conftest.err'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_have_decl_realloc=yes
13158else
13159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162ac_cv_have_decl_realloc=no
13163fi
13164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13165fi
13166echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13167echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13168if test $ac_cv_have_decl_realloc = yes; then
13169
13170cat >>confdefs.h <<_ACEOF
13171#define HAVE_DECL_REALLOC 1
13172_ACEOF
13173
13174
13175else
13176 cat >>confdefs.h <<_ACEOF
13177#define HAVE_DECL_REALLOC 0
13178_ACEOF
13179
13180
13181fi
13182echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13183echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13184if test "${ac_cv_have_decl_strerror+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186else
13187 cat >conftest.$ac_ext <<_ACEOF
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
13192/* end confdefs.h. */
13193$ac_includes_default
13194int
13195main ()
13196{
13197#ifndef strerror
13198 char *p = (char *) strerror;
13199#endif
13200
13201 ;
13202 return 0;
13203}
13204_ACEOF
13205rm -f conftest.$ac_objext
13206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207 (eval $ac_compile) 2>conftest.er1
13208 ac_status=$?
13209 grep -v '^ *+' conftest.er1 >conftest.err
13210 rm -f conftest.er1
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -z "$ac_c_werror_flag"
13215 || test ! -s conftest.err'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest.$ac_objext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_have_decl_strerror=yes
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
13232ac_cv_have_decl_strerror=no
13233fi
13234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13235fi
13236echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13237echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13238if test $ac_cv_have_decl_strerror = yes; then
13239
13240cat >>confdefs.h <<_ACEOF
13241#define HAVE_DECL_STRERROR 1
13242_ACEOF
13243
13244
13245else
13246 cat >>confdefs.h <<_ACEOF
13247#define HAVE_DECL_STRERROR 0
13248_ACEOF
13249
13250
13251fi
13252echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13253echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13254if test "${ac_cv_have_decl_strstr+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256else
13257 cat >conftest.$ac_ext <<_ACEOF
13258/* confdefs.h. */
13259_ACEOF
13260cat confdefs.h >>conftest.$ac_ext
13261cat >>conftest.$ac_ext <<_ACEOF
13262/* end confdefs.h. */
13263$ac_includes_default
13264int
13265main ()
13266{
13267#ifndef strstr
13268 char *p = (char *) strstr;
13269#endif
13270
13271 ;
13272 return 0;
13273}
13274_ACEOF
13275rm -f conftest.$ac_objext
13276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277 (eval $ac_compile) 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag"
13285 || test ! -s conftest.err'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; } &&
13291 { ac_try='test -s conftest.$ac_objext'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
13297 ac_cv_have_decl_strstr=yes
13298else
13299 echo "$as_me: failed program was:" >&5
13300sed 's/^/| /' conftest.$ac_ext >&5
13301
13302ac_cv_have_decl_strstr=no
13303fi
13304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13305fi
13306echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13307echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13308if test $ac_cv_have_decl_strstr = yes; then
13309
13310cat >>confdefs.h <<_ACEOF
13311#define HAVE_DECL_STRSTR 1
13312_ACEOF
13313
13314
13315else
13316 cat >>confdefs.h <<_ACEOF
13317#define HAVE_DECL_STRSTR 0
13318_ACEOF
13319
13320
13321fi
13322echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13323echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13324if test "${ac_cv_have_decl_getopt+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327 cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
13332/* end confdefs.h. */
13333$ac_includes_default
13334int
13335main ()
13336{
13337#ifndef getopt
13338 char *p = (char *) getopt;
13339#endif
13340
13341 ;
13342 return 0;
13343}
13344_ACEOF
13345rm -f conftest.$ac_objext
13346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13347 (eval $ac_compile) 2>conftest.er1
13348 ac_status=$?
13349 grep -v '^ *+' conftest.er1 >conftest.err
13350 rm -f conftest.er1
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
13354 { ac_try='test -z "$ac_c_werror_flag"
13355 || test ! -s conftest.err'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_have_decl_getopt=yes
13368else
13369 echo "$as_me: failed program was:" >&5
13370sed 's/^/| /' conftest.$ac_ext >&5
13371
13372ac_cv_have_decl_getopt=no
13373fi
13374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13375fi
13376echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13377echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13378if test $ac_cv_have_decl_getopt = yes; then
13379
13380cat >>confdefs.h <<_ACEOF
13381#define HAVE_DECL_GETOPT 1
13382_ACEOF
13383
13384
13385else
13386 cat >>confdefs.h <<_ACEOF
13387#define HAVE_DECL_GETOPT 0
13388_ACEOF
13389
13390
13391fi
13392echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13393echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13394if test "${ac_cv_have_decl_snprintf+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396else
13397 cat >conftest.$ac_ext <<_ACEOF
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
13403$ac_includes_default
13404int
13405main ()
13406{
13407#ifndef snprintf
13408 char *p = (char *) snprintf;
13409#endif
13410
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417 (eval $ac_compile) 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag"
13425 || test ! -s conftest.err'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest.$ac_objext'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 ac_cv_have_decl_snprintf=yes
13438else
13439 echo "$as_me: failed program was:" >&5
13440sed 's/^/| /' conftest.$ac_ext >&5
13441
13442ac_cv_have_decl_snprintf=no
13443fi
13444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13445fi
13446echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13447echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13448if test $ac_cv_have_decl_snprintf = yes; then
13449
13450cat >>confdefs.h <<_ACEOF
13451#define HAVE_DECL_SNPRINTF 1
13452_ACEOF
13453
13454
13455else
13456 cat >>confdefs.h <<_ACEOF
13457#define HAVE_DECL_SNPRINTF 0
13458_ACEOF
13459
13460
13461fi
13462echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13463echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13464if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466else
13467 cat >conftest.$ac_ext <<_ACEOF
13468/* confdefs.h. */
13469_ACEOF
13470cat confdefs.h >>conftest.$ac_ext
13471cat >>conftest.$ac_ext <<_ACEOF
13472/* end confdefs.h. */
13473$ac_includes_default
13474int
13475main ()
13476{
13477#ifndef vsnprintf
13478 char *p = (char *) vsnprintf;
13479#endif
13480
13481 ;
13482 return 0;
13483}
13484_ACEOF
13485rm -f conftest.$ac_objext
13486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>conftest.er1
13488 ac_status=$?
13489 grep -v '^ *+' conftest.er1 >conftest.err
13490 rm -f conftest.er1
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } &&
13494 { ac_try='test -z "$ac_c_werror_flag"
13495 || test ! -s conftest.err'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest.$ac_objext'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 ac_cv_have_decl_vsnprintf=yes
13508else
13509 echo "$as_me: failed program was:" >&5
13510sed 's/^/| /' conftest.$ac_ext >&5
13511
13512ac_cv_have_decl_vsnprintf=no
13513fi
13514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13515fi
13516echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13517echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13518if test $ac_cv_have_decl_vsnprintf = yes; then
13519
13520cat >>confdefs.h <<_ACEOF
13521#define HAVE_DECL_VSNPRINTF 1
13522_ACEOF
13523
13524
13525else
13526 cat >>confdefs.h <<_ACEOF
13527#define HAVE_DECL_VSNPRINTF 0
13528_ACEOF
13529
13530
13531fi
13532
13533
13534
13535 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13536echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13537if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539else
13540 cat >conftest.$ac_ext <<_ACEOF
13541/* confdefs.h. */
13542_ACEOF
13543cat confdefs.h >>conftest.$ac_ext
13544cat >>conftest.$ac_ext <<_ACEOF
13545/* end confdefs.h. */
13546#include <locale.h>
13547int
13548main ()
13549{
13550return LC_MESSAGES
13551 ;
13552 return 0;
13553}
13554_ACEOF
13555rm -f conftest.$ac_objext conftest$ac_exeext
13556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag"
13565 || test ! -s conftest.err'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; } &&
13571 { ac_try='test -s conftest$ac_exeext'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 am_cv_val_LC_MESSAGES=yes
13578else
13579 echo "$as_me: failed program was:" >&5
13580sed 's/^/| /' conftest.$ac_ext >&5
13581
13582am_cv_val_LC_MESSAGES=no
13583fi
13584rm -f conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586fi
13587echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13588echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13589 if test $am_cv_val_LC_MESSAGES = yes; then
13590
13591cat >>confdefs.h <<\_ACEOF
13592#define HAVE_LC_MESSAGES 1
13593_ACEOF
13594
13595 fi
13596
13597
13598# ----------------------- #
13599# Checks for structures. #
13600# ----------------------- #
13601
13602echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13603echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13604if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606else
13607 cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613$ac_includes_default
13614int
13615main ()
13616{
13617static struct stat ac_aggr;
13618if (ac_aggr.st_blocks)
13619return 0;
13620 ;
13621 return 0;
13622}
13623_ACEOF
13624rm -f conftest.$ac_objext
13625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626 (eval $ac_compile) 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest.$ac_objext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_member_struct_stat_st_blocks=yes
13647else
13648 echo "$as_me: failed program was:" >&5
13649sed 's/^/| /' conftest.$ac_ext >&5
13650
13651cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657$ac_includes_default
13658int
13659main ()
13660{
13661static struct stat ac_aggr;
13662if (sizeof ac_aggr.st_blocks)
13663return 0;
13664 ;
13665 return 0;
13666}
13667_ACEOF
13668rm -f conftest.$ac_objext
13669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>conftest.er1
13671 ac_status=$?
13672 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
13677 { ac_try='test -z "$ac_c_werror_flag"
13678 || test ! -s conftest.err'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_cv_member_struct_stat_st_blocks=yes
13691else
13692 echo "$as_me: failed program was:" >&5
13693sed 's/^/| /' conftest.$ac_ext >&5
13694
13695ac_cv_member_struct_stat_st_blocks=no
13696fi
13697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698fi
13699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13700fi
13701echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13702echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13703if test $ac_cv_member_struct_stat_st_blocks = yes; then
13704
13705cat >>confdefs.h <<_ACEOF
13706#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13707_ACEOF
13708
13709
13710fi
13711echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13712echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13713if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716 cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h. */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h. */
13722$ac_includes_default
13723int
13724main ()
13725{
13726static struct stat ac_aggr;
13727if (ac_aggr.st_blksize)
13728return 0;
13729 ;
13730 return 0;
13731}
13732_ACEOF
13733rm -f conftest.$ac_objext
13734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag"
13743 || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_cv_member_struct_stat_st_blksize=yes
13756else
13757 echo "$as_me: failed program was:" >&5
13758sed 's/^/| /' conftest.$ac_ext >&5
13759
13760cat >conftest.$ac_ext <<_ACEOF
13761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h. */
13766$ac_includes_default
13767int
13768main ()
13769{
13770static struct stat ac_aggr;
13771if (sizeof ac_aggr.st_blksize)
13772return 0;
13773 ;
13774 return 0;
13775}
13776_ACEOF
13777rm -f conftest.$ac_objext
13778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -z "$ac_c_werror_flag"
13787 || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_member_struct_stat_st_blksize=yes
13800else
13801 echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
13804ac_cv_member_struct_stat_st_blksize=no
13805fi
13806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807fi
13808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809fi
13810echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13811echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13812if test $ac_cv_member_struct_stat_st_blksize = yes; then
13813
13814cat >>confdefs.h <<_ACEOF
13815#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13816_ACEOF
13817
13818
13819fi
13820
13821
13822# ------------------ #
13823# Checks for types. #
13824# ------------------ #
13825
13826echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13827echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13828if test "${ac_cv_type_signal+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
13831 cat >conftest.$ac_ext <<_ACEOF
13832/* confdefs.h. */
13833_ACEOF
13834cat confdefs.h >>conftest.$ac_ext
13835cat >>conftest.$ac_ext <<_ACEOF
13836/* end confdefs.h. */
13837#include <sys/types.h>
13838#include <signal.h>
13839#ifdef signal
13840# undef signal
13841#endif
13842#ifdef __cplusplus
13843extern "C" void (*signal (int, void (*)(int)))(int);
13844#else
13845void (*signal ()) ();
13846#endif
13847
13848int
13849main ()
13850{
13851int i;
13852 ;
13853 return 0;
13854}
13855_ACEOF
13856rm -f conftest.$ac_objext
13857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13858 (eval $ac_compile) 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag"
13866 || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 ac_cv_type_signal=void
13879else
13880 echo "$as_me: failed program was:" >&5
13881sed 's/^/| /' conftest.$ac_ext >&5
13882
13883ac_cv_type_signal=int
13884fi
13885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13886fi
13887echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13888echo "${ECHO_T}$ac_cv_type_signal" >&6
13889
13890cat >>confdefs.h <<_ACEOF
13891#define RETSIGTYPE $ac_cv_type_signal
13892_ACEOF
13893
13894
13895echo "$as_me:$LINENO: checking for socklen_t" >&5
13896echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13897if test "${ac_cv_type_socklen_t+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899else
13900 cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h. */
13906#include <sys/types.h>
13907#include <sys/socket.h>
13908
13909
13910int
13911main ()
13912{
13913if ((socklen_t *) 0)
13914 return 0;
13915if (sizeof (socklen_t))
13916 return 0;
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext
13922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13923 (eval $ac_compile) 2>conftest.er1
13924 ac_status=$?
13925 grep -v '^ *+' conftest.er1 >conftest.err
13926 rm -f conftest.er1
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
13930 { ac_try='test -z "$ac_c_werror_flag"
13931 || test ! -s conftest.err'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest.$ac_objext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_type_socklen_t=yes
13944else
13945 echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
13948ac_cv_type_socklen_t=no
13949fi
13950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13951fi
13952echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13953echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13954if test $ac_cv_type_socklen_t = yes; then
13955
13956cat >>confdefs.h <<_ACEOF
13957#define HAVE_SOCKLEN_T 1
13958_ACEOF
13959
13960
13961fi
13962
13963
13964# ------------------------------------- #
13965# Checks for compiler characteristics. #
13966# ------------------------------------- #
13967
13968echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13969echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13970if test "${ac_cv_c_const+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
13973 cat >conftest.$ac_ext <<_ACEOF
13974/* confdefs.h. */
13975_ACEOF
13976cat confdefs.h >>conftest.$ac_ext
13977cat >>conftest.$ac_ext <<_ACEOF
13978/* end confdefs.h. */
13979
13980int
13981main ()
13982{
13983/* FIXME: Include the comments suggested by Paul. */
13984#ifndef __cplusplus
13985 /* Ultrix mips cc rejects this. */
13986 typedef int charset[2];
13987 const charset x;
13988 /* SunOS 4.1.1 cc rejects this. */
13989 char const *const *ccp;
13990 char **p;
13991 /* NEC SVR4.0.2 mips cc rejects this. */
13992 struct point {int x, y;};
13993 static struct point const zero = {0,0};
13994 /* AIX XL C 1.02.0.0 rejects this.
13995 It does not let you subtract one const X* pointer from another in
13996 an arm of an if-expression whose if-part is not a constant
13997 expression */
13998 const char *g = "string";
13999 ccp = &g + (g ? g-g : 0);
14000 /* HPUX 7.0 cc rejects these. */
14001 ++ccp;
14002 p = (char**) ccp;
14003 ccp = (char const *const *) p;
14004 { /* SCO 3.2v4 cc rejects this. */
14005 char *t;
14006 char const *s = 0 ? (char *) 0 : (char const *) 0;
14007
14008 *t++ = 0;
14009 }
14010 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14011 int x[] = {25, 17};
14012 const int *foo = &x[0];
14013 ++foo;
14014 }
14015 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14016 typedef const int *iptr;
14017 iptr p = 0;
14018 ++p;
14019 }
14020 { /* AIX XL C 1.02.0.0 rejects this saying
14021 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14022 struct s { int j; const int *ap[3]; };
14023 struct s *b; b->j = 5;
14024 }
14025 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14026 const int foo = 10;
14027 }
14028#endif
14029
14030 ;
14031 return 0;
14032}
14033_ACEOF
14034rm -f conftest.$ac_objext
14035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036 (eval $ac_compile) 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest.$ac_objext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_c_const=yes
14057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061ac_cv_c_const=no
14062fi
14063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14064fi
14065echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14066echo "${ECHO_T}$ac_cv_c_const" >&6
14067if test $ac_cv_c_const = no; then
14068
14069cat >>confdefs.h <<\_ACEOF
14070#define const
14071_ACEOF
14072
14073fi
14074
14075echo "$as_me:$LINENO: checking for inline" >&5
14076echo $ECHO_N "checking for inline... $ECHO_C" >&6
14077if test "${ac_cv_c_inline+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079else
14080 ac_cv_c_inline=no
14081for ac_kw in inline __inline__ __inline; do
14082 cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
14088#ifndef __cplusplus
14089typedef int foo_t;
14090static $ac_kw foo_t static_foo () {return 0; }
14091$ac_kw foo_t foo () {return 0; }
14092#endif
14093
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_c_inline=$ac_kw; break
14118else
14119 echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122fi
14123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14124done
14125
14126fi
14127echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14128echo "${ECHO_T}$ac_cv_c_inline" >&6
14129
14130
14131case $ac_cv_c_inline in
14132 inline | yes) ;;
14133 *)
14134 case $ac_cv_c_inline in
14135 no) ac_val=;;
14136 *) ac_val=$ac_cv_c_inline;;
14137 esac
14138 cat >>confdefs.h <<_ACEOF
14139#ifndef __cplusplus
14140#define inline $ac_val
14141#endif
14142_ACEOF
14143 ;;
14144esac
14145
14146echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14147echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14148if test "${ac_cv_c_bigendian+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14150else
14151 # See if sys/param.h defines the BYTE_ORDER macro.
14152cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158#include <sys/types.h>
14159#include <sys/param.h>
14160
14161int
14162main ()
14163{
14164#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14165 bogus endian macros
14166#endif
14167
14168 ;
14169 return 0;
14170}
14171_ACEOF
14172rm -f conftest.$ac_objext
14173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14174 (eval $ac_compile) 2>conftest.er1
14175 ac_status=$?
14176 grep -v '^ *+' conftest.er1 >conftest.err
14177 rm -f conftest.er1
14178 cat conftest.err >&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -z "$ac_c_werror_flag"
14182 || test ! -s conftest.err'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest.$ac_objext'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14194 # It does; now see whether it defined to BIG_ENDIAN or not.
14195cat >conftest.$ac_ext <<_ACEOF
14196/* confdefs.h. */
14197_ACEOF
14198cat confdefs.h >>conftest.$ac_ext
14199cat >>conftest.$ac_ext <<_ACEOF
14200/* end confdefs.h. */
14201#include <sys/types.h>
14202#include <sys/param.h>
14203
14204int
14205main ()
14206{
14207#if BYTE_ORDER != BIG_ENDIAN
14208 not big endian
14209#endif
14210
14211 ;
14212 return 0;
14213}
14214_ACEOF
14215rm -f conftest.$ac_objext
14216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217 (eval $ac_compile) 2>conftest.er1
14218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_c_werror_flag"
14225 || test ! -s conftest.err'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_c_bigendian=yes
14238else
14239 echo "$as_me: failed program was:" >&5
14240sed 's/^/| /' conftest.$ac_ext >&5
14241
14242ac_cv_c_bigendian=no
14243fi
14244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14245else
14246 echo "$as_me: failed program was:" >&5
14247sed 's/^/| /' conftest.$ac_ext >&5
14248
14249# It does not; compile a test program.
14250if test "$cross_compiling" = yes; then
14251 # try to guess the endianness by grepping values into an object file
14252 ac_cv_c_bigendian=unknown
14253 cat >conftest.$ac_ext <<_ACEOF
14254/* confdefs.h. */
14255_ACEOF
14256cat confdefs.h >>conftest.$ac_ext
14257cat >>conftest.$ac_ext <<_ACEOF
14258/* end confdefs.h. */
14259short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14260short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14261void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14262short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14263short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14264void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14265int
14266main ()
14267{
14268 _ascii (); _ebcdic ();
14269 ;
14270 return 0;
14271}
14272_ACEOF
14273rm -f conftest.$ac_objext
14274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275 (eval $ac_compile) 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_c_werror_flag"
14283 || test ! -s conftest.err'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest.$ac_objext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14295 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14296 ac_cv_c_bigendian=yes
14297fi
14298if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14299 if test "$ac_cv_c_bigendian" = unknown; then
14300 ac_cv_c_bigendian=no
14301 else
14302 # finding both strings is unlikely to happen, but who knows?
14303 ac_cv_c_bigendian=unknown
14304 fi
14305fi
14306else
14307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310fi
14311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14312else
14313 cat >conftest.$ac_ext <<_ACEOF
14314/* confdefs.h. */
14315_ACEOF
14316cat confdefs.h >>conftest.$ac_ext
14317cat >>conftest.$ac_ext <<_ACEOF
14318/* end confdefs.h. */
14319int
14320main ()
14321{
14322 /* Are we little or big endian? From Harbison&Steele. */
14323 union
14324 {
14325 long l;
14326 char c[sizeof (long)];
14327 } u;
14328 u.l = 1;
14329 exit (u.c[sizeof (long) - 1] == 1);
14330}
14331_ACEOF
14332rm -f conftest$ac_exeext
14333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334 (eval $ac_link) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_cv_c_bigendian=no
14344else
14345 echo "$as_me: program exited with status $ac_status" >&5
14346echo "$as_me: failed program was:" >&5
14347sed 's/^/| /' conftest.$ac_ext >&5
14348
14349( exit $ac_status )
14350ac_cv_c_bigendian=yes
14351fi
14352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14353fi
14354fi
14355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14356fi
14357echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14358echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14359case $ac_cv_c_bigendian in
14360 yes)
14361
14362cat >>confdefs.h <<\_ACEOF
14363#define WORDS_BIGENDIAN 1
14364_ACEOF
14365 ;;
14366 no)
14367 ;;
14368 *)
14369 { { echo "$as_me:$LINENO: error: unknown endianness
14370presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14371echo "$as_me: error: unknown endianness
14372presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14373 { (exit 1); exit 1; }; } ;;
14374esac
14375
14376
14377# ------------------------------ #
14378# Checks for library functions. #
14379# ------------------------------ #
14380
14381# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14382# for constant arguments. Useless!
14383echo "$as_me:$LINENO: checking for working alloca.h" >&5
14384echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14385if test "${ac_cv_working_alloca_h+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387else
14388 cat >conftest.$ac_ext <<_ACEOF
14389/* confdefs.h. */
14390_ACEOF
14391cat confdefs.h >>conftest.$ac_ext
14392cat >>conftest.$ac_ext <<_ACEOF
14393/* end confdefs.h. */
14394#include <alloca.h>
14395int
14396main ()
14397{
14398char *p = (char *) alloca (2 * sizeof (int));
14399 ;
14400 return 0;
14401}
14402_ACEOF
14403rm -f conftest.$ac_objext conftest$ac_exeext
14404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14405 (eval $ac_link) 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest$ac_exeext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_cv_working_alloca_h=yes
14426else
14427 echo "$as_me: failed program was:" >&5
14428sed 's/^/| /' conftest.$ac_ext >&5
14429
14430ac_cv_working_alloca_h=no
14431fi
14432rm -f conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext conftest.$ac_ext
14434fi
14435echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14436echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14437if test $ac_cv_working_alloca_h = yes; then
14438
14439cat >>confdefs.h <<\_ACEOF
14440#define HAVE_ALLOCA_H 1
14441_ACEOF
14442
14443fi
14444
14445echo "$as_me:$LINENO: checking for alloca" >&5
14446echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14447if test "${ac_cv_func_alloca_works+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449else
14450 cat >conftest.$ac_ext <<_ACEOF
14451/* confdefs.h. */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
14455/* end confdefs.h. */
14456#ifdef __GNUC__
14457# define alloca __builtin_alloca
14458#else
14459# ifdef _MSC_VER
14460# include <malloc.h>
14461# define alloca _alloca
14462# else
14463# if HAVE_ALLOCA_H
14464# include <alloca.h>
14465# else
14466# ifdef _AIX
14467 #pragma alloca
14468# else
14469# ifndef alloca /* predefined by HP cc +Olibcalls */
14470char *alloca ();
14471# endif
14472# endif
14473# endif
14474# endif
14475#endif
14476
14477int
14478main ()
14479{
14480char *p = (char *) alloca (1);
14481 ;
14482 return 0;
14483}
14484_ACEOF
14485rm -f conftest.$ac_objext conftest$ac_exeext
14486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14487 (eval $ac_link) 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -z "$ac_c_werror_flag"
14495 || test ! -s conftest.err'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest$ac_exeext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14507 ac_cv_func_alloca_works=yes
14508else
14509 echo "$as_me: failed program was:" >&5
14510sed 's/^/| /' conftest.$ac_ext >&5
14511
14512ac_cv_func_alloca_works=no
14513fi
14514rm -f conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14516fi
14517echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14518echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14519
14520if test $ac_cv_func_alloca_works = yes; then
14521
14522cat >>confdefs.h <<\_ACEOF
14523#define HAVE_ALLOCA 1
14524_ACEOF
14525
14526else
14527 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14528# that cause trouble. Some versions do not even contain alloca or
14529# contain a buggy version. If you still want to use their alloca,
14530# use ar to extract alloca.o from them instead of compiling alloca.c.
14531
14532ALLOCA=alloca.$ac_objext
14533
14534cat >>confdefs.h <<\_ACEOF
14535#define C_ALLOCA 1
14536_ACEOF
14537
14538
14539echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14540echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14541if test "${ac_cv_os_cray+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543else
14544 cat >conftest.$ac_ext <<_ACEOF
14545/* confdefs.h. */
14546_ACEOF
14547cat confdefs.h >>conftest.$ac_ext
14548cat >>conftest.$ac_ext <<_ACEOF
14549/* end confdefs.h. */
14550#if defined(CRAY) && ! defined(CRAY2)
14551webecray
14552#else
14553wenotbecray
14554#endif
14555
14556_ACEOF
14557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14558 $EGREP "webecray" >/dev/null 2>&1; then
14559 ac_cv_os_cray=yes
14560else
14561 ac_cv_os_cray=no
14562fi
14563rm -f conftest*
14564
14565fi
14566echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14567echo "${ECHO_T}$ac_cv_os_cray" >&6
14568if test $ac_cv_os_cray = yes; then
14569 for ac_func in _getb67 GETB67 getb67; do
14570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14571echo "$as_me:$LINENO: checking for $ac_func" >&5
14572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14573if eval "test \"\${$as_ac_var+set}\" = set"; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14575else
14576 cat >conftest.$ac_ext <<_ACEOF
14577/* confdefs.h. */
14578_ACEOF
14579cat confdefs.h >>conftest.$ac_ext
14580cat >>conftest.$ac_ext <<_ACEOF
14581/* end confdefs.h. */
14582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14584#define $ac_func innocuous_$ac_func
14585
14586/* System header to define __stub macros and hopefully few prototypes,
14587 which can conflict with char $ac_func (); below.
14588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14589 <limits.h> exists even on freestanding compilers. */
14590
14591#ifdef __STDC__
14592# include <limits.h>
14593#else
14594# include <assert.h>
14595#endif
14596
14597#undef $ac_func
14598
14599/* Override any gcc2 internal prototype to avoid an error. */
14600#ifdef __cplusplus
14601extern "C"
14602{
14603#endif
14604/* We use char because int might match the return type of a gcc2
14605 builtin and then its argument prototype would still apply. */
14606char $ac_func ();
14607/* The GNU C library defines this for functions which it implements
14608 to always fail with ENOSYS. Some functions are actually named
14609 something starting with __ and the normal name is an alias. */
14610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14611choke me
14612#else
14613char (*f) () = $ac_func;
14614#endif
14615#ifdef __cplusplus
14616}
14617#endif
14618
14619int
14620main ()
14621{
14622return f != $ac_func;
14623 ;
14624 return 0;
14625}
14626_ACEOF
14627rm -f conftest.$ac_objext conftest$ac_exeext
14628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14629 (eval $ac_link) 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest$ac_exeext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 eval "$as_ac_var=yes"
14650else
14651 echo "$as_me: failed program was:" >&5
14652sed 's/^/| /' conftest.$ac_ext >&5
14653
14654eval "$as_ac_var=no"
14655fi
14656rm -f conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
14658fi
14659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14661if test `eval echo '${'$as_ac_var'}'` = yes; then
14662
14663cat >>confdefs.h <<_ACEOF
14664#define CRAY_STACKSEG_END $ac_func
14665_ACEOF
14666
14667 break
14668fi
14669
14670 done
14671fi
14672
14673echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14674echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14675if test "${ac_cv_c_stack_direction+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677else
14678 if test "$cross_compiling" = yes; then
14679 ac_cv_c_stack_direction=0
14680else
14681 cat >conftest.$ac_ext <<_ACEOF
14682/* confdefs.h. */
14683_ACEOF
14684cat confdefs.h >>conftest.$ac_ext
14685cat >>conftest.$ac_ext <<_ACEOF
14686/* end confdefs.h. */
14687int
14688find_stack_direction ()
14689{
14690 static char *addr = 0;
14691 auto char dummy;
14692 if (addr == 0)
14693 {
14694 addr = &dummy;
14695 return find_stack_direction ();
14696 }
14697 else
14698 return (&dummy > addr) ? 1 : -1;
14699}
14700
14701int
14702main ()
14703{
14704 exit (find_stack_direction () < 0);
14705}
14706_ACEOF
14707rm -f conftest$ac_exeext
14708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14709 (eval $ac_link) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_c_stack_direction=1
14719else
14720 echo "$as_me: program exited with status $ac_status" >&5
14721echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
14724( exit $ac_status )
14725ac_cv_c_stack_direction=-1
14726fi
14727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14728fi
14729fi
14730echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14731echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14732
14733cat >>confdefs.h <<_ACEOF
14734#define STACK_DIRECTION $ac_cv_c_stack_direction
14735_ACEOF
14736
14737
14738fi
14739
14740
14741
14742for ac_header in stdlib.h unistd.h
14743do
14744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14745if eval "test \"\${$as_ac_Header+set}\" = set"; then
14746 echo "$as_me:$LINENO: checking for $ac_header" >&5
14747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14748if eval "test \"\${$as_ac_Header+set}\" = set"; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750fi
14751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14753else
14754 # Is the header compilable?
14755echo "$as_me:$LINENO: checking $ac_header usability" >&5
14756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14757cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h. */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h. */
14763$ac_includes_default
14764#include <$ac_header>
14765_ACEOF
14766rm -f conftest.$ac_objext
14767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_header_compiler=yes
14789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
14793ac_header_compiler=no
14794fi
14795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14797echo "${ECHO_T}$ac_header_compiler" >&6
14798
14799# Is the header present?
14800echo "$as_me:$LINENO: checking $ac_header presence" >&5
14801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14802cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808#include <$ac_header>
14809_ACEOF
14810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } >/dev/null; then
14818 if test -s conftest.err; then
14819 ac_cpp_err=$ac_c_preproc_warn_flag
14820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14821 else
14822 ac_cpp_err=
14823 fi
14824else
14825 ac_cpp_err=yes
14826fi
14827if test -z "$ac_cpp_err"; then
14828 ac_header_preproc=yes
14829else
14830 echo "$as_me: failed program was:" >&5
14831sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 ac_header_preproc=no
14834fi
14835rm -f conftest.err conftest.$ac_ext
14836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14837echo "${ECHO_T}$ac_header_preproc" >&6
14838
14839# So? What about this header?
14840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14841 yes:no: )
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14846 ac_header_preproc=yes
14847 ;;
14848 no:yes:* )
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14856echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14861 (
14862 cat <<\_ASBOX
14863## ------------------------------------------ ##
14864## Report this to the AC_PACKAGE_NAME lists. ##
14865## ------------------------------------------ ##
14866_ASBOX
14867 ) |
14868 sed "s/^/$as_me: WARNING: /" >&2
14869 ;;
14870esac
14871echo "$as_me:$LINENO: checking for $ac_header" >&5
14872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14873if eval "test \"\${$as_ac_Header+set}\" = set"; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875else
14876 eval "$as_ac_Header=\$ac_header_preproc"
14877fi
14878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14880
14881fi
14882if test `eval echo '${'$as_ac_Header'}'` = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14885_ACEOF
14886
14887fi
14888
14889done
14890
14891
14892for ac_func in getpagesize
14893do
14894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14895echo "$as_me:$LINENO: checking for $ac_func" >&5
14896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14897if eval "test \"\${$as_ac_var+set}\" = set"; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899else
14900 cat >conftest.$ac_ext <<_ACEOF
14901/* confdefs.h. */
14902_ACEOF
14903cat confdefs.h >>conftest.$ac_ext
14904cat >>conftest.$ac_ext <<_ACEOF
14905/* end confdefs.h. */
14906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14908#define $ac_func innocuous_$ac_func
14909
14910/* System header to define __stub macros and hopefully few prototypes,
14911 which can conflict with char $ac_func (); below.
14912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14913 <limits.h> exists even on freestanding compilers. */
14914
14915#ifdef __STDC__
14916# include <limits.h>
14917#else
14918# include <assert.h>
14919#endif
14920
14921#undef $ac_func
14922
14923/* Override any gcc2 internal prototype to avoid an error. */
14924#ifdef __cplusplus
14925extern "C"
14926{
14927#endif
14928/* We use char because int might match the return type of a gcc2
14929 builtin and then its argument prototype would still apply. */
14930char $ac_func ();
14931/* The GNU C library defines this for functions which it implements
14932 to always fail with ENOSYS. Some functions are actually named
14933 something starting with __ and the normal name is an alias. */
14934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14935choke me
14936#else
14937char (*f) () = $ac_func;
14938#endif
14939#ifdef __cplusplus
14940}
14941#endif
14942
14943int
14944main ()
14945{
14946return f != $ac_func;
14947 ;
14948 return 0;
14949}
14950_ACEOF
14951rm -f conftest.$ac_objext conftest$ac_exeext
14952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
14960 { ac_try='test -z "$ac_c_werror_flag"
14961 || test ! -s conftest.err'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest$ac_exeext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 eval "$as_ac_var=yes"
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978eval "$as_ac_var=no"
14979fi
14980rm -f conftest.err conftest.$ac_objext \
14981 conftest$ac_exeext conftest.$ac_ext
14982fi
14983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14984echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14985if test `eval echo '${'$as_ac_var'}'` = yes; then
14986 cat >>confdefs.h <<_ACEOF
14987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14988_ACEOF
14989
14990fi
14991done
14992
14993echo "$as_me:$LINENO: checking for working mmap" >&5
14994echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14995if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14997else
14998 if test "$cross_compiling" = yes; then
14999 ac_cv_func_mmap_fixed_mapped=no
15000else
15001 cat >conftest.$ac_ext <<_ACEOF
15002/* confdefs.h. */
15003_ACEOF
15004cat confdefs.h >>conftest.$ac_ext
15005cat >>conftest.$ac_ext <<_ACEOF
15006/* end confdefs.h. */
15007$ac_includes_default
15008/* malloc might have been renamed as rpl_malloc. */
15009#undef malloc
15010
15011/* Thanks to Mike Haertel and Jim Avera for this test.
15012 Here is a matrix of mmap possibilities:
15013 mmap private not fixed
15014 mmap private fixed at somewhere currently unmapped
15015 mmap private fixed at somewhere already mapped
15016 mmap shared not fixed
15017 mmap shared fixed at somewhere currently unmapped
15018 mmap shared fixed at somewhere already mapped
15019 For private mappings, we should verify that changes cannot be read()
15020 back from the file, nor mmap's back from the file at a different
15021 address. (There have been systems where private was not correctly
15022 implemented like the infamous i386 svr4.0, and systems where the
15023 VM page cache was not coherent with the file system buffer cache
15024 like early versions of FreeBSD and possibly contemporary NetBSD.)
15025 For shared mappings, we should conversely verify that changes get
15026 propagated back to all the places they're supposed to be.
15027
15028 Grep wants private fixed already mapped.
15029 The main things grep needs to know about mmap are:
15030 * does it exist and is it safe to write into the mmap'd area
15031 * how to use it (BSD variants) */
15032
15033#include <fcntl.h>
15034#include <sys/mman.h>
15035
15036#if !STDC_HEADERS && !HAVE_STDLIB_H
15037char *malloc ();
15038#endif
15039
15040/* This mess was copied from the GNU getpagesize.h. */
15041#if !HAVE_GETPAGESIZE
15042/* Assume that all systems that can run configure have sys/param.h. */
15043# if !HAVE_SYS_PARAM_H
15044# define HAVE_SYS_PARAM_H 1
15045# endif
15046
15047# ifdef _SC_PAGESIZE
15048# define getpagesize() sysconf(_SC_PAGESIZE)
15049# else /* no _SC_PAGESIZE */
15050# if HAVE_SYS_PARAM_H
15051# include <sys/param.h>
15052# ifdef EXEC_PAGESIZE
15053# define getpagesize() EXEC_PAGESIZE
15054# else /* no EXEC_PAGESIZE */
15055# ifdef NBPG
15056# define getpagesize() NBPG * CLSIZE
15057# ifndef CLSIZE
15058# define CLSIZE 1
15059# endif /* no CLSIZE */
15060# else /* no NBPG */
15061# ifdef NBPC
15062# define getpagesize() NBPC
15063# else /* no NBPC */
15064# ifdef PAGESIZE
15065# define getpagesize() PAGESIZE
15066# endif /* PAGESIZE */
15067# endif /* no NBPC */
15068# endif /* no NBPG */
15069# endif /* no EXEC_PAGESIZE */
15070# else /* no HAVE_SYS_PARAM_H */
15071# define getpagesize() 8192 /* punt totally */
15072# endif /* no HAVE_SYS_PARAM_H */
15073# endif /* no _SC_PAGESIZE */
15074
15075#endif /* no HAVE_GETPAGESIZE */
15076
15077int
15078main ()
15079{
15080 char *data, *data2, *data3;
15081 int i, pagesize;
15082 int fd;
15083
15084 pagesize = getpagesize ();
15085
15086 /* First, make a file with some known garbage in it. */
15087 data = (char *) malloc (pagesize);
15088 if (!data)
15089 exit (1);
15090 for (i = 0; i < pagesize; ++i)
15091 *(data + i) = rand ();
15092 umask (0);
15093 fd = creat ("conftest.mmap", 0600);
15094 if (fd < 0)
15095 exit (1);
15096 if (write (fd, data, pagesize) != pagesize)
15097 exit (1);
15098 close (fd);
15099
15100 /* Next, try to mmap the file at a fixed address which already has
15101 something else allocated at it. If we can, also make sure that
15102 we see the same garbage. */
15103 fd = open ("conftest.mmap", O_RDWR);
15104 if (fd < 0)
15105 exit (1);
15106 data2 = (char *) malloc (2 * pagesize);
15107 if (!data2)
15108 exit (1);
15109 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15110 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15111 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15112 exit (1);
15113 for (i = 0; i < pagesize; ++i)
15114 if (*(data + i) != *(data2 + i))
15115 exit (1);
15116
15117 /* Finally, make sure that changes to the mapped area do not
15118 percolate back to the file as seen by read(). (This is a bug on
15119 some variants of i386 svr4.0.) */
15120 for (i = 0; i < pagesize; ++i)
15121 *(data2 + i) = *(data2 + i) + 1;
15122 data3 = (char *) malloc (pagesize);
15123 if (!data3)
15124 exit (1);
15125 if (read (fd, data3, pagesize) != pagesize)
15126 exit (1);
15127 for (i = 0; i < pagesize; ++i)
15128 if (*(data + i) != *(data3 + i))
15129 exit (1);
15130 close (fd);
15131 exit (0);
15132}
15133_ACEOF
15134rm -f conftest$ac_exeext
15135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15136 (eval $ac_link) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_func_mmap_fixed_mapped=yes
15146else
15147 echo "$as_me: program exited with status $ac_status" >&5
15148echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
15151( exit $ac_status )
15152ac_cv_func_mmap_fixed_mapped=no
15153fi
15154rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15155fi
15156fi
15157echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15158echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15159if test $ac_cv_func_mmap_fixed_mapped = yes; then
15160
15161cat >>confdefs.h <<\_ACEOF
15162#define HAVE_MMAP 1
15163_ACEOF
15164
15165fi
15166rm -f conftest.mmap
15167
15168echo "$as_me:$LINENO: checking for pid_t" >&5
15169echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15170if test "${ac_cv_type_pid_t+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172else
15173 cat >conftest.$ac_ext <<_ACEOF
15174/* confdefs.h. */
15175_ACEOF
15176cat confdefs.h >>conftest.$ac_ext
15177cat >>conftest.$ac_ext <<_ACEOF
15178/* end confdefs.h. */
15179$ac_includes_default
15180int
15181main ()
15182{
15183if ((pid_t *) 0)
15184 return 0;
15185if (sizeof (pid_t))
15186 return 0;
15187 ;
15188 return 0;
15189}
15190_ACEOF
15191rm -f conftest.$ac_objext
15192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag"
15201 || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest.$ac_objext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_type_pid_t=yes
15214else
15215 echo "$as_me: failed program was:" >&5
15216sed 's/^/| /' conftest.$ac_ext >&5
15217
15218ac_cv_type_pid_t=no
15219fi
15220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15221fi
15222echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15223echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15224if test $ac_cv_type_pid_t = yes; then
15225 :
15226else
15227
15228cat >>confdefs.h <<_ACEOF
15229#define pid_t int
15230_ACEOF
15231
15232fi
15233
15234
15235
15236for ac_header in unistd.h vfork.h
15237do
15238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15239if eval "test \"\${$as_ac_Header+set}\" = set"; then
15240 echo "$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
15244fi
15245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15247else
15248 # Is the header compilable?
15249echo "$as_me:$LINENO: checking $ac_header usability" >&5
15250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15251cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h. */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h. */
15257$ac_includes_default
15258#include <$ac_header>
15259_ACEOF
15260rm -f conftest.$ac_objext
15261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262 (eval $ac_compile) 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -z "$ac_c_werror_flag"
15270 || test ! -s conftest.err'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest.$ac_objext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_header_compiler=yes
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287ac_header_compiler=no
15288fi
15289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15291echo "${ECHO_T}$ac_header_compiler" >&6
15292
15293# Is the header present?
15294echo "$as_me:$LINENO: checking $ac_header presence" >&5
15295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15296cat >conftest.$ac_ext <<_ACEOF
15297/* confdefs.h. */
15298_ACEOF
15299cat confdefs.h >>conftest.$ac_ext
15300cat >>conftest.$ac_ext <<_ACEOF
15301/* end confdefs.h. */
15302#include <$ac_header>
15303_ACEOF
15304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15306 ac_status=$?
15307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } >/dev/null; then
15312 if test -s conftest.err; then
15313 ac_cpp_err=$ac_c_preproc_warn_flag
15314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15315 else
15316 ac_cpp_err=
15317 fi
15318else
15319 ac_cpp_err=yes
15320fi
15321if test -z "$ac_cpp_err"; then
15322 ac_header_preproc=yes
15323else
15324 echo "$as_me: failed program was:" >&5
15325sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_header_preproc=no
15328fi
15329rm -f conftest.err conftest.$ac_ext
15330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15331echo "${ECHO_T}$ac_header_preproc" >&6
15332
15333# So? What about this header?
15334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335 yes:no: )
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15340 ac_header_preproc=yes
15341 ;;
15342 no:yes:* )
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355 (
15356 cat <<\_ASBOX
15357## ------------------------------------------ ##
15358## Report this to the AC_PACKAGE_NAME lists. ##
15359## ------------------------------------------ ##
15360_ASBOX
15361 ) |
15362 sed "s/^/$as_me: WARNING: /" >&2
15363 ;;
15364esac
15365echo "$as_me:$LINENO: checking for $ac_header" >&5
15366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15367if eval "test \"\${$as_ac_Header+set}\" = set"; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15369else
15370 eval "$as_ac_Header=\$ac_header_preproc"
15371fi
15372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15374
15375fi
15376if test `eval echo '${'$as_ac_Header'}'` = yes; then
15377 cat >>confdefs.h <<_ACEOF
15378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379_ACEOF
15380
15381fi
15382
15383done
15384
15385
15386
15387for ac_func in fork vfork
15388do
15389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15390echo "$as_me:$LINENO: checking for $ac_func" >&5
15391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15392if eval "test \"\${$as_ac_var+set}\" = set"; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394else
15395 cat >conftest.$ac_ext <<_ACEOF
15396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
15401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15403#define $ac_func innocuous_$ac_func
15404
15405/* System header to define __stub macros and hopefully few prototypes,
15406 which can conflict with char $ac_func (); below.
15407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15408 <limits.h> exists even on freestanding compilers. */
15409
15410#ifdef __STDC__
15411# include <limits.h>
15412#else
15413# include <assert.h>
15414#endif
15415
15416#undef $ac_func
15417
15418/* Override any gcc2 internal prototype to avoid an error. */
15419#ifdef __cplusplus
15420extern "C"
15421{
15422#endif
15423/* We use char because int might match the return type of a gcc2
15424 builtin and then its argument prototype would still apply. */
15425char $ac_func ();
15426/* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15430choke me
15431#else
15432char (*f) () = $ac_func;
15433#endif
15434#ifdef __cplusplus
15435}
15436#endif
15437
15438int
15439main ()
15440{
15441return f != $ac_func;
15442 ;
15443 return 0;
15444}
15445_ACEOF
15446rm -f conftest.$ac_objext conftest$ac_exeext
15447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15448 (eval $ac_link) 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -z "$ac_c_werror_flag"
15456 || test ! -s conftest.err'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try='test -s conftest$ac_exeext'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 eval "$as_ac_var=yes"
15469else
15470 echo "$as_me: failed program was:" >&5
15471sed 's/^/| /' conftest.$ac_ext >&5
15472
15473eval "$as_ac_var=no"
15474fi
15475rm -f conftest.err conftest.$ac_objext \
15476 conftest$ac_exeext conftest.$ac_ext
15477fi
15478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15479echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15480if test `eval echo '${'$as_ac_var'}'` = yes; then
15481 cat >>confdefs.h <<_ACEOF
15482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15483_ACEOF
15484
15485fi
15486done
15487
15488if test "x$ac_cv_func_fork" = xyes; then
15489 echo "$as_me:$LINENO: checking for working fork" >&5
15490echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15491if test "${ac_cv_func_fork_works+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 if test "$cross_compiling" = yes; then
15495 ac_cv_func_fork_works=cross
15496else
15497 cat >conftest.$ac_ext <<_ACEOF
15498/* By Ruediger Kuhlmann. */
15499 #include <sys/types.h>
15500 #if HAVE_UNISTD_H
15501 # include <unistd.h>
15502 #endif
15503 /* Some systems only have a dummy stub for fork() */
15504 int main ()
15505 {
15506 if (fork() < 0)
15507 exit (1);
15508 exit (0);
15509 }
15510_ACEOF
15511rm -f conftest$ac_exeext
15512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15513 (eval $ac_link) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_func_fork_works=yes
15523else
15524 echo "$as_me: program exited with status $ac_status" >&5
15525echo "$as_me: failed program was:" >&5
15526sed 's/^/| /' conftest.$ac_ext >&5
15527
15528( exit $ac_status )
15529ac_cv_func_fork_works=no
15530fi
15531rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15532fi
15533fi
15534echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15535echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15536
15537else
15538 ac_cv_func_fork_works=$ac_cv_func_fork
15539fi
15540if test "x$ac_cv_func_fork_works" = xcross; then
15541 case $host in
15542 *-*-amigaos* | *-*-msdosdjgpp*)
15543 # Override, as these systems have only a dummy fork() stub
15544 ac_cv_func_fork_works=no
15545 ;;
15546 *)
15547 ac_cv_func_fork_works=yes
15548 ;;
15549 esac
15550 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15551echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15552fi
15553ac_cv_func_vfork_works=$ac_cv_func_vfork
15554if test "x$ac_cv_func_vfork" = xyes; then
15555 echo "$as_me:$LINENO: checking for working vfork" >&5
15556echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15557if test "${ac_cv_func_vfork_works+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559else
15560 if test "$cross_compiling" = yes; then
15561 ac_cv_func_vfork_works=cross
15562else
15563 cat >conftest.$ac_ext <<_ACEOF
15564/* confdefs.h. */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
15569/* Thanks to Paul Eggert for this test. */
15570#include <stdio.h>
15571#include <stdlib.h>
15572#include <sys/types.h>
15573#include <sys/stat.h>
15574#include <sys/wait.h>
15575#if HAVE_UNISTD_H
15576# include <unistd.h>
15577#endif
15578#if HAVE_VFORK_H
15579# include <vfork.h>
15580#endif
15581/* On some sparc systems, changes by the child to local and incoming
15582 argument registers are propagated back to the parent. The compiler
15583 is told about this with #include <vfork.h>, but some compilers
15584 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15585 static variable whose address is put into a register that is
15586 clobbered by the vfork. */
15587static void
15588#ifdef __cplusplus
15589sparc_address_test (int arg)
15590# else
15591sparc_address_test (arg) int arg;
15592#endif
15593{
15594 static pid_t child;
15595 if (!child) {
15596 child = vfork ();
15597 if (child < 0) {
15598 perror ("vfork");
15599 _exit(2);
15600 }
15601 if (!child) {
15602 arg = getpid();
15603 write(-1, "", 0);
15604 _exit (arg);
15605 }
15606 }
15607}
15608
15609int
15610main ()
15611{
15612 pid_t parent = getpid ();
15613 pid_t child;
15614
15615 sparc_address_test (0);
15616
15617 child = vfork ();
15618
15619 if (child == 0) {
15620 /* Here is another test for sparc vfork register problems. This
15621 test uses lots of local variables, at least as many local
15622 variables as main has allocated so far including compiler
15623 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15624 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15625 reuse the register of parent for one of the local variables,
15626 since it will think that parent can't possibly be used any more
15627 in this routine. Assigning to the local variable will thus
15628 munge parent in the parent process. */
15629 pid_t
15630 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15631 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15632 /* Convince the compiler that p..p7 are live; otherwise, it might
15633 use the same hardware register for all 8 local variables. */
15634 if (p != p1 || p != p2 || p != p3 || p != p4
15635 || p != p5 || p != p6 || p != p7)
15636 _exit(1);
15637
15638 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15639 from child file descriptors. If the child closes a descriptor
15640 before it execs or exits, this munges the parent's descriptor
15641 as well. Test for this by closing stdout in the child. */
15642 _exit(close(fileno(stdout)) != 0);
15643 } else {
15644 int status;
15645 struct stat st;
15646
15647 while (wait(&status) != child)
15648 ;
15649 exit(
15650 /* Was there some problem with vforking? */
15651 child < 0
15652
15653 /* Did the child fail? (This shouldn't happen.) */
15654 || status
15655
15656 /* Did the vfork/compiler bug occur? */
15657 || parent != getpid()
15658
15659 /* Did the file descriptor bug occur? */
15660 || fstat(fileno(stdout), &st) != 0
15661 );
15662 }
15663}
15664_ACEOF
15665rm -f conftest$ac_exeext
15666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15667 (eval $ac_link) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 ac_cv_func_vfork_works=yes
15677else
15678 echo "$as_me: program exited with status $ac_status" >&5
15679echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
15682( exit $ac_status )
15683ac_cv_func_vfork_works=no
15684fi
15685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15686fi
15687fi
15688echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15689echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15690
15691fi;
15692if test "x$ac_cv_func_fork_works" = xcross; then
15693 ac_cv_func_vfork_works=$ac_cv_func_vfork
15694 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15695echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15696fi
15697
15698if test "x$ac_cv_func_vfork_works" = xyes; then
15699
15700cat >>confdefs.h <<\_ACEOF
15701#define HAVE_WORKING_VFORK 1
15702_ACEOF
15703
15704else
15705
15706cat >>confdefs.h <<\_ACEOF
15707#define vfork fork
15708_ACEOF
15709
15710fi
15711if test "x$ac_cv_func_fork_works" = xyes; then
15712
15713cat >>confdefs.h <<\_ACEOF
15714#define HAVE_WORKING_FORK 1
15715_ACEOF
15716
15717fi
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739for ac_func in canonicalize_file_name realpath getrusage getuid \
15740 getgid poll pread64 sbrk setpgid setpgrp setsid \
15741 sigaction sigprocmask sigsetmask socketpair syscall \
15742 ttrace wborder setlocale iconvlist
15743do
15744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15745echo "$as_me:$LINENO: checking for $ac_func" >&5
15746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15747if eval "test \"\${$as_ac_var+set}\" = set"; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749else
15750 cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15758#define $ac_func innocuous_$ac_func
15759
15760/* System header to define __stub macros and hopefully few prototypes,
15761 which can conflict with char $ac_func (); below.
15762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15763 <limits.h> exists even on freestanding compilers. */
15764
15765#ifdef __STDC__
15766# include <limits.h>
15767#else
15768# include <assert.h>
15769#endif
15770
15771#undef $ac_func
15772
15773/* Override any gcc2 internal prototype to avoid an error. */
15774#ifdef __cplusplus
15775extern "C"
15776{
15777#endif
15778/* We use char because int might match the return type of a gcc2
15779 builtin and then its argument prototype would still apply. */
15780char $ac_func ();
15781/* The GNU C library defines this for functions which it implements
15782 to always fail with ENOSYS. Some functions are actually named
15783 something starting with __ and the normal name is an alias. */
15784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15785choke me
15786#else
15787char (*f) () = $ac_func;
15788#endif
15789#ifdef __cplusplus
15790}
15791#endif
15792
15793int
15794main ()
15795{
15796return f != $ac_func;
15797 ;
15798 return 0;
15799}
15800_ACEOF
15801rm -f conftest.$ac_objext conftest$ac_exeext
15802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803 (eval $ac_link) 2>conftest.er1
15804 ac_status=$?
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -z "$ac_c_werror_flag"
15811 || test ! -s conftest.err'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; } &&
15817 { ac_try='test -s conftest$ac_exeext'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15823 eval "$as_ac_var=yes"
15824else
15825 echo "$as_me: failed program was:" >&5
15826sed 's/^/| /' conftest.$ac_ext >&5
15827
15828eval "$as_ac_var=no"
15829fi
15830rm -f conftest.err conftest.$ac_objext \
15831 conftest$ac_exeext conftest.$ac_ext
15832fi
15833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15835if test `eval echo '${'$as_ac_var'}'` = yes; then
15836 cat >>confdefs.h <<_ACEOF
15837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15838_ACEOF
15839
15840fi
15841done
15842
15843
15844 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15845echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15846if test "${am_cv_langinfo_codeset+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848else
15849 cat >conftest.$ac_ext <<_ACEOF
15850/* confdefs.h. */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h. */
15855#include <langinfo.h>
15856int
15857main ()
15858{
15859char* cs = nl_langinfo(CODESET);
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest.$ac_objext conftest$ac_exeext
15865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866 (eval $ac_link) 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest$ac_exeext'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 am_cv_langinfo_codeset=yes
15887else
15888 echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891am_cv_langinfo_codeset=no
15892fi
15893rm -f conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15895
15896fi
15897echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15898echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15899 if test $am_cv_langinfo_codeset = yes; then
15900
15901cat >>confdefs.h <<\_ACEOF
15902#define HAVE_LANGINFO_CODESET 1
15903_ACEOF
15904
15905 fi
15906
15907
15908# Check the return and argument types of ptrace. No canned test for
15909# this, so roll our own.
15910gdb_ptrace_headers='
15911#if HAVE_SYS_TYPES_H
15912# include <sys/types.h>
15913#endif
15914#if HAVE_SYS_PTRACE_H
15915# include <sys/ptrace.h>
15916#endif
15917#if HAVE_UNISTD_H
15918# include <unistd.h>
15919#endif
15920'
15921# There is no point in checking if we don't have a prototype.
15922echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15923echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15924if test "${ac_cv_have_decl_ptrace+set}" = set; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926else
15927 cat >conftest.$ac_ext <<_ACEOF
15928/* confdefs.h. */
15929_ACEOF
15930cat confdefs.h >>conftest.$ac_ext
15931cat >>conftest.$ac_ext <<_ACEOF
15932/* end confdefs.h. */
15933$gdb_ptrace_headers
15934
15935int
15936main ()
15937{
15938#ifndef ptrace
15939 char *p = (char *) ptrace;
15940#endif
15941
15942 ;
15943 return 0;
15944}
15945_ACEOF
15946rm -f conftest.$ac_objext
15947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
15955 { ac_try='test -z "$ac_c_werror_flag"
15956 || test ! -s conftest.err'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try='test -s conftest.$ac_objext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_have_decl_ptrace=yes
15969else
15970 echo "$as_me: failed program was:" >&5
15971sed 's/^/| /' conftest.$ac_ext >&5
15972
15973ac_cv_have_decl_ptrace=no
15974fi
15975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15976fi
15977echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
15978echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
15979if test $ac_cv_have_decl_ptrace = yes; then
15980
15981cat >>confdefs.h <<_ACEOF
15982#define HAVE_DECL_PTRACE 1
15983_ACEOF
15984
15985
15986else
15987 cat >>confdefs.h <<_ACEOF
15988#define HAVE_DECL_PTRACE 0
15989_ACEOF
15990
15991
15992 : ${gdb_cv_func_ptrace_ret='int'}
15993 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15994
15995fi
15996
15997
15998# Check return type. Varargs (used on GNU/Linux) conflict with the
15999# empty argument list, so check for that explicitly.
16000echo "$as_me:$LINENO: checking return type of ptrace" >&5
16001echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16002if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004else
16005 cat >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$gdb_ptrace_headers
16012int
16013main ()
16014{
16015extern long ptrace (enum __ptrace_request, ...);
16016 ;
16017 return 0;
16018}
16019_ACEOF
16020rm -f conftest.$ac_objext
16021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16022 (eval $ac_compile) 2>conftest.er1
16023 ac_status=$?
16024 grep -v '^ *+' conftest.er1 >conftest.err
16025 rm -f conftest.er1
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -z "$ac_c_werror_flag"
16030 || test ! -s conftest.err'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16033 ac_status=$?
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } &&
16036 { ac_try='test -s conftest.$ac_objext'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 gdb_cv_func_ptrace_ret='long'
16043else
16044 echo "$as_me: failed program was:" >&5
16045sed 's/^/| /' conftest.$ac_ext >&5
16046
16047cat >conftest.$ac_ext <<_ACEOF
16048/* confdefs.h. */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h. */
16053$gdb_ptrace_headers
16054int
16055main ()
16056{
16057extern int ptrace ();
16058 ;
16059 return 0;
16060}
16061_ACEOF
16062rm -f conftest.$ac_objext
16063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16064 (eval $ac_compile) 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag"
16072 || test ! -s conftest.err'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest.$ac_objext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 gdb_cv_func_ptrace_ret='int'
16085else
16086 echo "$as_me: failed program was:" >&5
16087sed 's/^/| /' conftest.$ac_ext >&5
16088
16089gdb_cv_func_ptrace_ret='long'
16090fi
16091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16092fi
16093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16094fi
16095echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16096echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16097
16098cat >>confdefs.h <<_ACEOF
16099#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16100_ACEOF
16101
16102# Check argument types.
16103echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16104echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16105if test "${gdb_cv_func_ptrace_args+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107else
16108
16109 cat >conftest.$ac_ext <<_ACEOF
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115$gdb_ptrace_headers
16116int
16117main ()
16118{
16119extern long ptrace (enum __ptrace_request, ...);
16120 ;
16121 return 0;
16122}
16123_ACEOF
16124rm -f conftest.$ac_objext
16125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16126 (eval $ac_compile) 2>conftest.er1
16127 ac_status=$?
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
16133 { ac_try='test -z "$ac_c_werror_flag"
16134 || test ! -s conftest.err'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest.$ac_objext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 gdb_cv_func_ptrace_args='int,int,long,long'
16147else
16148 echo "$as_me: failed program was:" >&5
16149sed 's/^/| /' conftest.$ac_ext >&5
16150
16151
16152for gdb_arg1 in 'int' 'long'; do
16153 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16154 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16155 for gdb_arg4 in 'int' 'long'; do
16156 cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
16162$gdb_ptrace_headers
16163int
16164main ()
16165{
16166
16167extern $gdb_cv_func_ptrace_ret
16168 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16169
16170 ;
16171 return 0;
16172}
16173_ACEOF
16174rm -f conftest.$ac_objext
16175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag"
16184 || test ! -s conftest.err'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest.$ac_objext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16197 break 4;
16198else
16199 echo "$as_me: failed program was:" >&5
16200sed 's/^/| /' conftest.$ac_ext >&5
16201
16202fi
16203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16204 for gdb_arg5 in 'int *' 'int' 'long'; do
16205 cat >conftest.$ac_ext <<_ACEOF
16206/* confdefs.h. */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h. */
16211$gdb_ptrace_headers
16212int
16213main ()
16214{
16215
16216extern $gdb_cv_func_ptrace_ret
16217 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16218
16219 ;
16220 return 0;
16221}
16222_ACEOF
16223rm -f conftest.$ac_objext
16224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245
16246gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16247 break 5;
16248else
16249 echo "$as_me: failed program was:" >&5
16250sed 's/^/| /' conftest.$ac_ext >&5
16251
16252fi
16253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16254 done
16255 done
16256 done
16257 done
16258done
16259# Provide a safe default value.
16260: ${gdb_cv_func_ptrace_args='int,int,long,long'}
16261
16262fi
16263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16264fi
16265echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16266echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16267ac_save_IFS=$IFS; IFS=','
16268set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16269IFS=$ac_save_IFS
16270shift
16271
16272cat >>confdefs.h <<_ACEOF
16273#define PTRACE_TYPE_ARG3 $3
16274_ACEOF
16275
16276if test -n "$5"; then
16277
16278cat >>confdefs.h <<_ACEOF
16279#define PTRACE_TYPE_ARG5 $5
16280_ACEOF
16281
16282fi
16283
16284if test "$cross_compiling" = no; then
16285 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16286echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16287if test "${ac_cv_func_setpgrp_void+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16289else
16290 if test "$cross_compiling" = yes; then
16291 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16292echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16293 { (exit 1); exit 1; }; }
16294else
16295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301#if HAVE_UNISTD_H
16302# include <unistd.h>
16303#endif
16304
16305int
16306main ()
16307{
16308/* If this system has a BSD-style setpgrp which takes arguments,
16309 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16310 exit successfully. */
16311 exit (setpgrp (1,1) == -1 ? 0 : 1);
16312 ;
16313 return 0;
16314}
16315_ACEOF
16316rm -f conftest$ac_exeext
16317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16318 (eval $ac_link) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_func_setpgrp_void=no
16328else
16329 echo "$as_me: program exited with status $ac_status" >&5
16330echo "$as_me: failed program was:" >&5
16331sed 's/^/| /' conftest.$ac_ext >&5
16332
16333( exit $ac_status )
16334ac_cv_func_setpgrp_void=yes
16335fi
16336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16337fi
16338fi
16339echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16340echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16341if test $ac_cv_func_setpgrp_void = yes; then
16342
16343cat >>confdefs.h <<\_ACEOF
16344#define SETPGRP_VOID 1
16345_ACEOF
16346
16347fi
16348
16349else
16350 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16351echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16352if test "${ac_cv_func_setpgrp_void+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354else
16355 cat >conftest.$ac_ext <<_ACEOF
16356/* confdefs.h. */
16357_ACEOF
16358cat confdefs.h >>conftest.$ac_ext
16359cat >>conftest.$ac_ext <<_ACEOF
16360/* end confdefs.h. */
16361
16362#include <unistd.h>
16363
16364int
16365main ()
16366{
16367
16368 if (setpgrp(1,1) == -1)
16369 exit (0);
16370 else
16371 exit (1);
16372
16373 ;
16374 return 0;
16375}
16376_ACEOF
16377rm -f conftest.$ac_objext
16378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16379 (eval $ac_compile) 2>conftest.er1
16380 ac_status=$?
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
16386 { ac_try='test -z "$ac_c_werror_flag"
16387 || test ! -s conftest.err'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; } &&
16393 { ac_try='test -s conftest.$ac_objext'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }; then
16399 ac_cv_func_setpgrp_void=no
16400else
16401 echo "$as_me: failed program was:" >&5
16402sed 's/^/| /' conftest.$ac_ext >&5
16403
16404ac_cv_func_setpgrp_void=yes
16405fi
16406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16407fi
16408echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16409echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16410if test $ac_cv_func_setpgrp_void = yes; then
16411 cat >>confdefs.h <<\_ACEOF
16412#define SETPGRP_VOID 1
16413_ACEOF
16414
16415fi
16416fi
16417
16418# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16419# since sigsetjmp might only be defined as a macro.
16420echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16421echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16422if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424else
16425 cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431
16432#include <setjmp.h>
16433
16434int
16435main ()
16436{
16437sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16438 ;
16439 return 0;
16440}
16441_ACEOF
16442rm -f conftest.$ac_objext
16443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16444 (eval $ac_compile) 2>conftest.er1
16445 ac_status=$?
16446 grep -v '^ *+' conftest.er1 >conftest.err
16447 rm -f conftest.er1
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try='test -z "$ac_c_werror_flag"
16452 || test ! -s conftest.err'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest.$ac_objext'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 gdb_cv_func_sigsetjmp=yes
16465else
16466 echo "$as_me: failed program was:" >&5
16467sed 's/^/| /' conftest.$ac_ext >&5
16468
16469gdb_cv_func_sigsetjmp=no
16470fi
16471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16472fi
16473echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16474echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16475if test $gdb_cv_func_sigsetjmp = yes; then
16476
16477cat >>confdefs.h <<\_ACEOF
16478#define HAVE_SIGSETJMP 1
16479_ACEOF
16480
16481fi
16482
16483# Assume we'll default to using the included libiberty regex.
16484gdb_use_included_regex=yes
16485
16486# However, if the system regex is GNU regex, then default to *not*
16487# using the included regex.
16488echo "$as_me:$LINENO: checking for GNU regex" >&5
16489echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16490if test "${gdb_cv_have_gnu_regex+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492else
16493 cat >conftest.$ac_ext <<_ACEOF
16494/* confdefs.h. */
16495_ACEOF
16496cat confdefs.h >>conftest.$ac_ext
16497cat >>conftest.$ac_ext <<_ACEOF
16498/* end confdefs.h. */
16499#include <gnu-versions.h>
16500int
16501main ()
16502{
16503#define REGEX_INTERFACE_VERSION 1
16504#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16505# error "Version mismatch"
16506#endif
16507 ;
16508 return 0;
16509}
16510_ACEOF
16511rm -f conftest.$ac_objext
16512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16513 (eval $ac_compile) 2>conftest.er1
16514 ac_status=$?
16515 grep -v '^ *+' conftest.er1 >conftest.err
16516 rm -f conftest.er1
16517 cat conftest.err >&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } &&
16520 { ac_try='test -z "$ac_c_werror_flag"
16521 || test ! -s conftest.err'
16522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16523 (eval $ac_try) 2>&5
16524 ac_status=$?
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; } &&
16527 { ac_try='test -s conftest.$ac_objext'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 gdb_cv_have_gnu_regex=yes
16534else
16535 echo "$as_me: failed program was:" >&5
16536sed 's/^/| /' conftest.$ac_ext >&5
16537
16538gdb_cv_have_gnu_regex=no
16539fi
16540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16541fi
16542echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16543echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16544if test $gdb_cv_have_gnu_regex = yes; then
16545 gdb_use_included_regex=no
16546fi
16547
16548
16549# Check whether --with-included-regex or --without-included-regex was given.
16550if test "${with_included_regex+set}" = set; then
16551 withval="$with_included_regex"
16552 gdb_with_regex=$withval
16553else
16554 gdb_with_regex=$gdb_use_included_regex
16555fi;
16556if test "$gdb_with_regex" = yes; then
16557
16558cat >>confdefs.h <<\_ACEOF
16559#define USE_INCLUDED_REGEX 1
16560_ACEOF
16561
16562fi
16563
16564# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16565echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16566echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16567if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569else
16570 cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576#include <sys/param.h>
16577#include <sys/proc.h>
16578
16579
16580int
16581main ()
16582{
16583static struct thread ac_aggr;
16584if (ac_aggr.td_pcb)
16585return 0;
16586 ;
16587 return 0;
16588}
16589_ACEOF
16590rm -f conftest.$ac_objext
16591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag"
16600 || test ! -s conftest.err'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_member_struct_thread_td_pcb=yes
16613else
16614 echo "$as_me: failed program was:" >&5
16615sed 's/^/| /' conftest.$ac_ext >&5
16616
16617cat >conftest.$ac_ext <<_ACEOF
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
16622/* end confdefs.h. */
16623#include <sys/param.h>
16624#include <sys/proc.h>
16625
16626
16627int
16628main ()
16629{
16630static struct thread ac_aggr;
16631if (sizeof ac_aggr.td_pcb)
16632return 0;
16633 ;
16634 return 0;
16635}
16636_ACEOF
16637rm -f conftest.$ac_objext
16638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639 (eval $ac_compile) 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag"
16647 || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_cv_member_struct_thread_td_pcb=yes
16660else
16661 echo "$as_me: failed program was:" >&5
16662sed 's/^/| /' conftest.$ac_ext >&5
16663
16664ac_cv_member_struct_thread_td_pcb=no
16665fi
16666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16667fi
16668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16669fi
16670echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16671echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16672if test $ac_cv_member_struct_thread_td_pcb = yes; then
16673
16674cat >>confdefs.h <<_ACEOF
16675#define HAVE_STRUCT_THREAD_TD_PCB 1
16676_ACEOF
16677
16678
16679fi
16680
16681
16682# See if <sys/lwp.h> defines `struct lwp`.
16683echo "$as_me:$LINENO: checking for struct lwp" >&5
16684echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16685if test "${gdb_cv_struct_lwp+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687else
16688 cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694#include <sys/param.h>
16695#include <sys/lwp.h>
16696int
16697main ()
16698{
16699struct lwp l;
16700 ;
16701 return 0;
16702}
16703_ACEOF
16704rm -f conftest.$ac_objext
16705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag"
16714 || test ! -s conftest.err'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try='test -s conftest.$ac_objext'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 gdb_cv_struct_lwp=yes
16727else
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731gdb_cv_struct_lwp=no
16732fi
16733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16734fi
16735echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16736echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16737if test $gdb_cv_struct_lwp = yes; then
16738
16739cat >>confdefs.h <<\_ACEOF
16740#define HAVE_STRUCT_LWP 1
16741_ACEOF
16742
16743fi
16744
16745# See if <machine/reg.h> degines `struct reg'.
16746echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16747echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16748if test "${gdb_cv_struct_reg+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750else
16751 cat >conftest.$ac_ext <<_ACEOF
16752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h. */
16757#include <sys/types.h>
16758#include <machine/reg.h>
16759int
16760main ()
16761{
16762struct reg r;
16763 ;
16764 return 0;
16765}
16766_ACEOF
16767rm -f conftest.$ac_objext
16768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769 (eval $ac_compile) 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 gdb_cv_struct_reg=yes
16790else
16791 echo "$as_me: failed program was:" >&5
16792sed 's/^/| /' conftest.$ac_ext >&5
16793
16794gdb_cv_struct_reg=no
16795fi
16796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16797fi
16798echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16799echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16800if test $gdb_cv_struct_reg = yes; then
16801
16802cat >>confdefs.h <<\_ACEOF
16803#define HAVE_STRUCT_REG 1
16804_ACEOF
16805
16806fi
16807
16808# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16809# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16810echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16811echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16812if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814else
16815 cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821#include <machine/reg.h>
16822
16823int
16824main ()
16825{
16826static struct reg ac_aggr;
16827if (ac_aggr.r_fs)
16828return 0;
16829 ;
16830 return 0;
16831}
16832_ACEOF
16833rm -f conftest.$ac_objext
16834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16835 (eval $ac_compile) 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_member_struct_reg_r_fs=yes
16856else
16857 echo "$as_me: failed program was:" >&5
16858sed 's/^/| /' conftest.$ac_ext >&5
16859
16860cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h. */
16866#include <machine/reg.h>
16867
16868int
16869main ()
16870{
16871static struct reg ac_aggr;
16872if (sizeof ac_aggr.r_fs)
16873return 0;
16874 ;
16875 return 0;
16876}
16877_ACEOF
16878rm -f conftest.$ac_objext
16879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880 (eval $ac_compile) 2>conftest.er1
16881 ac_status=$?
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag"
16888 || test ! -s conftest.err'
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; } &&
16894 { ac_try='test -s conftest.$ac_objext'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_member_struct_reg_r_fs=yes
16901else
16902 echo "$as_me: failed program was:" >&5
16903sed 's/^/| /' conftest.$ac_ext >&5
16904
16905ac_cv_member_struct_reg_r_fs=no
16906fi
16907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16908fi
16909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910fi
16911echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16912echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16913if test $ac_cv_member_struct_reg_r_fs = yes; then
16914
16915cat >>confdefs.h <<_ACEOF
16916#define HAVE_STRUCT_REG_R_FS 1
16917_ACEOF
16918
16919
16920fi
16921echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16922echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16923if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925else
16926 cat >conftest.$ac_ext <<_ACEOF
16927/* confdefs.h. */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h. */
16932#include <machine/reg.h>
16933
16934int
16935main ()
16936{
16937static struct reg ac_aggr;
16938if (ac_aggr.r_gs)
16939return 0;
16940 ;
16941 return 0;
16942}
16943_ACEOF
16944rm -f conftest.$ac_objext
16945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>conftest.er1
16947 ac_status=$?
16948 grep -v '^ *+' conftest.er1 >conftest.err
16949 rm -f conftest.er1
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -z "$ac_c_werror_flag"
16954 || test ! -s conftest.err'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_cv_member_struct_reg_r_gs=yes
16967else
16968 echo "$as_me: failed program was:" >&5
16969sed 's/^/| /' conftest.$ac_ext >&5
16970
16971cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h. */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h. */
16977#include <machine/reg.h>
16978
16979int
16980main ()
16981{
16982static struct reg ac_aggr;
16983if (sizeof ac_aggr.r_gs)
16984return 0;
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
16990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16991 (eval $ac_compile) 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
16998 { ac_try='test -z "$ac_c_werror_flag"
16999 || test ! -s conftest.err'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest.$ac_objext'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_cv_member_struct_reg_r_gs=yes
17012else
17013 echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
17016ac_cv_member_struct_reg_r_gs=no
17017fi
17018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17019fi
17020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17021fi
17022echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17023echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17024if test $ac_cv_member_struct_reg_r_gs = yes; then
17025
17026cat >>confdefs.h <<_ACEOF
17027#define HAVE_STRUCT_REG_R_GS 1
17028_ACEOF
17029
17030
17031fi
17032
17033
17034# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17035echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17036echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17037if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040 cat >conftest.$ac_ext <<_ACEOF
17041/* confdefs.h. */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h. */
17046#include <sys/ptrace.h>
17047int
17048main ()
17049{
17050PTRACE_GETREGS;
17051 ;
17052 return 0;
17053}
17054_ACEOF
17055rm -f conftest.$ac_objext
17056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17057 (eval $ac_compile) 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -z "$ac_c_werror_flag"
17065 || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest.$ac_objext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 gdb_cv_have_ptrace_getregs=yes
17078else
17079 echo "$as_me: failed program was:" >&5
17080sed 's/^/| /' conftest.$ac_ext >&5
17081
17082gdb_cv_have_ptrace_getregs=no
17083fi
17084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17085fi
17086
17087echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17088echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17089if test $gdb_cv_have_ptrace_getregs = yes; then
17090
17091cat >>confdefs.h <<\_ACEOF
17092#define HAVE_PTRACE_GETREGS 1
17093_ACEOF
17094
17095fi
17096
17097# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17098echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17099echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17100if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102else
17103 cat >conftest.$ac_ext <<_ACEOF
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109#include <sys/ptrace.h>
17110int
17111main ()
17112{
17113PTRACE_GETFPXREGS;
17114 ;
17115 return 0;
17116}
17117_ACEOF
17118rm -f conftest.$ac_objext
17119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 gdb_cv_have_ptrace_getfpxregs=yes
17141else
17142 echo "$as_me: failed program was:" >&5
17143sed 's/^/| /' conftest.$ac_ext >&5
17144
17145gdb_cv_have_ptrace_getfpxregs=no
17146fi
17147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17148fi
17149
17150echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17151echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17152if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17153
17154cat >>confdefs.h <<\_ACEOF
17155#define HAVE_PTRACE_GETFPXREGS 1
17156_ACEOF
17157
17158fi
17159
17160# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17161echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17162echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17163if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17165else
17166 cat >conftest.$ac_ext <<_ACEOF
17167/* confdefs.h. */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h. */
17172#include <sys/types.h>
17173#include <sys/ptrace.h>
17174int
17175main ()
17176{
17177PT_GETDBREGS;
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest.$ac_objext
17183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17184 (eval $ac_compile) 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try='test -z "$ac_c_werror_flag"
17192 || test ! -s conftest.err'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; } &&
17198 { ac_try='test -s conftest.$ac_objext'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 gdb_cv_have_pt_getdbregs=yes
17205else
17206 echo "$as_me: failed program was:" >&5
17207sed 's/^/| /' conftest.$ac_ext >&5
17208
17209gdb_cv_have_pt_getdbregs=no
17210fi
17211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17212fi
17213
17214echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17215echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17216if test $gdb_cv_have_pt_getdbregs = yes; then
17217
17218cat >>confdefs.h <<\_ACEOF
17219#define HAVE_PT_GETDBREGS 1
17220_ACEOF
17221
17222fi
17223
17224# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17225echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17226echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17227if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17230 cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
17236#include <sys/types.h>
17237#include <sys/ptrace.h>
17238int
17239main ()
17240{
17241PT_GETXMMREGS;
17242 ;
17243 return 0;
17244}
17245_ACEOF
17246rm -f conftest.$ac_objext
17247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248 (eval $ac_compile) 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
17255 { ac_try='test -z "$ac_c_werror_flag"
17256 || test ! -s conftest.err'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest.$ac_objext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 gdb_cv_have_pt_getxmmregs=yes
17269else
17270 echo "$as_me: failed program was:" >&5
17271sed 's/^/| /' conftest.$ac_ext >&5
17272
17273gdb_cv_have_pt_getxmmregs=no
17274fi
17275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17276fi
17277
17278echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17279echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17280if test $gdb_cv_have_pt_getxmmregs = yes; then
17281
17282cat >>confdefs.h <<\_ACEOF
17283#define HAVE_PT_GETXMMREGS 1
17284_ACEOF
17285
17286fi
17287
17288# Detect which type of /proc is in use, such as for Unixware or Solaris.
17289
17290if test "${target}" = "${host}"; then
17291 case "${host}" in
17292 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17293
17294cat >>confdefs.h <<\_ACEOF
17295#define NEW_PROC_API 1
17296_ACEOF
17297
17298 ;;
17299 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
17300
17301cat >>confdefs.h <<\_ACEOF
17302#define NEW_PROC_API 1
17303_ACEOF
17304
17305 ;;
17306 mips-sgi-irix5*)
17307 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17308
17309cat >>confdefs.h <<\_ACEOF
17310#define _KMEMUSER 1
17311_ACEOF
17312
17313 ;;
17314 esac
17315fi
17316
17317if test "$ac_cv_header_sys_procfs_h" = yes; then
17318 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17319echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17320 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17322else
17323 cat >conftest.$ac_ext <<_ACEOF
17324/* confdefs.h. */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h. */
17329
17330#define _SYSCALL32
17331#include <sys/procfs.h>
17332int
17333main ()
17334{
17335pstatus_t avar
17336 ;
17337 return 0;
17338}
17339_ACEOF
17340rm -f conftest.$ac_objext
17341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17342 (eval $ac_compile) 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } &&
17349 { ac_try='test -z "$ac_c_werror_flag"
17350 || test ! -s conftest.err'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; } &&
17356 { ac_try='test -s conftest.$ac_objext'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17363else
17364 echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367bfd_cv_have_sys_procfs_type_pstatus_t=no
17368
17369fi
17370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17371fi
17372
17373 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17374
17375cat >>confdefs.h <<\_ACEOF
17376#define HAVE_PSTATUS_T 1
17377_ACEOF
17378
17379 fi
17380 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17381echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17382
17383 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17384echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17385 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17387else
17388 cat >conftest.$ac_ext <<_ACEOF
17389/* confdefs.h. */
17390_ACEOF
17391cat confdefs.h >>conftest.$ac_ext
17392cat >>conftest.$ac_ext <<_ACEOF
17393/* end confdefs.h. */
17394
17395#define _SYSCALL32
17396#include <sys/procfs.h>
17397int
17398main ()
17399{
17400prrun_t avar
17401 ;
17402 return 0;
17403}
17404_ACEOF
17405rm -f conftest.$ac_objext
17406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17407 (eval $ac_compile) 2>conftest.er1
17408 ac_status=$?
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } &&
17414 { ac_try='test -z "$ac_c_werror_flag"
17415 || test ! -s conftest.err'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; } &&
17421 { ac_try='test -s conftest.$ac_objext'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 bfd_cv_have_sys_procfs_type_prrun_t=yes
17428else
17429 echo "$as_me: failed program was:" >&5
17430sed 's/^/| /' conftest.$ac_ext >&5
17431
17432bfd_cv_have_sys_procfs_type_prrun_t=no
17433
17434fi
17435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17436fi
17437
17438 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17439
17440cat >>confdefs.h <<\_ACEOF
17441#define HAVE_PRRUN_T 1
17442_ACEOF
17443
17444 fi
17445 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17446echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17447
17448 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17449echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17450 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452else
17453 cat >conftest.$ac_ext <<_ACEOF
17454/* confdefs.h. */
17455_ACEOF
17456cat confdefs.h >>conftest.$ac_ext
17457cat >>conftest.$ac_ext <<_ACEOF
17458/* end confdefs.h. */
17459
17460#define _SYSCALL32
17461#include <sys/procfs.h>
17462int
17463main ()
17464{
17465gregset_t avar
17466 ;
17467 return 0;
17468}
17469_ACEOF
17470rm -f conftest.$ac_objext
17471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17472 (eval $ac_compile) 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -z "$ac_c_werror_flag"
17480 || test ! -s conftest.err'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest.$ac_objext'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 bfd_cv_have_sys_procfs_type_gregset_t=yes
17493else
17494 echo "$as_me: failed program was:" >&5
17495sed 's/^/| /' conftest.$ac_ext >&5
17496
17497bfd_cv_have_sys_procfs_type_gregset_t=no
17498
17499fi
17500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17501fi
17502
17503 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17504
17505cat >>confdefs.h <<\_ACEOF
17506#define HAVE_GREGSET_T 1
17507_ACEOF
17508
17509 fi
17510 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17511echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17512
17513 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17514echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17515 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517else
17518 cat >conftest.$ac_ext <<_ACEOF
17519/* confdefs.h. */
17520_ACEOF
17521cat confdefs.h >>conftest.$ac_ext
17522cat >>conftest.$ac_ext <<_ACEOF
17523/* end confdefs.h. */
17524
17525#define _SYSCALL32
17526#include <sys/procfs.h>
17527int
17528main ()
17529{
17530fpregset_t avar
17531 ;
17532 return 0;
17533}
17534_ACEOF
17535rm -f conftest.$ac_objext
17536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17537 (eval $ac_compile) 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_c_werror_flag"
17545 || test ! -s conftest.err'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest.$ac_objext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17557 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17558else
17559 echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562bfd_cv_have_sys_procfs_type_fpregset_t=no
17563
17564fi
17565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17566fi
17567
17568 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17569
17570cat >>confdefs.h <<\_ACEOF
17571#define HAVE_FPREGSET_T 1
17572_ACEOF
17573
17574 fi
17575 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17576echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17577
17578 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17579echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17580 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582else
17583 cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h. */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h. */
17589
17590#define _SYSCALL32
17591#include <sys/procfs.h>
17592int
17593main ()
17594{
17595prgregset_t avar
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600rm -f conftest.$ac_objext
17601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17602 (eval $ac_compile) 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17623else
17624 echo "$as_me: failed program was:" >&5
17625sed 's/^/| /' conftest.$ac_ext >&5
17626
17627bfd_cv_have_sys_procfs_type_prgregset_t=no
17628
17629fi
17630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17631fi
17632
17633 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17634
17635cat >>confdefs.h <<\_ACEOF
17636#define HAVE_PRGREGSET_T 1
17637_ACEOF
17638
17639 fi
17640 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17641echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17642
17643 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17644echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17645 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17646 echo $ECHO_N "(cached) $ECHO_C" >&6
17647else
17648 cat >conftest.$ac_ext <<_ACEOF
17649/* confdefs.h. */
17650_ACEOF
17651cat confdefs.h >>conftest.$ac_ext
17652cat >>conftest.$ac_ext <<_ACEOF
17653/* end confdefs.h. */
17654
17655#define _SYSCALL32
17656#include <sys/procfs.h>
17657int
17658main ()
17659{
17660prfpregset_t avar
17661 ;
17662 return 0;
17663}
17664_ACEOF
17665rm -f conftest.$ac_objext
17666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17667 (eval $ac_compile) 2>conftest.er1
17668 ac_status=$?
17669 grep -v '^ *+' conftest.er1 >conftest.err
17670 rm -f conftest.er1
17671 cat conftest.err >&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } &&
17674 { ac_try='test -z "$ac_c_werror_flag"
17675 || test ! -s conftest.err'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17688else
17689 echo "$as_me: failed program was:" >&5
17690sed 's/^/| /' conftest.$ac_ext >&5
17691
17692bfd_cv_have_sys_procfs_type_prfpregset_t=no
17693
17694fi
17695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17696fi
17697
17698 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17699
17700cat >>confdefs.h <<\_ACEOF
17701#define HAVE_PRFPREGSET_T 1
17702_ACEOF
17703
17704 fi
17705 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17706echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17707
17708 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17709echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17710 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17712else
17713 cat >conftest.$ac_ext <<_ACEOF
17714/* confdefs.h. */
17715_ACEOF
17716cat confdefs.h >>conftest.$ac_ext
17717cat >>conftest.$ac_ext <<_ACEOF
17718/* end confdefs.h. */
17719
17720#define _SYSCALL32
17721#include <sys/procfs.h>
17722int
17723main ()
17724{
17725prgregset32_t avar
17726 ;
17727 return 0;
17728}
17729_ACEOF
17730rm -f conftest.$ac_objext
17731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732 (eval $ac_compile) 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest.$ac_objext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17753else
17754 echo "$as_me: failed program was:" >&5
17755sed 's/^/| /' conftest.$ac_ext >&5
17756
17757bfd_cv_have_sys_procfs_type_prgregset32_t=no
17758
17759fi
17760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17761fi
17762
17763 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17764
17765cat >>confdefs.h <<\_ACEOF
17766#define HAVE_PRGREGSET32_T 1
17767_ACEOF
17768
17769 fi
17770 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17771echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17772
17773 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17774echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17775 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777else
17778 cat >conftest.$ac_ext <<_ACEOF
17779/* confdefs.h. */
17780_ACEOF
17781cat confdefs.h >>conftest.$ac_ext
17782cat >>conftest.$ac_ext <<_ACEOF
17783/* end confdefs.h. */
17784
17785#define _SYSCALL32
17786#include <sys/procfs.h>
17787int
17788main ()
17789{
17790prfpregset32_t avar
17791 ;
17792 return 0;
17793}
17794_ACEOF
17795rm -f conftest.$ac_objext
17796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17818else
17819 echo "$as_me: failed program was:" >&5
17820sed 's/^/| /' conftest.$ac_ext >&5
17821
17822bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17823
17824fi
17825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17826fi
17827
17828 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17829
17830cat >>confdefs.h <<\_ACEOF
17831#define HAVE_PRFPREGSET32_T 1
17832_ACEOF
17833
17834 fi
17835 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17836echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17837
17838 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17839echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17840 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842else
17843 cat >conftest.$ac_ext <<_ACEOF
17844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h. */
17849
17850#define _SYSCALL32
17851#include <sys/procfs.h>
17852int
17853main ()
17854{
17855lwpid_t avar
17856 ;
17857 return 0;
17858}
17859_ACEOF
17860rm -f conftest.$ac_objext
17861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17862 (eval $ac_compile) 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest.$ac_objext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 bfd_cv_have_sys_procfs_type_lwpid_t=yes
17883else
17884 echo "$as_me: failed program was:" >&5
17885sed 's/^/| /' conftest.$ac_ext >&5
17886
17887bfd_cv_have_sys_procfs_type_lwpid_t=no
17888
17889fi
17890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17891fi
17892
17893 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17894
17895cat >>confdefs.h <<\_ACEOF
17896#define HAVE_LWPID_T 1
17897_ACEOF
17898
17899 fi
17900 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17901echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17902
17903 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17904echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17905 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907else
17908 cat >conftest.$ac_ext <<_ACEOF
17909/* confdefs.h. */
17910_ACEOF
17911cat confdefs.h >>conftest.$ac_ext
17912cat >>conftest.$ac_ext <<_ACEOF
17913/* end confdefs.h. */
17914
17915#define _SYSCALL32
17916#include <sys/procfs.h>
17917int
17918main ()
17919{
17920psaddr_t avar
17921 ;
17922 return 0;
17923}
17924_ACEOF
17925rm -f conftest.$ac_objext
17926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17927 (eval $ac_compile) 2>conftest.er1
17928 ac_status=$?
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag"
17935 || test ! -s conftest.err'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest.$ac_objext'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 bfd_cv_have_sys_procfs_type_psaddr_t=yes
17948else
17949 echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952bfd_cv_have_sys_procfs_type_psaddr_t=no
17953
17954fi
17955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17956fi
17957
17958 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
17959
17960cat >>confdefs.h <<\_ACEOF
17961#define HAVE_PSADDR_T 1
17962_ACEOF
17963
17964 fi
17965 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
17966echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
17967
17968 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
17969echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
17970 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
17971 echo $ECHO_N "(cached) $ECHO_C" >&6
17972else
17973 cat >conftest.$ac_ext <<_ACEOF
17974/* confdefs.h. */
17975_ACEOF
17976cat confdefs.h >>conftest.$ac_ext
17977cat >>conftest.$ac_ext <<_ACEOF
17978/* end confdefs.h. */
17979
17980#define _SYSCALL32
17981#include <sys/procfs.h>
17982int
17983main ()
17984{
17985prsysent_t avar
17986 ;
17987 return 0;
17988}
17989_ACEOF
17990rm -f conftest.$ac_objext
17991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17992 (eval $ac_compile) 2>conftest.er1
17993 ac_status=$?
17994 grep -v '^ *+' conftest.er1 >conftest.err
17995 rm -f conftest.er1
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } &&
17999 { ac_try='test -z "$ac_c_werror_flag"
18000 || test ! -s conftest.err'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest.$ac_objext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18013else
18014 echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017bfd_cv_have_sys_procfs_type_prsysent_t=no
18018
18019fi
18020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18021fi
18022
18023 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18024
18025cat >>confdefs.h <<\_ACEOF
18026#define HAVE_PRSYSENT_T 1
18027_ACEOF
18028
18029 fi
18030 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18031echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18032
18033 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18034echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18035 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037else
18038 cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044
18045#define _SYSCALL32
18046#include <sys/procfs.h>
18047int
18048main ()
18049{
18050pr_sigset_t avar
18051 ;
18052 return 0;
18053}
18054_ACEOF
18055rm -f conftest.$ac_objext
18056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18057 (eval $ac_compile) 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
18064 { ac_try='test -z "$ac_c_werror_flag"
18065 || test ! -s conftest.err'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; } &&
18071 { ac_try='test -s conftest.$ac_objext'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18078else
18079 echo "$as_me: failed program was:" >&5
18080sed 's/^/| /' conftest.$ac_ext >&5
18081
18082bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18083
18084fi
18085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18086fi
18087
18088 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18089
18090cat >>confdefs.h <<\_ACEOF
18091#define HAVE_PR_SIGSET_T 1
18092_ACEOF
18093
18094 fi
18095 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18096echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18097
18098 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18099echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18100 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18102else
18103 cat >conftest.$ac_ext <<_ACEOF
18104/* confdefs.h. */
18105_ACEOF
18106cat confdefs.h >>conftest.$ac_ext
18107cat >>conftest.$ac_ext <<_ACEOF
18108/* end confdefs.h. */
18109
18110#define _SYSCALL32
18111#include <sys/procfs.h>
18112int
18113main ()
18114{
18115pr_sigaction64_t avar
18116 ;
18117 return 0;
18118}
18119_ACEOF
18120rm -f conftest.$ac_objext
18121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18122 (eval $ac_compile) 2>conftest.er1
18123 ac_status=$?
18124 grep -v '^ *+' conftest.er1 >conftest.err
18125 rm -f conftest.er1
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try='test -z "$ac_c_werror_flag"
18130 || test ! -s conftest.err'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest.$ac_objext'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; }; then
18142 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18143else
18144 echo "$as_me: failed program was:" >&5
18145sed 's/^/| /' conftest.$ac_ext >&5
18146
18147bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18148
18149fi
18150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18151fi
18152
18153 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18154
18155cat >>confdefs.h <<\_ACEOF
18156#define HAVE_PR_SIGACTION64_T 1
18157_ACEOF
18158
18159 fi
18160 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18161echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18162
18163 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18164echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18165 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18167else
18168 cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h. */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h. */
18174
18175#define _SYSCALL32
18176#include <sys/procfs.h>
18177int
18178main ()
18179{
18180pr_siginfo64_t avar
18181 ;
18182 return 0;
18183}
18184_ACEOF
18185rm -f conftest.$ac_objext
18186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187 (eval $ac_compile) 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18208else
18209 echo "$as_me: failed program was:" >&5
18210sed 's/^/| /' conftest.$ac_ext >&5
18211
18212bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18213
18214fi
18215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18216fi
18217
18218 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18219
18220cat >>confdefs.h <<\_ACEOF
18221#define HAVE_PR_SIGINFO64_T 1
18222_ACEOF
18223
18224 fi
18225 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18226echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18227
18228
18229
18230
18231
18232 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18233 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18234echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18235 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18237else
18238 if test "$cross_compiling" = yes; then
18239 gdb_cv_prfpregset_t_broken=yes
18240else
18241 cat >conftest.$ac_ext <<_ACEOF
18242/* confdefs.h. */
18243_ACEOF
18244cat confdefs.h >>conftest.$ac_ext
18245cat >>conftest.$ac_ext <<_ACEOF
18246/* end confdefs.h. */
18247#include <sys/procfs.h>
18248 int main ()
18249 {
18250 if (sizeof (prfpregset_t) == sizeof (void *))
18251 return 1;
18252 return 0;
18253 }
18254_ACEOF
18255rm -f conftest$ac_exeext
18256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18257 (eval $ac_link) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 gdb_cv_prfpregset_t_broken=no
18267else
18268 echo "$as_me: program exited with status $ac_status" >&5
18269echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
18272( exit $ac_status )
18273gdb_cv_prfpregset_t_broken=yes
18274fi
18275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18276fi
18277fi
18278
18279 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18280echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18281 if test $gdb_cv_prfpregset_t_broken = yes; then
18282
18283cat >>confdefs.h <<\_ACEOF
18284#define PRFPREGSET_T_BROKEN 1
18285_ACEOF
18286
18287 fi
18288 fi
18289
18290
18291 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18292echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18293 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295else
18296 cat >conftest.$ac_ext <<_ACEOF
18297/* confdefs.h. */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h. */
18302#include <unistd.h>
18303#include <sys/types.h>
18304#include <sys/procfs.h>
18305
18306int
18307main ()
18308{
18309
18310 int dummy;;
18311 dummy = ioctl(0, PIOCSET, &dummy);
18312
18313 ;
18314 return 0;
18315}
18316_ACEOF
18317rm -f conftest.$ac_objext
18318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18319 (eval $ac_compile) 2>conftest.er1
18320 ac_status=$?
18321 grep -v '^ *+' conftest.er1 >conftest.err
18322 rm -f conftest.er1
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_c_werror_flag"
18327 || test ! -s conftest.err'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 gdb_cv_have_procfs_piocset=yes
18340else
18341 echo "$as_me: failed program was:" >&5
18342sed 's/^/| /' conftest.$ac_ext >&5
18343
18344gdb_cv_have_procfs_piocset=no
18345fi
18346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18347fi
18348
18349 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18350echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18351 if test $gdb_cv_have_procfs_piocset = yes; then
18352
18353cat >>confdefs.h <<\_ACEOF
18354#define HAVE_PROCFS_PIOCSET 1
18355_ACEOF
18356
18357 fi
18358fi
18359
18360if test ${host} = ${target} ; then
18361
18362 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18363echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18364 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18366else
18367 cat >conftest.$ac_ext <<_ACEOF
18368/* confdefs.h. */
18369_ACEOF
18370cat confdefs.h >>conftest.$ac_ext
18371cat >>conftest.$ac_ext <<_ACEOF
18372/* end confdefs.h. */
18373#include <link.h>
18374int
18375main ()
18376{
18377struct link_map lm; (void) lm.l_addr;
18378 ;
18379 return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext
18383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18384 (eval $ac_compile) 2>conftest.er1
18385 ac_status=$?
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -z "$ac_c_werror_flag"
18392 || test ! -s conftest.err'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest.$ac_objext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 gdb_cv_have_struct_link_map_with_l_members=yes
18405else
18406 echo "$as_me: failed program was:" >&5
18407sed 's/^/| /' conftest.$ac_ext >&5
18408
18409gdb_cv_have_struct_link_map_with_l_members=no
18410fi
18411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18412fi
18413
18414 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18415echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18416 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18417
18418cat >>confdefs.h <<\_ACEOF
18419#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18420_ACEOF
18421
18422 fi
18423
18424
18425 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18426echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18427 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18429else
18430 cat >conftest.$ac_ext <<_ACEOF
18431/* confdefs.h. */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h. */
18436#include <sys/types.h>
18437#include <link.h>
18438int
18439main ()
18440{
18441struct link_map lm; (void) lm.lm_addr;
18442 ;
18443 return 0;
18444}
18445_ACEOF
18446rm -f conftest.$ac_objext
18447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18448 (eval $ac_compile) 2>conftest.er1
18449 ac_status=$?
18450 grep -v '^ *+' conftest.er1 >conftest.err
18451 rm -f conftest.er1
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try='test -z "$ac_c_werror_flag"
18456 || test ! -s conftest.err'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest.$ac_objext'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18465 ac_status=$?
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468 gdb_cv_have_struct_link_map_with_lm_members=yes
18469else
18470 echo "$as_me: failed program was:" >&5
18471sed 's/^/| /' conftest.$ac_ext >&5
18472
18473gdb_cv_have_struct_link_map_with_lm_members=no
18474fi
18475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18476fi
18477
18478 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18479echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18480 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18481
18482cat >>confdefs.h <<\_ACEOF
18483#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18484_ACEOF
18485
18486 fi
18487
18488
18489 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18490echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18491 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18493else
18494 cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500#include <sys/types.h>
18501#ifdef HAVE_NLIST_H
18502#include <nlist.h>
18503#endif
18504#include <link.h>
18505int
18506main ()
18507{
18508struct so_map lm; (void) lm.som_addr;
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext
18514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag"
18523 || test ! -s conftest.err'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 gdb_cv_have_struct_so_map_with_som_members=yes
18536else
18537 echo "$as_me: failed program was:" >&5
18538sed 's/^/| /' conftest.$ac_ext >&5
18539
18540gdb_cv_have_struct_so_map_with_som_members=no
18541fi
18542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18543fi
18544
18545 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18546echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18547 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18548
18549cat >>confdefs.h <<\_ACEOF
18550#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18551_ACEOF
18552
18553 fi
18554
18555
18556 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18557echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18558 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560else
18561 cat >conftest.$ac_ext <<_ACEOF
18562/* confdefs.h. */
18563_ACEOF
18564cat confdefs.h >>conftest.$ac_ext
18565cat >>conftest.$ac_ext <<_ACEOF
18566/* end confdefs.h. */
18567#define _SYSCALL32
18568#include <sys/link.h>
18569int
18570main ()
18571{
18572struct link_map32 l;
18573 ;
18574 return 0;
18575}
18576_ACEOF
18577rm -f conftest.$ac_objext
18578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18579 (eval $ac_compile) 2>conftest.er1
18580 ac_status=$?
18581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } &&
18586 { ac_try='test -z "$ac_c_werror_flag"
18587 || test ! -s conftest.err'
18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest.$ac_objext'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 gdb_cv_have_struct_link_map32=yes
18600else
18601 echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604gdb_cv_have_struct_link_map32=no
18605fi
18606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18607fi
18608
18609 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18610echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18611 if test $gdb_cv_have_struct_link_map32 = yes; then
18612
18613cat >>confdefs.h <<\_ACEOF
18614#define HAVE_STRUCT_LINK_MAP32 1
18615_ACEOF
18616
18617
18618cat >>confdefs.h <<\_ACEOF
18619#define _SYSCALL32 1
18620_ACEOF
18621
18622 fi
18623fi
18624
18625# Check if the compiler supports the `long long' type.
18626
18627echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18628echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18629if test "${gdb_cv_c_long_long+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18631else
18632 cat >conftest.$ac_ext <<_ACEOF
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
18637/* end confdefs.h. */
18638extern long long foo;
18639int
18640main ()
18641{
18642switch (foo & 2) { case 0: return 1; }
18643 ;
18644 return 0;
18645}
18646_ACEOF
18647rm -f conftest.$ac_objext
18648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18649 (eval $ac_compile) 2>conftest.er1
18650 ac_status=$?
18651 grep -v '^ *+' conftest.er1 >conftest.err
18652 rm -f conftest.er1
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag"
18657 || test ! -s conftest.err'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; } &&
18663 { ac_try='test -s conftest.$ac_objext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 gdb_cv_c_long_long=yes
18670else
18671 echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674gdb_cv_c_long_long=no
18675fi
18676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18677fi
18678echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18679echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18680if test $gdb_cv_c_long_long = yes; then
18681
18682cat >>confdefs.h <<\_ACEOF
18683#define CC_HAS_LONG_LONG 1
18684_ACEOF
18685
18686fi
18687
18688# Check if the compiler and runtime support printing long longs.
18689
18690echo "$as_me:$LINENO: checking for long long support in printf" >&5
18691echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18692if test "${gdb_cv_printf_has_long_long+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18694else
18695 if test "$cross_compiling" = yes; then
18696 gdb_cv_printf_has_long_long=no
18697else
18698 cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
18704$ac_includes_default
18705int
18706main ()
18707{
18708char buf[32];
18709 long long l = 0;
18710 l = (l << 16) + 0x0123;
18711 l = (l << 16) + 0x4567;
18712 l = (l << 16) + 0x89ab;
18713 l = (l << 16) + 0xcdef;
18714 sprintf (buf, "0x%016llx", l);
18715 return (strcmp ("0x0123456789abcdef", buf));
18716 ;
18717 return 0;
18718}
18719_ACEOF
18720rm -f conftest$ac_exeext
18721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722 (eval $ac_link) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 gdb_cv_printf_has_long_long=yes
18732else
18733 echo "$as_me: program exited with status $ac_status" >&5
18734echo "$as_me: failed program was:" >&5
18735sed 's/^/| /' conftest.$ac_ext >&5
18736
18737( exit $ac_status )
18738gdb_cv_printf_has_long_long=no
18739fi
18740rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18741fi
18742fi
18743echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18744echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18745if test $gdb_cv_printf_has_long_long = yes; then
18746
18747cat >>confdefs.h <<\_ACEOF
18748#define PRINTF_HAS_LONG_LONG 1
18749_ACEOF
18750
18751fi
18752
18753# Check if the compiler and runtime support printing decfloats.
18754
18755echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18756echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18757if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18759else
18760 if test "$cross_compiling" = yes; then
18761 gdb_cv_printf_has_decfloat=no
18762else
18763 cat >conftest.$ac_ext <<_ACEOF
18764/* confdefs.h. */
18765_ACEOF
18766cat confdefs.h >>conftest.$ac_ext
18767cat >>conftest.$ac_ext <<_ACEOF
18768/* end confdefs.h. */
18769$ac_includes_default
18770int
18771main ()
18772{
18773char buf[64];
18774 _Decimal32 d32 = 1.2345df;
18775 _Decimal64 d64 = 1.2345dd;
18776 _Decimal128 d128 = 1.2345dl;
18777 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18778 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest$ac_exeext
18784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18785 (eval $ac_link) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 gdb_cv_printf_has_decfloat=yes
18795else
18796 echo "$as_me: program exited with status $ac_status" >&5
18797echo "$as_me: failed program was:" >&5
18798sed 's/^/| /' conftest.$ac_ext >&5
18799
18800( exit $ac_status )
18801gdb_cv_printf_has_decfloat=no
18802fi
18803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18804fi
18805fi
18806echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18807echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18808if test $gdb_cv_printf_has_decfloat = yes; then
18809
18810cat >>confdefs.h <<\_ACEOF
18811#define PRINTF_HAS_DECFLOAT 1
18812_ACEOF
18813
18814fi
18815
18816# Check if the compiler supports the `long double' type. We can't use
18817# AC_C_LONG_DOUBLE because that one does additional checks on the
18818# constants defined in <float.h> that fail on some systems,
18819# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18820
18821echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18822echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18823if test "${gdb_cv_c_long_double+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18825else
18826 cat >conftest.$ac_ext <<_ACEOF
18827/* confdefs.h. */
18828_ACEOF
18829cat confdefs.h >>conftest.$ac_ext
18830cat >>conftest.$ac_ext <<_ACEOF
18831/* end confdefs.h. */
18832long double foo;
18833_ACEOF
18834rm -f conftest.$ac_objext
18835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18836 (eval $ac_compile) 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -z "$ac_c_werror_flag"
18844 || test ! -s conftest.err'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest.$ac_objext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 gdb_cv_c_long_double=yes
18857else
18858 echo "$as_me: failed program was:" >&5
18859sed 's/^/| /' conftest.$ac_ext >&5
18860
18861gdb_cv_c_long_double=no
18862fi
18863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18864fi
18865echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18866echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18867if test $gdb_cv_c_long_double = yes; then
18868
18869cat >>confdefs.h <<\_ACEOF
18870#define HAVE_LONG_DOUBLE 1
18871_ACEOF
18872
18873fi
18874
18875# Check if the compiler and runtime support printing long doubles.
18876
18877echo "$as_me:$LINENO: checking for long double support in printf" >&5
18878echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18879if test "${gdb_cv_printf_has_long_double+set}" = set; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18881else
18882 if test "$cross_compiling" = yes; then
18883 gdb_cv_printf_has_long_double=no
18884else
18885 cat >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$ac_includes_default
18892int
18893main ()
18894{
18895char buf[16];
18896 long double f = 3.141592653;
18897 sprintf (buf, "%Lg", f);
18898 return (strncmp ("3.14159", buf, 7));
18899 ;
18900 return 0;
18901}
18902_ACEOF
18903rm -f conftest$ac_exeext
18904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18905 (eval $ac_link) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 gdb_cv_printf_has_long_double=yes
18915else
18916 echo "$as_me: program exited with status $ac_status" >&5
18917echo "$as_me: failed program was:" >&5
18918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920( exit $ac_status )
18921gdb_cv_printf_has_long_double=no
18922fi
18923rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18924fi
18925fi
18926echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18927echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18928if test $gdb_cv_printf_has_long_double = yes; then
18929
18930cat >>confdefs.h <<\_ACEOF
18931#define PRINTF_HAS_LONG_DOUBLE 1
18932_ACEOF
18933
18934fi
18935
18936# Check if the compiler and runtime support scanning long doubles.
18937
18938echo "$as_me:$LINENO: checking for long double support in scanf" >&5
18939echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
18940if test "${gdb_cv_scanf_has_long_double+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18942else
18943 if test "$cross_compiling" = yes; then
18944 gdb_cv_scanf_has_long_double=no
18945else
18946 cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952#include <stdio.h>
18953int
18954main ()
18955{
18956char *buf = "3.141592653";
18957 long double f = 0;
18958 sscanf (buf, "%Lg", &f);
18959 return !(f > 3.14159 && f < 3.14160);
18960 ;
18961 return 0;
18962}
18963_ACEOF
18964rm -f conftest$ac_exeext
18965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18966 (eval $ac_link) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 gdb_cv_scanf_has_long_double=yes
18976else
18977 echo "$as_me: program exited with status $ac_status" >&5
18978echo "$as_me: failed program was:" >&5
18979sed 's/^/| /' conftest.$ac_ext >&5
18980
18981( exit $ac_status )
18982gdb_cv_scanf_has_long_double=no
18983fi
18984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18985fi
18986fi
18987echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
18988echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
18989if test $gdb_cv_scanf_has_long_double = yes; then
18990
18991cat >>confdefs.h <<\_ACEOF
18992#define SCANF_HAS_LONG_DOUBLE 1
18993_ACEOF
18994
18995fi
18996
18997case ${host_os} in
18998aix*)
18999 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19000echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19001if test "${gdb_cv_bigtoc+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003else
19004
19005 SAVE_LDFLAGS=$LDFLAGS
19006
19007 case $GCC in
19008 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19009 *) gdb_cv_bigtoc=-bbigtoc ;;
19010 esac
19011
19012 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19013 cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019
19020int
19021main ()
19022{
19023int i;
19024 ;
19025 return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext conftest$ac_exeext
19029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19030 (eval $ac_link) 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag"
19038 || test ! -s conftest.err'
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest$ac_exeext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 :
19051else
19052 echo "$as_me: failed program was:" >&5
19053sed 's/^/| /' conftest.$ac_ext >&5
19054
19055gdb_cv_bigtoc=
19056fi
19057rm -f conftest.err conftest.$ac_objext \
19058 conftest$ac_exeext conftest.$ac_ext
19059 LDFLAGS="${SAVE_LDFLAGS}"
19060
19061fi
19062echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19063echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19064 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19065 ;;
19066esac
19067
19068
19069
19070if test ${build} = ${host} -a ${host} = ${target} ; then
19071 case ${host_os} in
19072 hpux*)
19073 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19074echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19075 if test -f /usr/include/dce/cma_config.h ; then
19076 if test "$GCC" = "yes" ; then
19077 echo "$as_me:$LINENO: result: yes" >&5
19078echo "${ECHO_T}yes" >&6
19079
19080cat >>confdefs.h <<\_ACEOF
19081#define HAVE_HPUX_THREAD_SUPPORT 1
19082_ACEOF
19083
19084 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19085 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19086 else
19087 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19088echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19089 fi
19090 else
19091 echo "$as_me:$LINENO: result: no" >&5
19092echo "${ECHO_T}no" >&6
19093 fi
19094 ;;
19095 solaris*)
19096 # See if thread_db library is around for Solaris thread debugging.
19097 # Note that we must explicitly test for version 1 of the library
19098 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19099 # the same API.
19100 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19101echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19102 if test -f /usr/lib/libthread_db.so.1 ; then
19103 echo "$as_me:$LINENO: result: yes" >&5
19104echo "${ECHO_T}yes" >&6
19105
19106cat >>confdefs.h <<\_ACEOF
19107#define HAVE_THREAD_DB_LIB 1
19108_ACEOF
19109
19110 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19111 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19112
19113echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19114echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19115if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19117else
19118 ac_check_lib_save_LIBS=$LIBS
19119LIBS="-ldl $LIBS"
19120cat >conftest.$ac_ext <<_ACEOF
19121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
19126
19127/* Override any gcc2 internal prototype to avoid an error. */
19128#ifdef __cplusplus
19129extern "C"
19130#endif
19131/* We use char because int might match the return type of a gcc2
19132 builtin and then its argument prototype would still apply. */
19133char dlopen ();
19134int
19135main ()
19136{
19137dlopen ();
19138 ;
19139 return 0;
19140}
19141_ACEOF
19142rm -f conftest.$ac_objext conftest$ac_exeext
19143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144 (eval $ac_link) 2>conftest.er1
19145 ac_status=$?
19146 grep -v '^ *+' conftest.er1 >conftest.err
19147 rm -f conftest.er1
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
19151 { ac_try='test -z "$ac_c_werror_flag"
19152 || test ! -s conftest.err'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest$ac_exeext'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_cv_lib_dl_dlopen=yes
19165else
19166 echo "$as_me: failed program was:" >&5
19167sed 's/^/| /' conftest.$ac_ext >&5
19168
19169ac_cv_lib_dl_dlopen=no
19170fi
19171rm -f conftest.err conftest.$ac_objext \
19172 conftest$ac_exeext conftest.$ac_ext
19173LIBS=$ac_check_lib_save_LIBS
19174fi
19175echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19176echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19177if test $ac_cv_lib_dl_dlopen = yes; then
19178 cat >>confdefs.h <<_ACEOF
19179#define HAVE_LIBDL 1
19180_ACEOF
19181
19182 LIBS="-ldl $LIBS"
19183
19184fi
19185
19186 if test "$GCC" = "yes" ; then
19187 # The GNU linker requires the -export-dynamic option to make
19188 # all symbols visible in the dynamic symbol table.
19189 hold_ldflags=$LDFLAGS
19190 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19191echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19192 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19193 cat >conftest.$ac_ext <<_ACEOF
19194/* confdefs.h. */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h. */
19199
19200int
19201main ()
19202{
19203int i;
19204 ;
19205 return 0;
19206}
19207_ACEOF
19208rm -f conftest.$ac_objext conftest$ac_exeext
19209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210 (eval $ac_link) 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest$ac_exeext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 found=yes
19231else
19232 echo "$as_me: failed program was:" >&5
19233sed 's/^/| /' conftest.$ac_ext >&5
19234
19235found=no
19236fi
19237rm -f conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239 LDFLAGS=$hold_ldflags
19240 echo "$as_me:$LINENO: result: $found" >&5
19241echo "${ECHO_T}$found" >&6
19242 if test $found = yes; then
19243 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19244 fi
19245 fi
19246 # Sun randomly tweaked the prototypes in <proc_service.h>
19247 # at one point.
19248 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19249echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19250 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252else
19253
19254 cat >conftest.$ac_ext <<_ACEOF
19255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
19260
19261 #include <proc_service.h>
19262 ps_err_e ps_pdwrite
19263 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19264
19265int
19266main ()
19267{
19268
19269 ;
19270 return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 gdb_cv_proc_service_is_old=no
19296else
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300gdb_cv_proc_service_is_old=yes
19301fi
19302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19303
19304fi
19305
19306 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19307echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19308 if test $gdb_cv_proc_service_is_old = yes; then
19309
19310cat >>confdefs.h <<\_ACEOF
19311#define PROC_SERVICE_IS_OLD 1
19312_ACEOF
19313
19314 fi
19315 else
19316 echo "$as_me:$LINENO: result: no" >&5
19317echo "${ECHO_T}no" >&6
19318 fi
19319 ;;
19320 aix*)
19321 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19322echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19323 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19325else
19326 cat >conftest.$ac_ext <<_ACEOF
19327/* confdefs.h. */
19328_ACEOF
19329cat confdefs.h >>conftest.$ac_ext
19330cat >>conftest.$ac_ext <<_ACEOF
19331/* end confdefs.h. */
19332#include <sys/pthdebug.h>
19333int
19334main ()
19335{
19336#ifndef PTHDB_VERSION_3
19337 #error
19338 #endif
19339 ;
19340 return 0;
19341}
19342_ACEOF
19343rm -f conftest.$ac_objext
19344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_c_werror_flag"
19353 || test ! -s conftest.err'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest.$ac_objext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 gdb_cv_have_aix_thread_debug=yes
19366else
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370gdb_cv_have_aix_thread_debug=no
19371fi
19372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19373fi
19374
19375 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19376echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19377 if test $gdb_cv_have_aix_thread_debug = yes; then
19378 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19379 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19380 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19381 fi
19382 ;;
19383 esac
19384
19385fi
19386
19387if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19388 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19389echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19390if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392else
19393 cat >conftest.$ac_ext <<_ACEOF
19394/* confdefs.h. */
19395_ACEOF
19396cat confdefs.h >>conftest.$ac_ext
19397cat >>conftest.$ac_ext <<_ACEOF
19398/* end confdefs.h. */
19399#include <thread_db.h>
19400int
19401main ()
19402{
19403int i = TD_NOTALLOC;
19404 ;
19405 return 0;
19406}
19407_ACEOF
19408rm -f conftest.$ac_objext
19409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19410 (eval $ac_compile) 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } &&
19417 { ac_try='test -z "$ac_c_werror_flag"
19418 || test ! -s conftest.err'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; } &&
19424 { ac_try='test -s conftest.$ac_objext'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 gdb_cv_thread_db_h_has_td_notalloc=yes
19431else
19432 echo "$as_me: failed program was:" >&5
19433sed 's/^/| /' conftest.$ac_ext >&5
19434
19435gdb_cv_thread_db_h_has_td_notalloc=no
19436
19437fi
19438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19439
19440fi
19441echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19442echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19443 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19444echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19445if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19447else
19448 cat >conftest.$ac_ext <<_ACEOF
19449/* confdefs.h. */
19450_ACEOF
19451cat confdefs.h >>conftest.$ac_ext
19452cat >>conftest.$ac_ext <<_ACEOF
19453/* end confdefs.h. */
19454#include <thread_db.h>
19455int
19456main ()
19457{
19458int i = TD_VERSION;
19459 ;
19460 return 0;
19461}
19462_ACEOF
19463rm -f conftest.$ac_objext
19464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19465 (eval $ac_compile) 2>conftest.er1
19466 ac_status=$?
19467 grep -v '^ *+' conftest.er1 >conftest.err
19468 rm -f conftest.er1
19469 cat conftest.err >&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try='test -z "$ac_c_werror_flag"
19473 || test ! -s conftest.err'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19476 ac_status=$?
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try='test -s conftest.$ac_objext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 gdb_cv_thread_db_h_has_td_version=yes
19486else
19487 echo "$as_me: failed program was:" >&5
19488sed 's/^/| /' conftest.$ac_ext >&5
19489
19490gdb_cv_thread_db_h_has_td_version=no
19491
19492fi
19493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19494
19495fi
19496echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19497echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19498 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19499echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19500if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19502else
19503 cat >conftest.$ac_ext <<_ACEOF
19504/* confdefs.h. */
19505_ACEOF
19506cat confdefs.h >>conftest.$ac_ext
19507cat >>conftest.$ac_ext <<_ACEOF
19508/* end confdefs.h. */
19509#include <thread_db.h>
19510int
19511main ()
19512{
19513int i = TD_NOTLS;
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest.$ac_objext
19519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520 (eval $ac_compile) 2>conftest.er1
19521 ac_status=$?
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_c_werror_flag"
19528 || test ! -s conftest.err'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 gdb_cv_thread_db_h_has_td_notls=yes
19541else
19542 echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
19545gdb_cv_thread_db_h_has_td_notls=no
19546
19547fi
19548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19549
19550fi
19551echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19552echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19553fi
19554if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19555
19556cat >>confdefs.h <<\_ACEOF
19557#define THREAD_DB_HAS_TD_NOTALLOC 1
19558_ACEOF
19559
19560fi
19561if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19562
19563cat >>confdefs.h <<\_ACEOF
19564#define THREAD_DB_HAS_TD_VERSION 1
19565_ACEOF
19566
19567fi
19568if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19569
19570cat >>confdefs.h <<\_ACEOF
19571#define THREAD_DB_HAS_TD_NOTLS 1
19572_ACEOF
19573
19574fi
19575
19576if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19577 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19578echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19579if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19581else
19582 cat >conftest.$ac_ext <<_ACEOF
19583/* confdefs.h. */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h. */
19588#include <sys/syscall.h>
19589int
19590main ()
19591{
19592int i = __NR_tkill;
19593 ;
19594 return 0;
19595}
19596_ACEOF
19597rm -f conftest.$ac_objext
19598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19599 (eval $ac_compile) 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } &&
19606 { ac_try='test -z "$ac_c_werror_flag"
19607 || test ! -s conftest.err'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; } &&
19613 { ac_try='test -s conftest.$ac_objext'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 gdb_cv_sys_syscall_h_has_tkill=yes
19620else
19621 echo "$as_me: failed program was:" >&5
19622sed 's/^/| /' conftest.$ac_ext >&5
19623
19624gdb_cv_sys_syscall_h_has_tkill=no
19625
19626fi
19627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19628
19629fi
19630echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19631echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19632fi
19633if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19634
19635cat >>confdefs.h <<\_ACEOF
19636#define HAVE_TKILL_SYSCALL 1
19637_ACEOF
19638
19639fi
19640
19641echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19642echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19643if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645else
19646 cat >conftest.$ac_ext <<_ACEOF
19647/* confdefs.h. */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h. */
19652#include <sys/personality.h>
19653
19654int
19655main ()
19656{
19657#ifndef ADDR_NO_RANDOMIZE
19658 char *p = (char *) ADDR_NO_RANDOMIZE;
19659#endif
19660
19661 ;
19662 return 0;
19663}
19664_ACEOF
19665rm -f conftest.$ac_objext
19666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag"
19675 || test ! -s conftest.err'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; }; then
19687 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19688else
19689 echo "$as_me: failed program was:" >&5
19690sed 's/^/| /' conftest.$ac_ext >&5
19691
19692ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19693fi
19694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19695fi
19696echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19697echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19698if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19699
19700cat >>confdefs.h <<_ACEOF
19701#define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19702_ACEOF
19703
19704
19705else
19706 cat >>confdefs.h <<_ACEOF
19707#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19708_ACEOF
19709
19710
19711fi
19712
19713
19714
19715if test "$cross_compiling" = yes; then
19716 cat >conftest.$ac_ext <<_ACEOF
19717/* confdefs.h. */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
19721/* end confdefs.h. */
19722#include <sys/personality.h>
19723int
19724main ()
19725{
19726
19727# if !HAVE_DECL_ADDR_NO_RANDOMIZE
19728# define ADDR_NO_RANDOMIZE 0x0040000
19729# endif
19730 /* Test the flag could be set and stays set. */
19731 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19732 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19733 return 1
19734 ;
19735 return 0;
19736}
19737_ACEOF
19738rm -f conftest.$ac_objext conftest$ac_exeext
19739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19740 (eval $ac_link) 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_c_werror_flag"
19748 || test ! -s conftest.err'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; } &&
19754 { ac_try='test -s conftest$ac_exeext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 have_personality=true
19761else
19762 echo "$as_me: failed program was:" >&5
19763sed 's/^/| /' conftest.$ac_ext >&5
19764
19765have_personality=false
19766fi
19767rm -f conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
19769else
19770 cat >conftest.$ac_ext <<_ACEOF
19771/* confdefs.h. */
19772_ACEOF
19773cat confdefs.h >>conftest.$ac_ext
19774cat >>conftest.$ac_ext <<_ACEOF
19775/* end confdefs.h. */
19776#include <sys/personality.h>
19777int
19778main ()
19779{
19780
19781# if !HAVE_DECL_ADDR_NO_RANDOMIZE
19782# define ADDR_NO_RANDOMIZE 0x0040000
19783# endif
19784 /* Test the flag could be set and stays set. */
19785 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19786 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19787 return 1
19788 ;
19789 return 0;
19790}
19791_ACEOF
19792rm -f conftest$ac_exeext
19793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19794 (eval $ac_link) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 have_personality=true
19804else
19805 echo "$as_me: program exited with status $ac_status" >&5
19806echo "$as_me: failed program was:" >&5
19807sed 's/^/| /' conftest.$ac_ext >&5
19808
19809( exit $ac_status )
19810have_personality=false
19811fi
19812rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19813fi
19814if $have_personality
19815then
19816
19817cat >>confdefs.h <<\_ACEOF
19818#define HAVE_PERSONALITY 1
19819_ACEOF
19820
19821fi
19822
19823
19824
19825# Check whether --with-sysroot or --without-sysroot was given.
19826if test "${with_sysroot+set}" = set; then
19827 withval="$with_sysroot"
19828
19829 case ${with_sysroot} in
19830 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19831 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19832 esac
19833
19834 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19835
19836 if test "x$prefix" = xNONE; then
19837 test_prefix=/usr/local
19838 else
19839 test_prefix=$prefix
19840 fi
19841 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19842 test_exec_prefix=$test_prefix
19843 else
19844 test_exec_prefix=$exec_prefix
19845 fi
19846 case ${TARGET_SYSTEM_ROOT} in
19847 "${test_prefix}"|"${test_prefix}/"*|\
19848 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19849 '${prefix}'|'${prefix}/'*|\
19850 '${exec_prefix}'|'${exec_prefix}/'*)
19851 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19852 TARGET_SYSTEM_ROOT_DEFINE="$t"
19853 ;;
19854 esac
19855
19856else
19857
19858 TARGET_SYSTEM_ROOT=
19859 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19860
19861fi;
19862
19863
19864
19865system_gdbinit=
19866
19867# Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19868if test "${with_system_gdbinit+set}" = set; then
19869 withval="$with_system_gdbinit"
19870 system_gdbinit=${withval}
19871fi;
19872
19873
19874 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19876 ac_define_dir=`eval echo $system_gdbinit`
19877 ac_define_dir=`eval echo $ac_define_dir`
19878
19879cat >>confdefs.h <<_ACEOF
19880#define SYSTEM_GDBINIT "$ac_define_dir"
19881_ACEOF
19882
19883
19884
19885if test "x$prefix" = xNONE; then
19886 test_prefix=$ac_default_prefix
19887else
19888 test_prefix=$prefix
19889fi
19890if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19891 test_exec_prefix=$test_prefix
19892else
19893 test_exec_prefix=$exec_prefix
19894fi
19895case ${system_gdbinit} in
19896 "${test_prefix}"|"${test_prefix}/"*|\
19897 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19898 '${prefix}'|'${prefix}/'*|\
19899 '${exec_prefix}'|'${exec_prefix}/'*)
19900
19901cat >>confdefs.h <<\_ACEOF
19902#define SYSTEM_GDBINIT_RELOCATABLE 1
19903_ACEOF
19904
19905 ;;
19906esac
19907
19908# Check whether --enable-werror or --disable-werror was given.
19909if test "${enable_werror+set}" = set; then
19910 enableval="$enable_werror"
19911 case "${enableval}" in
19912 yes | y) ERROR_ON_WARNING="yes" ;;
19913 no | n) ERROR_ON_WARNING="no" ;;
19914 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19915echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19916 { (exit 1); exit 1; }; } ;;
19917 esac
19918fi;
19919
19920# Enable -Werror by default when using gcc
19921if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19922 ERROR_ON_WARNING=yes
19923fi
19924
19925WERROR_CFLAGS=""
19926if test "${ERROR_ON_WARNING}" = yes ; then
19927 WERROR_CFLAGS="-Werror"
19928fi
19929
19930# The entries after -Wno-pointer-sign are disabled warnings which may
19931# be enabled in the future, which can not currently be used to build
19932# GDB.
19933# NOTE: If you change this list, remember to update
19934# gdb/doc/gdbint.texinfo.
19935build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19936-Wformat-nonliteral -Wno-pointer-sign \
19937-Wno-unused -Wno-switch -Wno-char-subscripts"
19938
19939# Enable -Wno-format by default when using gcc on mingw since many
19940# GCC versions complain about %I64.
19941case "${host}" in
19942 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
19943esac
19944
19945# Check whether --enable-build-warnings or --disable-build-warnings was given.
19946if test "${enable_build_warnings+set}" = set; then
19947 enableval="$enable_build_warnings"
19948 case "${enableval}" in
19949 yes) ;;
19950 no) build_warnings="-w";;
19951 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19952 build_warnings="${build_warnings} ${t}";;
19953 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19954 build_warnings="${t} ${build_warnings}";;
19955 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19956esac
19957if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19958 echo "Setting compiler warning flags = $build_warnings" 6>&1
19959fi
19960fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19961if test "${enable_gdb_build_warnings+set}" = set; then
19962 enableval="$enable_gdb_build_warnings"
19963 case "${enableval}" in
19964 yes) ;;
19965 no) build_warnings="-w";;
19966 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19967 build_warnings="${build_warnings} ${t}";;
19968 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19969 build_warnings="${t} ${build_warnings}";;
19970 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19971esac
19972if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19973 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19974fi
19975fi; WARN_CFLAGS=""
19976if test "x${build_warnings}" != x -a "x$GCC" = xyes
19977then
19978 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19979echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19980 # Separate out the -Werror flag as some files just cannot be
19981 # compiled with it enabled.
19982 for w in ${build_warnings}; do
19983 case $w in
19984 -Werr*) WERROR_CFLAGS=-Werror ;;
19985 *) # Check that GCC accepts it
19986 saved_CFLAGS="$CFLAGS"
19987 CFLAGS="$CFLAGS $w"
19988 cat >conftest.$ac_ext <<_ACEOF
19989/* confdefs.h. */
19990_ACEOF
19991cat confdefs.h >>conftest.$ac_ext
19992cat >>conftest.$ac_ext <<_ACEOF
19993/* end confdefs.h. */
19994
19995int
19996main ()
19997{
19998
19999 ;
20000 return 0;
20001}
20002_ACEOF
20003rm -f conftest.$ac_objext
20004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20005 (eval $ac_compile) 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
20012 { ac_try='test -z "$ac_c_werror_flag"
20013 || test ! -s conftest.err'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 WARN_CFLAGS="${WARN_CFLAGS} $w"
20026else
20027 echo "$as_me: failed program was:" >&5
20028sed 's/^/| /' conftest.$ac_ext >&5
20029
20030fi
20031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20032 CFLAGS="$saved_CFLAGS"
20033 esac
20034 done
20035 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20036echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20037fi
20038
20039
20040
20041# In the Cygwin environment, we need some additional flags.
20042echo "$as_me:$LINENO: checking for cygwin" >&5
20043echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20044if test "${gdb_cv_os_cygwin+set}" = set; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20046else
20047 cat >conftest.$ac_ext <<_ACEOF
20048/* confdefs.h. */
20049_ACEOF
20050cat confdefs.h >>conftest.$ac_ext
20051cat >>conftest.$ac_ext <<_ACEOF
20052/* end confdefs.h. */
20053
20054#if defined (__CYGWIN__) || defined (__CYGWIN32__)
20055lose
20056#endif
20057_ACEOF
20058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059 $EGREP "lose" >/dev/null 2>&1; then
20060 gdb_cv_os_cygwin=yes
20061else
20062 gdb_cv_os_cygwin=no
20063fi
20064rm -f conftest*
20065
20066fi
20067echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20068echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20069
20070
20071SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20072case ${host} in
20073 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20074 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20075 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20076esac
20077
20078
20079# libreadline needs libuser32.a in a cygwin environment
20080WIN32LIBS=
20081if test x$gdb_cv_os_cygwin = xyes; then
20082 WIN32LIBS="-luser32"
20083 case "${target}" in
20084 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20085 ;;
20086 esac
20087fi
20088
20089# The ser-tcp.c module requires sockets.
20090case ${host} in
20091 *mingw32*)
20092
20093cat >>confdefs.h <<\_ACEOF
20094#define USE_WIN32API 1
20095_ACEOF
20096
20097 WIN32LIBS="$WIN32LIBS -lws2_32"
20098 ;;
20099esac
20100
20101
20102# Add ELF support to GDB, but only if BFD includes ELF support.
20103OLD_CFLAGS=$CFLAGS
20104OLD_LDFLAGS=$LDFLAGS
20105OLD_LIBS=$LIBS
20106CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20107LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
20108intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20109LIBS="-lbfd -liberty $intl $LIBS"
20110echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20111echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20112if test "${gdb_cv_var_elf+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20114else
20115 cat >conftest.$ac_ext <<_ACEOF
20116/* confdefs.h. */
20117_ACEOF
20118cat confdefs.h >>conftest.$ac_ext
20119cat >>conftest.$ac_ext <<_ACEOF
20120/* end confdefs.h. */
20121#include <stdlib.h>
20122#include "bfd.h"
20123#include "elf-bfd.h"
20124
20125int
20126main ()
20127{
20128bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext conftest$ac_exeext
20134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag"
20143 || test ! -s conftest.err'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest$ac_exeext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 gdb_cv_var_elf=yes
20156else
20157 echo "$as_me: failed program was:" >&5
20158sed 's/^/| /' conftest.$ac_ext >&5
20159
20160gdb_cv_var_elf=no
20161fi
20162rm -f conftest.err conftest.$ac_objext \
20163 conftest$ac_exeext conftest.$ac_ext
20164fi
20165echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20166echo "${ECHO_T}$gdb_cv_var_elf" >&6
20167if test $gdb_cv_var_elf = yes; then
20168 CONFIG_OBS="$CONFIG_OBS elfread.o"
20169
20170cat >>confdefs.h <<\_ACEOF
20171#define HAVE_ELF 1
20172_ACEOF
20173
20174fi
20175CFLAGS=$OLD_CFLAGS
20176LDFLAGS=$OLD_LDFLAGS
20177LIBS=$OLD_LIBS
20178
20179# Add any host-specific objects to GDB.
20180CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20181
20182LIBGUI="../libgui/src/libgui.a"
20183GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20184
20185
20186
20187WIN32LDAPP=
20188
20189
20190
20191case "${host}" in
20192*-*-cygwin* | *-*-mingw* )
20193 configdir="win"
20194 ;;
20195*)
20196 configdir="unix"
20197 ;;
20198esac
20199
20200GDBTKLIBS=
20201if test "${enable_gdbtk}" = "yes"; then
20202
20203 # Gdbtk must have an absolute path to srcdir in order to run
20204 # properly when not installed.
20205 here=`pwd`
20206 cd ${srcdir}
20207 GDBTK_SRC_DIR=`pwd`
20208 cd $here
20209
20210
20211 #
20212 # Ok, lets find the tcl configuration
20213 # First, look for one uninstalled.
20214 # the alternative search directory is invoked by --with-tcl
20215 #
20216
20217 if test x"${no_tcl}" = x ; then
20218 # we reset no_tcl in case something fails here
20219 no_tcl=true
20220
20221# Check whether --with-tcl or --without-tcl was given.
20222if test "${with_tcl+set}" = set; then
20223 withval="$with_tcl"
20224 with_tclconfig=${withval}
20225fi;
20226 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20227echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20228 if test "${ac_cv_c_tclconfig+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20230else
20231
20232
20233 # First check to see if --with-tcl was specified.
20234 case "${host}" in
20235 *-*-cygwin*) platDir="win" ;;
20236 *) platDir="unix" ;;
20237 esac
20238 if test x"${with_tclconfig}" != x ; then
20239 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20240 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20241 else
20242 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20243echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20244 { (exit 1); exit 1; }; }
20245 fi
20246 fi
20247
20248 # then check for a private Tcl installation
20249 if test x"${ac_cv_c_tclconfig}" = x ; then
20250 for i in \
20251 ../tcl \
20252 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20253 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20254 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20255 ../../tcl \
20256 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20257 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20258 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20259 ../../../tcl \
20260 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20261 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20262 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20263 if test -f "$i/$platDir/tclConfig.sh" ; then
20264 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20265 break
20266 fi
20267 done
20268 fi
20269
20270 # on Darwin, check in Framework installation locations
20271 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
20272 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20273 `ls -d /Library/Frameworks 2>/dev/null` \
20274 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20275 `ls -d /System/Library/Frameworks 2>/dev/null` \
20276 ; do
20277 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20278 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
20279 break
20280 fi
20281 done
20282 fi
20283
20284 # check in a few common install locations
20285 if test x"${ac_cv_c_tclconfig}" = x ; then
20286 for i in `ls -d ${libdir} 2>/dev/null` \
20287 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20288 `ls -d ${prefix}/lib 2>/dev/null` \
20289 `ls -d /usr/local/lib 2>/dev/null` \
20290 `ls -d /usr/contrib/lib 2>/dev/null` \
20291 `ls -d /usr/lib 2>/dev/null` \
20292 ; do
20293 if test -f "$i/tclConfig.sh" ; then
20294 ac_cv_c_tclconfig=`(cd $i; pwd)`
20295 break
20296 fi
20297 done
20298 fi
20299
20300 # check in a few other private locations
20301 if test x"${ac_cv_c_tclconfig}" = x ; then
20302 for i in \
20303 ${srcdir}/../tcl \
20304 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20305 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20306 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20307 if test -f "$i/$platDir/tclConfig.sh" ; then
20308 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20309 break
20310 fi
20311 done
20312 fi
20313
20314fi
20315
20316
20317 if test x"${ac_cv_c_tclconfig}" = x ; then
20318 TCL_BIN_DIR="# no Tcl configs found"
20319 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20320echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20321 else
20322 no_tcl=
20323 TCL_BIN_DIR=${ac_cv_c_tclconfig}
20324 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20325echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20326 fi
20327 fi
20328
20329
20330 # If $no_tk is nonempty, then we can't do Tk, and there is no
20331 # point to doing Tcl.
20332
20333 #
20334 # Ok, lets find the tk configuration
20335 # First, look for one uninstalled.
20336 # the alternative search directory is invoked by --with-tk
20337 #
20338
20339 if test x"${no_tk}" = x ; then
20340 # we reset no_tk in case something fails here
20341 no_tk=true
20342
20343# Check whether --with-tk or --without-tk was given.
20344if test "${with_tk+set}" = set; then
20345 withval="$with_tk"
20346 with_tkconfig=${withval}
20347fi;
20348 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20349echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20350 if test "${ac_cv_c_tkconfig+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
20353
20354
20355 # First check to see if --with-tkconfig was specified.
20356 if test x"${with_tkconfig}" != x ; then
20357 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20358 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20359 else
20360 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20361echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20362 { (exit 1); exit 1; }; }
20363 fi
20364 fi
20365
20366 # then check for a private Tk library
20367 case "${host}" in
20368 *-*-cygwin*) platDir="win" ;;
20369 *) platDir="unix" ;;
20370 esac
20371 if test x"${ac_cv_c_tkconfig}" = x ; then
20372 for i in \
20373 ../tk \
20374 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20375 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20376 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20377 ../../tk \
20378 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20379 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20380 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20381 ../../../tk \
20382 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20383 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20384 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20385 if test -f "$i/$platDir/tkConfig.sh" ; then
20386 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20387 break
20388 fi
20389 done
20390 fi
20391
20392 # on Darwin, check in Framework installation locations
20393 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20394 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20395 `ls -d /Library/Frameworks 2>/dev/null` \
20396 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20397 `ls -d /System/Library/Frameworks 2>/dev/null` \
20398 ; do
20399 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20400 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20401 break
20402 fi
20403 done
20404 fi
20405
20406 # check in a few common install locations
20407 if test x"${ac_cv_c_tkconfig}" = x ; then
20408 for i in `ls -d ${libdir} 2>/dev/null` \
20409 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20410 `ls -d ${prefix}/lib 2>/dev/null` \
20411 `ls -d /usr/local/lib 2>/dev/null` \
20412 `ls -d /usr/contrib/lib 2>/dev/null` \
20413 `ls -d /usr/lib 2>/dev/null` \
20414 ; do
20415 if test -f "$i/tkConfig.sh" ; then
20416 ac_cv_c_tkconfig=`(cd $i; pwd)`
20417 break
20418 fi
20419 done
20420 fi
20421 # check in a few other private locations
20422 if test x"${ac_cv_c_tkconfig}" = x ; then
20423 for i in \
20424 ${srcdir}/../tk \
20425 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20426 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20427 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20428 if test -f "$i/$platDir/tkConfig.sh" ; then
20429 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20430 break
20431 fi
20432 done
20433 fi
20434
20435fi
20436
20437
20438 if test x"${ac_cv_c_tkconfig}" = x ; then
20439 TK_BIN_DIR="# no Tk configs found"
20440 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20441echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20442 else
20443 no_tk=
20444 TK_BIN_DIR=${ac_cv_c_tkconfig}
20445 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20446echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20447 fi
20448 fi
20449
20450
20451 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20452
20453 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20454echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20455
20456 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20457 echo "$as_me:$LINENO: result: loading" >&5
20458echo "${ECHO_T}loading" >&6
20459 . ${TCL_BIN_DIR}/tclConfig.sh
20460 else
20461 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20462echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20463 fi
20464
20465 # eval is required to do the TCL_DBGX substitution
20466 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20467 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20468
20469 # If the TCL_BIN_DIR is the build directory (not the install directory),
20470 # then set the common variable name to the value of the build variables.
20471 # For example, the variable TCL_LIB_SPEC will be set to the value
20472 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20473 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20474 # installed and uninstalled version of Tcl.
20475 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20476 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20477 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20478 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20479 elif test "`uname -s`" = "Darwin"; then
20480 # If Tcl was built as a framework, attempt to use the libraries
20481 # from the framework at the given location so that linking works
20482 # against Tcl.framework installed in an arbitary location.
20483 case ${TCL_DEFS} in
20484 *TCL_FRAMEWORK*)
20485 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20486 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20487 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20488 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20489 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20490 break
20491 fi
20492 done
20493 fi
20494 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20495 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20496 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20497 fi
20498 ;;
20499 esac
20500 fi
20501
20502 # eval is required to do the TCL_DBGX substitution
20503 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20504 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20505 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20506 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522 # Check for in-tree tcl
20523 here=`pwd`
20524 cd ${srcdir}/..
20525 topdir=`pwd`
20526 cd ${here}
20527
20528 intree="no"
20529 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20530 intree="yes"
20531 fi
20532
20533 # Find Tcl private headers
20534 if test x"${intree}" = xno; then
20535
20536 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20537echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20538 private_dir=""
20539 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20540 if test -f ${dir}/tclInt.h ; then
20541 private_dir=${dir}
20542 fi
20543
20544 if test x"${private_dir}" = x; then
20545 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20546echo "$as_me: error: could not find private Tcl headers" >&2;}
20547 { (exit 1); exit 1; }; }
20548 else
20549 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20550 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20551echo "${ECHO_T}${private_dir}" >&6
20552 fi
20553
20554 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20555 TCL_LIBRARY="${TCL_LIB_SPEC}"
20556 TCL_DEPS=""
20557 else
20558 # If building tcl in the same src tree, private headers
20559 # are not needed, but we need to be sure to use the right
20560 # headers library
20561 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20562 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20563 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20564 fi
20565
20566
20567
20568
20569
20570 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20571echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20572
20573 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20574 echo "$as_me:$LINENO: result: loading" >&5
20575echo "${ECHO_T}loading" >&6
20576 . ${TK_BIN_DIR}/tkConfig.sh
20577 else
20578 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20579echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20580 fi
20581
20582 # eval is required to do the TK_DBGX substitution
20583 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20584 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20585
20586 # If the TK_BIN_DIR is the build directory (not the install directory),
20587 # then set the common variable name to the value of the build variables.
20588 # For example, the variable TK_LIB_SPEC will be set to the value
20589 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20590 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20591 # installed and uninstalled version of Tcl.
20592 if test -f "${TK_BIN_DIR}/Makefile" ; then
20593 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20594 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20595 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20596 elif test "`uname -s`" = "Darwin"; then
20597 # If Tk was built as a framework, attempt to use the libraries
20598 # from the framework at the given location so that linking works
20599 # against Tk.framework installed in an arbitary location.
20600 case ${TK_DEFS} in
20601 *TK_FRAMEWORK*)
20602 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20603 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20604 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20605 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20606 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20607 break
20608 fi
20609 done
20610 fi
20611 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20612 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20613 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20614 fi
20615 ;;
20616 esac
20617 fi
20618
20619 # eval is required to do the TK_DBGX substitution
20620 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20621 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20622 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20623 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638 # Check for in-tree Tk
20639 intree="no"
20640 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20641 intree="yes"
20642 fi
20643
20644 # Find Tk private headers
20645 if test x"${intree}" = xno; then
20646
20647 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20648echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20649 private_dir=""
20650 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20651 if test -f ${dir}/tkInt.h; then
20652 private_dir=${dir}
20653 fi
20654
20655 if test x"${private_dir}" = x; then
20656 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20657echo "$as_me: error: could not find Tk private headers" >&2;}
20658 { (exit 1); exit 1; }; }
20659 else
20660 TK_PRIVATE_INCLUDE="-I${private_dir}"
20661 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20662echo "${ECHO_T}${private_dir}" >&6
20663 fi
20664
20665 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20666 TK_LIBRARY=${TK_LIB_SPEC}
20667 TK_DEPS=""
20668 else
20669 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20670 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20671 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20672 fi
20673
20674
20675
20676
20677
20678 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20679
20680 # Include some libraries that Tcl and Tk want.
20681 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20682 # Yes, the ordering seems wrong here. But it isn't.
20683 # TK_LIBS is the list of libraries that need to be linked
20684 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20685 # were in LIBS then any link tests after this point would
20686 # try to include things like `$(LIBGUI)', which wouldn't work.
20687 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20688
20689 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20690 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20691 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20692 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20693 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20694 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20695 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20696
20697 if test x$gdb_cv_os_cygwin = xyes; then
20698 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20699 WIN32LDAPP="-Wl,--subsystem,console"
20700 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20701 fi
20702
20703
20704
20705subdirs="$subdirs gdbtk"
20706
20707 fi
20708fi
20709
20710
20711
20712
20713
20714
20715
20716
20717echo "$as_me:$LINENO: checking for X" >&5
20718echo $ECHO_N "checking for X... $ECHO_C" >&6
20719
20720
20721# Check whether --with-x or --without-x was given.
20722if test "${with_x+set}" = set; then
20723 withval="$with_x"
20724
20725fi;
20726# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20727if test "x$with_x" = xno; then
20728 # The user explicitly disabled X.
20729 have_x=disabled
20730else
20731 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20732 # Both variables are already set.
20733 have_x=yes
20734 else
20735 if test "${ac_cv_have_x+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20737else
20738 # One or both of the vars are not set, and there is no cached value.
20739ac_x_includes=no ac_x_libraries=no
20740rm -fr conftest.dir
20741if mkdir conftest.dir; then
20742 cd conftest.dir
20743 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20744 cat >Imakefile <<'_ACEOF'
20745acfindx:
20746 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20747_ACEOF
20748 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20750 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20751 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20752 for ac_extension in a so sl; do
20753 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20754 test -f $ac_im_libdir/libX11.$ac_extension; then
20755 ac_im_usrlibdir=$ac_im_libdir; break
20756 fi
20757 done
20758 # Screen out bogus values from the imake configuration. They are
20759 # bogus both because they are the default anyway, and because
20760 # using them would break gcc on systems where it needs fixed includes.
20761 case $ac_im_incroot in
20762 /usr/include) ;;
20763 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20764 esac
20765 case $ac_im_usrlibdir in
20766 /usr/lib | /lib) ;;
20767 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20768 esac
20769 fi
20770 cd ..
20771 rm -fr conftest.dir
20772fi
20773
20774# Standard set of common directories for X headers.
20775# Check X11 before X11Rn because it is often a symlink to the current release.
20776ac_x_header_dirs='
20777/usr/X11/include
20778/usr/X11R6/include
20779/usr/X11R5/include
20780/usr/X11R4/include
20781
20782/usr/include/X11
20783/usr/include/X11R6
20784/usr/include/X11R5
20785/usr/include/X11R4
20786
20787/usr/local/X11/include
20788/usr/local/X11R6/include
20789/usr/local/X11R5/include
20790/usr/local/X11R4/include
20791
20792/usr/local/include/X11
20793/usr/local/include/X11R6
20794/usr/local/include/X11R5
20795/usr/local/include/X11R4
20796
20797/usr/X386/include
20798/usr/x386/include
20799/usr/XFree86/include/X11
20800
20801/usr/include
20802/usr/local/include
20803/usr/unsupported/include
20804/usr/athena/include
20805/usr/local/x11r5/include
20806/usr/lpp/Xamples/include
20807
20808/usr/openwin/include
20809/usr/openwin/share/include'
20810
20811if test "$ac_x_includes" = no; then
20812 # Guess where to find include files, by looking for Intrinsic.h.
20813 # First, try using that file with no special directory specified.
20814 cat >conftest.$ac_ext <<_ACEOF
20815/* confdefs.h. */
20816_ACEOF
20817cat confdefs.h >>conftest.$ac_ext
20818cat >>conftest.$ac_ext <<_ACEOF
20819/* end confdefs.h. */
20820#include <X11/Intrinsic.h>
20821_ACEOF
20822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } >/dev/null; then
20830 if test -s conftest.err; then
20831 ac_cpp_err=$ac_c_preproc_warn_flag
20832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20833 else
20834 ac_cpp_err=
20835 fi
20836else
20837 ac_cpp_err=yes
20838fi
20839if test -z "$ac_cpp_err"; then
20840 # We can compile using X headers with no special include directory.
20841ac_x_includes=
20842else
20843 echo "$as_me: failed program was:" >&5
20844sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 for ac_dir in $ac_x_header_dirs; do
20847 if test -r "$ac_dir/X11/Intrinsic.h"; then
20848 ac_x_includes=$ac_dir
20849 break
20850 fi
20851done
20852fi
20853rm -f conftest.err conftest.$ac_ext
20854fi # $ac_x_includes = no
20855
20856if test "$ac_x_libraries" = no; then
20857 # Check for the libraries.
20858 # See if we find them without any special options.
20859 # Don't add to $LIBS permanently.
20860 ac_save_LIBS=$LIBS
20861 LIBS="-lXt $LIBS"
20862 cat >conftest.$ac_ext <<_ACEOF
20863/* confdefs.h. */
20864_ACEOF
20865cat confdefs.h >>conftest.$ac_ext
20866cat >>conftest.$ac_ext <<_ACEOF
20867/* end confdefs.h. */
20868#include <X11/Intrinsic.h>
20869int
20870main ()
20871{
20872XtMalloc (0)
20873 ;
20874 return 0;
20875}
20876_ACEOF
20877rm -f conftest.$ac_objext conftest$ac_exeext
20878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879 (eval $ac_link) 2>conftest.er1
20880 ac_status=$?
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest$ac_exeext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 LIBS=$ac_save_LIBS
20900# We can link X programs with no special library path.
20901ac_x_libraries=
20902else
20903 echo "$as_me: failed program was:" >&5
20904sed 's/^/| /' conftest.$ac_ext >&5
20905
20906LIBS=$ac_save_LIBS
20907for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20908do
20909 # Don't even attempt the hair of trying to link an X program!
20910 for ac_extension in a so sl; do
20911 if test -r $ac_dir/libXt.$ac_extension; then
20912 ac_x_libraries=$ac_dir
20913 break 2
20914 fi
20915 done
20916done
20917fi
20918rm -f conftest.err conftest.$ac_objext \
20919 conftest$ac_exeext conftest.$ac_ext
20920fi # $ac_x_libraries = no
20921
20922if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20923 # Didn't find X anywhere. Cache the known absence of X.
20924 ac_cv_have_x="have_x=no"
20925else
20926 # Record where we found X for the cache.
20927 ac_cv_have_x="have_x=yes \
20928 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20929fi
20930fi
20931
20932 fi
20933 eval "$ac_cv_have_x"
20934fi # $with_x != no
20935
20936if test "$have_x" != yes; then
20937 echo "$as_me:$LINENO: result: $have_x" >&5
20938echo "${ECHO_T}$have_x" >&6
20939 no_x=yes
20940else
20941 # If each of the values was on the command line, it overrides each guess.
20942 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20943 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20944 # Update the cache value to reflect the command line values.
20945 ac_cv_have_x="have_x=yes \
20946 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20947 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20948echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20949fi
20950
20951
20952# Unlike the sim directory, whether a simulator is linked is controlled by
20953# presence of a gdb_sim definition in the target configure.tgt entry.
20954# This code just checks for a few cases where we'd like to ignore those
20955# definitions, even when they're present in the '.mt' file. These cases
20956# are when --disable-sim is specified, or if the simulator directory is
20957# not part of the source tree.
20958#
20959# Check whether --enable-sim or --disable-sim was given.
20960if test "${enable_sim+set}" = set; then
20961 enableval="$enable_sim"
20962 echo "enable_sim = $enable_sim";
20963 echo "enableval = ${enableval}";
20964 case "${enableval}" in
20965 yes) ignore_sim=false ;;
20966 no) ignore_sim=true ;;
20967 *) ignore_sim=false ;;
20968 esac
20969else
20970 ignore_sim=false
20971fi;
20972
20973if test ! -d "${srcdir}/../sim"; then
20974 ignore_sim=true
20975fi
20976
20977SIM=
20978SIM_OBS=
20979if test "${ignore_sim}" = "false"; then
20980 if test x"${gdb_sim}" != x ; then
20981 SIM="${gdb_sim}"
20982 SIM_OBS="remote-sim.o"
20983
20984cat >>confdefs.h <<\_ACEOF
20985#define WITH_SIM 1
20986_ACEOF
20987
20988 fi
20989fi
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004# List of host floatformats.
21005
21006cat >>confdefs.h <<_ACEOF
21007#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21008_ACEOF
21009
21010
21011cat >>confdefs.h <<_ACEOF
21012#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21013_ACEOF
21014
21015
21016cat >>confdefs.h <<_ACEOF
21017#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21018_ACEOF
21019
21020
21021# target_subdir is used by the testsuite to find the target libraries.
21022target_subdir=
21023if test "${host}" != "${target}"; then
21024 target_subdir="${target_alias}/"
21025fi
21026
21027
21028frags=
21029if test "${gdb_native}" = "yes"; then
21030 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21031 if test ! -f ${host_makefile_frag}; then
21032 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21033echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21034 { (exit 1); exit 1; }; }
21035 fi
21036 frags="$frags $host_makefile_frag"
21037else
21038 host_makefile_frag=/dev/null
21039fi
21040
21041
21042
21043
21044if test "${gdb_native}" = "yes"; then
21045# We pick this up from the host configuration file (.mh) because we
21046# do not have a native configuration Makefile fragment.
21047nativefile=`sed -n '
21048s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21049' ${host_makefile_frag}`
21050fi
21051
21052
21053if test x"${gdb_osabi}" != x ; then
21054
21055cat >>confdefs.h <<_ACEOF
21056#define GDB_OSABI_DEFAULT $gdb_osabi
21057_ACEOF
21058
21059fi
21060
21061# Enable multi-ice-gdb-server.
21062# Check whether --enable-multi-ice or --disable-multi-ice was given.
21063if test "${enable_multi_ice+set}" = set; then
21064 enableval="$enable_multi_ice"
21065 case $enableval in
21066 yes | no)
21067 ;;
21068 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21069echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21070 { (exit 1); exit 1; }; } ;;
21071 esac
21072fi;
21073if test "x$enable_multi_ice" = xyes; then
21074
21075
21076subdirs="$subdirs multi-ice"
21077
21078fi
21079
21080# We only build gdbserver automatically in a native configuration.
21081if test "$gdb_native" = "yes"; then
21082 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21083echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21084 if test "x$build_gdbserver" = xyes; then
21085 echo "$as_me:$LINENO: result: yes" >&5
21086echo "${ECHO_T}yes" >&6
21087
21088
21089subdirs="$subdirs gdbserver"
21090
21091 else
21092 echo "$as_me:$LINENO: result: no" >&5
21093echo "${ECHO_T}no" >&6
21094 fi
21095fi
21096
21097# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21098# to an empty version.
21099
21100files=
21101links=
21102
21103rm -f nm.h
21104nm_h=""
21105if test "${nativefile}" != ""; then
21106 nm_h=nm.h
21107 case "${nativefile}" in
21108 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21109 * ) GDB_NM_FILE="${nativefile}"
21110 esac
21111 files="${files} ${GDB_NM_FILE}"
21112 links="${links} nm.h"
21113
21114cat >>confdefs.h <<_ACEOF
21115#define GDB_NM_FILE "${GDB_NM_FILE}"
21116_ACEOF
21117
21118fi
21119
21120
21121ac_sources="$files"
21122ac_dests="$links"
21123while test -n "$ac_sources"; do
21124 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21125 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21126 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21127done
21128 ac_config_links="$ac_config_links $ac_config_links_1"
21129
21130
21131
21132
21133
21134cat >>confdefs.h <<\_ACEOF
21135#define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21136_ACEOF
21137
21138
21139 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21140 ac_config_commands="$ac_config_commands default"
21141cat >confcache <<\_ACEOF
21142# This file is a shell script that caches the results of configure
21143# tests run on this system so they can be shared between configure
21144# scripts and configure runs, see configure's option --config-cache.
21145# It is not useful on other systems. If it contains results you don't
21146# want to keep, you may remove or edit it.
21147#
21148# config.status only pays attention to the cache file if you give it
21149# the --recheck option to rerun configure.
21150#
21151# `ac_cv_env_foo' variables (set or unset) will be overridden when
21152# loading this file, other *unset* `ac_cv_foo' will be assigned the
21153# following values.
21154
21155_ACEOF
21156
21157# The following way of writing the cache mishandles newlines in values,
21158# but we know of no workaround that is simple, portable, and efficient.
21159# So, don't put newlines in cache variables' values.
21160# Ultrix sh set writes to stderr and can't be redirected directly,
21161# and sets the high bit in the cache file unless we assign to the vars.
21162{
21163 (set) 2>&1 |
21164 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21165 *ac_space=\ *)
21166 # `set' does not quote correctly, so add quotes (double-quote
21167 # substitution turns \\\\ into \\, and sed turns \\ into \).
21168 sed -n \
21169 "s/'/'\\\\''/g;
21170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21171 ;;
21172 *)
21173 # `set' quotes correctly as required by POSIX, so do not add quotes.
21174 sed -n \
21175 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21176 ;;
21177 esac;
21178} |
21179 sed '
21180 t clear
21181 : clear
21182 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21183 t end
21184 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21185 : end' >>confcache
21186if diff $cache_file confcache >/dev/null 2>&1; then :; else
21187 if test -w $cache_file; then
21188 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21189 cat confcache >$cache_file
21190 else
21191 echo "not updating unwritable cache $cache_file"
21192 fi
21193fi
21194rm -f confcache
21195
21196test "x$prefix" = xNONE && prefix=$ac_default_prefix
21197# Let make expand exec_prefix.
21198test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21199
21200# VPATH may cause trouble with some makes, so we remove $(srcdir),
21201# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21202# trailing colons and then remove the whole line if VPATH becomes empty
21203# (actually we leave an empty line to preserve line numbers).
21204if test "x$srcdir" = x.; then
21205 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21206s/:*\$(srcdir):*/:/;
21207s/:*\${srcdir}:*/:/;
21208s/:*@srcdir@:*/:/;
21209s/^\([^=]*=[ ]*\):*/\1/;
21210s/:*$//;
21211s/^[^=]*=[ ]*$//;
21212}'
21213fi
21214
21215DEFS=-DHAVE_CONFIG_H
21216
21217ac_libobjs=
21218ac_ltlibobjs=
21219for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21220 # 1. Remove the extension, and $U if already installed.
21221 ac_i=`echo "$ac_i" |
21222 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21223 # 2. Add them.
21224 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21225 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21226done
21227LIBOBJS=$ac_libobjs
21228
21229LTLIBOBJS=$ac_ltlibobjs
21230
21231
21232if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21233 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21234Usually this means the macro was only invoked conditionally." >&5
21235echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21236Usually this means the macro was only invoked conditionally." >&2;}
21237 { (exit 1); exit 1; }; }
21238fi
21239if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21240 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21241Usually this means the macro was only invoked conditionally." >&5
21242echo "$as_me: error: conditional \"GMAKE\" was never defined.
21243Usually this means the macro was only invoked conditionally." >&2;}
21244 { (exit 1); exit 1; }; }
21245fi
21246if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21247 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21248Usually this means the macro was only invoked conditionally." >&5
21249echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21250Usually this means the macro was only invoked conditionally." >&2;}
21251 { (exit 1); exit 1; }; }
21252fi
21253
21254 gl_libobjs=
21255 gl_ltlibobjs=
21256 if test -n "$gl_LIBOBJS"; then
21257 # Remove the extension.
21258 sed_drop_objext='s/\.o$//;s/\.obj$//'
21259 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21260 gl_libobjs="$gl_libobjs $i.$ac_objext"
21261 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21262 done
21263 fi
21264 gl_LIBOBJS=$gl_libobjs
21265
21266 gl_LTLIBOBJS=$gl_ltlibobjs
21267
21268
21269
21270 gltests_libobjs=
21271 gltests_ltlibobjs=
21272 if test -n "$gltests_LIBOBJS"; then
21273 # Remove the extension.
21274 sed_drop_objext='s/\.o$//;s/\.obj$//'
21275 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21276 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21277 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21278 done
21279 fi
21280 gltests_LIBOBJS=$gltests_libobjs
21281
21282 gltests_LTLIBOBJS=$gltests_ltlibobjs
21283
21284
21285if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21286 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21287Usually this means the macro was only invoked conditionally." >&5
21288echo "$as_me: error: conditional \"AMDEP\" was never defined.
21289Usually this means the macro was only invoked conditionally." >&2;}
21290 { (exit 1); exit 1; }; }
21291fi
21292if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21293 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21294Usually this means the macro was only invoked conditionally." >&5
21295echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21296Usually this means the macro was only invoked conditionally." >&2;}
21297 { (exit 1); exit 1; }; }
21298fi
21299
21300: ${CONFIG_STATUS=./config.status}
21301ac_clean_files_save=$ac_clean_files
21302ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21303{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21304echo "$as_me: creating $CONFIG_STATUS" >&6;}
21305cat >$CONFIG_STATUS <<_ACEOF
21306#! $SHELL
21307# Generated by $as_me.
21308# Run this file to recreate the current configuration.
21309# Compiler output produced by configure, useful for debugging
21310# configure, is in config.log if it exists.
21311
21312debug=false
21313ac_cs_recheck=false
21314ac_cs_silent=false
21315SHELL=\${CONFIG_SHELL-$SHELL}
21316_ACEOF
21317
21318cat >>$CONFIG_STATUS <<\_ACEOF
21319## --------------------- ##
21320## M4sh Initialization. ##
21321## --------------------- ##
21322
21323# Be Bourne compatible
21324if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21325 emulate sh
21326 NULLCMD=:
21327 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21328 # is contrary to our usage. Disable this feature.
21329 alias -g '${1+"$@"}'='"$@"'
21330elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21331 set -o posix
21332fi
21333DUALCASE=1; export DUALCASE # for MKS sh
21334
21335# Support unset when possible.
21336if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21337 as_unset=unset
21338else
21339 as_unset=false
21340fi
21341
21342
21343# Work around bugs in pre-3.0 UWIN ksh.
21344$as_unset ENV MAIL MAILPATH
21345PS1='$ '
21346PS2='> '
21347PS4='+ '
21348
21349# NLS nuisances.
21350for as_var in \
21351 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21352 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21353 LC_TELEPHONE LC_TIME
21354do
21355 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21356 eval $as_var=C; export $as_var
21357 else
21358 $as_unset $as_var
21359 fi
21360done
21361
21362# Required to use basename.
21363if expr a : '\(a\)' >/dev/null 2>&1; then
21364 as_expr=expr
21365else
21366 as_expr=false
21367fi
21368
21369if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21370 as_basename=basename
21371else
21372 as_basename=false
21373fi
21374
21375
21376# Name of the executable.
21377as_me=`$as_basename "$0" ||
21378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21379 X"$0" : 'X\(//\)$' \| \
21380 X"$0" : 'X\(/\)$' \| \
21381 . : '\(.\)' 2>/dev/null ||
21382echo X/"$0" |
21383 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21384 /^X\/\(\/\/\)$/{ s//\1/; q; }
21385 /^X\/\(\/\).*/{ s//\1/; q; }
21386 s/.*/./; q'`
21387
21388
21389# PATH needs CR, and LINENO needs CR and PATH.
21390# Avoid depending upon Character Ranges.
21391as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21392as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21393as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21394as_cr_digits='0123456789'
21395as_cr_alnum=$as_cr_Letters$as_cr_digits
21396
21397# The user is always right.
21398if test "${PATH_SEPARATOR+set}" != set; then
21399 echo "#! /bin/sh" >conf$$.sh
21400 echo "exit 0" >>conf$$.sh
21401 chmod +x conf$$.sh
21402 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21403 PATH_SEPARATOR=';'
21404 else
21405 PATH_SEPARATOR=:
21406 fi
21407 rm -f conf$$.sh
21408fi
21409
21410
21411 as_lineno_1=$LINENO
21412 as_lineno_2=$LINENO
21413 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21414 test "x$as_lineno_1" != "x$as_lineno_2" &&
21415 test "x$as_lineno_3" = "x$as_lineno_2" || {
21416 # Find who we are. Look in the path if we contain no path at all
21417 # relative or not.
21418 case $0 in
21419 *[\\/]* ) as_myself=$0 ;;
21420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21421for as_dir in $PATH
21422do
21423 IFS=$as_save_IFS
21424 test -z "$as_dir" && as_dir=.
21425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21426done
21427
21428 ;;
21429 esac
21430 # We did not find ourselves, most probably we were run as `sh COMMAND'
21431 # in which case we are not to be found in the path.
21432 if test "x$as_myself" = x; then
21433 as_myself=$0
21434 fi
21435 if test ! -f "$as_myself"; then
21436 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21437echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21438 { (exit 1); exit 1; }; }
21439 fi
21440 case $CONFIG_SHELL in
21441 '')
21442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21443for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21444do
21445 IFS=$as_save_IFS
21446 test -z "$as_dir" && as_dir=.
21447 for as_base in sh bash ksh sh5; do
21448 case $as_dir in
21449 /*)
21450 if ("$as_dir/$as_base" -c '
21451 as_lineno_1=$LINENO
21452 as_lineno_2=$LINENO
21453 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21454 test "x$as_lineno_1" != "x$as_lineno_2" &&
21455 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21456 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21457 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21458 CONFIG_SHELL=$as_dir/$as_base
21459 export CONFIG_SHELL
21460 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21461 fi;;
21462 esac
21463 done
21464done
21465;;
21466 esac
21467
21468 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21469 # uniformly replaced by the line number. The first 'sed' inserts a
21470 # line-number line before each line; the second 'sed' does the real
21471 # work. The second script uses 'N' to pair each line-number line
21472 # with the numbered line, and appends trailing '-' during
21473 # substitution so that $LINENO is not a special case at line end.
21474 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21475 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21476 sed '=' <$as_myself |
21477 sed '
21478 N
21479 s,$,-,
21480 : loop
21481 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21482 t loop
21483 s,-$,,
21484 s,^['$as_cr_digits']*\n,,
21485 ' >$as_me.lineno &&
21486 chmod +x $as_me.lineno ||
21487 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21488echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21489 { (exit 1); exit 1; }; }
21490
21491 # Don't try to exec as it changes $[0], causing all sort of problems
21492 # (the dirname of $[0] is not the place where we might find the
21493 # original and so on. Autoconf is especially sensible to this).
21494 . ./$as_me.lineno
21495 # Exit status is that of the last command.
21496 exit
21497}
21498
21499
21500case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21501 *c*,-n*) ECHO_N= ECHO_C='
21502' ECHO_T=' ' ;;
21503 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21504 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21505esac
21506
21507if expr a : '\(a\)' >/dev/null 2>&1; then
21508 as_expr=expr
21509else
21510 as_expr=false
21511fi
21512
21513rm -f conf$$ conf$$.exe conf$$.file
21514echo >conf$$.file
21515if ln -s conf$$.file conf$$ 2>/dev/null; then
21516 # We could just check for DJGPP; but this test a) works b) is more generic
21517 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21518 if test -f conf$$.exe; then
21519 # Don't use ln at all; we don't have any links
21520 as_ln_s='cp -p'
21521 else
21522 as_ln_s='ln -s'
21523 fi
21524elif ln conf$$.file conf$$ 2>/dev/null; then
21525 as_ln_s=ln
21526else
21527 as_ln_s='cp -p'
21528fi
21529rm -f conf$$ conf$$.exe conf$$.file
21530
21531if mkdir -p . 2>/dev/null; then
21532 as_mkdir_p=:
21533else
21534 test -d ./-p && rmdir ./-p
21535 as_mkdir_p=false
21536fi
21537
21538as_executable_p="test -f"
21539
21540# Sed expression to map a string onto a valid CPP name.
21541as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21542
21543# Sed expression to map a string onto a valid variable name.
21544as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21545
21546
21547# IFS
21548# We need space, tab and new line, in precisely that order.
21549as_nl='
21550'
21551IFS=" $as_nl"
21552
21553# CDPATH.
21554$as_unset CDPATH
21555
21556exec 6>&1
21557
21558# Open the log real soon, to keep \$[0] and so on meaningful, and to
21559# report actual input values of CONFIG_FILES etc. instead of their
21560# values after options handling. Logging --version etc. is OK.
21561exec 5>>config.log
21562{
21563 echo
21564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21565## Running $as_me. ##
21566_ASBOX
21567} >&5
21568cat >&5 <<_CSEOF
21569
21570This file was extended by $as_me, which was
21571generated by GNU Autoconf 2.59. Invocation command line was
21572
21573 CONFIG_FILES = $CONFIG_FILES
21574 CONFIG_HEADERS = $CONFIG_HEADERS
21575 CONFIG_LINKS = $CONFIG_LINKS
21576 CONFIG_COMMANDS = $CONFIG_COMMANDS
21577 $ $0 $@
21578
21579_CSEOF
21580echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21581echo >&5
21582_ACEOF
21583
21584# Files that config.status was made for.
21585if test -n "$ac_config_files"; then
21586 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21587fi
21588
21589if test -n "$ac_config_headers"; then
21590 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21591fi
21592
21593if test -n "$ac_config_links"; then
21594 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21595fi
21596
21597if test -n "$ac_config_commands"; then
21598 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21599fi
21600
21601cat >>$CONFIG_STATUS <<\_ACEOF
21602
21603ac_cs_usage="\
21604\`$as_me' instantiates files from templates according to the
21605current configuration.
21606
21607Usage: $0 [OPTIONS] [FILE]...
21608
21609 -h, --help print this help, then exit
21610 -V, --version print version number, then exit
21611 -q, --quiet do not print progress messages
21612 -d, --debug don't remove temporary files
21613 --recheck update $as_me by reconfiguring in the same conditions
21614 --file=FILE[:TEMPLATE]
21615 instantiate the configuration file FILE
21616 --header=FILE[:TEMPLATE]
21617 instantiate the configuration header FILE
21618
21619Configuration files:
21620$config_files
21621
21622Configuration headers:
21623$config_headers
21624
21625Configuration links:
21626$config_links
21627
21628Configuration commands:
21629$config_commands
21630
21631Report bugs to <[email protected]>."
21632_ACEOF
21633
21634cat >>$CONFIG_STATUS <<_ACEOF
21635ac_cs_version="\\
21636config.status
21637configured by $0, generated by GNU Autoconf 2.59,
21638 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21639
21640Copyright (C) 2003 Free Software Foundation, Inc.
21641This config.status script is free software; the Free Software Foundation
21642gives unlimited permission to copy, distribute and modify it."
21643srcdir=$srcdir
21644INSTALL="$INSTALL"
21645_ACEOF
21646
21647cat >>$CONFIG_STATUS <<\_ACEOF
21648# If no file are specified by the user, then we need to provide default
21649# value. By we need to know if files were specified by the user.
21650ac_need_defaults=:
21651while test $# != 0
21652do
21653 case $1 in
21654 --*=*)
21655 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21656 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21657 ac_shift=:
21658 ;;
21659 -*)
21660 ac_option=$1
21661 ac_optarg=$2
21662 ac_shift=shift
21663 ;;
21664 *) # This is not an option, so the user has probably given explicit
21665 # arguments.
21666 ac_option=$1
21667 ac_need_defaults=false;;
21668 esac
21669
21670 case $ac_option in
21671 # Handling of the options.
21672_ACEOF
21673cat >>$CONFIG_STATUS <<\_ACEOF
21674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21675 ac_cs_recheck=: ;;
21676 --version | --vers* | -V )
21677 echo "$ac_cs_version"; exit 0 ;;
21678 --he | --h)
21679 # Conflict between --help and --header
21680 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21681Try \`$0 --help' for more information." >&5
21682echo "$as_me: error: ambiguous option: $1
21683Try \`$0 --help' for more information." >&2;}
21684 { (exit 1); exit 1; }; };;
21685 --help | --hel | -h )
21686 echo "$ac_cs_usage"; exit 0 ;;
21687 --debug | --d* | -d )
21688 debug=: ;;
21689 --file | --fil | --fi | --f )
21690 $ac_shift
21691 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21692 ac_need_defaults=false;;
21693 --header | --heade | --head | --hea )
21694 $ac_shift
21695 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21696 ac_need_defaults=false;;
21697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21698 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21699 ac_cs_silent=: ;;
21700
21701 # This is an error.
21702 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21703Try \`$0 --help' for more information." >&5
21704echo "$as_me: error: unrecognized option: $1
21705Try \`$0 --help' for more information." >&2;}
21706 { (exit 1); exit 1; }; } ;;
21707
21708 *) ac_config_targets="$ac_config_targets $1" ;;
21709
21710 esac
21711 shift
21712done
21713
21714ac_configure_extra_args=
21715
21716if $ac_cs_silent; then
21717 exec 6>/dev/null
21718 ac_configure_extra_args="$ac_configure_extra_args --silent"
21719fi
21720
21721_ACEOF
21722cat >>$CONFIG_STATUS <<_ACEOF
21723if \$ac_cs_recheck; then
21724 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21725 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21726fi
21727
21728_ACEOF
21729
21730cat >>$CONFIG_STATUS <<_ACEOF
21731#
21732# INIT-COMMANDS section.
21733#
21734
21735ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21736AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21737
21738gdb_host_cpu=$gdb_host_cpu
21739nativefile=$nativefile
21740
21741
21742_ACEOF
21743
21744
21745
21746cat >>$CONFIG_STATUS <<\_ACEOF
21747for ac_config_target in $ac_config_targets
21748do
21749 case "$ac_config_target" in
21750 # Handling of arguments.
21751 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21752 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21753 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21754 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21755 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21756 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21757 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21758 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21759 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21760echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21761 { (exit 1); exit 1; }; };;
21762 esac
21763done
21764
21765# If the user did not use the arguments to specify the items to instantiate,
21766# then the envvar interface is used. Set only those that are not.
21767# We use the long form for the default assignment because of an extremely
21768# bizarre bug on SunOS 4.1.3.
21769if $ac_need_defaults; then
21770 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21771 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21772 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21774fi
21775
21776# Have a temporary directory for convenience. Make it in the build tree
21777# simply because there is no reason to put it here, and in addition,
21778# creating and moving files from /tmp can sometimes cause problems.
21779# Create a temporary directory, and hook for its removal unless debugging.
21780$debug ||
21781{
21782 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21783 trap '{ (exit 1); exit 1; }' 1 2 13 15
21784}
21785
21786# Create a (secure) tmp directory for tmp files.
21787
21788{
21789 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21790 test -n "$tmp" && test -d "$tmp"
21791} ||
21792{
21793 tmp=./confstat$$-$RANDOM
21794 (umask 077 && mkdir $tmp)
21795} ||
21796{
21797 echo "$me: cannot create a temporary directory in ." >&2
21798 { (exit 1); exit 1; }
21799}
21800
21801_ACEOF
21802
21803cat >>$CONFIG_STATUS <<_ACEOF
21804
21805#
21806# CONFIG_FILES section.
21807#
21808
21809# No need to generate the scripts if there are no CONFIG_FILES.
21810# This happens for instance when ./config.status config.h
21811if test -n "\$CONFIG_FILES"; then
21812 # Protect against being on the right side of a sed subst in config.status.
21813 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21814 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21815s,@SHELL@,$SHELL,;t t
21816s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21817s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21818s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21819s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21820s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21821s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21822s,@exec_prefix@,$exec_prefix,;t t
21823s,@prefix@,$prefix,;t t
21824s,@program_transform_name@,$program_transform_name,;t t
21825s,@bindir@,$bindir,;t t
21826s,@sbindir@,$sbindir,;t t
21827s,@libexecdir@,$libexecdir,;t t
21828s,@datadir@,$datadir,;t t
21829s,@sysconfdir@,$sysconfdir,;t t
21830s,@sharedstatedir@,$sharedstatedir,;t t
21831s,@localstatedir@,$localstatedir,;t t
21832s,@libdir@,$libdir,;t t
21833s,@includedir@,$includedir,;t t
21834s,@oldincludedir@,$oldincludedir,;t t
21835s,@infodir@,$infodir,;t t
21836s,@mandir@,$mandir,;t t
21837s,@build_alias@,$build_alias,;t t
21838s,@host_alias@,$host_alias,;t t
21839s,@target_alias@,$target_alias,;t t
21840s,@DEFS@,$DEFS,;t t
21841s,@ECHO_C@,$ECHO_C,;t t
21842s,@ECHO_N@,$ECHO_N,;t t
21843s,@ECHO_T@,$ECHO_T,;t t
21844s,@LIBS@,$LIBS,;t t
21845s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21846s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21847s,@MAINT@,$MAINT,;t t
21848s,@CC@,$CC,;t t
21849s,@CFLAGS@,$CFLAGS,;t t
21850s,@LDFLAGS@,$LDFLAGS,;t t
21851s,@CPPFLAGS@,$CPPFLAGS,;t t
21852s,@ac_ct_CC@,$ac_ct_CC,;t t
21853s,@EXEEXT@,$EXEEXT,;t t
21854s,@OBJEXT@,$OBJEXT,;t t
21855s,@CPP@,$CPP,;t t
21856s,@EGREP@,$EGREP,;t t
21857s,@RANLIB@,$RANLIB,;t t
21858s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21859s,@build@,$build,;t t
21860s,@build_cpu@,$build_cpu,;t t
21861s,@build_vendor@,$build_vendor,;t t
21862s,@build_os@,$build_os,;t t
21863s,@host@,$host,;t t
21864s,@host_cpu@,$host_cpu,;t t
21865s,@host_vendor@,$host_vendor,;t t
21866s,@host_os@,$host_os,;t t
21867s,@target@,$target,;t t
21868s,@target_cpu@,$target_cpu,;t t
21869s,@target_vendor@,$target_vendor,;t t
21870s,@target_os@,$target_os,;t t
21871s,@am__leading_dot@,$am__leading_dot,;t t
21872s,@DEPDIR@,$DEPDIR,;t t
21873s,@CCDEPMODE@,$CCDEPMODE,;t t
21874s,@MAKE@,$MAKE,;t t
21875s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21876s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21877s,@SET_MAKE@,$SET_MAKE,;t t
21878s,@USE_NLS@,$USE_NLS,;t t
21879s,@LIBINTL@,$LIBINTL,;t t
21880s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21881s,@INCINTL@,$INCINTL,;t t
21882s,@XGETTEXT@,$XGETTEXT,;t t
21883s,@GMSGFMT@,$GMSGFMT,;t t
21884s,@POSUB@,$POSUB,;t t
21885s,@CATALOGS@,$CATALOGS,;t t
21886s,@DATADIRNAME@,$DATADIRNAME,;t t
21887s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21888s,@GENCAT@,$GENCAT,;t t
21889s,@CATOBJEXT@,$CATOBJEXT,;t t
21890s,@localedir@,$localedir,;t t
21891s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21892s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21893s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21894s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21895s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21896s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21897s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21898s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21899s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21900s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21901s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21902s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21903s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21904s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21905s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21906s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21907s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21908s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21909s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21910s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21911s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21912s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21913s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21914s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21915s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21916s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21917s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21918s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21919s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21920s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21921s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21922s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21923s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21924s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21925s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21926s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21927s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21928s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21929s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21930s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21931s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21932s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
21933s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
21934s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
21935s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
21936s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
21937s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
21938s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
21939s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
21940s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
21941s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
21942s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
21943s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
21944s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
21945s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
21946s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
21947s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
21948s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
21949s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
21950s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
21951s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
21952s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
21953s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
21954s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
21955s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
21956s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
21957s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
21958s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
21959s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
21960s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
21961s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
21962s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
21963s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
21964s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
21965s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
21966s,@STDINT_H@,$STDINT_H,;t t
21967s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
21968s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
21969s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
21970s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
21971s,@WCHAR_H@,$WCHAR_H,;t t
21972s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
21973s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
21974s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
21975s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
21976s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
21977s,@PACKAGE@,$PACKAGE,;t t
21978s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21979s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21980s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21981s,@CYGPATH_W@,$CYGPATH_W,;t t
21982s,@PYTHON2_4@,$PYTHON2_4,;t t
21983s,@ACLOCAL@,$ACLOCAL,;t t
21984s,@AUTOCONF@,$AUTOCONF,;t t
21985s,@AUTOMAKE@,$AUTOMAKE,;t t
21986s,@AUTOHEADER@,$AUTOHEADER,;t t
21987s,@MAKEINFO@,$MAKEINFO,;t t
21988s,@install_sh@,$install_sh,;t t
21989s,@STRIP@,$STRIP,;t t
21990s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21991s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21992s,@mkdir_p@,$mkdir_p,;t t
21993s,@AWK@,$AWK,;t t
21994s,@AMTAR@,$AMTAR,;t t
21995s,@am__tar@,$am__tar,;t t
21996s,@am__untar@,$am__untar,;t t
21997s,@am__include@,$am__include,;t t
21998s,@am__quote@,$am__quote,;t t
21999s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22000s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22001s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22002s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22003s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22004s,@subdirs@,$subdirs,;t t
22005s,@TARGET_OBS@,$TARGET_OBS,;t t
22006s,@PKGVERSION@,$PKGVERSION,;t t
22007s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22008s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22009s,@LN_S@,$LN_S,;t t
22010s,@YACC@,$YACC,;t t
22011s,@AR@,$AR,;t t
22012s,@ac_ct_AR@,$ac_ct_AR,;t t
22013s,@DLLTOOL@,$DLLTOOL,;t t
22014s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22015s,@WINDRES@,$WINDRES,;t t
22016s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22017s,@MIG@,$MIG,;t t
22018s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22019s,@LIBICONV@,$LIBICONV,;t t
22020s,@LIBICONV_INCLUDE@,$LIBICONV_INCLUDE,;t t
22021s,@LIBICONV_LIBDIR@,$LIBICONV_LIBDIR,;t t
22022s,@READLINE@,$READLINE,;t t
22023s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22024s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22025s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22026s,@LIBEXPAT@,$LIBEXPAT,;t t
22027s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22028s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22029s,@ALLOCA@,$ALLOCA,;t t
22030s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22031s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22032s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22033s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22034s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22035s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22036s,@WIN32LIBS@,$WIN32LIBS,;t t
22037s,@LIBGUI@,$LIBGUI,;t t
22038s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22039s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22040s,@TCL_VERSION@,$TCL_VERSION,;t t
22041s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22042s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22043s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22044s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22045s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22046s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22047s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22048s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22049s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22050s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22051s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22052s,@TCL_DEPS@,$TCL_DEPS,;t t
22053s,@TK_VERSION@,$TK_VERSION,;t t
22054s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22055s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22056s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22057s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22058s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22059s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22060s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22061s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22062s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22063s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22064s,@TK_DEPS@,$TK_DEPS,;t t
22065s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22066s,@X_CFLAGS@,$X_CFLAGS,;t t
22067s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22068s,@X_LIBS@,$X_LIBS,;t t
22069s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22070s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22071s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22072s,@SIM@,$SIM,;t t
22073s,@SIM_OBS@,$SIM_OBS,;t t
22074s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22075s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22076s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22077s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22078s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22079s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22080s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22081s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22082s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22083s,@target_subdir@,$target_subdir,;t t
22084s,@frags@,$frags,;t t
22085s,@nm_h@,$nm_h,;t t
22086s,@LIBOBJS@,$LIBOBJS,;t t
22087s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22088s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22089s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22090s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22091s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22092/@host_makefile_frag@/r $host_makefile_frag
22093s,@host_makefile_frag@,,;t t
22094CEOF
22095
22096_ACEOF
22097
22098 cat >>$CONFIG_STATUS <<\_ACEOF
22099 # Split the substitutions into bite-sized pieces for seds with
22100 # small command number limits, like on Digital OSF/1 and HP-UX.
22101 ac_max_sed_lines=48
22102 ac_sed_frag=1 # Number of current file.
22103 ac_beg=1 # First line for current file.
22104 ac_end=$ac_max_sed_lines # Line after last line for current file.
22105 ac_more_lines=:
22106 ac_sed_cmds=
22107 while $ac_more_lines; do
22108 if test $ac_beg -gt 1; then
22109 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22110 else
22111 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22112 fi
22113 if test ! -s $tmp/subs.frag; then
22114 ac_more_lines=false
22115 else
22116 # The purpose of the label and of the branching condition is to
22117 # speed up the sed processing (if there are no `@' at all, there
22118 # is no need to browse any of the substitutions).
22119 # These are the two extra sed commands mentioned above.
22120 (echo ':t
22121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22122 if test -z "$ac_sed_cmds"; then
22123 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22124 else
22125 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22126 fi
22127 ac_sed_frag=`expr $ac_sed_frag + 1`
22128 ac_beg=$ac_end
22129 ac_end=`expr $ac_end + $ac_max_sed_lines`
22130 fi
22131 done
22132 if test -z "$ac_sed_cmds"; then
22133 ac_sed_cmds=cat
22134 fi
22135fi # test -n "$CONFIG_FILES"
22136
22137_ACEOF
22138cat >>$CONFIG_STATUS <<\_ACEOF
22139for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22140 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22141 case $ac_file in
22142 - | *:- | *:-:* ) # input from stdin
22143 cat >$tmp/stdin
22144 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22145 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22146 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22148 * ) ac_file_in=$ac_file.in ;;
22149 esac
22150
22151 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22152 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22153$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154 X"$ac_file" : 'X\(//\)[^/]' \| \
22155 X"$ac_file" : 'X\(//\)$' \| \
22156 X"$ac_file" : 'X\(/\)' \| \
22157 . : '\(.\)' 2>/dev/null ||
22158echo X"$ac_file" |
22159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22161 /^X\(\/\/\)$/{ s//\1/; q; }
22162 /^X\(\/\).*/{ s//\1/; q; }
22163 s/.*/./; q'`
22164 { if $as_mkdir_p; then
22165 mkdir -p "$ac_dir"
22166 else
22167 as_dir="$ac_dir"
22168 as_dirs=
22169 while test ! -d "$as_dir"; do
22170 as_dirs="$as_dir $as_dirs"
22171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22172$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22173 X"$as_dir" : 'X\(//\)[^/]' \| \
22174 X"$as_dir" : 'X\(//\)$' \| \
22175 X"$as_dir" : 'X\(/\)' \| \
22176 . : '\(.\)' 2>/dev/null ||
22177echo X"$as_dir" |
22178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22180 /^X\(\/\/\)$/{ s//\1/; q; }
22181 /^X\(\/\).*/{ s//\1/; q; }
22182 s/.*/./; q'`
22183 done
22184 test ! -n "$as_dirs" || mkdir $as_dirs
22185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22186echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22187 { (exit 1); exit 1; }; }; }
22188
22189 ac_builddir=.
22190
22191if test "$ac_dir" != .; then
22192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22193 # A "../" for each directory in $ac_dir_suffix.
22194 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22195else
22196 ac_dir_suffix= ac_top_builddir=
22197fi
22198
22199case $srcdir in
22200 .) # No --srcdir option. We are building in place.
22201 ac_srcdir=.
22202 if test -z "$ac_top_builddir"; then
22203 ac_top_srcdir=.
22204 else
22205 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22206 fi ;;
22207 [\\/]* | ?:[\\/]* ) # Absolute path.
22208 ac_srcdir=$srcdir$ac_dir_suffix;
22209 ac_top_srcdir=$srcdir ;;
22210 *) # Relative path.
22211 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22212 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22213esac
22214
22215# Do not use `cd foo && pwd` to compute absolute paths, because
22216# the directories may not exist.
22217case `pwd` in
22218.) ac_abs_builddir="$ac_dir";;
22219*)
22220 case "$ac_dir" in
22221 .) ac_abs_builddir=`pwd`;;
22222 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22223 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22224 esac;;
22225esac
22226case $ac_abs_builddir in
22227.) ac_abs_top_builddir=${ac_top_builddir}.;;
22228*)
22229 case ${ac_top_builddir}. in
22230 .) ac_abs_top_builddir=$ac_abs_builddir;;
22231 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22232 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22233 esac;;
22234esac
22235case $ac_abs_builddir in
22236.) ac_abs_srcdir=$ac_srcdir;;
22237*)
22238 case $ac_srcdir in
22239 .) ac_abs_srcdir=$ac_abs_builddir;;
22240 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22241 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22242 esac;;
22243esac
22244case $ac_abs_builddir in
22245.) ac_abs_top_srcdir=$ac_top_srcdir;;
22246*)
22247 case $ac_top_srcdir in
22248 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22249 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22250 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22251 esac;;
22252esac
22253
22254
22255 case $INSTALL in
22256 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22257 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22258 esac
22259
22260 if test x"$ac_file" != x-; then
22261 { echo "$as_me:$LINENO: creating $ac_file" >&5
22262echo "$as_me: creating $ac_file" >&6;}
22263 rm -f "$ac_file"
22264 fi
22265 # Let's still pretend it is `configure' which instantiates (i.e., don't
22266 # use $as_me), people would be surprised to read:
22267 # /* config.h. Generated by config.status. */
22268 if test x"$ac_file" = x-; then
22269 configure_input=
22270 else
22271 configure_input="$ac_file. "
22272 fi
22273 configure_input=$configure_input"Generated from `echo $ac_file_in |
22274 sed 's,.*/,,'` by configure."
22275
22276 # First look for the input files in the build tree, otherwise in the
22277 # src tree.
22278 ac_file_inputs=`IFS=:
22279 for f in $ac_file_in; do
22280 case $f in
22281 -) echo $tmp/stdin ;;
22282 [\\/$]*)
22283 # Absolute (can't be DOS-style, as IFS=:)
22284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22285echo "$as_me: error: cannot find input file: $f" >&2;}
22286 { (exit 1); exit 1; }; }
22287 echo "$f";;
22288 *) # Relative
22289 if test -f "$f"; then
22290 # Build tree
22291 echo "$f"
22292 elif test -f "$srcdir/$f"; then
22293 # Source tree
22294 echo "$srcdir/$f"
22295 else
22296 # /dev/null tree
22297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22298echo "$as_me: error: cannot find input file: $f" >&2;}
22299 { (exit 1); exit 1; }; }
22300 fi;;
22301 esac
22302 done` || { (exit 1); exit 1; }
22303_ACEOF
22304cat >>$CONFIG_STATUS <<_ACEOF
22305 sed "$ac_vpsub
22306$extrasub
22307_ACEOF
22308cat >>$CONFIG_STATUS <<\_ACEOF
22309:t
22310/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22311s,@configure_input@,$configure_input,;t t
22312s,@srcdir@,$ac_srcdir,;t t
22313s,@abs_srcdir@,$ac_abs_srcdir,;t t
22314s,@top_srcdir@,$ac_top_srcdir,;t t
22315s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22316s,@builddir@,$ac_builddir,;t t
22317s,@abs_builddir@,$ac_abs_builddir,;t t
22318s,@top_builddir@,$ac_top_builddir,;t t
22319s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22320s,@INSTALL@,$ac_INSTALL,;t t
22321" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22322 rm -f $tmp/stdin
22323 if test x"$ac_file" != x-; then
22324 mv $tmp/out $ac_file
22325 else
22326 cat $tmp/out
22327 rm -f $tmp/out
22328 fi
22329
22330done
22331_ACEOF
22332cat >>$CONFIG_STATUS <<\_ACEOF
22333
22334#
22335# CONFIG_HEADER section.
22336#
22337
22338# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22339# NAME is the cpp macro being defined and VALUE is the value it is being given.
22340#
22341# ac_d sets the value in "#define NAME VALUE" lines.
22342ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22343ac_dB='[ ].*$,\1#\2'
22344ac_dC=' '
22345ac_dD=',;t'
22346# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22347ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22348ac_uB='$,\1#\2define\3'
22349ac_uC=' '
22350ac_uD=',;t'
22351
22352for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22354 case $ac_file in
22355 - | *:- | *:-:* ) # input from stdin
22356 cat >$tmp/stdin
22357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22361 * ) ac_file_in=$ac_file.in ;;
22362 esac
22363
22364 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22365echo "$as_me: creating $ac_file" >&6;}
22366
22367 # First look for the input files in the build tree, otherwise in the
22368 # src tree.
22369 ac_file_inputs=`IFS=:
22370 for f in $ac_file_in; do
22371 case $f in
22372 -) echo $tmp/stdin ;;
22373 [\\/$]*)
22374 # Absolute (can't be DOS-style, as IFS=:)
22375 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22376echo "$as_me: error: cannot find input file: $f" >&2;}
22377 { (exit 1); exit 1; }; }
22378 # Do quote $f, to prevent DOS paths from being IFS'd.
22379 echo "$f";;
22380 *) # Relative
22381 if test -f "$f"; then
22382 # Build tree
22383 echo "$f"
22384 elif test -f "$srcdir/$f"; then
22385 # Source tree
22386 echo "$srcdir/$f"
22387 else
22388 # /dev/null tree
22389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22390echo "$as_me: error: cannot find input file: $f" >&2;}
22391 { (exit 1); exit 1; }; }
22392 fi;;
22393 esac
22394 done` || { (exit 1); exit 1; }
22395 # Remove the trailing spaces.
22396 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22397
22398_ACEOF
22399
22400# Transform confdefs.h into two sed scripts, `conftest.defines' and
22401# `conftest.undefs', that substitutes the proper values into
22402# config.h.in to produce config.h. The first handles `#define'
22403# templates, and the second `#undef' templates.
22404# And first: Protect against being on the right side of a sed subst in
22405# config.status. Protect against being in an unquoted here document
22406# in config.status.
22407rm -f conftest.defines conftest.undefs
22408# Using a here document instead of a string reduces the quoting nightmare.
22409# Putting comments in sed scripts is not portable.
22410#
22411# `end' is used to avoid that the second main sed command (meant for
22412# 0-ary CPP macros) applies to n-ary macro definitions.
22413# See the Autoconf documentation for `clear'.
22414cat >confdef2sed.sed <<\_ACEOF
22415s/[\\&,]/\\&/g
22416s,[\\$`],\\&,g
22417t clear
22418: clear
22419s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22420t end
22421s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22422: end
22423_ACEOF
22424# If some macros were called several times there might be several times
22425# the same #defines, which is useless. Nevertheless, we may not want to
22426# sort them, since we want the *last* AC-DEFINE to be honored.
22427uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22428sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22429rm -f confdef2sed.sed
22430
22431# This sed command replaces #undef with comments. This is necessary, for
22432# example, in the case of _POSIX_SOURCE, which is predefined and required
22433# on some systems where configure will not decide to define it.
22434cat >>conftest.undefs <<\_ACEOF
22435s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22436_ACEOF
22437
22438# Break up conftest.defines because some shells have a limit on the size
22439# of here documents, and old seds have small limits too (100 cmds).
22440echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22441echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22442echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22443echo ' :' >>$CONFIG_STATUS
22444rm -f conftest.tail
22445while grep . conftest.defines >/dev/null
22446do
22447 # Write a limited-size here document to $tmp/defines.sed.
22448 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22449 # Speed up: don't consider the non `#define' lines.
22450 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22451 # Work around the forget-to-reset-the-flag bug.
22452 echo 't clr' >>$CONFIG_STATUS
22453 echo ': clr' >>$CONFIG_STATUS
22454 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22455 echo 'CEOF
22456 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22457 rm -f $tmp/in
22458 mv $tmp/out $tmp/in
22459' >>$CONFIG_STATUS
22460 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22461 rm -f conftest.defines
22462 mv conftest.tail conftest.defines
22463done
22464rm -f conftest.defines
22465echo ' fi # grep' >>$CONFIG_STATUS
22466echo >>$CONFIG_STATUS
22467
22468# Break up conftest.undefs because some shells have a limit on the size
22469# of here documents, and old seds have small limits too (100 cmds).
22470echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22471rm -f conftest.tail
22472while grep . conftest.undefs >/dev/null
22473do
22474 # Write a limited-size here document to $tmp/undefs.sed.
22475 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22476 # Speed up: don't consider the non `#undef'
22477 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22478 # Work around the forget-to-reset-the-flag bug.
22479 echo 't clr' >>$CONFIG_STATUS
22480 echo ': clr' >>$CONFIG_STATUS
22481 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22482 echo 'CEOF
22483 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22484 rm -f $tmp/in
22485 mv $tmp/out $tmp/in
22486' >>$CONFIG_STATUS
22487 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22488 rm -f conftest.undefs
22489 mv conftest.tail conftest.undefs
22490done
22491rm -f conftest.undefs
22492
22493cat >>$CONFIG_STATUS <<\_ACEOF
22494 # Let's still pretend it is `configure' which instantiates (i.e., don't
22495 # use $as_me), people would be surprised to read:
22496 # /* config.h. Generated by config.status. */
22497 if test x"$ac_file" = x-; then
22498 echo "/* Generated by configure. */" >$tmp/config.h
22499 else
22500 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22501 fi
22502 cat $tmp/in >>$tmp/config.h
22503 rm -f $tmp/in
22504 if test x"$ac_file" != x-; then
22505 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22506 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22507echo "$as_me: $ac_file is unchanged" >&6;}
22508 else
22509 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22510$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22511 X"$ac_file" : 'X\(//\)[^/]' \| \
22512 X"$ac_file" : 'X\(//\)$' \| \
22513 X"$ac_file" : 'X\(/\)' \| \
22514 . : '\(.\)' 2>/dev/null ||
22515echo X"$ac_file" |
22516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22518 /^X\(\/\/\)$/{ s//\1/; q; }
22519 /^X\(\/\).*/{ s//\1/; q; }
22520 s/.*/./; q'`
22521 { if $as_mkdir_p; then
22522 mkdir -p "$ac_dir"
22523 else
22524 as_dir="$ac_dir"
22525 as_dirs=
22526 while test ! -d "$as_dir"; do
22527 as_dirs="$as_dir $as_dirs"
22528 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22529$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22530 X"$as_dir" : 'X\(//\)[^/]' \| \
22531 X"$as_dir" : 'X\(//\)$' \| \
22532 X"$as_dir" : 'X\(/\)' \| \
22533 . : '\(.\)' 2>/dev/null ||
22534echo X"$as_dir" |
22535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22537 /^X\(\/\/\)$/{ s//\1/; q; }
22538 /^X\(\/\).*/{ s//\1/; q; }
22539 s/.*/./; q'`
22540 done
22541 test ! -n "$as_dirs" || mkdir $as_dirs
22542 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22543echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22544 { (exit 1); exit 1; }; }; }
22545
22546 rm -f $ac_file
22547 mv $tmp/config.h $ac_file
22548 fi
22549 else
22550 cat $tmp/config.h
22551 rm -f $tmp/config.h
22552 fi
22553# Compute $ac_file's index in $config_headers.
22554_am_stamp_count=1
22555for _am_header in $config_headers :; do
22556 case $_am_header in
22557 $ac_file | $ac_file:* )
22558 break ;;
22559 * )
22560 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22561 esac
22562done
22563echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22564$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565 X$ac_file : 'X\(//\)[^/]' \| \
22566 X$ac_file : 'X\(//\)$' \| \
22567 X$ac_file : 'X\(/\)' \| \
22568 . : '\(.\)' 2>/dev/null ||
22569echo X$ac_file |
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22572 /^X\(\/\/\)$/{ s//\1/; q; }
22573 /^X\(\/\).*/{ s//\1/; q; }
22574 s/.*/./; q'`/stamp-h$_am_stamp_count
22575done
22576_ACEOF
22577cat >>$CONFIG_STATUS <<\_ACEOF
22578
22579#
22580# CONFIG_LINKS section.
22581#
22582
22583for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22584 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22585 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22586
22587 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22588echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22589
22590 if test ! -r $srcdir/$ac_source; then
22591 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22592echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22593 { (exit 1); exit 1; }; }
22594 fi
22595 rm -f $ac_dest
22596
22597 # Make relative symlinks.
22598 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22599$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600 X"$ac_dest" : 'X\(//\)[^/]' \| \
22601 X"$ac_dest" : 'X\(//\)$' \| \
22602 X"$ac_dest" : 'X\(/\)' \| \
22603 . : '\(.\)' 2>/dev/null ||
22604echo X"$ac_dest" |
22605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22607 /^X\(\/\/\)$/{ s//\1/; q; }
22608 /^X\(\/\).*/{ s//\1/; q; }
22609 s/.*/./; q'`
22610 { if $as_mkdir_p; then
22611 mkdir -p "$ac_dest_dir"
22612 else
22613 as_dir="$ac_dest_dir"
22614 as_dirs=
22615 while test ! -d "$as_dir"; do
22616 as_dirs="$as_dir $as_dirs"
22617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22619 X"$as_dir" : 'X\(//\)[^/]' \| \
22620 X"$as_dir" : 'X\(//\)$' \| \
22621 X"$as_dir" : 'X\(/\)' \| \
22622 . : '\(.\)' 2>/dev/null ||
22623echo X"$as_dir" |
22624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22626 /^X\(\/\/\)$/{ s//\1/; q; }
22627 /^X\(\/\).*/{ s//\1/; q; }
22628 s/.*/./; q'`
22629 done
22630 test ! -n "$as_dirs" || mkdir $as_dirs
22631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22632echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22633 { (exit 1); exit 1; }; }; }
22634
22635 ac_builddir=.
22636
22637if test "$ac_dest_dir" != .; then
22638 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22639 # A "../" for each directory in $ac_dir_suffix.
22640 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22641else
22642 ac_dir_suffix= ac_top_builddir=
22643fi
22644
22645case $srcdir in
22646 .) # No --srcdir option. We are building in place.
22647 ac_srcdir=.
22648 if test -z "$ac_top_builddir"; then
22649 ac_top_srcdir=.
22650 else
22651 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22652 fi ;;
22653 [\\/]* | ?:[\\/]* ) # Absolute path.
22654 ac_srcdir=$srcdir$ac_dir_suffix;
22655 ac_top_srcdir=$srcdir ;;
22656 *) # Relative path.
22657 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22658 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22659esac
22660
22661# Do not use `cd foo && pwd` to compute absolute paths, because
22662# the directories may not exist.
22663case `pwd` in
22664.) ac_abs_builddir="$ac_dest_dir";;
22665*)
22666 case "$ac_dest_dir" in
22667 .) ac_abs_builddir=`pwd`;;
22668 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22669 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22670 esac;;
22671esac
22672case $ac_abs_builddir in
22673.) ac_abs_top_builddir=${ac_top_builddir}.;;
22674*)
22675 case ${ac_top_builddir}. in
22676 .) ac_abs_top_builddir=$ac_abs_builddir;;
22677 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22678 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22679 esac;;
22680esac
22681case $ac_abs_builddir in
22682.) ac_abs_srcdir=$ac_srcdir;;
22683*)
22684 case $ac_srcdir in
22685 .) ac_abs_srcdir=$ac_abs_builddir;;
22686 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22687 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22688 esac;;
22689esac
22690case $ac_abs_builddir in
22691.) ac_abs_top_srcdir=$ac_top_srcdir;;
22692*)
22693 case $ac_top_srcdir in
22694 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22695 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22696 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22697 esac;;
22698esac
22699
22700
22701 case $srcdir in
22702 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22703 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22704 esac
22705
22706 # Try a symlink, then a hard link, then a copy.
22707 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22708 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22709 cp -p $srcdir/$ac_source $ac_dest ||
22710 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22711echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22712 { (exit 1); exit 1; }; }
22713done
22714_ACEOF
22715cat >>$CONFIG_STATUS <<\_ACEOF
22716
22717#
22718# CONFIG_COMMANDS section.
22719#
22720for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22721 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22722 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22723 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22724$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22725 X"$ac_dest" : 'X\(//\)[^/]' \| \
22726 X"$ac_dest" : 'X\(//\)$' \| \
22727 X"$ac_dest" : 'X\(/\)' \| \
22728 . : '\(.\)' 2>/dev/null ||
22729echo X"$ac_dest" |
22730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22732 /^X\(\/\/\)$/{ s//\1/; q; }
22733 /^X\(\/\).*/{ s//\1/; q; }
22734 s/.*/./; q'`
22735 { if $as_mkdir_p; then
22736 mkdir -p "$ac_dir"
22737 else
22738 as_dir="$ac_dir"
22739 as_dirs=
22740 while test ! -d "$as_dir"; do
22741 as_dirs="$as_dir $as_dirs"
22742 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22743$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22744 X"$as_dir" : 'X\(//\)[^/]' \| \
22745 X"$as_dir" : 'X\(//\)$' \| \
22746 X"$as_dir" : 'X\(/\)' \| \
22747 . : '\(.\)' 2>/dev/null ||
22748echo X"$as_dir" |
22749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22751 /^X\(\/\/\)$/{ s//\1/; q; }
22752 /^X\(\/\).*/{ s//\1/; q; }
22753 s/.*/./; q'`
22754 done
22755 test ! -n "$as_dirs" || mkdir $as_dirs
22756 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22757echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22758 { (exit 1); exit 1; }; }; }
22759
22760 ac_builddir=.
22761
22762if test "$ac_dir" != .; then
22763 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22764 # A "../" for each directory in $ac_dir_suffix.
22765 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22766else
22767 ac_dir_suffix= ac_top_builddir=
22768fi
22769
22770case $srcdir in
22771 .) # No --srcdir option. We are building in place.
22772 ac_srcdir=.
22773 if test -z "$ac_top_builddir"; then
22774 ac_top_srcdir=.
22775 else
22776 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22777 fi ;;
22778 [\\/]* | ?:[\\/]* ) # Absolute path.
22779 ac_srcdir=$srcdir$ac_dir_suffix;
22780 ac_top_srcdir=$srcdir ;;
22781 *) # Relative path.
22782 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22783 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22784esac
22785
22786# Do not use `cd foo && pwd` to compute absolute paths, because
22787# the directories may not exist.
22788case `pwd` in
22789.) ac_abs_builddir="$ac_dir";;
22790*)
22791 case "$ac_dir" in
22792 .) ac_abs_builddir=`pwd`;;
22793 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22794 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22795 esac;;
22796esac
22797case $ac_abs_builddir in
22798.) ac_abs_top_builddir=${ac_top_builddir}.;;
22799*)
22800 case ${ac_top_builddir}. in
22801 .) ac_abs_top_builddir=$ac_abs_builddir;;
22802 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22803 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22804 esac;;
22805esac
22806case $ac_abs_builddir in
22807.) ac_abs_srcdir=$ac_srcdir;;
22808*)
22809 case $ac_srcdir in
22810 .) ac_abs_srcdir=$ac_abs_builddir;;
22811 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22812 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22813 esac;;
22814esac
22815case $ac_abs_builddir in
22816.) ac_abs_top_srcdir=$ac_top_srcdir;;
22817*)
22818 case $ac_top_srcdir in
22819 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22820 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22821 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22822 esac;;
22823esac
22824
22825
22826 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22827echo "$as_me: executing $ac_dest commands" >&6;}
22828 case $ac_dest in
22829 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22830 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22831 # Strip MF so we end up with the name of the file.
22832 mf=`echo "$mf" | sed -e 's/:.*$//'`
22833 # Check whether this is an Automake generated Makefile or not.
22834 # We used to match only the files named `Makefile.in', but
22835 # some people rename them; so instead we look at the file content.
22836 # Grep'ing the first line is not enough: some people post-process
22837 # each Makefile.in and add a new line on top of each file to say so.
22838 # So let's grep whole file.
22839 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22840 dirpart=`(dirname "$mf") 2>/dev/null ||
22841$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22842 X"$mf" : 'X\(//\)[^/]' \| \
22843 X"$mf" : 'X\(//\)$' \| \
22844 X"$mf" : 'X\(/\)' \| \
22845 . : '\(.\)' 2>/dev/null ||
22846echo X"$mf" |
22847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22849 /^X\(\/\/\)$/{ s//\1/; q; }
22850 /^X\(\/\).*/{ s//\1/; q; }
22851 s/.*/./; q'`
22852 else
22853 continue
22854 fi
22855 # Extract the definition of DEPDIR, am__include, and am__quote
22856 # from the Makefile without running `make'.
22857 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22858 test -z "$DEPDIR" && continue
22859 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22860 test -z "am__include" && continue
22861 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22862 # When using ansi2knr, U may be empty or an underscore; expand it
22863 U=`sed -n 's/^U = //p' < "$mf"`
22864 # Find all dependency output files, they are included files with
22865 # $(DEPDIR) in their names. We invoke sed twice because it is the
22866 # simplest approach to changing $(DEPDIR) to its actual value in the
22867 # expansion.
22868 for file in `sed -n "
22869 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22870 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22871 # Make sure the directory exists.
22872 test -f "$dirpart/$file" && continue
22873 fdir=`(dirname "$file") 2>/dev/null ||
22874$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22875 X"$file" : 'X\(//\)[^/]' \| \
22876 X"$file" : 'X\(//\)$' \| \
22877 X"$file" : 'X\(/\)' \| \
22878 . : '\(.\)' 2>/dev/null ||
22879echo X"$file" |
22880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22882 /^X\(\/\/\)$/{ s//\1/; q; }
22883 /^X\(\/\).*/{ s//\1/; q; }
22884 s/.*/./; q'`
22885 { if $as_mkdir_p; then
22886 mkdir -p $dirpart/$fdir
22887 else
22888 as_dir=$dirpart/$fdir
22889 as_dirs=
22890 while test ! -d "$as_dir"; do
22891 as_dirs="$as_dir $as_dirs"
22892 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22893$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22894 X"$as_dir" : 'X\(//\)[^/]' \| \
22895 X"$as_dir" : 'X\(//\)$' \| \
22896 X"$as_dir" : 'X\(/\)' \| \
22897 . : '\(.\)' 2>/dev/null ||
22898echo X"$as_dir" |
22899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22901 /^X\(\/\/\)$/{ s//\1/; q; }
22902 /^X\(\/\).*/{ s//\1/; q; }
22903 s/.*/./; q'`
22904 done
22905 test ! -n "$as_dirs" || mkdir $as_dirs
22906 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22907echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22908 { (exit 1); exit 1; }; }; }
22909
22910 # echo "creating $dirpart/$file"
22911 echo '# dummy' > "$dirpart/$file"
22912 done
22913done
22914 ;;
22915 default )
22916
22917sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
22918mv -f Makefile.tmp Makefile
22919
22920
22921case x$CONFIG_HEADERS in
22922xconfig.h:config.in)
22923echo > stamp-h ;;
22924esac
22925 ;;
22926 esac
22927done
22928_ACEOF
22929
22930cat >>$CONFIG_STATUS <<\_ACEOF
22931
22932{ (exit 0); exit 0; }
22933_ACEOF
22934chmod +x $CONFIG_STATUS
22935ac_clean_files=$ac_clean_files_save
22936
22937
22938# configure is writing to config.log, and then calls config.status.
22939# config.status does its own redirection, appending to config.log.
22940# Unfortunately, on DOS this fails, as config.log is still kept open
22941# by configure, so config.status won't be able to write to it; its
22942# output is simply discarded. So we exec the FD to /dev/null,
22943# effectively closing config.log, so it can be properly (re)opened and
22944# appended to by config.status. When coming back to configure, we
22945# need to make the FD available again.
22946if test "$no_create" != yes; then
22947 ac_cs_success=:
22948 ac_config_status_args=
22949 test "$silent" = yes &&
22950 ac_config_status_args="$ac_config_status_args --quiet"
22951 exec 5>/dev/null
22952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22953 exec 5>>config.log
22954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22955 # would make configure fail if this is the last instruction.
22956 $ac_cs_success || { (exit 1); exit 1; }
22957fi
22958
22959#
22960# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
22961#
22962if test "$no_recursion" != yes; then
22963
22964 # Remove --cache-file and --srcdir arguments so they do not pile up.
22965 ac_sub_configure_args=
22966 ac_prev=
22967 eval "set x $ac_configure_args"
22968 shift
22969 for ac_arg
22970 do
22971 if test -n "$ac_prev"; then
22972 ac_prev=
22973 continue
22974 fi
22975 case $ac_arg in
22976 -cache-file | --cache-file | --cache-fil | --cache-fi \
22977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22978 ac_prev=cache_file ;;
22979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22981 | --c=*)
22982 ;;
22983 --config-cache | -C)
22984 ;;
22985 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22986 ac_prev=srcdir ;;
22987 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22988 ;;
22989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22990 ac_prev=prefix ;;
22991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22992 ;;
22993 *)
22994 case $ac_arg in
22995 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22996 esac
22997 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22998 esac
22999 done
23000
23001 # Always prepend --prefix to ensure using the same prefix
23002 # in subdir configurations.
23003 ac_arg="--prefix=$prefix"
23004 case $ac_arg in
23005 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23006 esac
23007 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23008
23009 ac_popdir=`pwd`
23010 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23011
23012 # Do not complain, so a configure script can configure whichever
23013 # parts of a large source tree are present.
23014 test -d "$srcdir/$ac_dir" || continue
23015
23016 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23017echo "$as_me: configuring in $ac_dir" >&6;}
23018 { if $as_mkdir_p; then
23019 mkdir -p "$ac_dir"
23020 else
23021 as_dir="$ac_dir"
23022 as_dirs=
23023 while test ! -d "$as_dir"; do
23024 as_dirs="$as_dir $as_dirs"
23025 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23026$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23027 X"$as_dir" : 'X\(//\)[^/]' \| \
23028 X"$as_dir" : 'X\(//\)$' \| \
23029 X"$as_dir" : 'X\(/\)' \| \
23030 . : '\(.\)' 2>/dev/null ||
23031echo X"$as_dir" |
23032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23034 /^X\(\/\/\)$/{ s//\1/; q; }
23035 /^X\(\/\).*/{ s//\1/; q; }
23036 s/.*/./; q'`
23037 done
23038 test ! -n "$as_dirs" || mkdir $as_dirs
23039 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23040echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23041 { (exit 1); exit 1; }; }; }
23042
23043 ac_builddir=.
23044
23045if test "$ac_dir" != .; then
23046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23047 # A "../" for each directory in $ac_dir_suffix.
23048 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23049else
23050 ac_dir_suffix= ac_top_builddir=
23051fi
23052
23053case $srcdir in
23054 .) # No --srcdir option. We are building in place.
23055 ac_srcdir=.
23056 if test -z "$ac_top_builddir"; then
23057 ac_top_srcdir=.
23058 else
23059 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23060 fi ;;
23061 [\\/]* | ?:[\\/]* ) # Absolute path.
23062 ac_srcdir=$srcdir$ac_dir_suffix;
23063 ac_top_srcdir=$srcdir ;;
23064 *) # Relative path.
23065 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23066 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23067esac
23068
23069# Do not use `cd foo && pwd` to compute absolute paths, because
23070# the directories may not exist.
23071case `pwd` in
23072.) ac_abs_builddir="$ac_dir";;
23073*)
23074 case "$ac_dir" in
23075 .) ac_abs_builddir=`pwd`;;
23076 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23077 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23078 esac;;
23079esac
23080case $ac_abs_builddir in
23081.) ac_abs_top_builddir=${ac_top_builddir}.;;
23082*)
23083 case ${ac_top_builddir}. in
23084 .) ac_abs_top_builddir=$ac_abs_builddir;;
23085 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23086 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23087 esac;;
23088esac
23089case $ac_abs_builddir in
23090.) ac_abs_srcdir=$ac_srcdir;;
23091*)
23092 case $ac_srcdir in
23093 .) ac_abs_srcdir=$ac_abs_builddir;;
23094 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23095 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23096 esac;;
23097esac
23098case $ac_abs_builddir in
23099.) ac_abs_top_srcdir=$ac_top_srcdir;;
23100*)
23101 case $ac_top_srcdir in
23102 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23103 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23104 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23105 esac;;
23106esac
23107
23108
23109 cd "$ac_dir"
23110
23111 # Check for guested configure; otherwise get Cygnus style configure.
23112 if test -f "$ac_srcdir/configure.gnu"; then
23113 ac_sub_configure=$ac_srcdir/configure.gnu
23114 elif test -f "$ac_srcdir/configure"; then
23115 ac_sub_configure=$ac_srcdir/configure
23116 elif test -f "$ac_srcdir/configure.in"; then
23117 # This should be Cygnus configure.
23118 ac_sub_configure=$ac_aux_dir/configure
23119 else
23120 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23121echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23122 ac_sub_configure=
23123 fi
23124
23125 # The recursion is here.
23126 if test -n "$ac_sub_configure"; then
23127 # Make the cache file name correct relative to the subdirectory.
23128 case $cache_file in
23129 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23130 *) # Relative path.
23131 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23132 esac
23133
23134 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23135echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23136 # The eval makes quoting arguments work.
23137 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23138 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23139 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23140echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23141 { (exit 1); exit 1; }; }
23142 fi
23143
23144 cd "$ac_popdir"
23145 done
23146fi
23147
23148
23149exit 0
This page took 0.325603 seconds and 4 git commands to generate.