gdb/
[deliverable/binutils-gdb.git] / gdb / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_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
312 gl_header_list=
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319 ac_pwd=`pwd`
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_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.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
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
633 Try \`$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
656 done
657
658 if 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; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
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
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678 do
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
685 done
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.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if 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
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if 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 ||
721 echo 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
731 else
732 ac_srcdir_defaulted=no
733 fi
734 if 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
742 fi
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; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if 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
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
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
810 Installation 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
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine 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
840 Program 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
845 X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849 System 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
854 fi
855
856 if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860 Optional 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
881 Optional Packages:
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
885 --with-libunwind Use libunwind frame unwinding support
886 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
887 --with-bugurl=URL Direct users to URL to report a bug
888 --with-system-readline use installed readline library
889 --with-expat include expat support (auto/yes/no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
892 --without-libexpat-prefix don't search for libexpat in includedir and libdir
893 --with-python include python support (auto/yes/no/<path>)
894 --without-included-regex don't use included regex; this is the default
895 on systems with version 2 of the GNU C library
896 (use with caution on other system)
897 --with-sysroot=DIR Search for usr/lib et al within DIR.
898 --with-tcl directory containing tcl configuration (tclConfig.sh)
899 --with-tk directory containing tk configuration (tkConfig.sh)
900 --with-x use the X Window System
901 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
902
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CPP C preprocessor
911
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
914
915 _ACEOF
916 fi
917
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930 ac_dir_suffix= ac_top_builddir=
931 fi
932
933 case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
948
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
953 *)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
971 *)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986 esac
987
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 fi
1003 cd $ac_popdir
1004 done
1005 fi
1006
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009 cat <<\_ACEOF
1010
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1014 _ACEOF
1015 exit 0
1016 fi
1017 exec 5>config.log
1018 cat >&5 <<_ACEOF
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1021
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1024
1025 $ $0 $@
1026
1027 _ACEOF
1028 {
1029 cat <<_ASUNAME
1030 ## --------- ##
1031 ## Platform. ##
1032 ## --------- ##
1033
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042
1043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050
1051 _ASUNAME
1052
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054 for as_dir in $PATH
1055 do
1056 IFS=$as_save_IFS
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1059 done
1060
1061 } >&5
1062
1063 cat >&5 <<_ACEOF
1064
1065
1066 ## ----------- ##
1067 ## Core tests. ##
1068 ## ----------- ##
1069
1070 _ACEOF
1071
1072
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_configure_args=
1079 ac_configure_args0=
1080 ac_configure_args1=
1081 ac_sep=
1082 ac_must_keep_next=false
1083 for ac_pass in 1 2
1084 do
1085 for ac_arg
1086 do
1087 case $ac_arg in
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 continue ;;
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 esac
1095 case $ac_pass in
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 2)
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1101 else
1102 case $ac_arg in
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 esac
1110 ;;
1111 -* ) ac_must_keep_next=true ;;
1112 esac
1113 fi
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1116 ac_sep=" "
1117 ;;
1118 esac
1119 done
1120 done
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1131 {
1132 echo
1133
1134 cat <<\_ASBOX
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1138 _ASBOX
1139 echo
1140 # The following way of writing the cache mishandles newlines in values,
1141 {
1142 (set) 2>&1 |
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 *ac_space=\ *)
1145 sed -n \
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 ;;
1149 *)
1150 sed -n \
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152 ;;
1153 esac;
1154 }
1155 echo
1156
1157 cat <<\_ASBOX
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_vars
1164 do
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1169
1170 if test -n "$ac_subst_files"; then
1171 cat <<\_ASBOX
1172 ## ------------- ##
1173 ## Output files. ##
1174 ## ------------- ##
1175 _ASBOX
1176 echo
1177 for ac_var in $ac_subst_files
1178 do
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1181 done | sort
1182 echo
1183 fi
1184
1185 if test -s confdefs.h; then
1186 cat <<\_ASBOX
1187 ## ----------- ##
1188 ## confdefs.h. ##
1189 ## ----------- ##
1190 _ASBOX
1191 echo
1192 sed "/^$/d" confdefs.h | sort
1193 echo
1194 fi
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1198 } >&5
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201 exit $exit_status
1202 ' 0
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205 done
1206 ac_signal=0
1207
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211 echo >confdefs.h
1212
1213 # Predefined preprocessor variables.
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237 _ACEOF
1238
1239
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 else
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 fi
1248 fi
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1254 . "$ac_site_file"
1255 fi
1256 done
1257
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1264 case $cache_file in
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1267 esac
1268 fi
1269 else
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1272 >$cache_file
1273 fi
1274
1275 # Check that the precious variables saved in the cache have kept the same
1276 # value.
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1285 set,)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,set)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,);;
1294 *)
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 # differences in whitespace do not lead to failure.
1297 ac_old_val_w=`echo x $ac_old_val`
1298 ac_new_val_w=`echo x $ac_new_val`
1299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 ac_cache_corrupted=:
1303 else
1304 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1306 eval $ac_var=\$ac_old_val
1307 fi
1308 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1309 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1310 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1311 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1312 fi;;
1313 esac
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1316 case $ac_new_val in
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1320 esac
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324 esac
1325 fi
1326 done
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1335 fi
1336
1337 ac_ext=c
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342
1343
1344 gl_header_list="$gl_header_list stdint.h"
1345 gl_header_list="$gl_header_list wchar.h"
1346 gl_header_list="$gl_header_list string.h"
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367 ac_config_headers="$ac_config_headers config.h:config.in"
1368
1369 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1372 if test "${enable_maintainer_mode+set}" = set; then
1373 enableval="$enable_maintainer_mode"
1374 USE_MAINTAINER_MODE=$enableval
1375 else
1376 USE_MAINTAINER_MODE=no
1377 fi;
1378 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1380
1381
1382 if test $USE_MAINTAINER_MODE = yes; then
1383 MAINTAINER_MODE_TRUE=
1384 MAINTAINER_MODE_FALSE='#'
1385 else
1386 MAINTAINER_MODE_TRUE='#'
1387 MAINTAINER_MODE_FALSE=
1388 fi
1389
1390 MAINT=$MAINTAINER_MODE_TRUE
1391
1392
1393
1394 ac_ext=c
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1409 else
1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 for as_dir in $PATH
1412 do
1413 IFS=$as_save_IFS
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 break 2
1420 fi
1421 done
1422 done
1423
1424 fi
1425 fi
1426 CC=$ac_cv_prog_CC
1427 if test -n "$CC"; then
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429 echo "${ECHO_T}$CC" >&6
1430 else
1431 echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1433 fi
1434
1435 fi
1436 if test -z "$ac_cv_prog_CC"; then
1437 ac_ct_CC=$CC
1438 # Extract the first word of "gcc", so it can be a program name with args.
1439 set dummy gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459 done
1460 done
1461
1462 fi
1463 fi
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473 CC=$ac_ct_CC
1474 else
1475 CC="$ac_cv_prog_CC"
1476 fi
1477
1478 if test -z "$CC"; then
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501 done
1502 done
1503
1504 fi
1505 fi
1506 CC=$ac_cv_prog_CC
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 fi
1516 if test -z "$ac_cv_prog_CC"; then
1517 ac_ct_CC=$CC
1518 # Extract the first word of "cc", so it can be a program name with args.
1519 set dummy cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 CC=$ac_ct_CC
1554 else
1555 CC="$ac_cv_prog_CC"
1556 fi
1557
1558 fi
1559 if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1569 else
1570 ac_prog_rejected=no
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1573 do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1580 continue
1581 fi
1582 ac_cv_prog_CC="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1585 fi
1586 done
1587 done
1588
1589 if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1592 shift
1593 if test $# != 0; then
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1597 shift
1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1599 fi
1600 fi
1601 fi
1602 fi
1603 CC=$ac_cv_prog_CC
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1607 else
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612 fi
1613 if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1615 for ac_prog in cl
1616 do
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1637 fi
1638 done
1639 done
1640
1641 fi
1642 fi
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1650 fi
1651
1652 test -n "$CC" && break
1653 done
1654 fi
1655 if test -z "$CC"; then
1656 ac_ct_CC=$CC
1657 for ac_prog in cl
1658 do
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680 done
1681 done
1682
1683 fi
1684 fi
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 fi
1693
1694 test -n "$ac_ct_CC" && break
1695 done
1696
1697 CC=$ac_ct_CC
1698 fi
1699
1700 fi
1701
1702
1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }; }
1710
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730
1731 cat >conftest.$ac_ext <<_ACEOF
1732 /* confdefs.h. */
1733 _ACEOF
1734 cat confdefs.h >>conftest.$ac_ext
1735 cat >>conftest.$ac_ext <<_ACEOF
1736 /* end confdefs.h. */
1737
1738 int
1739 main ()
1740 {
1741
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 ac_clean_files_save=$ac_clean_files
1747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1748 # Try to create an executable without -o first, disregard a.out.
1749 # It will help us diagnose broken compilers, and finding out an intuition
1750 # of exeext.
1751 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # Find the output, starting from the most likely. This scheme is
1760 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761 # resort.
1762
1763 # Be careful to initialize this variable, since it used to be cached.
1764 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765 ac_cv_exeext=
1766 # b.out is created by i960 compilers.
1767 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1768 do
1769 test -f "$ac_file" || continue
1770 case $ac_file in
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1772 ;;
1773 conftest.$ac_ext )
1774 # This is the source file.
1775 ;;
1776 [ab].out )
1777 # We found the default executable, but exeext='' is most
1778 # certainly right.
1779 break;;
1780 *.* )
1781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 # FIXME: I believe we export ac_cv_exeext for Libtool,
1783 # but it would be cool to find out if it's true. Does anybody
1784 # maintain Libtool? --akim.
1785 export ac_cv_exeext
1786 break;;
1787 * )
1788 break;;
1789 esac
1790 done
1791 else
1792 echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: C compiler cannot create executables
1800 See \`config.log' for more details." >&2;}
1801 { (exit 77); exit 77; }; }; }
1802 fi
1803
1804 ac_exeext=$ac_cv_exeext
1805 echo "$as_me:$LINENO: result: $ac_file" >&5
1806 echo "${ECHO_T}$ac_file" >&6
1807
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813 # If not cross compiling, check that we can run a simple program.
1814 if test "$cross_compiling" != yes; then
1815 if { ac_try='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1817 (eval $ac_try) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 cross_compiling=no
1822 else
1823 if test "$cross_compiling" = maybe; then
1824 cross_compiling=yes
1825 else
1826 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }; }
1835 fi
1836 fi
1837 fi
1838 echo "$as_me:$LINENO: result: yes" >&5
1839 echo "${ECHO_T}yes" >&6
1840
1841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1842 ac_clean_files=$ac_clean_files_save
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848 echo "${ECHO_T}$cross_compiling" >&6
1849
1850 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1853 (eval $ac_link) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1859 # work properly (i.e., refer to `conftest.exe'), while it won't with
1860 # `rm'.
1861 for ac_file in conftest.exe conftest conftest.*; do
1862 test -f "$ac_file" || continue
1863 case $ac_file in
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866 export ac_cv_exeext
1867 break;;
1868 * ) break;;
1869 esac
1870 done
1871 else
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875 See \`config.log' for more details." >&5
1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }; }
1879 fi
1880
1881 rm -f conftest$ac_cv_exeext
1882 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883 echo "${ECHO_T}$ac_cv_exeext" >&6
1884
1885 rm -f conftest.$ac_ext
1886 EXEEXT=$ac_cv_exeext
1887 ac_exeext=$EXEEXT
1888 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890 if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 cat >conftest.$ac_ext <<_ACEOF
1894 /* confdefs.h. */
1895 _ACEOF
1896 cat confdefs.h >>conftest.$ac_ext
1897 cat >>conftest.$ac_ext <<_ACEOF
1898 /* end confdefs.h. */
1899
1900 int
1901 main ()
1902 {
1903
1904 ;
1905 return 0;
1906 }
1907 _ACEOF
1908 rm -f conftest.o conftest.obj
1909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918 break;;
1919 esac
1920 done
1921 else
1922 echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930 See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }; }
1932 fi
1933
1934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1935 fi
1936 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937 echo "${ECHO_T}$ac_cv_objext" >&6
1938 OBJEXT=$ac_cv_objext
1939 ac_objext=$OBJEXT
1940 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945 cat >conftest.$ac_ext <<_ACEOF
1946 /* confdefs.h. */
1947 _ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1951
1952 int
1953 main ()
1954 {
1955 #ifndef __GNUC__
1956 choke me
1957 #endif
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1966 ac_status=$?
1967 grep -v '^ *+' conftest.er1 >conftest.err
1968 rm -f conftest.er1
1969 cat conftest.err >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
1972 { ac_try='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 (eval $ac_try) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_compiler_gnu=yes
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_compiler_gnu=no
1991 fi
1992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995 fi
1996 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998 GCC=`test $ac_compiler_gnu = yes && echo yes`
1999 ac_test_CFLAGS=${CFLAGS+set}
2000 ac_save_CFLAGS=$CFLAGS
2001 CFLAGS="-g"
2002 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004 if test "${ac_cv_prog_cc_g+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 cat >conftest.$ac_ext <<_ACEOF
2008 /* confdefs.h. */
2009 _ACEOF
2010 cat confdefs.h >>conftest.$ac_ext
2011 cat >>conftest.$ac_ext <<_ACEOF
2012 /* end confdefs.h. */
2013
2014 int
2015 main ()
2016 {
2017
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2025 ac_status=$?
2026 grep -v '^ *+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
2044 ac_cv_prog_cc_g=yes
2045 else
2046 echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_cv_prog_cc_g=no
2050 fi
2051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055 if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS=$ac_save_CFLAGS
2057 elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2059 CFLAGS="-g -O2"
2060 else
2061 CFLAGS="-g"
2062 fi
2063 else
2064 if test "$GCC" = yes; then
2065 CFLAGS="-O2"
2066 else
2067 CFLAGS=
2068 fi
2069 fi
2070 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 ac_cv_prog_cc_stdc=no
2076 ac_save_CC=$CC
2077 cat >conftest.$ac_ext <<_ACEOF
2078 /* confdefs.h. */
2079 _ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2083 #include <stdarg.h>
2084 #include <stdio.h>
2085 #include <sys/types.h>
2086 #include <sys/stat.h>
2087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2088 struct buf { int x; };
2089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090 static char *e (p, i)
2091 char **p;
2092 int i;
2093 {
2094 return p[i];
2095 }
2096 static char *f (char * (*g) (char **, int), char **p, ...)
2097 {
2098 char *s;
2099 va_list v;
2100 va_start (v,p);
2101 s = g (p, va_arg (v,int));
2102 va_end (v);
2103 return s;
2104 }
2105
2106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not '\xHH' hex character constants.
2108 These don't provoke an error unfortunately, instead are silently treated
2109 as 'x'. The following induces an error, until -std1 is added to get
2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2111 array size at least. It's necessary to write '\x00'==0 to get something
2112 that's true only with -std1. */
2113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2114
2115 int test (int i, double x);
2116 struct s1 {int (*f) (int a);};
2117 struct s2 {int (*f) (double a);};
2118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2119 int argc;
2120 char **argv;
2121 int
2122 main ()
2123 {
2124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 # Don't try gcc -ansi; that turns off useful extensions and
2130 # breaks some systems' header files.
2131 # AIX -qlanglvl=ansi
2132 # Ultrix and OSF/1 -std1
2133 # HP-UX 10.20 and later -Ae
2134 # HP-UX older versions -Aa -D_HPUX_SOURCE
2135 # SVR4 -Xc -D__EXTENSIONS__
2136 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2137 do
2138 CC="$ac_save_CC $ac_arg"
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_stdc=$ac_arg
2162 break
2163 else
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 fi
2168 rm -f conftest.err conftest.$ac_objext
2169 done
2170 rm -f conftest.$ac_ext conftest.$ac_objext
2171 CC=$ac_save_CC
2172
2173 fi
2174
2175 case "x$ac_cv_prog_cc_stdc" in
2176 x|xno)
2177 echo "$as_me:$LINENO: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2179 *)
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
2183 esac
2184
2185 # Some people use a C++ compiler to compile C. Since we use `exit',
2186 # in C++ we need to declare it. In case someone uses the same compiler
2187 # for both compiling C and C++ we need to have the C++ compiler decide
2188 # the declaration of exit, since it's the most demanding environment.
2189 cat >conftest.$ac_ext <<_ACEOF
2190 #ifndef __cplusplus
2191 choke me
2192 #endif
2193 _ACEOF
2194 rm -f conftest.$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 for ac_declaration in \
2217 '' \
2218 'extern "C" void std::exit (int) throw (); using std::exit;' \
2219 'extern "C" void std::exit (int); using std::exit;' \
2220 'extern "C" void exit (int) throw ();' \
2221 'extern "C" void exit (int);' \
2222 'void exit (int);'
2223 do
2224 cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h. */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2230 $ac_declaration
2231 #include <stdlib.h>
2232 int
2233 main ()
2234 {
2235 exit (42);
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2243 ac_status=$?
2244 grep -v '^ *+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 :
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 continue
2268 fi
2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h. */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2276 $ac_declaration
2277 int
2278 main ()
2279 {
2280 exit (42);
2281 ;
2282 return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2288 ac_status=$?
2289 grep -v '^ *+' conftest.er1 >conftest.err
2290 rm -f conftest.er1
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 break
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311
2312 fi
2313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314 done
2315 rm -f conftest*
2316 if test -n "$ac_declaration"; then
2317 echo '#ifdef __cplusplus' >>confdefs.h
2318 echo $ac_declaration >>confdefs.h
2319 echo '#endif' >>confdefs.h
2320 fi
2321
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 fi
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335 cat >>confdefs.h <<\_ACEOF
2336 #define _GNU_SOURCE 1
2337 _ACEOF
2338
2339
2340
2341 ac_ext=c
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348 # On Suns, sometimes $CPP names a directory.
2349 if test -n "$CPP" && test -d "$CPP"; then
2350 CPP=
2351 fi
2352 if test -z "$CPP"; then
2353 if test "${ac_cv_prog_CPP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 # Double quotes because CPP needs to be expanded
2357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2358 do
2359 ac_preproc_ok=false
2360 for ac_c_preproc_warn_flag in '' yes
2361 do
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2374 #ifdef __STDC__
2375 # include <limits.h>
2376 #else
2377 # include <assert.h>
2378 #endif
2379 Syntax error
2380 _ACEOF
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
2395 else
2396 ac_cpp_err=yes
2397 fi
2398 if test -z "$ac_cpp_err"; then
2399 :
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 # Broken: fails on valid input.
2405 continue
2406 fi
2407 rm -f conftest.err conftest.$ac_ext
2408
2409 # OK, works on sane cases. Now check whether non-existent headers
2410 # can be detected and how.
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h. */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2417 #include <ac_nonexistent.h>
2418 _ACEOF
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 else
2431 ac_cpp_err=
2432 fi
2433 else
2434 ac_cpp_err=yes
2435 fi
2436 if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2438 continue
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 # Passes both tests.
2444 ac_preproc_ok=:
2445 break
2446 fi
2447 rm -f conftest.err conftest.$ac_ext
2448
2449 done
2450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451 rm -f conftest.err conftest.$ac_ext
2452 if $ac_preproc_ok; then
2453 break
2454 fi
2455
2456 done
2457 ac_cv_prog_CPP=$CPP
2458
2459 fi
2460 CPP=$ac_cv_prog_CPP
2461 else
2462 ac_cv_prog_CPP=$CPP
2463 fi
2464 echo "$as_me:$LINENO: result: $CPP" >&5
2465 echo "${ECHO_T}$CPP" >&6
2466 ac_preproc_ok=false
2467 for ac_c_preproc_warn_flag in '' yes
2468 do
2469 # Use a header file that comes with gcc, so configuring glibc
2470 # with a fresh cross-compiler works.
2471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 # <limits.h> exists even on freestanding compilers.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2481 #ifdef __STDC__
2482 # include <limits.h>
2483 #else
2484 # include <assert.h>
2485 #endif
2486 Syntax error
2487 _ACEOF
2488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 else
2500 ac_cpp_err=
2501 fi
2502 else
2503 ac_cpp_err=yes
2504 fi
2505 if test -z "$ac_cpp_err"; then
2506 :
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 # Broken: fails on valid input.
2512 continue
2513 fi
2514 rm -f conftest.err conftest.$ac_ext
2515
2516 # OK, works on sane cases. Now check whether non-existent headers
2517 # can be detected and how.
2518 cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h. */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2524 #include <ac_nonexistent.h>
2525 _ACEOF
2526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537 else
2538 ac_cpp_err=
2539 fi
2540 else
2541 ac_cpp_err=yes
2542 fi
2543 if test -z "$ac_cpp_err"; then
2544 # Broken: success on invalid input.
2545 continue
2546 else
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 # Passes both tests.
2551 ac_preproc_ok=:
2552 break
2553 fi
2554 rm -f conftest.err conftest.$ac_ext
2555
2556 done
2557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558 rm -f conftest.err conftest.$ac_ext
2559 if $ac_preproc_ok; then
2560 :
2561 else
2562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }; }
2569 fi
2570
2571 ac_ext=c
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
2577
2578 echo "$as_me:$LINENO: checking for egrep" >&5
2579 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580 if test "${ac_cv_prog_egrep+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2584 then ac_cv_prog_egrep='grep -E'
2585 else ac_cv_prog_egrep='egrep'
2586 fi
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590 EGREP=$ac_cv_prog_egrep
2591
2592
2593
2594 echo "$as_me:$LINENO: checking for AIX" >&5
2595 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2602 #ifdef _AIX
2603 yes
2604 #endif
2605
2606 _ACEOF
2607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608 $EGREP "yes" >/dev/null 2>&1; then
2609 echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611 cat >>confdefs.h <<\_ACEOF
2612 #define _ALL_SOURCE 1
2613 _ACEOF
2614
2615 else
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2618 fi
2619 rm -f conftest*
2620
2621
2622 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2624 if test "${ac_cv_search_strerror+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 ac_func_search_save_LIBS=$LIBS
2628 ac_cv_search_strerror=no
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h. */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2635
2636 /* Override any gcc2 internal prototype to avoid an error. */
2637 #ifdef __cplusplus
2638 extern "C"
2639 #endif
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642 char strerror ();
2643 int
2644 main ()
2645 {
2646 strerror ();
2647 ;
2648 return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext conftest$ac_exeext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest$ac_exeext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 ac_cv_search_strerror="none required"
2674 else
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 fi
2679 rm -f conftest.err conftest.$ac_objext \
2680 conftest$ac_exeext conftest.$ac_ext
2681 if test "$ac_cv_search_strerror" = no; then
2682 for ac_lib in cposix; do
2683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2690
2691 /* Override any gcc2 internal prototype to avoid an error. */
2692 #ifdef __cplusplus
2693 extern "C"
2694 #endif
2695 /* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697 char strerror ();
2698 int
2699 main ()
2700 {
2701 strerror ();
2702 ;
2703 return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_search_strerror="-l$ac_lib"
2729 break
2730 else
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 fi
2735 rm -f conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2737 done
2738 fi
2739 LIBS=$ac_func_search_save_LIBS
2740 fi
2741 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743 if test "$ac_cv_search_strerror" != no; then
2744 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2745
2746 fi
2747
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_RANLIB+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772
2773 fi
2774 fi
2775 RANLIB=$ac_cv_prog_RANLIB
2776 if test -n "$RANLIB"; then
2777 echo "$as_me:$LINENO: result: $RANLIB" >&5
2778 echo "${ECHO_T}$RANLIB" >&6
2779 else
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2782 fi
2783
2784 fi
2785 if test -z "$ac_cv_prog_RANLIB"; then
2786 ac_ct_RANLIB=$RANLIB
2787 # Extract the first word of "ranlib", so it can be a program name with args.
2788 set dummy ranlib; ac_word=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 if test -n "$ac_ct_RANLIB"; then
2795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_RANLIB="ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810
2811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2812 fi
2813 fi
2814 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2815 if test -n "$ac_ct_RANLIB"; then
2816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818 else
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2821 fi
2822
2823 RANLIB=$ac_ct_RANLIB
2824 else
2825 RANLIB="$ac_cv_prog_RANLIB"
2826 fi
2827
2828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830 if test "${ac_cv_header_stdc+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839 #include <stdlib.h>
2840 #include <stdarg.h>
2841 #include <string.h>
2842 #include <float.h>
2843
2844 int
2845 main ()
2846 {
2847
2848 ;
2849 return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_cv_header_stdc=yes
2875 else
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_cv_header_stdc=no
2880 fi
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891 #include <string.h>
2892
2893 _ACEOF
2894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895 $EGREP "memchr" >/dev/null 2>&1; then
2896 :
2897 else
2898 ac_cv_header_stdc=no
2899 fi
2900 rm -f conftest*
2901
2902 fi
2903
2904 if test $ac_cv_header_stdc = yes; then
2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #include <stdlib.h>
2913
2914 _ACEOF
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 $EGREP "free" >/dev/null 2>&1; then
2917 :
2918 else
2919 ac_cv_header_stdc=no
2920 fi
2921 rm -f conftest*
2922
2923 fi
2924
2925 if test $ac_cv_header_stdc = yes; then
2926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927 if test "$cross_compiling" = yes; then
2928 :
2929 else
2930 cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h. */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2936 #include <ctype.h>
2937 #if ((' ' & 0x0FF) == 0x020)
2938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940 #else
2941 # define ISLOWER(c) \
2942 (('a' <= (c) && (c) <= 'i') \
2943 || ('j' <= (c) && (c) <= 'r') \
2944 || ('s' <= (c) && (c) <= 'z'))
2945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2946 #endif
2947
2948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2949 int
2950 main ()
2951 {
2952 int i;
2953 for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i))
2955 || toupper (i) != TOUPPER (i))
2956 exit(2);
2957 exit (0);
2958 }
2959 _ACEOF
2960 rm -f conftest$ac_exeext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962 (eval $ac_link) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 :
2972 else
2973 echo "$as_me: program exited with status $ac_status" >&5
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 ( exit $ac_status )
2978 ac_cv_header_stdc=no
2979 fi
2980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981 fi
2982 fi
2983 fi
2984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986 if test $ac_cv_header_stdc = yes; then
2987
2988 cat >>confdefs.h <<\_ACEOF
2989 #define STDC_HEADERS 1
2990 _ACEOF
2991
2992 fi
2993
2994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3005 inttypes.h stdint.h unistd.h
3006 do
3007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008 echo "$as_me:$LINENO: checking for $ac_header" >&5
3009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 $ac_includes_default
3020
3021 #include <$ac_header>
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 eval "$as_ac_Header=yes"
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 eval "$as_ac_Header=no"
3051 fi
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053 fi
3054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057 cat >>confdefs.h <<_ACEOF
3058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3059 _ACEOF
3060
3061 fi
3062
3063 done
3064
3065
3066
3067 if test "${ac_cv_header_minix_config_h+set}" = set; then
3068 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 fi
3073 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075 else
3076 # Is the header compilable?
3077 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 $ac_includes_default
3086 #include <minix/config.h>
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_header_compiler=yes
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 ac_header_compiler=no
3116 fi
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119 echo "${ECHO_T}$ac_header_compiler" >&6
3120
3121 # Is the header present?
3122 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <minix/config.h>
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3145 fi
3146 else
3147 ac_cpp_err=yes
3148 fi
3149 if test -z "$ac_cpp_err"; then
3150 ac_header_preproc=yes
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_header_preproc=no
3156 fi
3157 rm -f conftest.err conftest.$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159 echo "${ECHO_T}$ac_header_preproc" >&6
3160
3161 # So? What about this header?
3162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3163 yes:no: )
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168 ac_header_preproc=yes
3169 ;;
3170 no:yes:* )
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3174 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3175 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3178 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3183 (
3184 cat <<\_ASBOX
3185 ## ------------------------------------------ ##
3186 ## Report this to the AC_PACKAGE_NAME lists. ##
3187 ## ------------------------------------------ ##
3188 _ASBOX
3189 ) |
3190 sed "s/^/$as_me: WARNING: /" >&2
3191 ;;
3192 esac
3193 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195 if test "${ac_cv_header_minix_config_h+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 ac_cv_header_minix_config_h=$ac_header_preproc
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3202
3203 fi
3204 if test $ac_cv_header_minix_config_h = yes; then
3205 MINIX=yes
3206 else
3207 MINIX=
3208 fi
3209
3210
3211 if test "$MINIX" = yes; then
3212
3213 cat >>confdefs.h <<\_ACEOF
3214 #define _POSIX_SOURCE 1
3215 _ACEOF
3216
3217
3218 cat >>confdefs.h <<\_ACEOF
3219 #define _POSIX_1_SOURCE 2
3220 _ACEOF
3221
3222
3223 cat >>confdefs.h <<\_ACEOF
3224 #define _MINIX 1
3225 _ACEOF
3226
3227 fi
3228
3229
3230
3231 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242
3243 # define __EXTENSIONS__ 1
3244 $ac_includes_default
3245 int
3246 main ()
3247 {
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_safe_to_define___extensions__=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_cv_safe_to_define___extensions__=no
3281 fi
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286 test $ac_cv_safe_to_define___extensions__ = yes &&
3287 cat >>confdefs.h <<\_ACEOF
3288 #define __EXTENSIONS__ 1
3289 _ACEOF
3290
3291 cat >>confdefs.h <<\_ACEOF
3292 #define _ALL_SOURCE 1
3293 _ACEOF
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define _GNU_SOURCE 1
3297 _ACEOF
3298
3299 cat >>confdefs.h <<\_ACEOF
3300 #define _POSIX_PTHREAD_SEMANTICS 1
3301 _ACEOF
3302
3303 cat >>confdefs.h <<\_ACEOF
3304 #define _TANDEM_SOURCE 1
3305 _ACEOF
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318 if test "${am_cv_prog_cc_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 am_cv_prog_cc_stdc=no
3322 ac_save_CC="$CC"
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX -qlanglvl=ansi
3326 # Ultrix and OSF/1 -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions -Aa -D_HPUX_SOURCE
3329 # SVR4 -Xc -D__EXTENSIONS__
3330 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332 CC="$ac_save_CC $ac_arg"
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347 char **p;
3348 int i;
3349 {
3350 return p[i];
3351 }
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3353 {
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360 }
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 int argc;
3366 char **argv;
3367
3368 int
3369 main ()
3370 {
3371
3372 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 am_cv_prog_cc_stdc="$ac_arg"; break
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 fi
3406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407 done
3408 CC="$ac_save_CC"
3409
3410 fi
3411
3412 if test -z "$am_cv_prog_cc_stdc"; then
3413 echo "$as_me:$LINENO: result: none needed" >&5
3414 echo "${ECHO_T}none needed" >&6
3415 else
3416 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3418 fi
3419 case "x$am_cv_prog_cc_stdc" in
3420 x|xno) ;;
3421 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3422 esac
3423
3424
3425 ac_aux_dir=
3426 for ac_dir in .. $srcdir/..; do
3427 if test -f $ac_dir/install-sh; then
3428 ac_aux_dir=$ac_dir
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 break
3431 elif test -f $ac_dir/install.sh; then
3432 ac_aux_dir=$ac_dir
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 break
3435 elif test -f $ac_dir/shtool; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3438 break
3439 fi
3440 done
3441 if test -z "$ac_aux_dir"; then
3442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444 { (exit 1); exit 1; }; }
3445 fi
3446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3449
3450 # Make sure we can run config.sub.
3451 $ac_config_sub sun4 >/dev/null 2>&1 ||
3452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454 { (exit 1); exit 1; }; }
3455
3456 echo "$as_me:$LINENO: checking build system type" >&5
3457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458 if test "${ac_cv_build+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 ac_cv_build_alias=$build_alias
3462 test -z "$ac_cv_build_alias" &&
3463 ac_cv_build_alias=`$ac_config_guess`
3464 test -z "$ac_cv_build_alias" &&
3465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467 { (exit 1); exit 1; }; }
3468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3472
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475 echo "${ECHO_T}$ac_cv_build" >&6
3476 build=$ac_cv_build
3477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3480
3481
3482 echo "$as_me:$LINENO: checking host system type" >&5
3483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484 if test "${ac_cv_host+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 ac_cv_host_alias=$host_alias
3488 test -z "$ac_cv_host_alias" &&
3489 ac_cv_host_alias=$ac_cv_build_alias
3490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493 { (exit 1); exit 1; }; }
3494
3495 fi
3496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497 echo "${ECHO_T}$ac_cv_host" >&6
3498 host=$ac_cv_host
3499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3502
3503
3504 echo "$as_me:$LINENO: checking target system type" >&5
3505 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506 if test "${ac_cv_target+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 ac_cv_target_alias=$target_alias
3510 test "x$ac_cv_target_alias" = "x" &&
3511 ac_cv_target_alias=$ac_cv_host_alias
3512 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3515 { (exit 1); exit 1; }; }
3516
3517 fi
3518 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519 echo "${ECHO_T}$ac_cv_target" >&6
3520 target=$ac_cv_target
3521 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3524
3525
3526 # The aliases save the names the user supplied, while $host etc.
3527 # will get canonicalized.
3528 test -n "$target_alias" &&
3529 test "$program_prefix$program_suffix$program_transform_name" = \
3530 NONENONEs,x,x, &&
3531 program_prefix=${target_alias}-
3532
3533 # Dependency checking.
3534 rm -rf .tst 2>/dev/null
3535 mkdir .tst 2>/dev/null
3536 if test -d .tst; then
3537 am__leading_dot=.
3538 else
3539 am__leading_dot=_
3540 fi
3541 rmdir .tst 2>/dev/null
3542
3543 DEPDIR="${am__leading_dot}deps"
3544
3545 ac_config_commands="$ac_config_commands depdir"
3546
3547
3548 depcc="$CC" am_compiler_list=
3549
3550 am_depcomp=$ac_aux_dir/depcomp
3551 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3561 # in D'.
3562 mkdir conftest.dir
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3566 cd conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3572 # directory.
3573 mkdir sub
3574
3575 am_cv_CC_dependencies_compiler_type=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3578 fi
3579 for depmode in $am_compiler_list; do
3580 if test $depmode = none; then break; fi
3581
3582 echo "$as_me:$LINENO: trying $depmode" >&5
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3586 #
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3590 : > sub/conftest.c
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3596 done
3597 echo "include sub/conftest.Po" > confmf
3598
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 depcmd="depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3606 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3607 if env $depcmd > conftest.err 2>&1 &&
3608 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3609 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3610 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3611 # icc doesn't choke on unknown options, it will just issue warnings
3612 # or remarks (even with -Werror). So we grep stderr for any message
3613 # that says an option was ignored or not supported.
3614 # When given -MP, icc 7.0 and 7.1 complain thusly:
3615 # icc: Command line warning: ignoring option '-M'; no argument required
3616 # The diagnosis changed in icc 8.0:
3617 # icc: Command line remark: option '-MP' not supported
3618 if (grep 'ignoring option' conftest.err ||
3619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3620 am_cv_CC_dependencies_compiler_type=$depmode
3621 echo "$as_me:$LINENO: success" >&5
3622 break
3623 fi
3624 fi
3625 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3626 sed -e 's/^/| /' < conftest.err >&5
3627 done
3628
3629 cd ..
3630 rm -rf conftest.dir
3631 else
3632 am_cv_CC_dependencies_compiler_type=none
3633 fi
3634
3635 fi
3636 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3637 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3638 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3639 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3640 echo "$as_me: error: no usable dependency style found" >&2;}
3641 { (exit 1); exit 1; }; }
3642 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
3644 fi
3645
3646
3647 # Check for the 'make' the user wants to use.
3648 for ac_prog in make
3649 do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_MAKE+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 if test -n "$MAKE"; then
3658 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_MAKE="$ac_prog"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673
3674 fi
3675 fi
3676 MAKE=$ac_cv_prog_MAKE
3677 if test -n "$MAKE"; then
3678 echo "$as_me:$LINENO: result: $MAKE" >&5
3679 echo "${ECHO_T}$MAKE" >&6
3680 else
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3683 fi
3684
3685 test -n "$MAKE" && break
3686 done
3687
3688 MAKE_IS_GNU=
3689 case "`$MAKE --version 2>&1 | sed 1q`" in
3690 *GNU*)
3691 MAKE_IS_GNU=yes
3692 ;;
3693 esac
3694
3695
3696 if test "$MAKE_IS_GNU" = yes; then
3697 GMAKE_TRUE=
3698 GMAKE_FALSE='#'
3699 else
3700 GMAKE_TRUE='#'
3701 GMAKE_FALSE=
3702 fi
3703
3704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 cat >conftest.make <<\_ACEOF
3711 all:
3712 @echo 'ac_maketemp="$(MAKE)"'
3713 _ACEOF
3714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3716 if test -n "$ac_maketemp"; then
3717 eval ac_cv_prog_make_${ac_make}_set=yes
3718 else
3719 eval ac_cv_prog_make_${ac_make}_set=no
3720 fi
3721 rm -f conftest.make
3722 fi
3723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6
3726 SET_MAKE=
3727 else
3728 echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6
3730 SET_MAKE="MAKE=${MAKE-make}"
3731 fi
3732
3733
3734
3735 CONFIG_OBS=
3736 CONFIG_DEPS=
3737 CONFIG_SRCS=
3738 ENABLE_CFLAGS=
3739
3740 CONFIG_ALL=
3741 CONFIG_CLEAN=
3742 CONFIG_INSTALL=
3743 CONFIG_UNINSTALL=
3744
3745 # If we haven't got the data from the intl directory,
3746 # assume NLS is disabled.
3747 USE_NLS=no
3748 LIBINTL=
3749 LIBINTL_DEP=
3750 INCINTL=
3751 XGETTEXT=
3752 GMSGFMT=
3753 POSUB=
3754
3755 if test -f ../intl/config.intl; then
3756 . ../intl/config.intl
3757 fi
3758 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3759 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3760 if test x"$USE_NLS" != xyes; then
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763 else
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3766
3767 cat >>confdefs.h <<\_ACEOF
3768 #define ENABLE_NLS 1
3769 _ACEOF
3770
3771
3772 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3773 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3774 # Look for .po and .gmo files in the source directory.
3775 CATALOGS=
3776 XLINGUAS=
3777 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3778 # If there aren't any .gmo files the shell will give us the
3779 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3780 # weeded out.
3781 case "$cat" in *\**)
3782 continue;;
3783 esac
3784 # The quadruple backslash is collapsed to a double backslash
3785 # by the backticks, then collapsed again by the double quotes,
3786 # leaving us with one backslash in the sed expression (right
3787 # before the dot that mustn't act as a wildcard).
3788 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3789 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3790 # The user is allowed to set LINGUAS to a list of languages to
3791 # install catalogs for. If it's empty that means "all of them."
3792 if test "x$LINGUAS" = x; then
3793 CATALOGS="$CATALOGS $cat"
3794 XLINGUAS="$XLINGUAS $lang"
3795 else
3796 case "$LINGUAS" in *$lang*)
3797 CATALOGS="$CATALOGS $cat"
3798 XLINGUAS="$XLINGUAS $lang"
3799 ;;
3800 esac
3801 fi
3802 done
3803 LINGUAS="$XLINGUAS"
3804 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3805 echo "${ECHO_T}$LINGUAS" >&6
3806
3807
3808 DATADIRNAME=share
3809
3810 INSTOBJEXT=.mo
3811
3812 GENCAT=gencat
3813
3814 CATOBJEXT=.gmo
3815
3816 fi
3817
3818 localedir='${datadir}/locale'
3819
3820
3821 if test x"$USE_NLS" = xyes; then
3822 CONFIG_ALL="$CONFIG_ALL all-po"
3823 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3824 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3825 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3826 fi
3827
3828
3829 GNULIB_MEMMEM=0;
3830 GNULIB_MEMPCPY=0;
3831 GNULIB_MEMRCHR=0;
3832 GNULIB_STPCPY=0;
3833 GNULIB_STPNCPY=0;
3834 GNULIB_STRCHRNUL=0;
3835 GNULIB_STRDUP=0;
3836 GNULIB_STRNDUP=0;
3837 GNULIB_STRNLEN=0;
3838 GNULIB_STRPBRK=0;
3839 GNULIB_STRSEP=0;
3840 GNULIB_STRSTR=0;
3841 GNULIB_STRCASESTR=0;
3842 GNULIB_STRTOK_R=0;
3843 GNULIB_MBSLEN=0;
3844 GNULIB_MBSNLEN=0;
3845 GNULIB_MBSCHR=0;
3846 GNULIB_MBSRCHR=0;
3847 GNULIB_MBSSTR=0;
3848 GNULIB_MBSCASECMP=0;
3849 GNULIB_MBSNCASECMP=0;
3850 GNULIB_MBSPCASECMP=0;
3851 GNULIB_MBSCASESTR=0;
3852 GNULIB_MBSCSPN=0;
3853 GNULIB_MBSPBRK=0;
3854 GNULIB_MBSSPN=0;
3855 GNULIB_MBSSEP=0;
3856 GNULIB_MBSTOK_R=0;
3857 GNULIB_STRERROR=0;
3858 GNULIB_STRSIGNAL=0;
3859 HAVE_DECL_MEMMEM=1;
3860 HAVE_MEMPCPY=1;
3861 HAVE_DECL_MEMRCHR=1;
3862 HAVE_STPCPY=1;
3863 HAVE_STPNCPY=1;
3864 HAVE_STRCHRNUL=1;
3865 HAVE_DECL_STRDUP=1;
3866 HAVE_STRNDUP=1;
3867 HAVE_DECL_STRNDUP=1;
3868 HAVE_DECL_STRNLEN=1;
3869 HAVE_STRPBRK=1;
3870 HAVE_STRSEP=1;
3871 HAVE_STRCASESTR=1;
3872 HAVE_DECL_STRTOK_R=1;
3873 HAVE_DECL_STRERROR=1;
3874 HAVE_DECL_STRSIGNAL=1;
3875 REPLACE_STRERROR=0;
3876 REPLACE_STRSIGNAL=0;
3877 REPLACE_MEMMEM=0;
3878 REPLACE_STRCASESTR=0;
3879 REPLACE_STRSTR=0;
3880
3881
3882 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3883 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3884 if test "${ac_cv_have_decl_memmem+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3894 int
3895 main ()
3896 {
3897 #ifndef memmem
3898 char *p = (char *) memmem;
3899 #endif
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_have_decl_memmem=yes
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 ac_cv_have_decl_memmem=no
3933 fi
3934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3937 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3938 if test $ac_cv_have_decl_memmem = yes; then
3939
3940 cat >>confdefs.h <<_ACEOF
3941 #define HAVE_DECL_MEMMEM 1
3942 _ACEOF
3943
3944
3945 else
3946 cat >>confdefs.h <<_ACEOF
3947 #define HAVE_DECL_MEMMEM 0
3948 _ACEOF
3949
3950
3951 fi
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967 for ac_func in memmem
3968 do
3969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3970 echo "$as_me:$LINENO: checking for $ac_func" >&5
3971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3972 if eval "test \"\${$as_ac_var+set}\" = set"; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3983 #define $ac_func innocuous_$ac_func
3984
3985 /* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char $ac_func (); below.
3987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 <limits.h> exists even on freestanding compilers. */
3989
3990 #ifdef __STDC__
3991 # include <limits.h>
3992 #else
3993 # include <assert.h>
3994 #endif
3995
3996 #undef $ac_func
3997
3998 /* Override any gcc2 internal prototype to avoid an error. */
3999 #ifdef __cplusplus
4000 extern "C"
4001 {
4002 #endif
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005 char $ac_func ();
4006 /* The GNU C library defines this for functions which it implements
4007 to always fail with ENOSYS. Some functions are actually named
4008 something starting with __ and the normal name is an alias. */
4009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4010 choke me
4011 #else
4012 char (*f) () = $ac_func;
4013 #endif
4014 #ifdef __cplusplus
4015 }
4016 #endif
4017
4018 int
4019 main ()
4020 {
4021 return f != $ac_func;
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 rm -f conftest.$ac_objext conftest$ac_exeext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest$ac_exeext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 eval "$as_ac_var=yes"
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 eval "$as_ac_var=no"
4054 fi
4055 rm -f conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
4057 fi
4058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4060 if test `eval echo '${'$as_ac_var'}'` = yes; then
4061 cat >>confdefs.h <<_ACEOF
4062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4063 _ACEOF
4064
4065 else
4066
4067 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4068
4069 fi
4070 done
4071
4072
4073
4074 :
4075
4076
4077
4078
4079
4080 if test $ac_cv_have_decl_memmem = no; then
4081 HAVE_DECL_MEMMEM=0
4082 fi
4083 :
4084
4085
4086 echo "$as_me:$LINENO: checking for long long int" >&5
4087 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4088 if test "${ac_cv_type_long_long_int+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 cat >conftest.$ac_ext <<_ACEOF
4092
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 /* For now, do not test the preprocessor; as of 2007 there are too many
4099 implementations with broken preprocessors. Perhaps this can
4100 be revisited in 2012. In the meantime, code should not expect
4101 #if to work with literals wider than 32 bits. */
4102 /* Test literals. */
4103 long long int ll = 9223372036854775807ll;
4104 long long int nll = -9223372036854775807LL;
4105 unsigned long long int ull = 18446744073709551615ULL;
4106 /* Test constant expressions. */
4107 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4108 ? 1 : -1)];
4109 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4110 ? 1 : -1)];
4111 int i = 63;
4112 int
4113 main ()
4114 {
4115 /* Test availability of runtime routines for shift and division. */
4116 long long int llmax = 9223372036854775807ll;
4117 unsigned long long int ullmax = 18446744073709551615ull;
4118 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4119 | (llmax / ll) | (llmax % ll)
4120 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4121 | (ullmax / ull) | (ullmax % ull));
4122 ;
4123 return 0;
4124 }
4125
4126 _ACEOF
4127 rm -f conftest.$ac_objext conftest$ac_exeext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 if test "$cross_compiling" = yes; then
4150 ac_cv_type_long_long_int=yes
4151 else
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <limits.h>
4159 #ifndef LLONG_MAX
4160 # define HALF \
4161 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4162 # define LLONG_MAX (HALF - 1 + HALF)
4163 #endif
4164 int
4165 main ()
4166 {
4167 long long int n = 1;
4168 int i;
4169 for (i = 0; ; i++)
4170 {
4171 long long int m = n << i;
4172 if (m >> i != n)
4173 return 1;
4174 if (LLONG_MAX / 2 < m)
4175 break;
4176 }
4177 return 0;
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_type_long_long_int=yes
4194 else
4195 echo "$as_me: program exited with status $ac_status" >&5
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ( exit $ac_status )
4200 ac_cv_type_long_long_int=no
4201 fi
4202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203 fi
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ac_cv_type_long_long_int=no
4209 fi
4210 rm -f conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4212 fi
4213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4214 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4215 if test $ac_cv_type_long_long_int = yes; then
4216
4217 cat >>confdefs.h <<\_ACEOF
4218 #define HAVE_LONG_LONG_INT 1
4219 _ACEOF
4220
4221 fi
4222
4223
4224 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4225 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4226 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 cat >conftest.$ac_ext <<_ACEOF
4230
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 /* For now, do not test the preprocessor; as of 2007 there are too many
4237 implementations with broken preprocessors. Perhaps this can
4238 be revisited in 2012. In the meantime, code should not expect
4239 #if to work with literals wider than 32 bits. */
4240 /* Test literals. */
4241 long long int ll = 9223372036854775807ll;
4242 long long int nll = -9223372036854775807LL;
4243 unsigned long long int ull = 18446744073709551615ULL;
4244 /* Test constant expressions. */
4245 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4246 ? 1 : -1)];
4247 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4248 ? 1 : -1)];
4249 int i = 63;
4250 int
4251 main ()
4252 {
4253 /* Test availability of runtime routines for shift and division. */
4254 long long int llmax = 9223372036854775807ll;
4255 unsigned long long int ullmax = 18446744073709551615ull;
4256 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4257 | (llmax / ll) | (llmax % ll)
4258 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4259 | (ullmax / ull) | (ullmax % ull));
4260 ;
4261 return 0;
4262 }
4263
4264 _ACEOF
4265 rm -f conftest.$ac_objext conftest$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_type_unsigned_long_long_int=yes
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 ac_cv_type_unsigned_long_long_int=no
4293 fi
4294 rm -f conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4296 fi
4297 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4298 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4299 if test $ac_cv_type_unsigned_long_long_int = yes; then
4300
4301 cat >>confdefs.h <<\_ACEOF
4302 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4303 _ACEOF
4304
4305 fi
4306
4307
4308
4309 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4310 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4311 if test "${gl_cv_have_include_next+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 rm -rf conftestd1 conftestd2
4315 mkdir conftestd1 conftestd2
4316 cat <<EOF > conftestd1/conftest.h
4317 #define DEFINED_IN_CONFTESTD1
4318 #include_next <conftest.h>
4319 #ifdef DEFINED_IN_CONFTESTD2
4320 int foo;
4321 #else
4322 #error "include_next doesn't work"
4323 #endif
4324 EOF
4325 cat <<EOF > conftestd2/conftest.h
4326 #ifndef DEFINED_IN_CONFTESTD1
4327 #error "include_next test doesn't work"
4328 #endif
4329 #define DEFINED_IN_CONFTESTD2
4330 EOF
4331 save_CPPFLAGS="$CPPFLAGS"
4332 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #include <conftest.h>
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 gl_cv_have_include_next=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 gl_cv_have_include_next=no
4364 fi
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 CPPFLAGS="$save_CPPFLAGS"
4367 rm -rf conftestd1 conftestd2
4368
4369 fi
4370 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4371 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4372 if test $gl_cv_have_include_next = yes; then
4373
4374
4375 cat >>confdefs.h <<\_ACEOF
4376 #define HAVE_INCLUDE_NEXT 1
4377 _ACEOF
4378
4379
4380 INCLUDE_NEXT=include_next
4381 else
4382 INCLUDE_NEXT=include
4383 fi
4384
4385
4386
4387
4388
4389
4390
4391 for ac_header in $gl_header_list
4392 do
4393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 fi
4400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4402 else
4403 # Is the header compilable?
4404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 #include <$ac_header>
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_c_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_header_compiler=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 ac_header_compiler=no
4443 fi
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446 echo "${ECHO_T}$ac_header_compiler" >&6
4447
4448 # Is the header present?
4449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <$ac_header>
4458 _ACEOF
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470 else
4471 ac_cpp_err=
4472 fi
4473 else
4474 ac_cpp_err=yes
4475 fi
4476 if test -z "$ac_cpp_err"; then
4477 ac_header_preproc=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482 ac_header_preproc=no
4483 fi
4484 rm -f conftest.err conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4486 echo "${ECHO_T}$ac_header_preproc" >&6
4487
4488 # So? What about this header?
4489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4490 yes:no: )
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4495 ac_header_preproc=yes
4496 ;;
4497 no:yes:* )
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4510 (
4511 cat <<\_ASBOX
4512 ## ------------------------------------------ ##
4513 ## Report this to the AC_PACKAGE_NAME lists. ##
4514 ## ------------------------------------------ ##
4515 _ASBOX
4516 ) |
4517 sed "s/^/$as_me: WARNING: /" >&2
4518 ;;
4519 esac
4520 echo "$as_me:$LINENO: checking for $ac_header" >&5
4521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 eval "$as_ac_Header=\$ac_header_preproc"
4526 fi
4527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529
4530 fi
4531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4532 cat >>confdefs.h <<_ACEOF
4533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4534 _ACEOF
4535
4536 fi
4537
4538 done
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4552 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4553 if test "${ac_cv_c_restrict+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 ac_cv_c_restrict=no
4557 # The order here caters to the fact that C++ does not require restrict.
4558 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 typedef int * int_ptr;
4566 int foo (int_ptr $ac_kw ip) {
4567 return ip[0];
4568 }
4569 int
4570 main ()
4571 {
4572 int s[1];
4573 int * $ac_kw t = s;
4574 t[0] = 0;
4575 return foo(t)
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_c_restrict=$ac_kw
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 fi
4608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 test "$ac_cv_c_restrict" != no && break
4610 done
4611
4612 fi
4613 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4614 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4615
4616
4617 case $ac_cv_c_restrict in
4618 restrict) ;;
4619 no) cat >>confdefs.h <<\_ACEOF
4620 #define restrict
4621 _ACEOF
4622 ;;
4623 *) cat >>confdefs.h <<_ACEOF
4624 #define restrict $ac_cv_c_restrict
4625 _ACEOF
4626 ;;
4627 esac
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 :
4642
4643
4644
4645
4646
4647
4648
4649 if test $gl_cv_have_include_next = yes; then
4650 gl_cv_next_string_h='<'string.h'>'
4651 else
4652 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4653 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4654 if test "${gl_cv_next_string_h+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657
4658 if test $ac_cv_header_string_h = yes; then
4659 cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h. */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4665 #include <string.h>
4666
4667 _ACEOF
4668 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4669 sed -n '\#/string.h#{
4670 s#.*"\(.*/string.h\)".*#\1#
4671 s#^/[^/]#//&#
4672 p
4673 q
4674 }'`'"'
4675 else
4676 gl_cv_next_string_h='<'string.h'>'
4677 fi
4678
4679 fi
4680 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4681 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4682 fi
4683 NEXT_STRING_H=$gl_cv_next_string_h
4684
4685
4686
4687
4688
4689 GNULIB_WCWIDTH=0;
4690 HAVE_DECL_WCWIDTH=1;
4691 REPLACE_WCWIDTH=0;
4692 WCHAR_H=
4693
4694
4695
4696
4697
4698 if false; then
4699 GL_COND_LIBTOOL_TRUE=
4700 GL_COND_LIBTOOL_FALSE='#'
4701 else
4702 GL_COND_LIBTOOL_TRUE='#'
4703 GL_COND_LIBTOOL_FALSE=
4704 fi
4705
4706 gl_cond_libtool=false
4707 gl_libdeps=
4708 gl_ltlibdeps=
4709
4710
4711
4712 gl_source_base='gnulib'
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722 for ac_func in memchr
4723 do
4724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725 echo "$as_me:$LINENO: checking for $ac_func" >&5
4726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_var+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4738 #define $ac_func innocuous_$ac_func
4739
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func (); below.
4742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 <limits.h> exists even on freestanding compilers. */
4744
4745 #ifdef __STDC__
4746 # include <limits.h>
4747 #else
4748 # include <assert.h>
4749 #endif
4750
4751 #undef $ac_func
4752
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 #ifdef __cplusplus
4755 extern "C"
4756 {
4757 #endif
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4760 char $ac_func ();
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4765 choke me
4766 #else
4767 char (*f) () = $ac_func;
4768 #endif
4769 #ifdef __cplusplus
4770 }
4771 #endif
4772
4773 int
4774 main ()
4775 {
4776 return f != $ac_func;
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext conftest$ac_exeext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 eval "$as_ac_var=yes"
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 eval "$as_ac_var=no"
4809 fi
4810 rm -f conftest.err conftest.$ac_objext \
4811 conftest$ac_exeext conftest.$ac_ext
4812 fi
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4815 if test `eval echo '${'$as_ac_var'}'` = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4818 _ACEOF
4819
4820 else
4821
4822 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4823
4824 fi
4825 done
4826
4827
4828 if test $ac_cv_func_memchr = no; then
4829
4830
4831 for ac_header in bp-sym.h
4832 do
4833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 fi
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842 else
4843 # Is the header compilable?
4844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4853 #include <$ac_header>
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_header_compiler=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_header_compiler=no
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886 echo "${ECHO_T}$ac_header_compiler" >&6
4887
4888 # Is the header present?
4889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <$ac_header>
4898 _ACEOF
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910 else
4911 ac_cpp_err=
4912 fi
4913 else
4914 ac_cpp_err=yes
4915 fi
4916 if test -z "$ac_cpp_err"; then
4917 ac_header_preproc=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_preproc=no
4923 fi
4924 rm -f conftest.err conftest.$ac_ext
4925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926 echo "${ECHO_T}$ac_header_preproc" >&6
4927
4928 # So? What about this header?
4929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4930 yes:no: )
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935 ac_header_preproc=yes
4936 ;;
4937 no:yes:* )
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4950 (
4951 cat <<\_ASBOX
4952 ## ------------------------------------------ ##
4953 ## Report this to the AC_PACKAGE_NAME lists. ##
4954 ## ------------------------------------------ ##
4955 _ASBOX
4956 ) |
4957 sed "s/^/$as_me: WARNING: /" >&2
4958 ;;
4959 esac
4960 echo "$as_me:$LINENO: checking for $ac_header" >&5
4961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 eval "$as_ac_Header=\$ac_header_preproc"
4966 fi
4967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4969
4970 fi
4971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974 _ACEOF
4975
4976 fi
4977
4978 done
4979
4980
4981 fi
4982
4983
4984 echo "$as_me:$LINENO: checking for working memcmp" >&5
4985 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4986 if test "${ac_cv_func_memcmp_working+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_func_memcmp_working=no
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
4999 int
5000 main ()
5001 {
5002
5003 /* Some versions of memcmp are not 8-bit clean. */
5004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5005 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5006 exit (1);
5007
5008 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5009 or more and with at least one buffer not starting on a 4-byte boundary.
5010 William Lewis provided this test program. */
5011 {
5012 char foo[21];
5013 char bar[21];
5014 int i;
5015 for (i = 0; i < 4; i++)
5016 {
5017 char *a = foo + i;
5018 char *b = bar + i;
5019 strcpy (a, "--------01111111");
5020 strcpy (b, "--------10000000");
5021 if (memcmp (a, b, 16) >= 0)
5022 exit (1);
5023 }
5024 exit (0);
5025 }
5026
5027 ;
5028 return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_func_memcmp_working=yes
5043 else
5044 echo "$as_me: program exited with status $ac_status" >&5
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ( exit $ac_status )
5049 ac_cv_func_memcmp_working=no
5050 fi
5051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5055 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5056 test $ac_cv_func_memcmp_working = no &&
5057
5058
5059
5060
5061
5062
5063 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5064
5065
5066 if test $ac_cv_func_memcmp_working = no; then
5067
5068 cat >>confdefs.h <<\_ACEOF
5069 #define memcmp rpl_memcmp
5070 _ACEOF
5071
5072 :
5073 fi
5074
5075
5076
5077 if test $ac_cv_have_decl_memmem = yes; then
5078 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5079 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5080 if test "${gl_cv_func_memmem_works+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 if test "$cross_compiling" = yes; then
5084 gl_cv_func_memmem_works="guessing no"
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092
5093 #include <string.h> /* for memmem */
5094 #include <stdlib.h> /* for malloc */
5095 #include <unistd.h> /* for alarm */
5096
5097 int
5098 main ()
5099 {
5100 size_t m = 1000000;
5101 char *haystack = (char *) malloc (2 * m + 1);
5102 char *needle = (char *) malloc (m + 1);
5103 void *result = 0;
5104 /* Failure to compile this test due to missing alarm is okay,
5105 since all such platforms (mingw) also lack memmem. */
5106 alarm (5);
5107 /* Check for quadratic performance. */
5108 if (haystack && needle)
5109 {
5110 memset (haystack, 'A', 2 * m);
5111 haystack[2 * m] = 'B';
5112 memset (needle, 'A', m);
5113 needle[m] = 'B';
5114 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5115 }
5116 /* Check for empty needle behavior. */
5117 return !result || !memmem ("a", 1, 0, 0);
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 gl_cv_func_memmem_works=yes
5134 else
5135 echo "$as_me: program exited with status $ac_status" >&5
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 ( exit $ac_status )
5140 gl_cv_func_memmem_works=no
5141 fi
5142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5143 fi
5144 fi
5145 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5146 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5147 if test "$gl_cv_func_memmem_works" != yes; then
5148 REPLACE_MEMMEM=1
5149
5150
5151
5152
5153
5154
5155
5156 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5157
5158 fi
5159 fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173 for ac_func in memmem
5174 do
5175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5176 echo "$as_me:$LINENO: checking for $ac_func" >&5
5177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5178 if eval "test \"\${$as_ac_var+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5189 #define $ac_func innocuous_$ac_func
5190
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func (); below.
5193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 <limits.h> exists even on freestanding compilers. */
5195
5196 #ifdef __STDC__
5197 # include <limits.h>
5198 #else
5199 # include <assert.h>
5200 #endif
5201
5202 #undef $ac_func
5203
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 #ifdef __cplusplus
5206 extern "C"
5207 {
5208 #endif
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5211 char $ac_func ();
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5216 choke me
5217 #else
5218 char (*f) () = $ac_func;
5219 #endif
5220 #ifdef __cplusplus
5221 }
5222 #endif
5223
5224 int
5225 main ()
5226 {
5227 return f != $ac_func;
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_var=yes"
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 eval "$as_ac_var=no"
5260 fi
5261 rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 fi
5264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5266 if test `eval echo '${'$as_ac_var'}'` = yes; then
5267 cat >>confdefs.h <<_ACEOF
5268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5269 _ACEOF
5270
5271 else
5272
5273 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5274
5275 fi
5276 done
5277
5278
5279
5280 :
5281
5282
5283
5284
5285
5286 if test $ac_cv_have_decl_memmem = no; then
5287 HAVE_DECL_MEMMEM=0
5288 fi
5289 :
5290
5291
5292
5293 GNULIB_MEMMEM=1
5294
5295
5296
5297
5298 if test $ac_cv_type_long_long_int = yes; then
5299 HAVE_LONG_LONG_INT=1
5300 else
5301 HAVE_LONG_LONG_INT=0
5302 fi
5303
5304
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5306 HAVE_UNSIGNED_LONG_LONG_INT=1
5307 else
5308 HAVE_UNSIGNED_LONG_LONG_INT=0
5309 fi
5310
5311
5312 if test $ac_cv_header_inttypes_h = yes; then
5313 HAVE_INTTYPES_H=1
5314 else
5315 HAVE_INTTYPES_H=0
5316 fi
5317
5318
5319 if test $ac_cv_header_sys_types_h = yes; then
5320 HAVE_SYS_TYPES_H=1
5321 else
5322 HAVE_SYS_TYPES_H=0
5323 fi
5324
5325
5326
5327
5328
5329 :
5330
5331
5332
5333
5334
5335
5336
5337 if test $gl_cv_have_include_next = yes; then
5338 gl_cv_next_stdint_h='<'stdint.h'>'
5339 else
5340 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5341 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5342 if test "${gl_cv_next_stdint_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345
5346 if test $ac_cv_header_stdint_h = yes; then
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 #include <stdint.h>
5354
5355 _ACEOF
5356 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 sed -n '\#/stdint.h#{
5358 s#.*"\(.*/stdint.h\)".*#\1#
5359 s#^/[^/]#//&#
5360 p
5361 q
5362 }'`'"'
5363 else
5364 gl_cv_next_stdint_h='<'stdint.h'>'
5365 fi
5366
5367 fi
5368 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5369 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5370 fi
5371 NEXT_STDINT_H=$gl_cv_next_stdint_h
5372
5373
5374
5375 if test $ac_cv_header_stdint_h = yes; then
5376 HAVE_STDINT_H=1
5377 else
5378 HAVE_STDINT_H=0
5379 fi
5380
5381
5382 if test $ac_cv_header_stdint_h = yes; then
5383 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5384 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5385 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 gl_cv_header_working_stdint_h=no
5389 cat >conftest.$ac_ext <<_ACEOF
5390
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396
5397 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5398 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5399 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5400 #include <stdint.h>
5401 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5402 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5403 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5404 #endif
5405
5406
5407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5408 included before <wchar.h>. */
5409 #include <stddef.h>
5410 #include <signal.h>
5411 #if HAVE_WCHAR_H
5412 # include <stdio.h>
5413 # include <time.h>
5414 # include <wchar.h>
5415 #endif
5416
5417
5418 #ifdef INT8_MAX
5419 int8_t a1 = INT8_MAX;
5420 int8_t a1min = INT8_MIN;
5421 #endif
5422 #ifdef INT16_MAX
5423 int16_t a2 = INT16_MAX;
5424 int16_t a2min = INT16_MIN;
5425 #endif
5426 #ifdef INT32_MAX
5427 int32_t a3 = INT32_MAX;
5428 int32_t a3min = INT32_MIN;
5429 #endif
5430 #ifdef INT64_MAX
5431 int64_t a4 = INT64_MAX;
5432 int64_t a4min = INT64_MIN;
5433 #endif
5434 #ifdef UINT8_MAX
5435 uint8_t b1 = UINT8_MAX;
5436 #else
5437 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5438 #endif
5439 #ifdef UINT16_MAX
5440 uint16_t b2 = UINT16_MAX;
5441 #endif
5442 #ifdef UINT32_MAX
5443 uint32_t b3 = UINT32_MAX;
5444 #endif
5445 #ifdef UINT64_MAX
5446 uint64_t b4 = UINT64_MAX;
5447 #endif
5448 int_least8_t c1 = INT8_C (0x7f);
5449 int_least8_t c1max = INT_LEAST8_MAX;
5450 int_least8_t c1min = INT_LEAST8_MIN;
5451 int_least16_t c2 = INT16_C (0x7fff);
5452 int_least16_t c2max = INT_LEAST16_MAX;
5453 int_least16_t c2min = INT_LEAST16_MIN;
5454 int_least32_t c3 = INT32_C (0x7fffffff);
5455 int_least32_t c3max = INT_LEAST32_MAX;
5456 int_least32_t c3min = INT_LEAST32_MIN;
5457 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5458 int_least64_t c4max = INT_LEAST64_MAX;
5459 int_least64_t c4min = INT_LEAST64_MIN;
5460 uint_least8_t d1 = UINT8_C (0xff);
5461 uint_least8_t d1max = UINT_LEAST8_MAX;
5462 uint_least16_t d2 = UINT16_C (0xffff);
5463 uint_least16_t d2max = UINT_LEAST16_MAX;
5464 uint_least32_t d3 = UINT32_C (0xffffffff);
5465 uint_least32_t d3max = UINT_LEAST32_MAX;
5466 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5467 uint_least64_t d4max = UINT_LEAST64_MAX;
5468 int_fast8_t e1 = INT_FAST8_MAX;
5469 int_fast8_t e1min = INT_FAST8_MIN;
5470 int_fast16_t e2 = INT_FAST16_MAX;
5471 int_fast16_t e2min = INT_FAST16_MIN;
5472 int_fast32_t e3 = INT_FAST32_MAX;
5473 int_fast32_t e3min = INT_FAST32_MIN;
5474 int_fast64_t e4 = INT_FAST64_MAX;
5475 int_fast64_t e4min = INT_FAST64_MIN;
5476 uint_fast8_t f1 = UINT_FAST8_MAX;
5477 uint_fast16_t f2 = UINT_FAST16_MAX;
5478 uint_fast32_t f3 = UINT_FAST32_MAX;
5479 uint_fast64_t f4 = UINT_FAST64_MAX;
5480 #ifdef INTPTR_MAX
5481 intptr_t g = INTPTR_MAX;
5482 intptr_t gmin = INTPTR_MIN;
5483 #endif
5484 #ifdef UINTPTR_MAX
5485 uintptr_t h = UINTPTR_MAX;
5486 #endif
5487 intmax_t i = INTMAX_MAX;
5488 uintmax_t j = UINTMAX_MAX;
5489
5490 #include <limits.h> /* for CHAR_BIT */
5491 #define TYPE_MINIMUM(t) \
5492 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5493 #define TYPE_MAXIMUM(t) \
5494 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5495 struct s {
5496 int check_PTRDIFF:
5497 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5498 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5499 ? 1 : -1;
5500 /* Detect bug in FreeBSD 6.0 / ia64. */
5501 int check_SIG_ATOMIC:
5502 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5503 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5504 ? 1 : -1;
5505 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5506 int check_WCHAR:
5507 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5508 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5509 ? 1 : -1;
5510 /* Detect bug in mingw. */
5511 int check_WINT:
5512 WINT_MIN == TYPE_MINIMUM (wint_t)
5513 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5514 ? 1 : -1;
5515
5516 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5517 int check_UINT8_C:
5518 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5519 int check_UINT16_C:
5520 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5521
5522 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5523 #ifdef UINT8_MAX
5524 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5525 #endif
5526 #ifdef UINT16_MAX
5527 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5528 #endif
5529 #ifdef UINT32_MAX
5530 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5531 #endif
5532 #ifdef UINT64_MAX
5533 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5534 #endif
5535 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5536 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5537 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5538 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5539 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5540 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5541 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5542 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5543 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5544 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5545 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5546 };
5547
5548 int
5549 main ()
5550 {
5551
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 gl_cv_header_working_stdint_h=yes
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 fi
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5587 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5588 fi
5589 if test "$gl_cv_header_working_stdint_h" = yes; then
5590 STDINT_H=
5591 else
5592
5593
5594 for ac_header in sys/inttypes.h sys/bitypes.h
5595 do
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 fi
5603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5605 else
5606 # Is the header compilable?
5607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 #include <$ac_header>
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_compiler=no
5646 fi
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <$ac_header>
5661 _ACEOF
5662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null; then
5670 if test -s conftest.err; then
5671 ac_cpp_err=$ac_c_preproc_warn_flag
5672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5673 else
5674 ac_cpp_err=
5675 fi
5676 else
5677 ac_cpp_err=yes
5678 fi
5679 if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_header_preproc=no
5686 fi
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5693 yes:no: )
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5699 ;;
5700 no:yes:* )
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5713 (
5714 cat <<\_ASBOX
5715 ## ------------------------------------------ ##
5716 ## Report this to the AC_PACKAGE_NAME lists. ##
5717 ## ------------------------------------------ ##
5718 _ASBOX
5719 ) |
5720 sed "s/^/$as_me: WARNING: /" >&2
5721 ;;
5722 esac
5723 echo "$as_me:$LINENO: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 eval "$as_ac_Header=\$ac_header_preproc"
5729 fi
5730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5732
5733 fi
5734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737 _ACEOF
5738
5739 fi
5740
5741 done
5742
5743 if test $ac_cv_header_sys_inttypes_h = yes; then
5744 HAVE_SYS_INTTYPES_H=1
5745 else
5746 HAVE_SYS_INTTYPES_H=0
5747 fi
5748
5749 if test $ac_cv_header_sys_bitypes_h = yes; then
5750 HAVE_SYS_BITYPES_H=1
5751 else
5752 HAVE_SYS_BITYPES_H=0
5753 fi
5754
5755
5756
5757 :
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5773 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5774 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5775 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 if test "$cross_compiling" = yes; then
5779 # Depending upon the size, compute the lo and hi bounds.
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786
5787 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5788 included before <wchar.h>. */
5789 #include <stddef.h>
5790 #include <signal.h>
5791 #if HAVE_WCHAR_H
5792 # include <stdio.h>
5793 # include <time.h>
5794 # include <wchar.h>
5795 #endif
5796
5797 #include <limits.h>
5798 int
5799 main ()
5800 {
5801 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5802 test_array [0] = 0
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_lo=0 ac_mid=0
5831 while :; do
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838
5839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5840 included before <wchar.h>. */
5841 #include <stddef.h>
5842 #include <signal.h>
5843 #if HAVE_WCHAR_H
5844 # include <stdio.h>
5845 # include <time.h>
5846 # include <wchar.h>
5847 #endif
5848
5849 #include <limits.h>
5850 int
5851 main ()
5852 {
5853 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5854 test_array [0] = 0
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_hi=$ac_mid; break
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_lo=`expr $ac_mid + 1`
5888 if test $ac_lo -le $ac_mid; then
5889 ac_lo= ac_hi=
5890 break
5891 fi
5892 ac_mid=`expr 2 '*' $ac_mid + 1`
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 done
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906
5907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908 included before <wchar.h>. */
5909 #include <stddef.h>
5910 #include <signal.h>
5911 #if HAVE_WCHAR_H
5912 # include <stdio.h>
5913 # include <time.h>
5914 # include <wchar.h>
5915 #endif
5916
5917 #include <limits.h>
5918 int
5919 main ()
5920 {
5921 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5922 test_array [0] = 0
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_hi=-1 ac_mid=-1
5951 while :; do
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958
5959 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5960 included before <wchar.h>. */
5961 #include <stddef.h>
5962 #include <signal.h>
5963 #if HAVE_WCHAR_H
5964 # include <stdio.h>
5965 # include <time.h>
5966 # include <wchar.h>
5967 #endif
5968
5969 #include <limits.h>
5970 int
5971 main ()
5972 {
5973 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5974 test_array [0] = 0
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_lo=$ac_mid; break
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 ac_hi=`expr '(' $ac_mid ')' - 1`
6008 if test $ac_mid -le $ac_hi; then
6009 ac_lo= ac_hi=
6010 break
6011 fi
6012 ac_mid=`expr 2 '*' $ac_mid`
6013 fi
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 done
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6019
6020 ac_lo= ac_hi=
6021 fi
6022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 # Binary search between lo and hi bounds.
6026 while test "x$ac_lo" != "x$ac_hi"; do
6027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034
6035 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6036 included before <wchar.h>. */
6037 #include <stddef.h>
6038 #include <signal.h>
6039 #if HAVE_WCHAR_H
6040 # include <stdio.h>
6041 # include <time.h>
6042 # include <wchar.h>
6043 #endif
6044
6045 #include <limits.h>
6046 int
6047 main ()
6048 {
6049 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6050 test_array [0] = 0
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_hi=$ac_mid
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_lo=`expr '(' $ac_mid ')' + 1`
6084 fi
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 done
6087 case $ac_lo in
6088 ?*) result=$ac_lo;;
6089 '') result=unknown ;;
6090 esac
6091 else
6092 if test "$cross_compiling" = yes; then
6093 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6094 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: cannot run test program while cross compiling
6098 See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }; }
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107
6108 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6109 included before <wchar.h>. */
6110 #include <stddef.h>
6111 #include <signal.h>
6112 #if HAVE_WCHAR_H
6113 # include <stdio.h>
6114 # include <time.h>
6115 # include <wchar.h>
6116 #endif
6117
6118 #include <limits.h>
6119 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6120 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6121 #include <stdio.h>
6122 #include <stdlib.h>
6123 int
6124 main ()
6125 {
6126
6127 FILE *f = fopen ("conftest.val", "w");
6128 if (! f)
6129 exit (1);
6130 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6131 {
6132 long i = longval ();
6133 if (i != (sizeof ($gltype) * CHAR_BIT))
6134 exit (1);
6135 fprintf (f, "%ld\n", i);
6136 }
6137 else
6138 {
6139 unsigned long i = ulongval ();
6140 if (i != (sizeof ($gltype) * CHAR_BIT))
6141 exit (1);
6142 fprintf (f, "%lu\n", i);
6143 }
6144 exit (ferror (f) || fclose (f) != 0);
6145
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 result=`cat conftest.val`
6162 else
6163 echo "$as_me: program exited with status $ac_status" >&5
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ( exit $ac_status )
6168 result=unknown
6169 fi
6170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 fi
6173 rm -f conftest.val
6174 eval gl_cv_bitsizeof_${gltype}=\$result
6175
6176 fi
6177 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6179 eval result=\$gl_cv_bitsizeof_${gltype}
6180 if test $result = unknown; then
6181 result=0
6182 fi
6183 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6184 cat >>confdefs.h <<_ACEOF
6185 #define BITSIZEOF_${GLTYPE} $result
6186 _ACEOF
6187
6188 eval BITSIZEOF_${GLTYPE}=\$result
6189 done
6190
6191
6192
6193
6194
6195
6196
6197 for gltype in sig_atomic_t wchar_t wint_t ; do
6198 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6199 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6200 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209
6210 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6211 included before <wchar.h>. */
6212 #include <stddef.h>
6213 #include <signal.h>
6214 #if HAVE_WCHAR_H
6215 # include <stdio.h>
6216 # include <time.h>
6217 # include <wchar.h>
6218 #endif
6219
6220 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6221 int
6222 main ()
6223 {
6224
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 result=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 result=no
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 eval gl_cv_type_${gltype}_signed=\$result
6260
6261 fi
6262 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6263 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6264 eval result=\$gl_cv_type_${gltype}_signed
6265 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6266 if test "$result" = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_SIGNED_${GLTYPE} 1
6269 _ACEOF
6270
6271 eval HAVE_SIGNED_${GLTYPE}=1
6272 else
6273 eval HAVE_SIGNED_${GLTYPE}=0
6274 fi
6275 done
6276
6277
6278 gl_cv_type_ptrdiff_t_signed=yes
6279 gl_cv_type_size_t_signed=no
6280
6281
6282
6283
6284
6285
6286
6287 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6288 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6289 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6290 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 eval gl_cv_type_${gltype}_suffix=no
6294 eval result=\$gl_cv_type_${gltype}_signed
6295 if test "$result" = yes; then
6296 glsufu=
6297 else
6298 glsufu=u
6299 fi
6300 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6301 case $glsuf in
6302 '') gltype1='int';;
6303 l) gltype1='long int';;
6304 ll) gltype1='long long int';;
6305 i64) gltype1='__int64';;
6306 u) gltype1='unsigned int';;
6307 ul) gltype1='unsigned long int';;
6308 ull) gltype1='unsigned long long int';;
6309 ui64)gltype1='unsigned __int64';;
6310 esac
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317
6318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6319 included before <wchar.h>. */
6320 #include <stddef.h>
6321 #include <signal.h>
6322 #if HAVE_WCHAR_H
6323 # include <stdio.h>
6324 # include <time.h>
6325 # include <wchar.h>
6326 #endif
6327
6328 extern $gltype foo;
6329 extern $gltype1 foo;
6330 int
6331 main ()
6332 {
6333
6334 ;
6335 return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval gl_cv_type_${gltype}_suffix=\$glsuf
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 fi
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 eval result=\$gl_cv_type_${gltype}_suffix
6368 test "$result" != no && break
6369 done
6370 fi
6371 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6373 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6374 eval result=\$gl_cv_type_${gltype}_suffix
6375 test "$result" = no && result=
6376 eval ${GLTYPE}_SUFFIX=\$result
6377 cat >>confdefs.h <<_ACEOF
6378 #define ${GLTYPE}_SUFFIX $result
6379 _ACEOF
6380
6381 done
6382
6383
6384
6385 STDINT_H=stdint.h
6386 fi
6387
6388
6389
6390
6391
6392
6393
6394 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6395 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6396 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #include <wchar.h>
6401 wchar_t w;
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 gl_cv_header_wchar_h_standalone=yes
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 gl_cv_header_wchar_h_standalone=no
6431 fi
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433 fi
6434 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6435 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6436 if test $gl_cv_header_wchar_h_standalone != yes; then
6437 WCHAR_H=wchar.h
6438 fi
6439
6440
6441 :
6442
6443
6444
6445
6446
6447 if test $ac_cv_header_wchar_h = yes; then
6448 HAVE_WCHAR_H=1
6449 else
6450 HAVE_WCHAR_H=0
6451 fi
6452
6453
6454
6455
6456 :
6457
6458
6459
6460
6461
6462
6463
6464 if test $gl_cv_have_include_next = yes; then
6465 gl_cv_next_wchar_h='<'wchar.h'>'
6466 else
6467 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6468 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6469 if test "${gl_cv_next_wchar_h+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472
6473 if test $ac_cv_header_wchar_h = yes; then
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #include <wchar.h>
6481
6482 _ACEOF
6483 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 sed -n '\#/wchar.h#{
6485 s#.*"\(.*/wchar.h\)".*#\1#
6486 s#^/[^/]#//&#
6487 p
6488 q
6489 }'`'"'
6490 else
6491 gl_cv_next_wchar_h='<'wchar.h'>'
6492 fi
6493
6494 fi
6495 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6496 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6497 fi
6498 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6499
6500
6501
6502
6503
6504
6505
6506
6507 gltests_libdeps=
6508 gltests_ltlibdeps=
6509
6510
6511
6512 gl_source_base='tests'
6513
6514
6515
6516
6517 LIBGNU_LIBDEPS="$gl_libdeps"
6518
6519 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6520
6521
6522
6523 # For Makefile dependencies.
6524 GNULIB_STDINT_H=
6525 if test x"$STDINT_H" != x; then
6526 GNULIB_STDINT_H=gnulib/$STDINT_H
6527 fi
6528
6529
6530 PACKAGE=gdb
6531
6532 cat >>confdefs.h <<_ACEOF
6533 #define PACKAGE "$PACKAGE"
6534 _ACEOF
6535
6536
6537
6538 # GDB does not use automake, but gnulib does. This line lets us
6539 # generate its Makefile.in.
6540 am__api_version="1.9"
6541 # Find a good install program. We prefer a C program (faster),
6542 # so one script is as good as another. But avoid the broken or
6543 # incompatible versions:
6544 # SysV /etc/install, /usr/sbin/install
6545 # SunOS /usr/etc/install
6546 # IRIX /sbin/install
6547 # AIX /bin/install
6548 # AmigaOS /C/install, which installs bootblocks on floppy discs
6549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6552 # OS/2's system install, which has a completely different semantic
6553 # ./install, which can be erroneously created by make from ./install.sh.
6554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6556 if test -z "$INSTALL"; then
6557 if test "${ac_cv_path_install+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 # Account for people who put trailing slashes in PATH elements.
6566 case $as_dir/ in
6567 ./ | .// | /cC/* | \
6568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6570 /usr/ucb/* ) ;;
6571 *)
6572 # OSF1 and SCO ODT 3.0 have their own names for install.
6573 # Don't use installbsd from OSF since it installs stuff as root
6574 # by default.
6575 for ac_prog in ginstall scoinst install; do
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6578 if test $ac_prog = install &&
6579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6580 # AIX install. It has an incompatible calling convention.
6581 :
6582 elif test $ac_prog = install &&
6583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6584 # program-specific install script used by HP pwplus--don't use.
6585 :
6586 else
6587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6588 break 3
6589 fi
6590 fi
6591 done
6592 done
6593 ;;
6594 esac
6595 done
6596
6597
6598 fi
6599 if test "${ac_cv_path_install+set}" = set; then
6600 INSTALL=$ac_cv_path_install
6601 else
6602 # As a last resort, use the slow shell script. We don't cache a
6603 # path for INSTALL within a source directory, because that will
6604 # break other packages using the cache if that directory is
6605 # removed, or if the path is relative.
6606 INSTALL=$ac_install_sh
6607 fi
6608 fi
6609 echo "$as_me:$LINENO: result: $INSTALL" >&5
6610 echo "${ECHO_T}$INSTALL" >&6
6611
6612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6613 # It thinks the first close brace ends the variable substitution.
6614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6615
6616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6617
6618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6619
6620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6622 # Just in case
6623 sleep 1
6624 echo timestamp > conftest.file
6625 # Do `set' in a subshell so we don't clobber the current shell's
6626 # arguments. Must try -L first in case configure is actually a
6627 # symlink; some systems play weird games with the mod time of symlinks
6628 # (eg FreeBSD returns the mod time of the symlink's containing
6629 # directory).
6630 if (
6631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6632 if test "$*" = "X"; then
6633 # -L didn't work.
6634 set X `ls -t $srcdir/configure conftest.file`
6635 fi
6636 rm -f conftest.file
6637 if test "$*" != "X $srcdir/configure conftest.file" \
6638 && test "$*" != "X conftest.file $srcdir/configure"; then
6639
6640 # If neither matched, then we have a broken ls. This can happen
6641 # if, for instance, CONFIG_SHELL is bash and it inherits a
6642 # broken ls alias from the environment. This has actually
6643 # happened. Such a system could not be considered "sane".
6644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6645 alias in your environment" >&5
6646 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6647 alias in your environment" >&2;}
6648 { (exit 1); exit 1; }; }
6649 fi
6650
6651 test "$2" = conftest.file
6652 )
6653 then
6654 # Ok.
6655 :
6656 else
6657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6658 Check your system clock" >&5
6659 echo "$as_me: error: newly created file is older than distributed files!
6660 Check your system clock" >&2;}
6661 { (exit 1); exit 1; }; }
6662 fi
6663 echo "$as_me:$LINENO: result: yes" >&5
6664 echo "${ECHO_T}yes" >&6
6665 test "$program_prefix" != NONE &&
6666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6667 # Use a double $ so make ignores it.
6668 test "$program_suffix" != NONE &&
6669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6670 # Double any \ or $. echo might interpret backslashes.
6671 # By default was `s,x,x', remove it if useless.
6672 cat <<\_ACEOF >conftest.sed
6673 s/[\\$]/&&/g;s/;s,x,x,$//
6674 _ACEOF
6675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6676 rm conftest.sed
6677
6678 # expand $ac_aux_dir to an absolute path
6679 am_aux_dir=`cd $ac_aux_dir && pwd`
6680
6681 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6682 # Use eval to expand $SHELL
6683 if eval "$MISSING --run true"; then
6684 am_missing_run="$MISSING --run "
6685 else
6686 am_missing_run=
6687 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6688 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6689 fi
6690
6691 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6692 # We used to keeping the `.' as first argument, in order to
6693 # allow $(mkdir_p) to be used without argument. As in
6694 # $(mkdir_p) $(somedir)
6695 # where $(somedir) is conditionally defined. However this is wrong
6696 # for two reasons:
6697 # 1. if the package is installed by a user who cannot write `.'
6698 # make install will fail,
6699 # 2. the above comment should most certainly read
6700 # $(mkdir_p) $(DESTDIR)$(somedir)
6701 # so it does not work when $(somedir) is undefined and
6702 # $(DESTDIR) is not.
6703 # To support the latter case, we have to write
6704 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6705 # so the `.' trick is pointless.
6706 mkdir_p='mkdir -p --'
6707 else
6708 # On NextStep and OpenStep, the `mkdir' command does not
6709 # recognize any option. It will interpret all options as
6710 # directories to create, and then abort because `.' already
6711 # exists.
6712 for d in ./-p ./--version;
6713 do
6714 test -d $d && rmdir $d
6715 done
6716 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6717 if test -f "$ac_aux_dir/mkinstalldirs"; then
6718 mkdir_p='$(mkinstalldirs)'
6719 else
6720 mkdir_p='$(install_sh) -d'
6721 fi
6722 fi
6723
6724 for ac_prog in gawk mawk nawk awk
6725 do
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_prog_AWK+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 if test -n "$AWK"; then
6734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_AWK="$ac_prog"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749
6750 fi
6751 fi
6752 AWK=$ac_cv_prog_AWK
6753 if test -n "$AWK"; then
6754 echo "$as_me:$LINENO: result: $AWK" >&5
6755 echo "${ECHO_T}$AWK" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6759 fi
6760
6761 test -n "$AWK" && break
6762 done
6763
6764 ac_config_commands="$ac_config_commands depfiles"
6765
6766
6767 am_make=${MAKE-make}
6768 cat > confinc << 'END'
6769 am__doit:
6770 @echo done
6771 .PHONY: am__doit
6772 END
6773 # If we don't find an include directive, just comment out the code.
6774 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6775 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6776 am__include="#"
6777 am__quote=
6778 _am_result=none
6779 # First try GNU make style include.
6780 echo "include confinc" > confmf
6781 # We grep out `Entering directory' and `Leaving directory'
6782 # messages which can occur if `w' ends up in MAKEFLAGS.
6783 # In particular we don't look at `^make:' because GNU make might
6784 # be invoked under some other name (usually "gmake"), in which
6785 # case it prints its new name instead of `make'.
6786 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6787 am__include=include
6788 am__quote=
6789 _am_result=GNU
6790 fi
6791 # Now try BSD make style include.
6792 if test "$am__include" = "#"; then
6793 echo '.include "confinc"' > confmf
6794 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6795 am__include=.include
6796 am__quote="\""
6797 _am_result=BSD
6798 fi
6799 fi
6800
6801
6802 echo "$as_me:$LINENO: result: $_am_result" >&5
6803 echo "${ECHO_T}$_am_result" >&6
6804 rm -f confinc confmf
6805
6806 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6807 if test "${enable_dependency_tracking+set}" = set; then
6808 enableval="$enable_dependency_tracking"
6809
6810 fi;
6811 if test "x$enable_dependency_tracking" != xno; then
6812 am_depcomp="$ac_aux_dir/depcomp"
6813 AMDEPBACKSLASH='\'
6814 fi
6815
6816
6817 if test "x$enable_dependency_tracking" != xno; then
6818 AMDEP_TRUE=
6819 AMDEP_FALSE='#'
6820 else
6821 AMDEP_TRUE='#'
6822 AMDEP_FALSE=
6823 fi
6824
6825
6826
6827 # test to see if srcdir already configured
6828 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6829 test -f $srcdir/config.status; then
6830 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6831 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6832 { (exit 1); exit 1; }; }
6833 fi
6834
6835 # test whether we have cygpath
6836 if test -z "$CYGPATH_W"; then
6837 if (cygpath --version) >/dev/null 2>/dev/null; then
6838 CYGPATH_W='cygpath -w'
6839 else
6840 CYGPATH_W=echo
6841 fi
6842 fi
6843
6844
6845 # Define the identity of the package.
6846 PACKAGE=gdb
6847 VERSION=UNUSED-VERSION
6848
6849
6850 # Some tools Automake needs.
6851
6852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6853
6854
6855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6856
6857
6858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6859
6860
6861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6862
6863
6864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6865
6866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6867
6868 # Installed binaries are usually stripped using `strip' when the user
6869 # run `make install-strip'. However `strip' might not be the right
6870 # tool to use in cross-compilation environments, therefore Automake
6871 # will honor the `STRIP' environment variable to overrule this program.
6872 if test "$cross_compiling" != no; then
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}strip; ac_word=$2
6876 echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878 if test "${ac_cv_prog_STRIP+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 if test -n "$STRIP"; then
6882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897
6898 fi
6899 fi
6900 STRIP=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902 echo "$as_me:$LINENO: result: $STRIP" >&5
6903 echo "${ECHO_T}$STRIP" >&6
6904 else
6905 echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6
6907 fi
6908
6909 fi
6910 if test -z "$ac_cv_prog_STRIP"; then
6911 ac_ct_STRIP=$STRIP
6912 # Extract the first word of "strip", so it can be a program name with args.
6913 set dummy strip; ac_word=$2
6914 echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 if test -n "$ac_ct_STRIP"; then
6920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_STRIP="strip"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935
6936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6937 fi
6938 fi
6939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6940 if test -n "$ac_ct_STRIP"; then
6941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6942 echo "${ECHO_T}$ac_ct_STRIP" >&6
6943 else
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6946 fi
6947
6948 STRIP=$ac_ct_STRIP
6949 else
6950 STRIP="$ac_cv_prog_STRIP"
6951 fi
6952
6953 fi
6954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6955
6956 # We need awk for the "check" target. The system "awk" is bad on
6957 # some platforms.
6958 # Always define AMTAR for backward compatibility.
6959
6960 AMTAR=${AMTAR-"${am_missing_run}tar"}
6961
6962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6963
6964
6965
6966
6967 depcc="$CC" am_compiler_list=
6968
6969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
6978 # making a dummy file named `D' -- because `-MD' means `put the output
6979 # in D'.
6980 mkdir conftest.dir
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6984 cd conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6990 # directory.
6991 mkdir sub
6992
6993 am_cv_CC_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6996 fi
6997 for depmode in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7001 #
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7005 : > sub/conftest.c
7006 for i in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009 # Solaris 8's {/usr,}/bin/sh.
7010 touch sub/conftst$i.h
7011 done
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7013
7014 case $depmode in
7015 nosideeffect)
7016 # after this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested
7018 if test "x$enable_dependency_tracking" = xyes; then
7019 continue
7020 else
7021 break
7022 fi
7023 ;;
7024 none) break ;;
7025 esac
7026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027 # mode. It turns out that the SunPro C++ compiler does not properly
7028 # handle `-M -o', and we need to detect this.
7029 if depmode=$depmode \
7030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7033 >/dev/null 2>conftest.err &&
7034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7037 # icc doesn't choke on unknown options, it will just issue warnings
7038 # or remarks (even with -Werror). So we grep stderr for any message
7039 # that says an option was ignored or not supported.
7040 # When given -MP, icc 7.0 and 7.1 complain thusly:
7041 # icc: Command line warning: ignoring option '-M'; no argument required
7042 # The diagnosis changed in icc 8.0:
7043 # icc: Command line remark: option '-MP' not supported
7044 if (grep 'ignoring option' conftest.err ||
7045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7046 am_cv_CC_dependencies_compiler_type=$depmode
7047 break
7048 fi
7049 fi
7050 done
7051
7052 cd ..
7053 rm -rf conftest.dir
7054 else
7055 am_cv_CC_dependencies_compiler_type=none
7056 fi
7057
7058 fi
7059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7062
7063
7064
7065 if
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7068 am__fastdepCC_TRUE=
7069 am__fastdepCC_FALSE='#'
7070 else
7071 am__fastdepCC_TRUE='#'
7072 am__fastdepCC_FALSE=
7073 fi
7074
7075
7076
7077
7078 debugdir=${libdir}/debug
7079
7080
7081 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7082 if test "${with_separate_debug_dir+set}" = set; then
7083 withval="$with_separate_debug_dir"
7084 debugdir="${withval}"
7085 fi;
7086
7087
7088 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7090 ac_define_dir=`eval echo $debugdir`
7091 ac_define_dir=`eval echo $ac_define_dir`
7092
7093 cat >>confdefs.h <<_ACEOF
7094 #define DEBUGDIR "$ac_define_dir"
7095 _ACEOF
7096
7097
7098 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7099
7100 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7101 if test "x$prefix" = xNONE; then
7102 test_prefix=/usr/local
7103 else
7104 test_prefix=$prefix
7105 fi
7106 else
7107 test_prefix=$exec_prefix
7108 fi
7109 case ${debugdir} in
7110 "${test_prefix}"|"${test_prefix}/"*|\
7111 '${exec_prefix}'|'${exec_prefix}/'*)
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define DEBUGDIR_RELOCATABLE 1
7115 _ACEOF
7116
7117 ;;
7118 esac
7119
7120
7121
7122 subdirs="$subdirs doc testsuite"
7123
7124
7125 # Check whether to support alternative target configurations
7126 # Check whether --enable-targets or --disable-targets was given.
7127 if test "${enable_targets+set}" = set; then
7128 enableval="$enable_targets"
7129 case "${enableval}" in
7130 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7131 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7132 { (exit 1); exit 1; }; }
7133 ;;
7134 no) enable_targets= ;;
7135 *) enable_targets=$enableval ;;
7136 esac
7137 fi;
7138
7139 # Check whether to enable 64-bit support on 32-bit hosts
7140 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7141 if test "${enable_64_bit_bfd+set}" = set; then
7142 enableval="$enable_64_bit_bfd"
7143 case "${enableval}" in
7144 yes) want64=true ;;
7145 no) want64=false ;;
7146 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7147 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7148 { (exit 1); exit 1; }; } ;;
7149 esac
7150 else
7151 want64=false
7152 fi;
7153 # Provide defaults for some variables set by the per-host and per-target
7154 # configuration.
7155 gdb_host_obs=posix-hdep.o
7156
7157 if test "${target}" = "${host}"; then
7158 gdb_native=yes
7159 else
7160 gdb_native=no
7161 fi
7162
7163 . $srcdir/configure.host
7164
7165 # Accumulate some settings from configure.tgt over all enabled targets
7166
7167 TARGET_OBS=
7168 all_targets=
7169
7170 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7171 do
7172 if test "$targ_alias" = "all"; then
7173 all_targets=true
7174 else
7175 # Canonicalize the secondary target names.
7176 result=`$ac_config_sub $targ_alias 2>/dev/null`
7177 if test -n "$result"; then
7178 targ=$result
7179 else
7180 targ=$targ_alias
7181 fi
7182
7183 . ${srcdir}/configure.tgt
7184
7185 # Target-specific object files
7186 for i in ${gdb_target_obs}; do
7187 case " $TARGET_OBS " in
7188 *" ${i} "*) ;;
7189 *)
7190 TARGET_OBS="$TARGET_OBS ${i}"
7191 ;;
7192 esac
7193 done
7194
7195 # Check whether this target needs 64-bit CORE_ADDR
7196 if test x${want64} = xfalse; then
7197 . ${srcdir}/../bfd/config.bfd
7198 fi
7199 fi
7200 done
7201
7202 if test x${all_targets} = xtrue; then
7203
7204 # We want all 64-bit targets if we either:
7205 # - run on a 64-bit host or
7206 # - already require 64-bit support for some other target or
7207 # - the --enable-64-bit-bfd option was supplied
7208 # Otherwise we only support all 32-bit targets.
7209 #
7210 # NOTE: This test must be in sync with the corresponding
7211 # tests in BFD!
7212
7213 if test x${want64} = xfalse; then
7214 echo "$as_me:$LINENO: checking for long" >&5
7215 echo $ECHO_N "checking for long... $ECHO_C" >&6
7216 if test "${ac_cv_type_long+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219 cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h. */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7225 $ac_includes_default
7226 int
7227 main ()
7228 {
7229 if ((long *) 0)
7230 return 0;
7231 if (sizeof (long))
7232 return 0;
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 rm -f conftest.$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 ac_cv_type_long=yes
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 ac_cv_type_long=no
7265 fi
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7269 echo "${ECHO_T}$ac_cv_type_long" >&6
7270
7271 echo "$as_me:$LINENO: checking size of long" >&5
7272 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7273 if test "${ac_cv_sizeof_long+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 if test "$ac_cv_type_long" = yes; then
7277 # The cast to unsigned long works around a bug in the HP C Compiler
7278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7280 # This bug is HP SR number 8606223364.
7281 if test "$cross_compiling" = yes; then
7282 # Depending upon the size, compute the lo and hi bounds.
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 int
7291 main ()
7292 {
7293 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7294 test_array [0] = 0
7295
7296 ;
7297 return 0;
7298 }
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_lo=0 ac_mid=0
7323 while :; do
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7331 int
7332 main ()
7333 {
7334 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7335 test_array [0] = 0
7336
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 rm -f conftest.$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_hi=$ac_mid; break
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_lo=`expr $ac_mid + 1`
7369 if test $ac_lo -le $ac_mid; then
7370 ac_lo= ac_hi=
7371 break
7372 fi
7373 ac_mid=`expr 2 '*' $ac_mid + 1`
7374 fi
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 done
7377 else
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 int
7389 main ()
7390 {
7391 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7392 test_array [0] = 0
7393
7394 ;
7395 return 0;
7396 }
7397 _ACEOF
7398 rm -f conftest.$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_hi=-1 ac_mid=-1
7421 while :; do
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 int
7430 main ()
7431 {
7432 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7433 test_array [0] = 0
7434
7435 ;
7436 return 0;
7437 }
7438 _ACEOF
7439 rm -f conftest.$ac_objext
7440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_lo=$ac_mid; break
7462 else
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7465
7466 ac_hi=`expr '(' $ac_mid ')' - 1`
7467 if test $ac_mid -le $ac_hi; then
7468 ac_lo= ac_hi=
7469 break
7470 fi
7471 ac_mid=`expr 2 '*' $ac_mid`
7472 fi
7473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 done
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_lo= ac_hi=
7480 fi
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 # Binary search between lo and hi bounds.
7485 while test "x$ac_lo" != "x$ac_hi"; do
7486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 int
7495 main ()
7496 {
7497 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7498 test_array [0] = 0
7499
7500 ;
7501 return 0;
7502 }
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_hi=$ac_mid
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 ac_lo=`expr '(' $ac_mid ')' + 1`
7532 fi
7533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534 done
7535 case $ac_lo in
7536 ?*) ac_cv_sizeof_long=$ac_lo;;
7537 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7540 See \`config.log' for more details." >&5
7541 echo "$as_me: error: cannot compute sizeof (long), 77
7542 See \`config.log' for more details." >&2;}
7543 { (exit 1); exit 1; }; }; } ;;
7544 esac
7545 else
7546 if test "$cross_compiling" = yes; then
7547 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7548 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7550 See \`config.log' for more details." >&5
7551 echo "$as_me: error: cannot run test program while cross compiling
7552 See \`config.log' for more details." >&2;}
7553 { (exit 1); exit 1; }; }; }
7554 else
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 long longval () { return (long) (sizeof (long)); }
7563 unsigned long ulongval () { return (long) (sizeof (long)); }
7564 #include <stdio.h>
7565 #include <stdlib.h>
7566 int
7567 main ()
7568 {
7569
7570 FILE *f = fopen ("conftest.val", "w");
7571 if (! f)
7572 exit (1);
7573 if (((long) (sizeof (long))) < 0)
7574 {
7575 long i = longval ();
7576 if (i != ((long) (sizeof (long))))
7577 exit (1);
7578 fprintf (f, "%ld\n", i);
7579 }
7580 else
7581 {
7582 unsigned long i = ulongval ();
7583 if (i != ((long) (sizeof (long))))
7584 exit (1);
7585 fprintf (f, "%lu\n", i);
7586 }
7587 exit (ferror (f) || fclose (f) != 0);
7588
7589 ;
7590 return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_sizeof_long=`cat conftest.val`
7605 else
7606 echo "$as_me: program exited with status $ac_status" >&5
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ( exit $ac_status )
7611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7614 See \`config.log' for more details." >&5
7615 echo "$as_me: error: cannot compute sizeof (long), 77
7616 See \`config.log' for more details." >&2;}
7617 { (exit 1); exit 1; }; }; }
7618 fi
7619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7620 fi
7621 fi
7622 rm -f conftest.val
7623 else
7624 ac_cv_sizeof_long=0
7625 fi
7626 fi
7627 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7628 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7629 cat >>confdefs.h <<_ACEOF
7630 #define SIZEOF_LONG $ac_cv_sizeof_long
7631 _ACEOF
7632
7633
7634 if test "x${ac_cv_sizeof_long}" = "x8"; then
7635 want64=true
7636 fi
7637 fi
7638 if test x${want64} = xtrue; then
7639 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7640 else
7641 TARGET_OBS='$(ALL_TARGET_OBS)'
7642 fi
7643 fi
7644
7645
7646
7647 # For other settings, only the main target counts.
7648 gdb_sim=
7649 gdb_osabi=
7650 build_gdbserver=
7651 targ=$target; . ${srcdir}/configure.tgt
7652
7653 # Fetch the default architecture and default target vector from BFD.
7654 targ=$target; . $srcdir/../bfd/config.bfd
7655
7656 # We only want the first architecture, so strip off the others if
7657 # there is more than one.
7658 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7659
7660 if test "x$targ_archs" != x; then
7661
7662 cat >>confdefs.h <<_ACEOF
7663 #define DEFAULT_BFD_ARCH $targ_archs
7664 _ACEOF
7665
7666 fi
7667 if test "x$targ_defvec" != x; then
7668
7669 cat >>confdefs.h <<_ACEOF
7670 #define DEFAULT_BFD_VEC $targ_defvec
7671 _ACEOF
7672
7673 fi
7674
7675 # The CLI cannot be disabled yet, but may be in the future.
7676
7677 # Enable CLI.
7678 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7679 if test "${enable_gdbcli+set}" = set; then
7680 enableval="$enable_gdbcli"
7681 case $enableval in
7682 yes)
7683 ;;
7684 no)
7685 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7686 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7687 { (exit 1); exit 1; }; } ;;
7688 *)
7689 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7690 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7691 { (exit 1); exit 1; }; } ;;
7692 esac
7693 else
7694 enable_gdbcli=yes
7695 fi;
7696 if test x"$enable_gdbcli" = xyes; then
7697 if test -d $srcdir/cli; then
7698 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7699 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7700 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7701 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7702 fi
7703 fi
7704
7705 # Enable MI.
7706 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7707 if test "${enable_gdbmi+set}" = set; then
7708 enableval="$enable_gdbmi"
7709 case $enableval in
7710 yes | no)
7711 ;;
7712 *)
7713 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7714 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7715 { (exit 1); exit 1; }; } ;;
7716 esac
7717 else
7718 enable_gdbmi=yes
7719 fi;
7720 if test x"$enable_gdbmi" = xyes; then
7721 if test -d $srcdir/mi; then
7722 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7723 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7724 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7725 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7726 fi
7727 fi
7728
7729 # Enable TUI.
7730 # Check whether --enable-tui or --disable-tui was given.
7731 if test "${enable_tui+set}" = set; then
7732 enableval="$enable_tui"
7733 case $enableval in
7734 yes | no | auto)
7735 ;;
7736 *)
7737 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7738 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7739 { (exit 1); exit 1; }; } ;;
7740 esac
7741 else
7742 enable_tui=auto
7743 fi;
7744
7745 # Enable gdbtk.
7746 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7747 if test "${enable_gdbtk+set}" = set; then
7748 enableval="$enable_gdbtk"
7749 case $enableval in
7750 yes | no)
7751 ;;
7752 *)
7753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7754 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7755 { (exit 1); exit 1; }; } ;;
7756 esac
7757 else
7758 if test -d $srcdir/gdbtk; then
7759 enable_gdbtk=yes
7760 else
7761 enable_gdbtk=no
7762 fi
7763 fi;
7764 # We unconditionally disable gdbtk tests on selected platforms.
7765 case $host_os in
7766 go32* | windows*)
7767 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7768 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7769 enable_gdbtk=no ;;
7770 esac
7771
7772 # Libunwind support.
7773
7774 # Check whether --with-libunwind or --without-libunwind was given.
7775 if test "${with_libunwind+set}" = set; then
7776 withval="$with_libunwind"
7777 case "${withval}" in
7778 yes) enable_libunwind=yes ;;
7779 no) enable_libunwind=no ;;
7780 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7781 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7782 { (exit 1); exit 1; }; } ;;
7783 esac
7784 else
7785
7786
7787 for ac_header in libunwind.h
7788 do
7789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7791 echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 fi
7796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798 else
7799 # Is the header compilable?
7800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 $ac_includes_default
7809 #include <$ac_header>
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 ac_header_compiler=no
7839 fi
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842 echo "${ECHO_T}$ac_header_compiler" >&6
7843
7844 # Is the header present?
7845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h. */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <$ac_header>
7854 _ACEOF
7855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } >/dev/null; then
7863 if test -s conftest.err; then
7864 ac_cpp_err=$ac_c_preproc_warn_flag
7865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7866 else
7867 ac_cpp_err=
7868 fi
7869 else
7870 ac_cpp_err=yes
7871 fi
7872 if test -z "$ac_cpp_err"; then
7873 ac_header_preproc=yes
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ac_header_preproc=no
7879 fi
7880 rm -f conftest.err conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6
7883
7884 # So? What about this header?
7885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7886 yes:no: )
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7891 ac_header_preproc=yes
7892 ;;
7893 no:yes:* )
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7906 (
7907 cat <<\_ASBOX
7908 ## ------------------------------------------ ##
7909 ## Report this to the AC_PACKAGE_NAME lists. ##
7910 ## ------------------------------------------ ##
7911 _ASBOX
7912 ) |
7913 sed "s/^/$as_me: WARNING: /" >&2
7914 ;;
7915 esac
7916 echo "$as_me:$LINENO: checking for $ac_header" >&5
7917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 eval "$as_ac_Header=\$ac_header_preproc"
7922 fi
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925
7926 fi
7927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930 _ACEOF
7931
7932 fi
7933
7934 done
7935
7936
7937 for ac_header in libunwind-ia64.h
7938 do
7939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7941 echo "$as_me:$LINENO: checking for $ac_header" >&5
7942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 fi
7946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7948 else
7949 # Is the header compilable?
7950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h. */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 $ac_includes_default
7959 #include <$ac_header>
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7963 (eval $ac_compile) 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag"
7971 || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_header_compiler=yes
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 ac_header_compiler=no
7989 fi
7990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7992 echo "${ECHO_T}$ac_header_compiler" >&6
7993
7994 # Is the header present?
7995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <$ac_header>
8004 _ACEOF
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8016 else
8017 ac_cpp_err=
8018 fi
8019 else
8020 ac_cpp_err=yes
8021 fi
8022 if test -z "$ac_cpp_err"; then
8023 ac_header_preproc=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_header_preproc=no
8029 fi
8030 rm -f conftest.err conftest.$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8032 echo "${ECHO_T}$ac_header_preproc" >&6
8033
8034 # So? What about this header?
8035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8036 yes:no: )
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8041 ac_header_preproc=yes
8042 ;;
8043 no:yes:* )
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8056 (
8057 cat <<\_ASBOX
8058 ## ------------------------------------------ ##
8059 ## Report this to the AC_PACKAGE_NAME lists. ##
8060 ## ------------------------------------------ ##
8061 _ASBOX
8062 ) |
8063 sed "s/^/$as_me: WARNING: /" >&2
8064 ;;
8065 esac
8066 echo "$as_me:$LINENO: checking for $ac_header" >&5
8067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 eval "$as_ac_Header=\$ac_header_preproc"
8072 fi
8073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8075
8076 fi
8077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080 _ACEOF
8081
8082 fi
8083
8084 done
8085
8086 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8087 enable_libunwind=yes;
8088 fi
8089
8090 fi;
8091
8092 if test x"$enable_libunwind" = xyes; then
8093
8094 for ac_header in libunwind.h
8095 do
8096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo "$as_me:$LINENO: checking for $ac_header" >&5
8099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 fi
8103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8105 else
8106 # Is the header compilable?
8107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 #include <$ac_header>
8117 _ACEOF
8118 rm -f conftest.$ac_objext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120 (eval $ac_compile) 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag"
8128 || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_header_compiler=yes
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ac_header_compiler=no
8146 fi
8147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8149 echo "${ECHO_T}$ac_header_compiler" >&6
8150
8151 # Is the header present?
8152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 #include <$ac_header>
8161 _ACEOF
8162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } >/dev/null; then
8170 if test -s conftest.err; then
8171 ac_cpp_err=$ac_c_preproc_warn_flag
8172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8173 else
8174 ac_cpp_err=
8175 fi
8176 else
8177 ac_cpp_err=yes
8178 fi
8179 if test -z "$ac_cpp_err"; then
8180 ac_header_preproc=yes
8181 else
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ac_header_preproc=no
8186 fi
8187 rm -f conftest.err conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8189 echo "${ECHO_T}$ac_header_preproc" >&6
8190
8191 # So? What about this header?
8192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8193 yes:no: )
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8198 ac_header_preproc=yes
8199 ;;
8200 no:yes:* )
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8213 (
8214 cat <<\_ASBOX
8215 ## ------------------------------------------ ##
8216 ## Report this to the AC_PACKAGE_NAME lists. ##
8217 ## ------------------------------------------ ##
8218 _ASBOX
8219 ) |
8220 sed "s/^/$as_me: WARNING: /" >&2
8221 ;;
8222 esac
8223 echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 eval "$as_ac_Header=\$ac_header_preproc"
8229 fi
8230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8232
8233 fi
8234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8235 cat >>confdefs.h <<_ACEOF
8236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8237 _ACEOF
8238
8239 fi
8240
8241 done
8242
8243
8244 for ac_header in libunwind-ia64.h
8245 do
8246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248 echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 fi
8253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8255 else
8256 # Is the header compilable?
8257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 $ac_includes_default
8266 #include <$ac_header>
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_header_compiler=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_header_compiler=no
8296 fi
8297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8299 echo "${ECHO_T}$ac_header_compiler" >&6
8300
8301 # Is the header present?
8302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h. */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 #include <$ac_header>
8311 _ACEOF
8312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev/null; then
8320 if test -s conftest.err; then
8321 ac_cpp_err=$ac_c_preproc_warn_flag
8322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8323 else
8324 ac_cpp_err=
8325 fi
8326 else
8327 ac_cpp_err=yes
8328 fi
8329 if test -z "$ac_cpp_err"; then
8330 ac_header_preproc=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 ac_header_preproc=no
8336 fi
8337 rm -f conftest.err conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339 echo "${ECHO_T}$ac_header_preproc" >&6
8340
8341 # So? What about this header?
8342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8343 yes:no: )
8344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8348 ac_header_preproc=yes
8349 ;;
8350 no:yes:* )
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8363 (
8364 cat <<\_ASBOX
8365 ## ------------------------------------------ ##
8366 ## Report this to the AC_PACKAGE_NAME lists. ##
8367 ## ------------------------------------------ ##
8368 _ASBOX
8369 ) |
8370 sed "s/^/$as_me: WARNING: /" >&2
8371 ;;
8372 esac
8373 echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 eval "$as_ac_Header=\$ac_header_preproc"
8379 fi
8380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8382
8383 fi
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 _ACEOF
8388
8389 fi
8390
8391 done
8392
8393
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_LIBUNWIND 1
8396 _ACEOF
8397
8398 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8399 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8400 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8401 fi
8402
8403 # Profiling support.
8404 # Check whether --enable-profiling or --disable-profiling was given.
8405 if test "${enable_profiling+set}" = set; then
8406 enableval="$enable_profiling"
8407 case $enableval in
8408 yes | no)
8409 ;;
8410 *)
8411 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8412 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8413 { (exit 1); exit 1; }; } ;;
8414 esac
8415 else
8416 enable_profiling=no
8417 fi;
8418
8419
8420
8421 for ac_func in monstartup _mcleanup
8422 do
8423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8424 echo "$as_me:$LINENO: checking for $ac_func" >&5
8425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_var+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8437 #define $ac_func innocuous_$ac_func
8438
8439 /* System header to define __stub macros and hopefully few prototypes,
8440 which can conflict with char $ac_func (); below.
8441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442 <limits.h> exists even on freestanding compilers. */
8443
8444 #ifdef __STDC__
8445 # include <limits.h>
8446 #else
8447 # include <assert.h>
8448 #endif
8449
8450 #undef $ac_func
8451
8452 /* Override any gcc2 internal prototype to avoid an error. */
8453 #ifdef __cplusplus
8454 extern "C"
8455 {
8456 #endif
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8459 char $ac_func ();
8460 /* The GNU C library defines this for functions which it implements
8461 to always fail with ENOSYS. Some functions are actually named
8462 something starting with __ and the normal name is an alias. */
8463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8464 choke me
8465 #else
8466 char (*f) () = $ac_func;
8467 #endif
8468 #ifdef __cplusplus
8469 }
8470 #endif
8471
8472 int
8473 main ()
8474 {
8475 return f != $ac_func;
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 eval "$as_ac_var=yes"
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 eval "$as_ac_var=no"
8508 fi
8509 rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 fi
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8514 if test `eval echo '${'$as_ac_var'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8517 _ACEOF
8518
8519 fi
8520 done
8521
8522 echo "$as_me:$LINENO: checking for _etext" >&5
8523 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8524 if test "${ac_cv_var__etext+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 #include <stdlib.h>
8534 extern char _etext;
8535
8536 int
8537 main ()
8538 {
8539 free (&_etext);
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_var__etext=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_var__etext=no
8572 fi
8573 rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 fi
8576 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8577 echo "${ECHO_T}$ac_cv_var__etext" >&6
8578 if test $ac_cv_var__etext = yes; then
8579
8580 cat >>confdefs.h <<\_ACEOF
8581 #define HAVE__ETEXT 1
8582 _ACEOF
8583
8584 fi
8585 echo "$as_me:$LINENO: checking for etext" >&5
8586 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8587 if test "${ac_cv_var_etext+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 #include <stdlib.h>
8597 extern char etext;
8598
8599 int
8600 main ()
8601 {
8602 free (&etext);
8603 ;
8604 return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 (eval $ac_try) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_cv_var_etext=yes
8630 else
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634 ac_cv_var_etext=no
8635 fi
8636 rm -f conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638 fi
8639 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8640 echo "${ECHO_T}$ac_cv_var_etext" >&6
8641 if test $ac_cv_var_etext = yes; then
8642
8643 cat >>confdefs.h <<\_ACEOF
8644 #define HAVE_ETEXT 1
8645 _ACEOF
8646
8647 fi
8648 if test "$enable_profiling" = yes ; then
8649 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8650 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8651 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8652 { (exit 1); exit 1; }; }
8653 fi
8654 PROFILE_CFLAGS=-pg
8655 OLD_CFLAGS="$CFLAGS"
8656 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8657
8658 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8659 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8660 if test "${ac_cv_cc_supports_pg+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669
8670 int
8671 main ()
8672 {
8673 int x;
8674 ;
8675 return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_cc_supports_pg=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_cv_cc_supports_pg=no
8706 fi
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8710 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8711
8712 if test $ac_cv_cc_supports_pg = no; then
8713 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8714 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8715 { (exit 1); exit 1; }; }
8716 fi
8717
8718 CFLAGS="$OLD_CFLAGS"
8719 fi
8720
8721
8722
8723 # Check whether --with-pkgversion or --without-pkgversion was given.
8724 if test "${with_pkgversion+set}" = set; then
8725 withval="$with_pkgversion"
8726 case "$withval" in
8727 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8728 echo "$as_me: error: package version not specified" >&2;}
8729 { (exit 1); exit 1; }; } ;;
8730 no) PKGVERSION= ;;
8731 *) PKGVERSION="($withval) " ;;
8732 esac
8733 else
8734 PKGVERSION="(GDB) "
8735
8736 fi;
8737
8738
8739
8740
8741 # Check whether --with-bugurl or --without-bugurl was given.
8742 if test "${with_bugurl+set}" = set; then
8743 withval="$with_bugurl"
8744 case "$withval" in
8745 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8746 echo "$as_me: error: bug URL not specified" >&2;}
8747 { (exit 1); exit 1; }; } ;;
8748 no) BUGURL=
8749 ;;
8750 *) BUGURL="$withval"
8751 ;;
8752 esac
8753 else
8754 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8755
8756 fi;
8757 case ${BUGURL} in
8758 "")
8759 REPORT_BUGS_TO=
8760 REPORT_BUGS_TEXI=
8761 ;;
8762 *)
8763 REPORT_BUGS_TO="<$BUGURL>"
8764 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8765 ;;
8766 esac;
8767
8768
8769
8770
8771 cat >>confdefs.h <<_ACEOF
8772 #define PKGVERSION "$PKGVERSION"
8773 _ACEOF
8774
8775
8776 cat >>confdefs.h <<_ACEOF
8777 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8778 _ACEOF
8779
8780
8781 # --------------------- #
8782 # Checks for programs. #
8783 # --------------------- #
8784
8785 for ac_prog in gawk mawk nawk awk
8786 do
8787 # Extract the first word of "$ac_prog", so it can be a program name with args.
8788 set dummy $ac_prog; ac_word=$2
8789 echo "$as_me:$LINENO: checking for $ac_word" >&5
8790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791 if test "${ac_cv_prog_AWK+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 if test -n "$AWK"; then
8795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804 ac_cv_prog_AWK="$ac_prog"
8805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8807 fi
8808 done
8809 done
8810
8811 fi
8812 fi
8813 AWK=$ac_cv_prog_AWK
8814 if test -n "$AWK"; then
8815 echo "$as_me:$LINENO: result: $AWK" >&5
8816 echo "${ECHO_T}$AWK" >&6
8817 else
8818 echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6
8820 fi
8821
8822 test -n "$AWK" && break
8823 done
8824
8825 # Find a good install program. We prefer a C program (faster),
8826 # so one script is as good as another. But avoid the broken or
8827 # incompatible versions:
8828 # SysV /etc/install, /usr/sbin/install
8829 # SunOS /usr/etc/install
8830 # IRIX /sbin/install
8831 # AIX /bin/install
8832 # AmigaOS /C/install, which installs bootblocks on floppy discs
8833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8836 # OS/2's system install, which has a completely different semantic
8837 # ./install, which can be erroneously created by make from ./install.sh.
8838 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8840 if test -z "$INSTALL"; then
8841 if test "${ac_cv_path_install+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 # Account for people who put trailing slashes in PATH elements.
8850 case $as_dir/ in
8851 ./ | .// | /cC/* | \
8852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8854 /usr/ucb/* ) ;;
8855 *)
8856 # OSF1 and SCO ODT 3.0 have their own names for install.
8857 # Don't use installbsd from OSF since it installs stuff as root
8858 # by default.
8859 for ac_prog in ginstall scoinst install; do
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8862 if test $ac_prog = install &&
8863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8864 # AIX install. It has an incompatible calling convention.
8865 :
8866 elif test $ac_prog = install &&
8867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8868 # program-specific install script used by HP pwplus--don't use.
8869 :
8870 else
8871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8872 break 3
8873 fi
8874 fi
8875 done
8876 done
8877 ;;
8878 esac
8879 done
8880
8881
8882 fi
8883 if test "${ac_cv_path_install+set}" = set; then
8884 INSTALL=$ac_cv_path_install
8885 else
8886 # As a last resort, use the slow shell script. We don't cache a
8887 # path for INSTALL within a source directory, because that will
8888 # break other packages using the cache if that directory is
8889 # removed, or if the path is relative.
8890 INSTALL=$ac_install_sh
8891 fi
8892 fi
8893 echo "$as_me:$LINENO: result: $INSTALL" >&5
8894 echo "${ECHO_T}$INSTALL" >&6
8895
8896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8897 # It thinks the first close brace ends the variable substitution.
8898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8899
8900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8901
8902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8903
8904 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8905 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8906 LN_S=$as_ln_s
8907 if test "$LN_S" = "ln -s"; then
8908 echo "$as_me:$LINENO: result: yes" >&5
8909 echo "${ECHO_T}yes" >&6
8910 else
8911 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8912 echo "${ECHO_T}no, using $LN_S" >&6
8913 fi
8914
8915 if test -n "$ac_tool_prefix"; then
8916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8918 echo "$as_me:$LINENO: checking for $ac_word" >&5
8919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920 if test "${ac_cv_prog_RANLIB+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8928 do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937 done
8938 done
8939
8940 fi
8941 fi
8942 RANLIB=$ac_cv_prog_RANLIB
8943 if test -n "$RANLIB"; then
8944 echo "$as_me:$LINENO: result: $RANLIB" >&5
8945 echo "${ECHO_T}$RANLIB" >&6
8946 else
8947 echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6
8949 fi
8950
8951 fi
8952 if test -z "$ac_cv_prog_RANLIB"; then
8953 ac_ct_RANLIB=$RANLIB
8954 # Extract the first word of "ranlib", so it can be a program name with args.
8955 set dummy ranlib; ac_word=$2
8956 echo "$as_me:$LINENO: checking for $ac_word" >&5
8957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961 if test -n "$ac_ct_RANLIB"; then
8962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8963 else
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_ac_ct_RANLIB="ranlib"
8972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975 done
8976 done
8977
8978 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8979 fi
8980 fi
8981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8982 if test -n "$ac_ct_RANLIB"; then
8983 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8984 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8985 else
8986 echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8988 fi
8989
8990 RANLIB=$ac_ct_RANLIB
8991 else
8992 RANLIB="$ac_cv_prog_RANLIB"
8993 fi
8994
8995 for ac_prog in 'bison -y' byacc
8996 do
8997 # Extract the first word of "$ac_prog", so it can be a program name with args.
8998 set dummy $ac_prog; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_YACC+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004 if test -n "$YACC"; then
9005 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_YACC="$ac_prog"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018 done
9019 done
9020
9021 fi
9022 fi
9023 YACC=$ac_cv_prog_YACC
9024 if test -n "$YACC"; then
9025 echo "$as_me:$LINENO: result: $YACC" >&5
9026 echo "${ECHO_T}$YACC" >&6
9027 else
9028 echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6
9030 fi
9031
9032 test -n "$YACC" && break
9033 done
9034 test -n "$YACC" || YACC="yacc"
9035
9036
9037 if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9039 set dummy ${ac_tool_prefix}ar; ac_word=$2
9040 echo "$as_me:$LINENO: checking for $ac_word" >&5
9041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9042 if test "${ac_cv_prog_AR+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 if test -n "$AR"; then
9046 ac_cv_prog_AR="$AR" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_AR="${ac_tool_prefix}ar"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059 done
9060 done
9061
9062 fi
9063 fi
9064 AR=$ac_cv_prog_AR
9065 if test -n "$AR"; then
9066 echo "$as_me:$LINENO: result: $AR" >&5
9067 echo "${ECHO_T}$AR" >&6
9068 else
9069 echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6
9071 fi
9072
9073 fi
9074 if test -z "$ac_cv_prog_AR"; then
9075 ac_ct_AR=$AR
9076 # Extract the first word of "ar", so it can be a program name with args.
9077 set dummy ar; ac_word=$2
9078 echo "$as_me:$LINENO: checking for $ac_word" >&5
9079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9080 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083 if test -n "$ac_ct_AR"; then
9084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_ac_ct_AR="ar"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097 done
9098 done
9099
9100 fi
9101 fi
9102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9103 if test -n "$ac_ct_AR"; then
9104 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9105 echo "${ECHO_T}$ac_ct_AR" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9109 fi
9110
9111 AR=$ac_ct_AR
9112 else
9113 AR="$ac_cv_prog_AR"
9114 fi
9115
9116 if test -n "$ac_tool_prefix"; then
9117 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9118 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9119 echo "$as_me:$LINENO: checking for $ac_word" >&5
9120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9121 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 if test -n "$DLLTOOL"; then
9125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9129 do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9137 fi
9138 done
9139 done
9140
9141 fi
9142 fi
9143 DLLTOOL=$ac_cv_prog_DLLTOOL
9144 if test -n "$DLLTOOL"; then
9145 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9146 echo "${ECHO_T}$DLLTOOL" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6
9150 fi
9151
9152 fi
9153 if test -z "$ac_cv_prog_DLLTOOL"; then
9154 ac_ct_DLLTOOL=$DLLTOOL
9155 # Extract the first word of "dlltool", so it can be a program name with args.
9156 set dummy dlltool; ac_word=$2
9157 echo "$as_me:$LINENO: checking for $ac_word" >&5
9158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9159 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162 if test -n "$ac_ct_DLLTOOL"; then
9163 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9175 fi
9176 done
9177 done
9178
9179 fi
9180 fi
9181 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9182 if test -n "$ac_ct_DLLTOOL"; then
9183 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9184 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9185 else
9186 echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6
9188 fi
9189
9190 DLLTOOL=$ac_ct_DLLTOOL
9191 else
9192 DLLTOOL="$ac_cv_prog_DLLTOOL"
9193 fi
9194
9195 if test -n "$ac_tool_prefix"; then
9196 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9197 set dummy ${ac_tool_prefix}windres; ac_word=$2
9198 echo "$as_me:$LINENO: checking for $ac_word" >&5
9199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9200 if test "${ac_cv_prog_WINDRES+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 if test -n "$WINDRES"; then
9204 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9205 else
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in $PATH
9208 do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217 done
9218 done
9219
9220 fi
9221 fi
9222 WINDRES=$ac_cv_prog_WINDRES
9223 if test -n "$WINDRES"; then
9224 echo "$as_me:$LINENO: result: $WINDRES" >&5
9225 echo "${ECHO_T}$WINDRES" >&6
9226 else
9227 echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6
9229 fi
9230
9231 fi
9232 if test -z "$ac_cv_prog_WINDRES"; then
9233 ac_ct_WINDRES=$WINDRES
9234 # Extract the first word of "windres", so it can be a program name with args.
9235 set dummy windres; ac_word=$2
9236 echo "$as_me:$LINENO: checking for $ac_word" >&5
9237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 if test -n "$ac_ct_WINDRES"; then
9242 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9243 else
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $PATH
9246 do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9251 ac_cv_prog_ac_ct_WINDRES="windres"
9252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9254 fi
9255 done
9256 done
9257
9258 fi
9259 fi
9260 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9261 if test -n "$ac_ct_WINDRES"; then
9262 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9263 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9264 else
9265 echo "$as_me:$LINENO: result: no" >&5
9266 echo "${ECHO_T}no" >&6
9267 fi
9268
9269 WINDRES=$ac_ct_WINDRES
9270 else
9271 WINDRES="$ac_cv_prog_WINDRES"
9272 fi
9273
9274
9275 # Needed for GNU/Hurd.
9276 if test -n "$ac_tool_prefix"; then
9277 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9278 set dummy ${ac_tool_prefix}mig; ac_word=$2
9279 echo "$as_me:$LINENO: checking for $ac_word" >&5
9280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9281 if test "${ac_cv_prog_MIG+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 if test -n "$MIG"; then
9285 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9286 else
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9289 do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9294 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9297 fi
9298 done
9299 done
9300
9301 fi
9302 fi
9303 MIG=$ac_cv_prog_MIG
9304 if test -n "$MIG"; then
9305 echo "$as_me:$LINENO: result: $MIG" >&5
9306 echo "${ECHO_T}$MIG" >&6
9307 else
9308 echo "$as_me:$LINENO: result: no" >&5
9309 echo "${ECHO_T}no" >&6
9310 fi
9311
9312 fi
9313 if test -z "$ac_cv_prog_MIG"; then
9314 ac_ct_MIG=$MIG
9315 # Extract the first word of "mig", so it can be a program name with args.
9316 set dummy mig; ac_word=$2
9317 echo "$as_me:$LINENO: checking for $ac_word" >&5
9318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9319 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322 if test -n "$ac_ct_MIG"; then
9323 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9324 else
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9327 do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332 ac_cv_prog_ac_ct_MIG="mig"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336 done
9337 done
9338
9339 fi
9340 fi
9341 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9342 if test -n "$ac_ct_MIG"; then
9343 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9344 echo "${ECHO_T}$ac_ct_MIG" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347 echo "${ECHO_T}no" >&6
9348 fi
9349
9350 MIG=$ac_ct_MIG
9351 else
9352 MIG="$ac_cv_prog_MIG"
9353 fi
9354
9355
9356 # ---------------------- #
9357 # Checks for libraries. #
9358 # ---------------------- #
9359
9360 # We might need to link with -lm; most simulators need it.
9361
9362 echo "$as_me:$LINENO: checking for main in -lm" >&5
9363 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9364 if test "${ac_cv_lib_m_main+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-lm $LIBS"
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375
9376
9377 int
9378 main ()
9379 {
9380 main ();
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag"
9395 || test ! -s conftest.err'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_lib_m_main=yes
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412 ac_cv_lib_m_main=no
9413 fi
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9417 fi
9418 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9419 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9420 if test $ac_cv_lib_m_main = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_LIBM 1
9423 _ACEOF
9424
9425 LIBS="-lm $LIBS"
9426
9427 fi
9428
9429
9430 # We need to link with -lw to get `wctype' on Solaris before Solaris
9431 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9432 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9433 # is known to have this problem). Therefore we avoid libw if we can.
9434 echo "$as_me:$LINENO: checking for wctype" >&5
9435 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9436 if test "${ac_cv_func_wctype+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439 cat >conftest.$ac_ext <<_ACEOF
9440 /* confdefs.h. */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9445 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9447 #define wctype innocuous_wctype
9448
9449 /* System header to define __stub macros and hopefully few prototypes,
9450 which can conflict with char wctype (); below.
9451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9452 <limits.h> exists even on freestanding compilers. */
9453
9454 #ifdef __STDC__
9455 # include <limits.h>
9456 #else
9457 # include <assert.h>
9458 #endif
9459
9460 #undef wctype
9461
9462 /* Override any gcc2 internal prototype to avoid an error. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 {
9466 #endif
9467 /* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9469 char wctype ();
9470 /* The GNU C library defines this for functions which it implements
9471 to always fail with ENOSYS. Some functions are actually named
9472 something starting with __ and the normal name is an alias. */
9473 #if defined (__stub_wctype) || defined (__stub___wctype)
9474 choke me
9475 #else
9476 char (*f) () = wctype;
9477 #endif
9478 #ifdef __cplusplus
9479 }
9480 #endif
9481
9482 int
9483 main ()
9484 {
9485 return f != wctype;
9486 ;
9487 return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_func_wctype=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_cv_func_wctype=no
9518 fi
9519 rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521 fi
9522 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9523 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9524 if test $ac_cv_func_wctype = yes; then
9525 :
9526 else
9527
9528 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9529 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9530 if test "${ac_cv_lib_w_wctype+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 ac_check_lib_save_LIBS=$LIBS
9534 LIBS="-lw $LIBS"
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541
9542 /* Override any gcc2 internal prototype to avoid an error. */
9543 #ifdef __cplusplus
9544 extern "C"
9545 #endif
9546 /* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9548 char wctype ();
9549 int
9550 main ()
9551 {
9552 wctype ();
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_lib_w_wctype=yes
9580 else
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584 ac_cv_lib_w_wctype=no
9585 fi
9586 rm -f conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588 LIBS=$ac_check_lib_save_LIBS
9589 fi
9590 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9591 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9592 if test $ac_cv_lib_w_wctype = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594 #define HAVE_LIBW 1
9595 _ACEOF
9596
9597 LIBS="-lw $LIBS"
9598
9599 fi
9600
9601 fi
9602
9603
9604 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9605 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9606 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9607 if test "${ac_cv_search_gethostbyname+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 ac_func_search_save_LIBS=$LIBS
9611 ac_cv_search_gethostbyname=no
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618
9619 /* Override any gcc2 internal prototype to avoid an error. */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 /* We use char because int might match the return type of a gcc2
9624 builtin and then its argument prototype would still apply. */
9625 char gethostbyname ();
9626 int
9627 main ()
9628 {
9629 gethostbyname ();
9630 ;
9631 return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_search_gethostbyname="none required"
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9660
9661 fi
9662 rm -f conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664 if test "$ac_cv_search_gethostbyname" = no; then
9665 for ac_lib in nsl; do
9666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673
9674 /* Override any gcc2 internal prototype to avoid an error. */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 /* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680 char gethostbyname ();
9681 int
9682 main ()
9683 {
9684 gethostbyname ();
9685 ;
9686 return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext conftest$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest$ac_exeext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_cv_search_gethostbyname="-l$ac_lib"
9712 break
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 fi
9718 rm -f conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 done
9721 fi
9722 LIBS=$ac_func_search_save_LIBS
9723 fi
9724 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9725 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9726 if test "$ac_cv_search_gethostbyname" != no; then
9727 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9728
9729 fi
9730
9731
9732 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9733 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9734 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9735 if test "${ac_cv_search_socketpair+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 ac_func_search_save_LIBS=$LIBS
9739 ac_cv_search_socketpair=no
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h. */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746
9747 /* Override any gcc2 internal prototype to avoid an error. */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 /* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9753 char socketpair ();
9754 int
9755 main ()
9756 {
9757 socketpair ();
9758 ;
9759 return 0;
9760 }
9761 _ACEOF
9762 rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_search_socketpair="none required"
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789 fi
9790 rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 if test "$ac_cv_search_socketpair" = no; then
9793 for ac_lib in socket; do
9794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801
9802 /* Override any gcc2 internal prototype to avoid an error. */
9803 #ifdef __cplusplus
9804 extern "C"
9805 #endif
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9808 char socketpair ();
9809 int
9810 main ()
9811 {
9812 socketpair ();
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_search_socketpair="-l$ac_lib"
9840 break
9841 else
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 fi
9846 rm -f conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 done
9849 fi
9850 LIBS=$ac_func_search_save_LIBS
9851 fi
9852 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9853 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9854 if test "$ac_cv_search_socketpair" != no; then
9855 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9856
9857 fi
9858
9859
9860 # Link in zlib if we can. This allows us to read compressed debug sections.
9861 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9862 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9863 if test "${ac_cv_search_zlibVersion+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866 ac_func_search_save_LIBS=$LIBS
9867 ac_cv_search_zlibVersion=no
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874
9875 /* Override any gcc2 internal prototype to avoid an error. */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881 char zlibVersion ();
9882 int
9883 main ()
9884 {
9885 zlibVersion ();
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_zlibVersion="none required"
9913 else
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 fi
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 if test "$ac_cv_search_zlibVersion" = no; then
9921 for ac_lib in z; do
9922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929
9930 /* Override any gcc2 internal prototype to avoid an error. */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936 char zlibVersion ();
9937 int
9938 main ()
9939 {
9940 zlibVersion ();
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_search_zlibVersion="-l$ac_lib"
9968 break
9969 else
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 fi
9974 rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 done
9977 fi
9978 LIBS=$ac_func_search_save_LIBS
9979 fi
9980 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9981 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9982 if test "$ac_cv_search_zlibVersion" != no; then
9983 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9984
9985 for ac_header in zlib.h
9986 do
9987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9989 echo "$as_me:$LINENO: checking for $ac_header" >&5
9990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 fi
9994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9996 else
9997 # Is the header compilable?
9998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h. */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 $ac_includes_default
10007 #include <$ac_header>
10008 _ACEOF
10009 rm -f conftest.$ac_objext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011 (eval $ac_compile) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest.$ac_objext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_header_compiler=yes
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 ac_header_compiler=no
10037 fi
10038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10040 echo "${ECHO_T}$ac_header_compiler" >&6
10041
10042 # Is the header present?
10043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 #include <$ac_header>
10052 _ACEOF
10053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } >/dev/null; then
10061 if test -s conftest.err; then
10062 ac_cpp_err=$ac_c_preproc_warn_flag
10063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10064 else
10065 ac_cpp_err=
10066 fi
10067 else
10068 ac_cpp_err=yes
10069 fi
10070 if test -z "$ac_cpp_err"; then
10071 ac_header_preproc=yes
10072 else
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_header_preproc=no
10077 fi
10078 rm -f conftest.err conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10080 echo "${ECHO_T}$ac_header_preproc" >&6
10081
10082 # So? What about this header?
10083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10084 yes:no: )
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10089 ac_header_preproc=yes
10090 ;;
10091 no:yes:* )
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10104 (
10105 cat <<\_ASBOX
10106 ## ------------------------------------------ ##
10107 ## Report this to the AC_PACKAGE_NAME lists. ##
10108 ## ------------------------------------------ ##
10109 _ASBOX
10110 ) |
10111 sed "s/^/$as_me: WARNING: /" >&2
10112 ;;
10113 esac
10114 echo "$as_me:$LINENO: checking for $ac_header" >&5
10115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 eval "$as_ac_Header=\$ac_header_preproc"
10120 fi
10121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10123
10124 fi
10125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10128 _ACEOF
10129
10130 fi
10131
10132 done
10133
10134 fi
10135
10136
10137 # For the TUI, we need enhanced curses functionality.
10138 #
10139 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10140 # curses library because the latter might not provide all the
10141 # functionality we need. However, this leads to problems on systems
10142 # where the linker searches /usr/local/lib, but the compiler doesn't
10143 # search /usr/local/include, if ncurses is installed in /usr/local. A
10144 # default installation of ncurses on alpha*-dec-osf* will lead to such
10145 # a situation.
10146 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10147 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10148 if test "${ac_cv_search_waddstr+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 ac_func_search_save_LIBS=$LIBS
10152 ac_cv_search_waddstr=no
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h. */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159
10160 /* Override any gcc2 internal prototype to avoid an error. */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166 char waddstr ();
10167 int
10168 main ()
10169 {
10170 waddstr ();
10171 ;
10172 return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_search_waddstr="none required"
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 fi
10203 rm -f conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 if test "$ac_cv_search_waddstr" = no; then
10206 for ac_lib in ncurses cursesX curses; do
10207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h. */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10214
10215 /* Override any gcc2 internal prototype to avoid an error. */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221 char waddstr ();
10222 int
10223 main ()
10224 {
10225 waddstr ();
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232 (eval $ac_link) 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -z "$ac_c_werror_flag"
10240 || test ! -s conftest.err'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest$ac_exeext'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 ac_cv_search_waddstr="-l$ac_lib"
10253 break
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258 fi
10259 rm -f conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 done
10262 fi
10263 LIBS=$ac_func_search_save_LIBS
10264 fi
10265 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10266 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10267 if test "$ac_cv_search_waddstr" != no; then
10268 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10269
10270 fi
10271
10272
10273 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10274 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10275 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10276 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 ac_func_search_save_LIBS=$LIBS
10280 ac_cv_search_dlgetmodinfo=no
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287
10288 /* Override any gcc2 internal prototype to avoid an error. */
10289 #ifdef __cplusplus
10290 extern "C"
10291 #endif
10292 /* We use char because int might match the return type of a gcc2
10293 builtin and then its argument prototype would still apply. */
10294 char dlgetmodinfo ();
10295 int
10296 main ()
10297 {
10298 dlgetmodinfo ();
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -z "$ac_c_werror_flag"
10313 || test ! -s conftest.err'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_search_dlgetmodinfo="none required"
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10329
10330 fi
10331 rm -f conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 if test "$ac_cv_search_dlgetmodinfo" = no; then
10334 for ac_lib in dl xpdl; do
10335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342
10343 /* Override any gcc2 internal prototype to avoid an error. */
10344 #ifdef __cplusplus
10345 extern "C"
10346 #endif
10347 /* We use char because int might match the return type of a gcc2
10348 builtin and then its argument prototype would still apply. */
10349 char dlgetmodinfo ();
10350 int
10351 main ()
10352 {
10353 dlgetmodinfo ();
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360 (eval $ac_link) 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10381 break
10382 else
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 fi
10387 rm -f conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10389 done
10390 fi
10391 LIBS=$ac_func_search_save_LIBS
10392 fi
10393 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10394 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10395 if test "$ac_cv_search_dlgetmodinfo" != no; then
10396 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10397
10398 fi
10399
10400
10401 # Since GDB uses Readline, we need termcap functionality. In many
10402 # cases this will be provided by the curses library, but some systems
10403 # have a seperate termcap library, or no curses library at all.
10404
10405 case $host_os in
10406 cygwin*)
10407 if test -d $srcdir/libtermcap; then
10408 LIBS="../libtermcap/libtermcap.a $LIBS"
10409 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10410 fi ;;
10411 go32* | *djgpp*)
10412 ac_cv_search_tgetent="none required"
10413 ;;
10414 *mingw32*)
10415 ac_cv_search_tgetent="none required"
10416 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10417 ;;
10418 esac
10419
10420 # These are the libraries checked by Readline.
10421 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10422 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10423 if test "${ac_cv_search_tgetent+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426 ac_func_search_save_LIBS=$LIBS
10427 ac_cv_search_tgetent=no
10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h. */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434
10435 /* Override any gcc2 internal prototype to avoid an error. */
10436 #ifdef __cplusplus
10437 extern "C"
10438 #endif
10439 /* We use char because int might match the return type of a gcc2
10440 builtin and then its argument prototype would still apply. */
10441 char tgetent ();
10442 int
10443 main ()
10444 {
10445 tgetent ();
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag"
10460 || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_search_tgetent="none required"
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477 fi
10478 rm -f conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480 if test "$ac_cv_search_tgetent" = no; then
10481 for ac_lib in termcap tinfo curses ncurses; do
10482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489
10490 /* Override any gcc2 internal prototype to avoid an error. */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 /* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
10496 char tgetent ();
10497 int
10498 main ()
10499 {
10500 tgetent ();
10501 ;
10502 return 0;
10503 }
10504 _ACEOF
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -z "$ac_c_werror_flag"
10515 || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_search_tgetent="-l$ac_lib"
10528 break
10529 else
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 fi
10534 rm -f conftest.err conftest.$ac_objext \
10535 conftest$ac_exeext conftest.$ac_ext
10536 done
10537 fi
10538 LIBS=$ac_func_search_save_LIBS
10539 fi
10540 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10541 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10542 if test "$ac_cv_search_tgetent" != no; then
10543 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10544
10545 fi
10546
10547
10548 if test "$ac_cv_search_tgetent" = no; then
10549 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10550 echo "$as_me: error: no termcap library found" >&2;}
10551 { (exit 1); exit 1; }; }
10552 fi
10553
10554
10555 # Check whether --with-system-readline or --without-system-readline was given.
10556 if test "${with_system_readline+set}" = set; then
10557 withval="$with_system_readline"
10558
10559 fi;
10560
10561 if test "$with_system_readline" = yes; then
10562 READLINE=-lreadline
10563 READLINE_DEPS=
10564 READLINE_CFLAGS=
10565 else
10566 READLINE='$(READLINE_DIR)/libreadline.a'
10567 READLINE_DEPS='$(READLINE)'
10568 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10569 fi
10570
10571
10572
10573
10574
10575 # Check whether --with-expat or --without-expat was given.
10576 if test "${with_expat+set}" = set; then
10577 withval="$with_expat"
10578
10579 else
10580 with_expat=auto
10581 fi;
10582 echo "$as_me:$LINENO: checking whether to use expat" >&5
10583 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10584 echo "$as_me:$LINENO: result: $with_expat" >&5
10585 echo "${ECHO_T}$with_expat" >&6
10586
10587 if test "${with_expat}" = no; then
10588 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10589 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10590 HAVE_LIBEXPAT=no
10591 else
10592
10593 if test "X$prefix" = "XNONE"; then
10594 acl_final_prefix="$ac_default_prefix"
10595 else
10596 acl_final_prefix="$prefix"
10597 fi
10598 if test "X$exec_prefix" = "XNONE"; then
10599 acl_final_exec_prefix='${prefix}'
10600 else
10601 acl_final_exec_prefix="$exec_prefix"
10602 fi
10603 acl_save_prefix="$prefix"
10604 prefix="$acl_final_prefix"
10605 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10606 prefix="$acl_save_prefix"
10607
10608
10609 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10610 if test "${with_gnu_ld+set}" = set; then
10611 withval="$with_gnu_ld"
10612 test "$withval" = no || with_gnu_ld=yes
10613 else
10614 with_gnu_ld=no
10615 fi;
10616 # Prepare PATH_SEPARATOR.
10617 # The user is always right.
10618 if test "${PATH_SEPARATOR+set}" != set; then
10619 echo "#! /bin/sh" >conf$$.sh
10620 echo "exit 0" >>conf$$.sh
10621 chmod +x conf$$.sh
10622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10623 PATH_SEPARATOR=';'
10624 else
10625 PATH_SEPARATOR=:
10626 fi
10627 rm -f conf$$.sh
10628 fi
10629 ac_prog=ld
10630 if test "$GCC" = yes; then
10631 # Check if gcc -print-prog-name=ld gives a path.
10632 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10633 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10634 case $host in
10635 *-*-mingw*)
10636 # gcc leaves a trailing carriage return which upsets mingw
10637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10638 *)
10639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10640 esac
10641 case $ac_prog in
10642 # Accept absolute paths.
10643 [\\/]* | [A-Za-z]:[\\/]*)
10644 re_direlt='/[^/][^/]*/\.\./'
10645 # Canonicalize the path of ld
10646 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10647 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10648 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10649 done
10650 test -z "$LD" && LD="$ac_prog"
10651 ;;
10652 "")
10653 # If it fails, then pretend we aren't using GCC.
10654 ac_prog=ld
10655 ;;
10656 *)
10657 # If it is relative, then search for the first ld in PATH.
10658 with_gnu_ld=unknown
10659 ;;
10660 esac
10661 elif test "$with_gnu_ld" = yes; then
10662 echo "$as_me:$LINENO: checking for GNU ld" >&5
10663 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10664 else
10665 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10666 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10667 fi
10668 if test "${acl_cv_path_LD+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671 if test -z "$LD"; then
10672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10673 for ac_dir in $PATH; do
10674 test -z "$ac_dir" && ac_dir=.
10675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10676 acl_cv_path_LD="$ac_dir/$ac_prog"
10677 # Check to see if the program is GNU ld. I'd rather use --version,
10678 # but apparently some GNU ld's only accept -v.
10679 # Break only if it was the GNU/non-GNU ld that we prefer.
10680 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10681 test "$with_gnu_ld" != no && break
10682 else
10683 test "$with_gnu_ld" != yes && break
10684 fi
10685 fi
10686 done
10687 IFS="$ac_save_ifs"
10688 else
10689 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10690 fi
10691 fi
10692
10693 LD="$acl_cv_path_LD"
10694 if test -n "$LD"; then
10695 echo "$as_me:$LINENO: result: $LD" >&5
10696 echo "${ECHO_T}$LD" >&6
10697 else
10698 echo "$as_me:$LINENO: result: no" >&5
10699 echo "${ECHO_T}no" >&6
10700 fi
10701 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10702 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10703 { (exit 1); exit 1; }; }
10704 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10705 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10706 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10710 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10711 acl_cv_prog_gnu_ld=yes
10712 else
10713 acl_cv_prog_gnu_ld=no
10714 fi
10715 fi
10716 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10717 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10718 with_gnu_ld=$acl_cv_prog_gnu_ld
10719
10720
10721
10722 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10723 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10724 if test "${acl_cv_rpath+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727
10728 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10729 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10730 . ./conftest.sh
10731 rm -f ./conftest.sh
10732 acl_cv_rpath=done
10733
10734 fi
10735 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10736 echo "${ECHO_T}$acl_cv_rpath" >&6
10737 wl="$acl_cv_wl"
10738 libext="$acl_cv_libext"
10739 shlibext="$acl_cv_shlibext"
10740 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10741 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10742 hardcode_direct="$acl_cv_hardcode_direct"
10743 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10744 # Check whether --enable-rpath or --disable-rpath was given.
10745 if test "${enable_rpath+set}" = set; then
10746 enableval="$enable_rpath"
10747 :
10748 else
10749 enable_rpath=yes
10750 fi;
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760 use_additional=yes
10761
10762 acl_save_prefix="$prefix"
10763 prefix="$acl_final_prefix"
10764 acl_save_exec_prefix="$exec_prefix"
10765 exec_prefix="$acl_final_exec_prefix"
10766
10767 eval additional_includedir=\"$includedir\"
10768 eval additional_libdir=\"$libdir\"
10769
10770 exec_prefix="$acl_save_exec_prefix"
10771 prefix="$acl_save_prefix"
10772
10773
10774 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10775 if test "${with_libexpat_prefix+set}" = set; then
10776 withval="$with_libexpat_prefix"
10777
10778 if test "X$withval" = "Xno"; then
10779 use_additional=no
10780 else
10781 if test "X$withval" = "X"; then
10782
10783 acl_save_prefix="$prefix"
10784 prefix="$acl_final_prefix"
10785 acl_save_exec_prefix="$exec_prefix"
10786 exec_prefix="$acl_final_exec_prefix"
10787
10788 eval additional_includedir=\"$includedir\"
10789 eval additional_libdir=\"$libdir\"
10790
10791 exec_prefix="$acl_save_exec_prefix"
10792 prefix="$acl_save_prefix"
10793
10794 else
10795 additional_includedir="$withval/include"
10796 additional_libdir="$withval/lib"
10797 fi
10798 fi
10799
10800 fi;
10801 LIBEXPAT=
10802 LTLIBEXPAT=
10803 INCEXPAT=
10804 rpathdirs=
10805 ltrpathdirs=
10806 names_already_handled=
10807 names_next_round='expat '
10808 while test -n "$names_next_round"; do
10809 names_this_round="$names_next_round"
10810 names_next_round=
10811 for name in $names_this_round; do
10812 already_handled=
10813 for n in $names_already_handled; do
10814 if test "$n" = "$name"; then
10815 already_handled=yes
10816 break
10817 fi
10818 done
10819 if test -z "$already_handled"; then
10820 names_already_handled="$names_already_handled $name"
10821 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10822 eval value=\"\$HAVE_LIB$uppername\"
10823 if test -n "$value"; then
10824 if test "$value" = yes; then
10825 eval value=\"\$LIB$uppername\"
10826 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10827 eval value=\"\$LTLIB$uppername\"
10828 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10829 else
10830 :
10831 fi
10832 else
10833 found_dir=
10834 found_la=
10835 found_so=
10836 found_a=
10837 if test $use_additional = yes; then
10838 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10839 found_dir="$additional_libdir"
10840 found_so="$additional_libdir/lib$name.$shlibext"
10841 if test -f "$additional_libdir/lib$name.la"; then
10842 found_la="$additional_libdir/lib$name.la"
10843 fi
10844 else
10845 if test -f "$additional_libdir/lib$name.$libext"; then
10846 found_dir="$additional_libdir"
10847 found_a="$additional_libdir/lib$name.$libext"
10848 if test -f "$additional_libdir/lib$name.la"; then
10849 found_la="$additional_libdir/lib$name.la"
10850 fi
10851 fi
10852 fi
10853 fi
10854 if test "X$found_dir" = "X"; then
10855 for x in $LDFLAGS $LTLIBEXPAT; do
10856
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10864
10865 case "$x" in
10866 -L*)
10867 dir=`echo "X$x" | sed -e 's/^X-L//'`
10868 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10869 found_dir="$dir"
10870 found_so="$dir/lib$name.$shlibext"
10871 if test -f "$dir/lib$name.la"; then
10872 found_la="$dir/lib$name.la"
10873 fi
10874 else
10875 if test -f "$dir/lib$name.$libext"; then
10876 found_dir="$dir"
10877 found_a="$dir/lib$name.$libext"
10878 if test -f "$dir/lib$name.la"; then
10879 found_la="$dir/lib$name.la"
10880 fi
10881 fi
10882 fi
10883 ;;
10884 esac
10885 if test "X$found_dir" != "X"; then
10886 break
10887 fi
10888 done
10889 fi
10890 if test "X$found_dir" != "X"; then
10891 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10892 if test "X$found_so" != "X"; then
10893 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10894 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10895 else
10896 haveit=
10897 for x in $ltrpathdirs; do
10898 if test "X$x" = "X$found_dir"; then
10899 haveit=yes
10900 break
10901 fi
10902 done
10903 if test -z "$haveit"; then
10904 ltrpathdirs="$ltrpathdirs $found_dir"
10905 fi
10906 if test "$hardcode_direct" = yes; then
10907 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10908 else
10909 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10910 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10911 haveit=
10912 for x in $rpathdirs; do
10913 if test "X$x" = "X$found_dir"; then
10914 haveit=yes
10915 break
10916 fi
10917 done
10918 if test -z "$haveit"; then
10919 rpathdirs="$rpathdirs $found_dir"
10920 fi
10921 else
10922 haveit=
10923 for x in $LDFLAGS $LIBEXPAT; do
10924
10925 acl_save_prefix="$prefix"
10926 prefix="$acl_final_prefix"
10927 acl_save_exec_prefix="$exec_prefix"
10928 exec_prefix="$acl_final_exec_prefix"
10929 eval x=\"$x\"
10930 exec_prefix="$acl_save_exec_prefix"
10931 prefix="$acl_save_prefix"
10932
10933 if test "X$x" = "X-L$found_dir"; then
10934 haveit=yes
10935 break
10936 fi
10937 done
10938 if test -z "$haveit"; then
10939 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10940 fi
10941 if test "$hardcode_minus_L" != no; then
10942 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10943 else
10944 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10945 fi
10946 fi
10947 fi
10948 fi
10949 else
10950 if test "X$found_a" != "X"; then
10951 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10952 else
10953 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10954 fi
10955 fi
10956 additional_includedir=
10957 case "$found_dir" in
10958 */lib | */lib/)
10959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10960 additional_includedir="$basedir/include"
10961 ;;
10962 esac
10963 if test "X$additional_includedir" != "X"; then
10964 if test "X$additional_includedir" != "X/usr/include"; then
10965 haveit=
10966 if test "X$additional_includedir" = "X/usr/local/include"; then
10967 if test -n "$GCC"; then
10968 case $host_os in
10969 linux*) haveit=yes;;
10970 esac
10971 fi
10972 fi
10973 if test -z "$haveit"; then
10974 for x in $CPPFLAGS $INCEXPAT; do
10975
10976 acl_save_prefix="$prefix"
10977 prefix="$acl_final_prefix"
10978 acl_save_exec_prefix="$exec_prefix"
10979 exec_prefix="$acl_final_exec_prefix"
10980 eval x=\"$x\"
10981 exec_prefix="$acl_save_exec_prefix"
10982 prefix="$acl_save_prefix"
10983
10984 if test "X$x" = "X-I$additional_includedir"; then
10985 haveit=yes
10986 break
10987 fi
10988 done
10989 if test -z "$haveit"; then
10990 if test -d "$additional_includedir"; then
10991 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10992 fi
10993 fi
10994 fi
10995 fi
10996 fi
10997 if test -n "$found_la"; then
10998 save_libdir="$libdir"
10999 case "$found_la" in
11000 */* | *\\*) . "$found_la" ;;
11001 *) . "./$found_la" ;;
11002 esac
11003 libdir="$save_libdir"
11004 for dep in $dependency_libs; do
11005 case "$dep" in
11006 -L*)
11007 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11008 if test "X$additional_libdir" != "X/usr/lib"; then
11009 haveit=
11010 if test "X$additional_libdir" = "X/usr/local/lib"; then
11011 if test -n "$GCC"; then
11012 case $host_os in
11013 linux*) haveit=yes;;
11014 esac
11015 fi
11016 fi
11017 if test -z "$haveit"; then
11018 haveit=
11019 for x in $LDFLAGS $LIBEXPAT; do
11020
11021 acl_save_prefix="$prefix"
11022 prefix="$acl_final_prefix"
11023 acl_save_exec_prefix="$exec_prefix"
11024 exec_prefix="$acl_final_exec_prefix"
11025 eval x=\"$x\"
11026 exec_prefix="$acl_save_exec_prefix"
11027 prefix="$acl_save_prefix"
11028
11029 if test "X$x" = "X-L$additional_libdir"; then
11030 haveit=yes
11031 break
11032 fi
11033 done
11034 if test -z "$haveit"; then
11035 if test -d "$additional_libdir"; then
11036 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11037 fi
11038 fi
11039 haveit=
11040 for x in $LDFLAGS $LTLIBEXPAT; do
11041
11042 acl_save_prefix="$prefix"
11043 prefix="$acl_final_prefix"
11044 acl_save_exec_prefix="$exec_prefix"
11045 exec_prefix="$acl_final_exec_prefix"
11046 eval x=\"$x\"
11047 exec_prefix="$acl_save_exec_prefix"
11048 prefix="$acl_save_prefix"
11049
11050 if test "X$x" = "X-L$additional_libdir"; then
11051 haveit=yes
11052 break
11053 fi
11054 done
11055 if test -z "$haveit"; then
11056 if test -d "$additional_libdir"; then
11057 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11058 fi
11059 fi
11060 fi
11061 fi
11062 ;;
11063 -R*)
11064 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11065 if test "$enable_rpath" != no; then
11066 haveit=
11067 for x in $rpathdirs; do
11068 if test "X$x" = "X$dir"; then
11069 haveit=yes
11070 break
11071 fi
11072 done
11073 if test -z "$haveit"; then
11074 rpathdirs="$rpathdirs $dir"
11075 fi
11076 haveit=
11077 for x in $ltrpathdirs; do
11078 if test "X$x" = "X$dir"; then
11079 haveit=yes
11080 break
11081 fi
11082 done
11083 if test -z "$haveit"; then
11084 ltrpathdirs="$ltrpathdirs $dir"
11085 fi
11086 fi
11087 ;;
11088 -l*)
11089 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11090 ;;
11091 *.la)
11092 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11093 ;;
11094 *)
11095 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11096 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11097 ;;
11098 esac
11099 done
11100 fi
11101 else
11102 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11103 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11104 fi
11105 fi
11106 fi
11107 done
11108 done
11109 if test "X$rpathdirs" != "X"; then
11110 if test -n "$hardcode_libdir_separator"; then
11111 alldirs=
11112 for found_dir in $rpathdirs; do
11113 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11114 done
11115 acl_save_libdir="$libdir"
11116 libdir="$alldirs"
11117 eval flag=\"$hardcode_libdir_flag_spec\"
11118 libdir="$acl_save_libdir"
11119 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11120 else
11121 for found_dir in $rpathdirs; do
11122 acl_save_libdir="$libdir"
11123 libdir="$found_dir"
11124 eval flag=\"$hardcode_libdir_flag_spec\"
11125 libdir="$acl_save_libdir"
11126 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11127 done
11128 fi
11129 fi
11130 if test "X$ltrpathdirs" != "X"; then
11131 for found_dir in $ltrpathdirs; do
11132 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11133 done
11134 fi
11135
11136
11137 ac_save_CPPFLAGS="$CPPFLAGS"
11138
11139 for element in $INCEXPAT; do
11140 haveit=
11141 for x in $CPPFLAGS; do
11142
11143 acl_save_prefix="$prefix"
11144 prefix="$acl_final_prefix"
11145 acl_save_exec_prefix="$exec_prefix"
11146 exec_prefix="$acl_final_exec_prefix"
11147 eval x=\"$x\"
11148 exec_prefix="$acl_save_exec_prefix"
11149 prefix="$acl_save_prefix"
11150
11151 if test "X$x" = "X$element"; then
11152 haveit=yes
11153 break
11154 fi
11155 done
11156 if test -z "$haveit"; then
11157 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11158 fi
11159 done
11160
11161
11162 echo "$as_me:$LINENO: checking for libexpat" >&5
11163 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11164 if test "${ac_cv_libexpat+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167
11168 ac_save_LIBS="$LIBS"
11169 LIBS="$LIBS $LIBEXPAT"
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h. */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 #include "expat.h"
11177 int
11178 main ()
11179 {
11180 XML_Parser p = XML_ParserCreate (0);
11181 ;
11182 return 0;
11183 }
11184 _ACEOF
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_libexpat=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 ac_cv_libexpat=no
11213 fi
11214 rm -f conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS="$ac_save_LIBS"
11217
11218 fi
11219 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11220 echo "${ECHO_T}$ac_cv_libexpat" >&6
11221 if test "$ac_cv_libexpat" = yes; then
11222 HAVE_LIBEXPAT=yes
11223
11224 cat >>confdefs.h <<\_ACEOF
11225 #define HAVE_LIBEXPAT 1
11226 _ACEOF
11227
11228 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11229 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11230 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11231 echo "${ECHO_T}$LIBEXPAT" >&6
11232 else
11233 HAVE_LIBEXPAT=no
11234 CPPFLAGS="$ac_save_CPPFLAGS"
11235 LIBEXPAT=
11236 LTLIBEXPAT=
11237 fi
11238
11239
11240
11241
11242
11243
11244 if test "$HAVE_LIBEXPAT" != yes; then
11245 if test "$with_expat" = yes; then
11246 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11247 echo "$as_me: error: expat is missing or unusable" >&2;}
11248 { (exit 1); exit 1; }; }
11249 else
11250 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11251 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11252 fi
11253 else
11254 save_LIBS=$LIBS
11255 LIBS="$LIBS $LIBEXPAT"
11256
11257 for ac_func in XML_StopParser
11258 do
11259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11260 echo "$as_me:$LINENO: checking for $ac_func" >&5
11261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11262 if eval "test \"\${$as_ac_var+set}\" = set"; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h. */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11273 #define $ac_func innocuous_$ac_func
11274
11275 /* System header to define __stub macros and hopefully few prototypes,
11276 which can conflict with char $ac_func (); below.
11277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11278 <limits.h> exists even on freestanding compilers. */
11279
11280 #ifdef __STDC__
11281 # include <limits.h>
11282 #else
11283 # include <assert.h>
11284 #endif
11285
11286 #undef $ac_func
11287
11288 /* Override any gcc2 internal prototype to avoid an error. */
11289 #ifdef __cplusplus
11290 extern "C"
11291 {
11292 #endif
11293 /* We use char because int might match the return type of a gcc2
11294 builtin and then its argument prototype would still apply. */
11295 char $ac_func ();
11296 /* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11300 choke me
11301 #else
11302 char (*f) () = $ac_func;
11303 #endif
11304 #ifdef __cplusplus
11305 }
11306 #endif
11307
11308 int
11309 main ()
11310 {
11311 return f != $ac_func;
11312 ;
11313 return 0;
11314 }
11315 _ACEOF
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag"
11326 || test ! -s conftest.err'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; } &&
11332 { ac_try='test -s conftest$ac_exeext'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 eval "$as_ac_var=yes"
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 eval "$as_ac_var=no"
11344 fi
11345 rm -f conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 fi
11348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11350 if test `eval echo '${'$as_ac_var'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11353 _ACEOF
11354
11355 fi
11356 done
11357
11358 LIBS=$save_LIBS
11359 fi
11360 fi
11361
11362
11363
11364
11365 # Check whether --with-python or --without-python was given.
11366 if test "${with_python+set}" = set; then
11367 withval="$with_python"
11368
11369 else
11370 with_python=auto
11371 fi;
11372 echo "$as_me:$LINENO: checking whether to use python" >&5
11373 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11374 echo "$as_me:$LINENO: result: $with_python" >&5
11375 echo "${ECHO_T}$with_python" >&6
11376
11377 if test "${with_python}" = no; then
11378 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11379 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11380 have_libpython=no
11381 else
11382 case "${with_python}" in
11383 yes | auto)
11384 # Leave as empty, use defaults.
11385 python_includes=
11386 python_libs=
11387 ;;
11388 /*)
11389 python_includes="-I${with_python}/include"
11390 python_libs="-L${with_python}/lib"
11391 ;;
11392 *)
11393 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11394 echo "$as_me: error: invalid value for --with-python" >&2;}
11395 { (exit 1); exit 1; }; }
11396 ;;
11397 esac
11398
11399 save_CPPFLAGS=$CPPFLAGS
11400 CPPFLAGS="$CPPFLAGS ${python_includes}"
11401 save_LIBS=$LIBS
11402 LIBS="$LIBS ${python_libs}"
11403 have_libpython=no
11404 if test "${have_libpython}" = no; then
11405
11406 version=python2.6
11407
11408
11409 HAVE_LIBPYTHON2_6=no
11410 echo "$as_me:$LINENO: checking for ${version}" >&5
11411 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11412 save_LIBS=$LIBS
11413 LIBS="$LIBS -l${version}"
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 #include "${version}/Python.h"
11421 int
11422 main ()
11423 {
11424 Py_Initialize ();
11425 ;
11426 return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag"
11439 || test ! -s conftest.err'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest$ac_exeext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 HAVE_LIBPYTHON2_6=yes
11452 have_libpython=yes
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457 LIBS=$save_LIBS
11458 fi
11459 rm -f conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11461 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11462 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11463
11464 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11465
11466 cat >>confdefs.h <<\_ACEOF
11467 #define HAVE_LIBPYTHON2_6 1
11468 _ACEOF
11469
11470 fi
11471 fi
11472 if test ${have_libpython} = no; then
11473
11474 version=python2.5
11475
11476
11477 HAVE_LIBPYTHON2_5=no
11478 echo "$as_me:$LINENO: checking for ${version}" >&5
11479 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11480 save_LIBS=$LIBS
11481 LIBS="$LIBS -l${version}"
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 #include "${version}/Python.h"
11489 int
11490 main ()
11491 {
11492 Py_Initialize ();
11493 ;
11494 return 0;
11495 }
11496 _ACEOF
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499 (eval $ac_link) 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag"
11507 || test ! -s conftest.err'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try='test -s conftest$ac_exeext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 HAVE_LIBPYTHON2_5=yes
11520 have_libpython=yes
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 LIBS=$save_LIBS
11526 fi
11527 rm -f conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11530 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11531
11532 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11533
11534 cat >>confdefs.h <<\_ACEOF
11535 #define HAVE_LIBPYTHON2_5 1
11536 _ACEOF
11537
11538 fi
11539 fi
11540 if test ${have_libpython} = no; then
11541
11542 version=python2.4
11543
11544
11545 HAVE_LIBPYTHON2_4=no
11546 echo "$as_me:$LINENO: checking for ${version}" >&5
11547 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11548 save_LIBS=$LIBS
11549 LIBS="$LIBS -l${version}"
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h. */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #include "${version}/Python.h"
11557 int
11558 main ()
11559 {
11560 Py_Initialize ();
11561 ;
11562 return 0;
11563 }
11564 _ACEOF
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567 (eval $ac_link) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag"
11575 || test ! -s conftest.err'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try='test -s conftest$ac_exeext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 HAVE_LIBPYTHON2_4=yes
11588 have_libpython=yes
11589 else
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593 LIBS=$save_LIBS
11594 fi
11595 rm -f conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11598 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11599
11600 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11601
11602 cat >>confdefs.h <<\_ACEOF
11603 #define HAVE_LIBPYTHON2_4 1
11604 _ACEOF
11605
11606 fi
11607 fi
11608 if test ${have_libpython} = no; then
11609 case "${with_python}" in
11610 yes)
11611 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11612 echo "$as_me: error: python is missing or unusable" >&2;}
11613 { (exit 1); exit 1; }; }
11614 ;;
11615 auto)
11616 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11617 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11618 ;;
11619 *)
11620 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11621 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11622 { (exit 1); exit 1; }; }
11623 ;;
11624 esac
11625 CPPFLAGS=$save_CPPFLAGS
11626 LIBS=$save_LIBS
11627 fi
11628 fi
11629
11630 if test "${have_libpython}" = yes; then
11631
11632 cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_PYTHON 1
11634 _ACEOF
11635
11636 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11637 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11638 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11639 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11640
11641 # Flags needed to compile Python code (taken from python-config --cflags).
11642 # We cannot call python-config directly because it will output whatever was
11643 # used when compiling the Python interpreter itself, including flags which
11644 # would make the python-related objects be compiled differently from the
11645 # rest of GDB (e.g., -O2 and -fPIC).
11646 if test "${GCC}" = yes; then
11647 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11648 fi
11649
11650 if test "x${tentative_python_cflags}" != x; then
11651 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11652 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11653 for flag in ${tentative_python_cflags}; do
11654 # Check that the compiler accepts it
11655 saved_CFLAGS="$CFLAGS"
11656 CFLAGS="$CFLAGS $flag"
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663
11664 int
11665 main ()
11666 {
11667
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11674 (eval $ac_compile) 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -z "$ac_c_werror_flag"
11682 || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 fi
11700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11701 CFLAGS="$saved_CFLAGS"
11702 done
11703 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11704 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11705 fi
11706 else
11707 # Even if Python support is not compiled in, we need to have this file
11708 # included in order to recognize the GDB command "python".
11709 CONFIG_OBS="$CONFIG_OBS python.o"
11710 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
11711 fi
11712
11713
11714 # ------------------------- #
11715 # Checks for header files. #
11716 # ------------------------- #
11717
11718
11719
11720
11721
11722
11723 ac_header_dirent=no
11724 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11725 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11726 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11727 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 #include <sys/types.h>
11738 #include <$ac_hdr>
11739
11740 int
11741 main ()
11742 {
11743 if ((DIR *) 0)
11744 return 0;
11745 ;
11746 return 0;
11747 }
11748 _ACEOF
11749 rm -f conftest.$ac_objext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751 (eval $ac_compile) 2>conftest.er1
11752 ac_status=$?
11753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag"
11759 || test ! -s conftest.err'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "$as_ac_Header=yes"
11772 else
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 eval "$as_ac_Header=no"
11777 fi
11778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779 fi
11780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11783 cat >>confdefs.h <<_ACEOF
11784 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11785 _ACEOF
11786
11787 ac_header_dirent=$ac_hdr; break
11788 fi
11789
11790 done
11791 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11792 if test $ac_header_dirent = dirent.h; then
11793 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11794 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11795 if test "${ac_cv_search_opendir+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 ac_func_search_save_LIBS=$LIBS
11799 ac_cv_search_opendir=no
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806
11807 /* Override any gcc2 internal prototype to avoid an error. */
11808 #ifdef __cplusplus
11809 extern "C"
11810 #endif
11811 /* We use char because int might match the return type of a gcc2
11812 builtin and then its argument prototype would still apply. */
11813 char opendir ();
11814 int
11815 main ()
11816 {
11817 opendir ();
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } &&
11831 { ac_try='test -z "$ac_c_werror_flag"
11832 || test ! -s conftest.err'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_search_opendir="none required"
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 fi
11850 rm -f conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852 if test "$ac_cv_search_opendir" = no; then
11853 for ac_lib in dir; do
11854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11855 cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h. */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861
11862 /* Override any gcc2 internal prototype to avoid an error. */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11868 char opendir ();
11869 int
11870 main ()
11871 {
11872 opendir ();
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_search_opendir="-l$ac_lib"
11900 break
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 fi
11906 rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 done
11909 fi
11910 LIBS=$ac_func_search_save_LIBS
11911 fi
11912 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11913 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11914 if test "$ac_cv_search_opendir" != no; then
11915 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11916
11917 fi
11918
11919 else
11920 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11921 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11922 if test "${ac_cv_search_opendir+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925 ac_func_search_save_LIBS=$LIBS
11926 ac_cv_search_opendir=no
11927 cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h. */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933
11934 /* Override any gcc2 internal prototype to avoid an error. */
11935 #ifdef __cplusplus
11936 extern "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. */
11940 char opendir ();
11941 int
11942 main ()
11943 {
11944 opendir ();
11945 ;
11946 return 0;
11947 }
11948 _ACEOF
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag"
11959 || test ! -s conftest.err'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest$ac_exeext'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 ac_cv_search_opendir="none required"
11972 else
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976 fi
11977 rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 if test "$ac_cv_search_opendir" = no; then
11980 for ac_lib in x; do
11981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988
11989 /* Override any gcc2 internal prototype to avoid an error. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 /* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
11995 char opendir ();
11996 int
11997 main ()
11998 {
11999 opendir ();
12000 ;
12001 return 0;
12002 }
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_search_opendir="-l$ac_lib"
12027 break
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 fi
12033 rm -f conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035 done
12036 fi
12037 LIBS=$ac_func_search_save_LIBS
12038 fi
12039 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12040 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12041 if test "$ac_cv_search_opendir" != no; then
12042 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12043
12044 fi
12045
12046 fi
12047
12048 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12049 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12050 if test "${ac_cv_header_stat_broken+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 #include <sys/types.h>
12060 #include <sys/stat.h>
12061
12062 #if defined(S_ISBLK) && defined(S_IFDIR)
12063 # if S_ISBLK (S_IFDIR)
12064 You lose.
12065 # endif
12066 #endif
12067
12068 #if defined(S_ISBLK) && defined(S_IFCHR)
12069 # if S_ISBLK (S_IFCHR)
12070 You lose.
12071 # endif
12072 #endif
12073
12074 #if defined(S_ISLNK) && defined(S_IFREG)
12075 # if S_ISLNK (S_IFREG)
12076 You lose.
12077 # endif
12078 #endif
12079
12080 #if defined(S_ISSOCK) && defined(S_IFREG)
12081 # if S_ISSOCK (S_IFREG)
12082 You lose.
12083 # endif
12084 #endif
12085
12086 _ACEOF
12087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12088 $EGREP "You lose" >/dev/null 2>&1; then
12089 ac_cv_header_stat_broken=yes
12090 else
12091 ac_cv_header_stat_broken=no
12092 fi
12093 rm -f conftest*
12094
12095 fi
12096 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12097 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12098 if test $ac_cv_header_stat_broken = yes; then
12099
12100 cat >>confdefs.h <<\_ACEOF
12101 #define STAT_MACROS_BROKEN 1
12102 _ACEOF
12103
12104 fi
12105
12106 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12108 if test "${ac_cv_header_stdc+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 #include <stdlib.h>
12118 #include <stdarg.h>
12119 #include <string.h>
12120 #include <float.h>
12121
12122 int
12123 main ()
12124 {
12125
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 rm -f conftest.$ac_objext
12131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12132 (eval $ac_compile) 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -z "$ac_c_werror_flag"
12140 || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_cv_header_stdc=yes
12153 else
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12156
12157 ac_cv_header_stdc=no
12158 fi
12159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160
12161 if test $ac_cv_header_stdc = yes; then
12162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 #include <string.h>
12170
12171 _ACEOF
12172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173 $EGREP "memchr" >/dev/null 2>&1; then
12174 :
12175 else
12176 ac_cv_header_stdc=no
12177 fi
12178 rm -f conftest*
12179
12180 fi
12181
12182 if test $ac_cv_header_stdc = yes; then
12183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h. */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 #include <stdlib.h>
12191
12192 _ACEOF
12193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12194 $EGREP "free" >/dev/null 2>&1; then
12195 :
12196 else
12197 ac_cv_header_stdc=no
12198 fi
12199 rm -f conftest*
12200
12201 fi
12202
12203 if test $ac_cv_header_stdc = yes; then
12204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12205 if test "$cross_compiling" = yes; then
12206 :
12207 else
12208 cat >conftest.$ac_ext <<_ACEOF
12209 /* confdefs.h. */
12210 _ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214 #include <ctype.h>
12215 #if ((' ' & 0x0FF) == 0x020)
12216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12218 #else
12219 # define ISLOWER(c) \
12220 (('a' <= (c) && (c) <= 'i') \
12221 || ('j' <= (c) && (c) <= 'r') \
12222 || ('s' <= (c) && (c) <= 'z'))
12223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12224 #endif
12225
12226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12227 int
12228 main ()
12229 {
12230 int i;
12231 for (i = 0; i < 256; i++)
12232 if (XOR (islower (i), ISLOWER (i))
12233 || toupper (i) != TOUPPER (i))
12234 exit(2);
12235 exit (0);
12236 }
12237 _ACEOF
12238 rm -f conftest$ac_exeext
12239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12240 (eval $ac_link) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 :
12250 else
12251 echo "$as_me: program exited with status $ac_status" >&5
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12254
12255 ( exit $ac_status )
12256 ac_cv_header_stdc=no
12257 fi
12258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12259 fi
12260 fi
12261 fi
12262 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12263 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12264 if test $ac_cv_header_stdc = yes; then
12265
12266 cat >>confdefs.h <<\_ACEOF
12267 #define STDC_HEADERS 1
12268 _ACEOF
12269
12270 fi
12271
12272
12273 for ac_header in nlist.h
12274 do
12275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12277 echo "$as_me:$LINENO: checking for $ac_header" >&5
12278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 fi
12282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12284 else
12285 # Is the header compilable?
12286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 $ac_includes_default
12295 #include <$ac_header>
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 (eval $ac_compile) 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_header_compiler=yes
12320 else
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 ac_header_compiler=no
12325 fi
12326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12328 echo "${ECHO_T}$ac_header_compiler" >&6
12329
12330 # Is the header present?
12331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 #include <$ac_header>
12340 _ACEOF
12341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } >/dev/null; then
12349 if test -s conftest.err; then
12350 ac_cpp_err=$ac_c_preproc_warn_flag
12351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12352 else
12353 ac_cpp_err=
12354 fi
12355 else
12356 ac_cpp_err=yes
12357 fi
12358 if test -z "$ac_cpp_err"; then
12359 ac_header_preproc=yes
12360 else
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 ac_header_preproc=no
12365 fi
12366 rm -f conftest.err conftest.$ac_ext
12367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12368 echo "${ECHO_T}$ac_header_preproc" >&6
12369
12370 # So? What about this header?
12371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12372 yes:no: )
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12377 ac_header_preproc=yes
12378 ;;
12379 no:yes:* )
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12392 (
12393 cat <<\_ASBOX
12394 ## ------------------------------------------ ##
12395 ## Report this to the AC_PACKAGE_NAME lists. ##
12396 ## ------------------------------------------ ##
12397 _ASBOX
12398 ) |
12399 sed "s/^/$as_me: WARNING: /" >&2
12400 ;;
12401 esac
12402 echo "$as_me:$LINENO: checking for $ac_header" >&5
12403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12407 eval "$as_ac_Header=\$ac_header_preproc"
12408 fi
12409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12411
12412 fi
12413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12414 cat >>confdefs.h <<_ACEOF
12415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12416 _ACEOF
12417
12418 fi
12419
12420 done
12421
12422
12423 for ac_header in link.h
12424 do
12425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12426 echo "$as_me:$LINENO: checking for $ac_header" >&5
12427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431 cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h. */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12437 #if HAVE_SYS_TYPES_H
12438 # include <sys/types.h>
12439 #endif
12440 #if HAVE_NLIST_H
12441 # include <nlist.h>
12442 #endif
12443
12444
12445 #include <$ac_header>
12446 _ACEOF
12447 rm -f conftest.$ac_objext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12449 (eval $ac_compile) 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -z "$ac_c_werror_flag"
12457 || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest.$ac_objext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 eval "$as_ac_Header=yes"
12470 else
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 eval "$as_ac_Header=no"
12475 fi
12476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12477 fi
12478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12481 cat >>confdefs.h <<_ACEOF
12482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12483 _ACEOF
12484
12485 fi
12486
12487 done
12488
12489
12490 for ac_header in machine/reg.h
12491 do
12492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12494 echo "$as_me:$LINENO: checking for $ac_header" >&5
12495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 fi
12499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12501 else
12502 # Is the header compilable?
12503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 $ac_includes_default
12512 #include <$ac_header>
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_header_compiler=yes
12537 else
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 ac_header_compiler=no
12542 fi
12543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12545 echo "${ECHO_T}$ac_header_compiler" >&6
12546
12547 # Is the header present?
12548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556 #include <$ac_header>
12557 _ACEOF
12558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev/null; then
12566 if test -s conftest.err; then
12567 ac_cpp_err=$ac_c_preproc_warn_flag
12568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12569 else
12570 ac_cpp_err=
12571 fi
12572 else
12573 ac_cpp_err=yes
12574 fi
12575 if test -z "$ac_cpp_err"; then
12576 ac_header_preproc=yes
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_header_preproc=no
12582 fi
12583 rm -f conftest.err conftest.$ac_ext
12584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12585 echo "${ECHO_T}$ac_header_preproc" >&6
12586
12587 # So? What about this header?
12588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12589 yes:no: )
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12594 ac_header_preproc=yes
12595 ;;
12596 no:yes:* )
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12609 (
12610 cat <<\_ASBOX
12611 ## ------------------------------------------ ##
12612 ## Report this to the AC_PACKAGE_NAME lists. ##
12613 ## ------------------------------------------ ##
12614 _ASBOX
12615 ) |
12616 sed "s/^/$as_me: WARNING: /" >&2
12617 ;;
12618 esac
12619 echo "$as_me:$LINENO: checking for $ac_header" >&5
12620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 else
12624 eval "$as_ac_Header=\$ac_header_preproc"
12625 fi
12626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12628
12629 fi
12630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12631 cat >>confdefs.h <<_ACEOF
12632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12633 _ACEOF
12634
12635 fi
12636
12637 done
12638
12639
12640
12641 for ac_header in poll.h sys/poll.h
12642 do
12643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12645 echo "$as_me:$LINENO: checking for $ac_header" >&5
12646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 fi
12650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12652 else
12653 # Is the header compilable?
12654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 $ac_includes_default
12663 #include <$ac_header>
12664 _ACEOF
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_header_compiler=yes
12688 else
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 ac_header_compiler=no
12693 fi
12694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12696 echo "${ECHO_T}$ac_header_compiler" >&6
12697
12698 # Is the header present?
12699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 #include <$ac_header>
12708 _ACEOF
12709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null; then
12717 if test -s conftest.err; then
12718 ac_cpp_err=$ac_c_preproc_warn_flag
12719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12720 else
12721 ac_cpp_err=
12722 fi
12723 else
12724 ac_cpp_err=yes
12725 fi
12726 if test -z "$ac_cpp_err"; then
12727 ac_header_preproc=yes
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 ac_header_preproc=no
12733 fi
12734 rm -f conftest.err conftest.$ac_ext
12735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12736 echo "${ECHO_T}$ac_header_preproc" >&6
12737
12738 # So? What about this header?
12739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12740 yes:no: )
12741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12745 ac_header_preproc=yes
12746 ;;
12747 no:yes:* )
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12760 (
12761 cat <<\_ASBOX
12762 ## ------------------------------------------ ##
12763 ## Report this to the AC_PACKAGE_NAME lists. ##
12764 ## ------------------------------------------ ##
12765 _ASBOX
12766 ) |
12767 sed "s/^/$as_me: WARNING: /" >&2
12768 ;;
12769 esac
12770 echo "$as_me:$LINENO: checking for $ac_header" >&5
12771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 eval "$as_ac_Header=\$ac_header_preproc"
12776 fi
12777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12779
12780 fi
12781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12782 cat >>confdefs.h <<_ACEOF
12783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12784 _ACEOF
12785
12786 fi
12787
12788 done
12789
12790
12791
12792
12793 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12794 do
12795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12797 echo "$as_me:$LINENO: checking for $ac_header" >&5
12798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 fi
12802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12804 else
12805 # Is the header compilable?
12806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12815 #include <$ac_header>
12816 _ACEOF
12817 rm -f conftest.$ac_objext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag"
12827 || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest.$ac_objext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_header_compiler=yes
12840 else
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12843
12844 ac_header_compiler=no
12845 fi
12846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12848 echo "${ECHO_T}$ac_header_compiler" >&6
12849
12850 # Is the header present?
12851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12853 cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h. */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859 #include <$ac_header>
12860 _ACEOF
12861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev/null; then
12869 if test -s conftest.err; then
12870 ac_cpp_err=$ac_c_preproc_warn_flag
12871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12872 else
12873 ac_cpp_err=
12874 fi
12875 else
12876 ac_cpp_err=yes
12877 fi
12878 if test -z "$ac_cpp_err"; then
12879 ac_header_preproc=yes
12880 else
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12883
12884 ac_header_preproc=no
12885 fi
12886 rm -f conftest.err conftest.$ac_ext
12887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12888 echo "${ECHO_T}$ac_header_preproc" >&6
12889
12890 # So? What about this header?
12891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12892 yes:no: )
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12897 ac_header_preproc=yes
12898 ;;
12899 no:yes:* )
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12912 (
12913 cat <<\_ASBOX
12914 ## ------------------------------------------ ##
12915 ## Report this to the AC_PACKAGE_NAME lists. ##
12916 ## ------------------------------------------ ##
12917 _ASBOX
12918 ) |
12919 sed "s/^/$as_me: WARNING: /" >&2
12920 ;;
12921 esac
12922 echo "$as_me:$LINENO: checking for $ac_header" >&5
12923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927 eval "$as_ac_Header=\$ac_header_preproc"
12928 fi
12929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12931
12932 fi
12933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936 _ACEOF
12937
12938 fi
12939
12940 done
12941
12942
12943 for ac_header in signal.h
12944 do
12945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12947 echo "$as_me:$LINENO: checking for $ac_header" >&5
12948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 fi
12952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12954 else
12955 # Is the header compilable?
12956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h. */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 $ac_includes_default
12965 #include <$ac_header>
12966 _ACEOF
12967 rm -f conftest.$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag"
12977 || test ! -s conftest.err'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_header_compiler=yes
12990 else
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_header_compiler=no
12995 fi
12996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12998 echo "${ECHO_T}$ac_header_compiler" >&6
12999
13000 # Is the header present?
13001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h. */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 #include <$ac_header>
13010 _ACEOF
13011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } >/dev/null; then
13019 if test -s conftest.err; then
13020 ac_cpp_err=$ac_c_preproc_warn_flag
13021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13022 else
13023 ac_cpp_err=
13024 fi
13025 else
13026 ac_cpp_err=yes
13027 fi
13028 if test -z "$ac_cpp_err"; then
13029 ac_header_preproc=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 ac_header_preproc=no
13035 fi
13036 rm -f conftest.err conftest.$ac_ext
13037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038 echo "${ECHO_T}$ac_header_preproc" >&6
13039
13040 # So? What about this header?
13041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13042 yes:no: )
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc=yes
13048 ;;
13049 no:yes:* )
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13062 (
13063 cat <<\_ASBOX
13064 ## ------------------------------------------ ##
13065 ## Report this to the AC_PACKAGE_NAME lists. ##
13066 ## ------------------------------------------ ##
13067 _ASBOX
13068 ) |
13069 sed "s/^/$as_me: WARNING: /" >&2
13070 ;;
13071 esac
13072 echo "$as_me:$LINENO: checking for $ac_header" >&5
13073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 eval "$as_ac_Header=\$ac_header_preproc"
13078 fi
13079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13081
13082 fi
13083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13084 cat >>confdefs.h <<_ACEOF
13085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086 _ACEOF
13087
13088 fi
13089
13090 done
13091
13092
13093 for ac_header in stddef.h
13094 do
13095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13097 echo "$as_me:$LINENO: checking for $ac_header" >&5
13098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 fi
13102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13104 else
13105 # Is the header compilable?
13106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h. */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13114 $ac_includes_default
13115 #include <$ac_header>
13116 _ACEOF
13117 rm -f conftest.$ac_objext
13118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119 (eval $ac_compile) 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -z "$ac_c_werror_flag"
13127 || test ! -s conftest.err'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest.$ac_objext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_header_compiler=yes
13140 else
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 ac_header_compiler=no
13145 fi
13146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13148 echo "${ECHO_T}$ac_header_compiler" >&6
13149
13150 # Is the header present?
13151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 #include <$ac_header>
13160 _ACEOF
13161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13163 ac_status=$?
13164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } >/dev/null; then
13169 if test -s conftest.err; then
13170 ac_cpp_err=$ac_c_preproc_warn_flag
13171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13172 else
13173 ac_cpp_err=
13174 fi
13175 else
13176 ac_cpp_err=yes
13177 fi
13178 if test -z "$ac_cpp_err"; then
13179 ac_header_preproc=yes
13180 else
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13183
13184 ac_header_preproc=no
13185 fi
13186 rm -f conftest.err conftest.$ac_ext
13187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13188 echo "${ECHO_T}$ac_header_preproc" >&6
13189
13190 # So? What about this header?
13191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13192 yes:no: )
13193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13197 ac_header_preproc=yes
13198 ;;
13199 no:yes:* )
13200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13212 (
13213 cat <<\_ASBOX
13214 ## ------------------------------------------ ##
13215 ## Report this to the AC_PACKAGE_NAME lists. ##
13216 ## ------------------------------------------ ##
13217 _ASBOX
13218 ) |
13219 sed "s/^/$as_me: WARNING: /" >&2
13220 ;;
13221 esac
13222 echo "$as_me:$LINENO: checking for $ac_header" >&5
13223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227 eval "$as_ac_Header=\$ac_header_preproc"
13228 fi
13229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13231
13232 fi
13233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13234 cat >>confdefs.h <<_ACEOF
13235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13236 _ACEOF
13237
13238 fi
13239
13240 done
13241
13242
13243 for ac_header in stdlib.h
13244 do
13245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13247 echo "$as_me:$LINENO: checking for $ac_header" >&5
13248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 fi
13252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13254 else
13255 # Is the header compilable?
13256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13258 cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h. */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13264 $ac_includes_default
13265 #include <$ac_header>
13266 _ACEOF
13267 rm -f conftest.$ac_objext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag"
13277 || test ! -s conftest.err'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; } &&
13283 { ac_try='test -s conftest.$ac_objext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_header_compiler=yes
13290 else
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294 ac_header_compiler=no
13295 fi
13296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13298 echo "${ECHO_T}$ac_header_compiler" >&6
13299
13300 # Is the header present?
13301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13303 cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h. */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13309 #include <$ac_header>
13310 _ACEOF
13311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } >/dev/null; then
13319 if test -s conftest.err; then
13320 ac_cpp_err=$ac_c_preproc_warn_flag
13321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13322 else
13323 ac_cpp_err=
13324 fi
13325 else
13326 ac_cpp_err=yes
13327 fi
13328 if test -z "$ac_cpp_err"; then
13329 ac_header_preproc=yes
13330 else
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 ac_header_preproc=no
13335 fi
13336 rm -f conftest.err conftest.$ac_ext
13337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13338 echo "${ECHO_T}$ac_header_preproc" >&6
13339
13340 # So? What about this header?
13341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13342 yes:no: )
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13347 ac_header_preproc=yes
13348 ;;
13349 no:yes:* )
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13362 (
13363 cat <<\_ASBOX
13364 ## ------------------------------------------ ##
13365 ## Report this to the AC_PACKAGE_NAME lists. ##
13366 ## ------------------------------------------ ##
13367 _ASBOX
13368 ) |
13369 sed "s/^/$as_me: WARNING: /" >&2
13370 ;;
13371 esac
13372 echo "$as_me:$LINENO: checking for $ac_header" >&5
13373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 else
13377 eval "$as_ac_Header=\$ac_header_preproc"
13378 fi
13379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13381
13382 fi
13383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13384 cat >>confdefs.h <<_ACEOF
13385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13386 _ACEOF
13387
13388 fi
13389
13390 done
13391
13392
13393
13394
13395 for ac_header in string.h memory.h strings.h
13396 do
13397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13399 echo "$as_me:$LINENO: checking for $ac_header" >&5
13400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 fi
13404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13406 else
13407 # Is the header compilable?
13408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h. */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 $ac_includes_default
13417 #include <$ac_header>
13418 _ACEOF
13419 rm -f conftest.$ac_objext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13421 (eval $ac_compile) 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_c_werror_flag"
13429 || test ! -s conftest.err'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_header_compiler=yes
13442 else
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 ac_header_compiler=no
13447 fi
13448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13450 echo "${ECHO_T}$ac_header_compiler" >&6
13451
13452 # Is the header present?
13453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 #include <$ac_header>
13462 _ACEOF
13463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } >/dev/null; then
13471 if test -s conftest.err; then
13472 ac_cpp_err=$ac_c_preproc_warn_flag
13473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13474 else
13475 ac_cpp_err=
13476 fi
13477 else
13478 ac_cpp_err=yes
13479 fi
13480 if test -z "$ac_cpp_err"; then
13481 ac_header_preproc=yes
13482 else
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 ac_header_preproc=no
13487 fi
13488 rm -f conftest.err conftest.$ac_ext
13489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13490 echo "${ECHO_T}$ac_header_preproc" >&6
13491
13492 # So? What about this header?
13493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13494 yes:no: )
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13499 ac_header_preproc=yes
13500 ;;
13501 no:yes:* )
13502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13514 (
13515 cat <<\_ASBOX
13516 ## ------------------------------------------ ##
13517 ## Report this to the AC_PACKAGE_NAME lists. ##
13518 ## ------------------------------------------ ##
13519 _ASBOX
13520 ) |
13521 sed "s/^/$as_me: WARNING: /" >&2
13522 ;;
13523 esac
13524 echo "$as_me:$LINENO: checking for $ac_header" >&5
13525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529 eval "$as_ac_Header=\$ac_header_preproc"
13530 fi
13531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13533
13534 fi
13535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13536 cat >>confdefs.h <<_ACEOF
13537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13538 _ACEOF
13539
13540 fi
13541
13542 done
13543
13544
13545 for ac_header in sys/fault.h
13546 do
13547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13549 echo "$as_me:$LINENO: checking for $ac_header" >&5
13550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 fi
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13556 else
13557 # Is the header compilable?
13558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 $ac_includes_default
13567 #include <$ac_header>
13568 _ACEOF
13569 rm -f conftest.$ac_objext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571 (eval $ac_compile) 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -z "$ac_c_werror_flag"
13579 || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13591 ac_header_compiler=yes
13592 else
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 ac_header_compiler=no
13597 fi
13598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13600 echo "${ECHO_T}$ac_header_compiler" >&6
13601
13602 # Is the header present?
13603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 #include <$ac_header>
13612 _ACEOF
13613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } >/dev/null; then
13621 if test -s conftest.err; then
13622 ac_cpp_err=$ac_c_preproc_warn_flag
13623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13624 else
13625 ac_cpp_err=
13626 fi
13627 else
13628 ac_cpp_err=yes
13629 fi
13630 if test -z "$ac_cpp_err"; then
13631 ac_header_preproc=yes
13632 else
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 ac_header_preproc=no
13637 fi
13638 rm -f conftest.err conftest.$ac_ext
13639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13640 echo "${ECHO_T}$ac_header_preproc" >&6
13641
13642 # So? What about this header?
13643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13644 yes:no: )
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13649 ac_header_preproc=yes
13650 ;;
13651 no:yes:* )
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13664 (
13665 cat <<\_ASBOX
13666 ## ------------------------------------------ ##
13667 ## Report this to the AC_PACKAGE_NAME lists. ##
13668 ## ------------------------------------------ ##
13669 _ASBOX
13670 ) |
13671 sed "s/^/$as_me: WARNING: /" >&2
13672 ;;
13673 esac
13674 echo "$as_me:$LINENO: checking for $ac_header" >&5
13675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 eval "$as_ac_Header=\$ac_header_preproc"
13680 fi
13681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13683
13684 fi
13685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13686 cat >>confdefs.h <<_ACEOF
13687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13688 _ACEOF
13689
13690 fi
13691
13692 done
13693
13694
13695 for ac_header in sys/file.h
13696 do
13697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13699 echo "$as_me:$LINENO: checking for $ac_header" >&5
13700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 fi
13704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13706 else
13707 # Is the header compilable?
13708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 $ac_includes_default
13717 #include <$ac_header>
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721 (eval $ac_compile) 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_header_compiler=yes
13742 else
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746 ac_header_compiler=no
13747 fi
13748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750 echo "${ECHO_T}$ac_header_compiler" >&6
13751
13752 # Is the header present?
13753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 #include <$ac_header>
13762 _ACEOF
13763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null; then
13771 if test -s conftest.err; then
13772 ac_cpp_err=$ac_c_preproc_warn_flag
13773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13774 else
13775 ac_cpp_err=
13776 fi
13777 else
13778 ac_cpp_err=yes
13779 fi
13780 if test -z "$ac_cpp_err"; then
13781 ac_header_preproc=yes
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786 ac_header_preproc=no
13787 fi
13788 rm -f conftest.err conftest.$ac_ext
13789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13790 echo "${ECHO_T}$ac_header_preproc" >&6
13791
13792 # So? What about this header?
13793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13794 yes:no: )
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13799 ac_header_preproc=yes
13800 ;;
13801 no:yes:* )
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13814 (
13815 cat <<\_ASBOX
13816 ## ------------------------------------------ ##
13817 ## Report this to the AC_PACKAGE_NAME lists. ##
13818 ## ------------------------------------------ ##
13819 _ASBOX
13820 ) |
13821 sed "s/^/$as_me: WARNING: /" >&2
13822 ;;
13823 esac
13824 echo "$as_me:$LINENO: checking for $ac_header" >&5
13825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829 eval "$as_ac_Header=\$ac_header_preproc"
13830 fi
13831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13833
13834 fi
13835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13838 _ACEOF
13839
13840 fi
13841
13842 done
13843
13844
13845 for ac_header in sys/filio.h
13846 do
13847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13849 echo "$as_me:$LINENO: checking for $ac_header" >&5
13850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 fi
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13856 else
13857 # Is the header compilable?
13858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 $ac_includes_default
13867 #include <$ac_header>
13868 _ACEOF
13869 rm -f conftest.$ac_objext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13871 (eval $ac_compile) 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_c_werror_flag"
13879 || test ! -s conftest.err'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest.$ac_objext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 ac_header_compiler=yes
13892 else
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13895
13896 ac_header_compiler=no
13897 fi
13898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13900 echo "${ECHO_T}$ac_header_compiler" >&6
13901
13902 # Is the header present?
13903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 #include <$ac_header>
13912 _ACEOF
13913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13915 ac_status=$?
13916 grep -v '^ *+' conftest.er1 >conftest.err
13917 rm -f conftest.er1
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } >/dev/null; then
13921 if test -s conftest.err; then
13922 ac_cpp_err=$ac_c_preproc_warn_flag
13923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13924 else
13925 ac_cpp_err=
13926 fi
13927 else
13928 ac_cpp_err=yes
13929 fi
13930 if test -z "$ac_cpp_err"; then
13931 ac_header_preproc=yes
13932 else
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13935
13936 ac_header_preproc=no
13937 fi
13938 rm -f conftest.err conftest.$ac_ext
13939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13940 echo "${ECHO_T}$ac_header_preproc" >&6
13941
13942 # So? What about this header?
13943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13944 yes:no: )
13945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13949 ac_header_preproc=yes
13950 ;;
13951 no:yes:* )
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13964 (
13965 cat <<\_ASBOX
13966 ## ------------------------------------------ ##
13967 ## Report this to the AC_PACKAGE_NAME lists. ##
13968 ## ------------------------------------------ ##
13969 _ASBOX
13970 ) |
13971 sed "s/^/$as_me: WARNING: /" >&2
13972 ;;
13973 esac
13974 echo "$as_me:$LINENO: checking for $ac_header" >&5
13975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979 eval "$as_ac_Header=\$ac_header_preproc"
13980 fi
13981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13983
13984 fi
13985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13986 cat >>confdefs.h <<_ACEOF
13987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13988 _ACEOF
13989
13990 fi
13991
13992 done
13993
13994
13995 for ac_header in sys/ioctl.h
13996 do
13997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999 echo "$as_me:$LINENO: checking for $ac_header" >&5
14000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 fi
14004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14006 else
14007 # Is the header compilable?
14008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14010 cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h. */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 $ac_includes_default
14017 #include <$ac_header>
14018 _ACEOF
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 (eval $ac_compile) 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_header_compiler=yes
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 ac_header_compiler=no
14047 fi
14048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050 echo "${ECHO_T}$ac_header_compiler" >&6
14051
14052 # Is the header present?
14053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14055 cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h. */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <$ac_header>
14062 _ACEOF
14063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14065 ac_status=$?
14066 grep -v '^ *+' conftest.er1 >conftest.err
14067 rm -f conftest.er1
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null; then
14071 if test -s conftest.err; then
14072 ac_cpp_err=$ac_c_preproc_warn_flag
14073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14074 else
14075 ac_cpp_err=
14076 fi
14077 else
14078 ac_cpp_err=yes
14079 fi
14080 if test -z "$ac_cpp_err"; then
14081 ac_header_preproc=yes
14082 else
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_header_preproc=no
14087 fi
14088 rm -f conftest.err conftest.$ac_ext
14089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090 echo "${ECHO_T}$ac_header_preproc" >&6
14091
14092 # So? What about this header?
14093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14094 yes:no: )
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14099 ac_header_preproc=yes
14100 ;;
14101 no:yes:* )
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14114 (
14115 cat <<\_ASBOX
14116 ## ------------------------------------------ ##
14117 ## Report this to the AC_PACKAGE_NAME lists. ##
14118 ## ------------------------------------------ ##
14119 _ASBOX
14120 ) |
14121 sed "s/^/$as_me: WARNING: /" >&2
14122 ;;
14123 esac
14124 echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129 eval "$as_ac_Header=\$ac_header_preproc"
14130 fi
14131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14133
14134 fi
14135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14136 cat >>confdefs.h <<_ACEOF
14137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14138 _ACEOF
14139
14140 fi
14141
14142 done
14143
14144
14145 for ac_header in sys/param.h
14146 do
14147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14149 echo "$as_me:$LINENO: checking for $ac_header" >&5
14150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 fi
14154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14156 else
14157 # Is the header compilable?
14158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h. */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 $ac_includes_default
14167 #include <$ac_header>
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_c_werror_flag"
14179 || test ! -s conftest.err'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 ac_header_compiler=yes
14192 else
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196 ac_header_compiler=no
14197 fi
14198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14200 echo "${ECHO_T}$ac_header_compiler" >&6
14201
14202 # Is the header present?
14203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14205 cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h. */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 #include <$ac_header>
14212 _ACEOF
14213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } >/dev/null; then
14221 if test -s conftest.err; then
14222 ac_cpp_err=$ac_c_preproc_warn_flag
14223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14224 else
14225 ac_cpp_err=
14226 fi
14227 else
14228 ac_cpp_err=yes
14229 fi
14230 if test -z "$ac_cpp_err"; then
14231 ac_header_preproc=yes
14232 else
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 ac_header_preproc=no
14237 fi
14238 rm -f conftest.err conftest.$ac_ext
14239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14240 echo "${ECHO_T}$ac_header_preproc" >&6
14241
14242 # So? What about this header?
14243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14244 yes:no: )
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14249 ac_header_preproc=yes
14250 ;;
14251 no:yes:* )
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14264 (
14265 cat <<\_ASBOX
14266 ## ------------------------------------------ ##
14267 ## Report this to the AC_PACKAGE_NAME lists. ##
14268 ## ------------------------------------------ ##
14269 _ASBOX
14270 ) |
14271 sed "s/^/$as_me: WARNING: /" >&2
14272 ;;
14273 esac
14274 echo "$as_me:$LINENO: checking for $ac_header" >&5
14275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279 eval "$as_ac_Header=\$ac_header_preproc"
14280 fi
14281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14283
14284 fi
14285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14286 cat >>confdefs.h <<_ACEOF
14287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14288 _ACEOF
14289
14290 fi
14291
14292 done
14293
14294
14295 for ac_header in sys/resource.h
14296 do
14297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299 echo "$as_me:$LINENO: checking for $ac_header" >&5
14300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 fi
14304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14306 else
14307 # Is the header compilable?
14308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14310 cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h. */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 $ac_includes_default
14317 #include <$ac_header>
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_header_compiler=yes
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346 ac_header_compiler=no
14347 fi
14348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14350 echo "${ECHO_T}$ac_header_compiler" >&6
14351
14352 # Is the header present?
14353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h. */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 #include <$ac_header>
14362 _ACEOF
14363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } >/dev/null; then
14371 if test -s conftest.err; then
14372 ac_cpp_err=$ac_c_preproc_warn_flag
14373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14374 else
14375 ac_cpp_err=
14376 fi
14377 else
14378 ac_cpp_err=yes
14379 fi
14380 if test -z "$ac_cpp_err"; then
14381 ac_header_preproc=yes
14382 else
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386 ac_header_preproc=no
14387 fi
14388 rm -f conftest.err conftest.$ac_ext
14389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14390 echo "${ECHO_T}$ac_header_preproc" >&6
14391
14392 # So? What about this header?
14393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14394 yes:no: )
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14399 ac_header_preproc=yes
14400 ;;
14401 no:yes:* )
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14414 (
14415 cat <<\_ASBOX
14416 ## ------------------------------------------ ##
14417 ## Report this to the AC_PACKAGE_NAME lists. ##
14418 ## ------------------------------------------ ##
14419 _ASBOX
14420 ) |
14421 sed "s/^/$as_me: WARNING: /" >&2
14422 ;;
14423 esac
14424 echo "$as_me:$LINENO: checking for $ac_header" >&5
14425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 eval "$as_ac_Header=\$ac_header_preproc"
14430 fi
14431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14433
14434 fi
14435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14438 _ACEOF
14439
14440 fi
14441
14442 done
14443
14444
14445 for ac_header in sys/proc.h
14446 do
14447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14448 echo "$as_me:$LINENO: checking for $ac_header" >&5
14449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h. */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 #if HAVE_SYS_PARAM_H
14460 # include <sys/param.h>
14461 #endif
14462
14463
14464 #include <$ac_header>
14465 _ACEOF
14466 rm -f conftest.$ac_objext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468 (eval $ac_compile) 2>conftest.er1
14469 ac_status=$?
14470 grep -v '^ *+' conftest.er1 >conftest.err
14471 rm -f conftest.er1
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -z "$ac_c_werror_flag"
14476 || test ! -s conftest.err'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; } &&
14482 { ac_try='test -s conftest.$ac_objext'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 eval "$as_ac_Header=yes"
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 eval "$as_ac_Header=no"
14494 fi
14495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14496 fi
14497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14500 cat >>confdefs.h <<_ACEOF
14501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14502 _ACEOF
14503
14504 fi
14505
14506 done
14507
14508
14509 for ac_header in sys/procfs.h
14510 do
14511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14513 echo "$as_me:$LINENO: checking for $ac_header" >&5
14514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 fi
14518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14520 else
14521 # Is the header compilable?
14522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 $ac_includes_default
14531 #include <$ac_header>
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14535 (eval $ac_compile) 2>conftest.er1
14536 ac_status=$?
14537 grep -v '^ *+' conftest.er1 >conftest.err
14538 rm -f conftest.er1
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -z "$ac_c_werror_flag"
14543 || test ! -s conftest.err'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_header_compiler=yes
14556 else
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 ac_header_compiler=no
14561 fi
14562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14564 echo "${ECHO_T}$ac_header_compiler" >&6
14565
14566 # Is the header present?
14567 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 #include <$ac_header>
14576 _ACEOF
14577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } >/dev/null; then
14585 if test -s conftest.err; then
14586 ac_cpp_err=$ac_c_preproc_warn_flag
14587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14588 else
14589 ac_cpp_err=
14590 fi
14591 else
14592 ac_cpp_err=yes
14593 fi
14594 if test -z "$ac_cpp_err"; then
14595 ac_header_preproc=yes
14596 else
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14599
14600 ac_header_preproc=no
14601 fi
14602 rm -f conftest.err conftest.$ac_ext
14603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14604 echo "${ECHO_T}$ac_header_preproc" >&6
14605
14606 # So? What about this header?
14607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14608 yes:no: )
14609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14613 ac_header_preproc=yes
14614 ;;
14615 no:yes:* )
14616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14628 (
14629 cat <<\_ASBOX
14630 ## ------------------------------------------ ##
14631 ## Report this to the AC_PACKAGE_NAME lists. ##
14632 ## ------------------------------------------ ##
14633 _ASBOX
14634 ) |
14635 sed "s/^/$as_me: WARNING: /" >&2
14636 ;;
14637 esac
14638 echo "$as_me:$LINENO: checking for $ac_header" >&5
14639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643 eval "$as_ac_Header=\$ac_header_preproc"
14644 fi
14645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14647
14648 fi
14649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14650 cat >>confdefs.h <<_ACEOF
14651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14652 _ACEOF
14653
14654 fi
14655
14656 done
14657
14658
14659
14660 for ac_header in sys/ptrace.h ptrace.h
14661 do
14662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14664 echo "$as_me:$LINENO: checking for $ac_header" >&5
14665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 fi
14669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14671 else
14672 # Is the header compilable?
14673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14682 #include <$ac_header>
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_header_compiler=yes
14707 else
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 ac_header_compiler=no
14712 fi
14713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14715 echo "${ECHO_T}$ac_header_compiler" >&6
14716
14717 # Is the header present?
14718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include <$ac_header>
14727 _ACEOF
14728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev/null; then
14736 if test -s conftest.err; then
14737 ac_cpp_err=$ac_c_preproc_warn_flag
14738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14739 else
14740 ac_cpp_err=
14741 fi
14742 else
14743 ac_cpp_err=yes
14744 fi
14745 if test -z "$ac_cpp_err"; then
14746 ac_header_preproc=yes
14747 else
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 ac_header_preproc=no
14752 fi
14753 rm -f conftest.err conftest.$ac_ext
14754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14755 echo "${ECHO_T}$ac_header_preproc" >&6
14756
14757 # So? What about this header?
14758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14759 yes:no: )
14760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14764 ac_header_preproc=yes
14765 ;;
14766 no:yes:* )
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14779 (
14780 cat <<\_ASBOX
14781 ## ------------------------------------------ ##
14782 ## Report this to the AC_PACKAGE_NAME lists. ##
14783 ## ------------------------------------------ ##
14784 _ASBOX
14785 ) |
14786 sed "s/^/$as_me: WARNING: /" >&2
14787 ;;
14788 esac
14789 echo "$as_me:$LINENO: checking for $ac_header" >&5
14790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 eval "$as_ac_Header=\$ac_header_preproc"
14795 fi
14796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14798
14799 fi
14800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14803 _ACEOF
14804
14805 fi
14806
14807 done
14808
14809
14810
14811 for ac_header in sys/reg.h sys/debugreg.h
14812 do
14813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14815 echo "$as_me:$LINENO: checking for $ac_header" >&5
14816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 fi
14820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14822 else
14823 # Is the header compilable?
14824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 $ac_includes_default
14833 #include <$ac_header>
14834 _ACEOF
14835 rm -f conftest.$ac_objext
14836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837 (eval $ac_compile) 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -z "$ac_c_werror_flag"
14845 || test ! -s conftest.err'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; } &&
14851 { ac_try='test -s conftest.$ac_objext'
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; }; then
14857 ac_header_compiler=yes
14858 else
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14861
14862 ac_header_compiler=no
14863 fi
14864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14866 echo "${ECHO_T}$ac_header_compiler" >&6
14867
14868 # Is the header present?
14869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h. */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 #include <$ac_header>
14878 _ACEOF
14879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14881 ac_status=$?
14882 grep -v '^ *+' conftest.er1 >conftest.err
14883 rm -f conftest.er1
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } >/dev/null; then
14887 if test -s conftest.err; then
14888 ac_cpp_err=$ac_c_preproc_warn_flag
14889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14890 else
14891 ac_cpp_err=
14892 fi
14893 else
14894 ac_cpp_err=yes
14895 fi
14896 if test -z "$ac_cpp_err"; then
14897 ac_header_preproc=yes
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 ac_header_preproc=no
14903 fi
14904 rm -f conftest.err conftest.$ac_ext
14905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14906 echo "${ECHO_T}$ac_header_preproc" >&6
14907
14908 # So? What about this header?
14909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14910 yes:no: )
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14915 ac_header_preproc=yes
14916 ;;
14917 no:yes:* )
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14930 (
14931 cat <<\_ASBOX
14932 ## ------------------------------------------ ##
14933 ## Report this to the AC_PACKAGE_NAME lists. ##
14934 ## ------------------------------------------ ##
14935 _ASBOX
14936 ) |
14937 sed "s/^/$as_me: WARNING: /" >&2
14938 ;;
14939 esac
14940 echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945 eval "$as_ac_Header=\$ac_header_preproc"
14946 fi
14947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14949
14950 fi
14951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14952 cat >>confdefs.h <<_ACEOF
14953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14954 _ACEOF
14955
14956 fi
14957
14958 done
14959
14960
14961 for ac_header in sys/select.h
14962 do
14963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14965 echo "$as_me:$LINENO: checking for $ac_header" >&5
14966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 fi
14970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14972 else
14973 # Is the header compilable?
14974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14976 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 $ac_includes_default
14983 #include <$ac_header>
14984 _ACEOF
14985 rm -f conftest.$ac_objext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_header_compiler=yes
15008 else
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012 ac_header_compiler=no
15013 fi
15014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15016 echo "${ECHO_T}$ac_header_compiler" >&6
15017
15018 # Is the header present?
15019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h. */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 #include <$ac_header>
15028 _ACEOF
15029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15031 ac_status=$?
15032 grep -v '^ *+' conftest.er1 >conftest.err
15033 rm -f conftest.er1
15034 cat conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } >/dev/null; then
15037 if test -s conftest.err; then
15038 ac_cpp_err=$ac_c_preproc_warn_flag
15039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15040 else
15041 ac_cpp_err=
15042 fi
15043 else
15044 ac_cpp_err=yes
15045 fi
15046 if test -z "$ac_cpp_err"; then
15047 ac_header_preproc=yes
15048 else
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052 ac_header_preproc=no
15053 fi
15054 rm -f conftest.err conftest.$ac_ext
15055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15056 echo "${ECHO_T}$ac_header_preproc" >&6
15057
15058 # So? What about this header?
15059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15060 yes:no: )
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15065 ac_header_preproc=yes
15066 ;;
15067 no:yes:* )
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15080 (
15081 cat <<\_ASBOX
15082 ## ------------------------------------------ ##
15083 ## Report this to the AC_PACKAGE_NAME lists. ##
15084 ## ------------------------------------------ ##
15085 _ASBOX
15086 ) |
15087 sed "s/^/$as_me: WARNING: /" >&2
15088 ;;
15089 esac
15090 echo "$as_me:$LINENO: checking for $ac_header" >&5
15091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095 eval "$as_ac_Header=\$ac_header_preproc"
15096 fi
15097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15099
15100 fi
15101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15104 _ACEOF
15105
15106 fi
15107
15108 done
15109
15110
15111 for ac_header in sys/syscall.h
15112 do
15113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15115 echo "$as_me:$LINENO: checking for $ac_header" >&5
15116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 fi
15120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15122 else
15123 # Is the header compilable?
15124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15126 cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h. */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 $ac_includes_default
15133 #include <$ac_header>
15134 _ACEOF
15135 rm -f conftest.$ac_objext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag"
15145 || test ! -s conftest.err'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest.$ac_objext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157 ac_header_compiler=yes
15158 else
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162 ac_header_compiler=no
15163 fi
15164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15166 echo "${ECHO_T}$ac_header_compiler" >&6
15167
15168 # Is the header present?
15169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h. */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177 #include <$ac_header>
15178 _ACEOF
15179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15181 ac_status=$?
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } >/dev/null; then
15187 if test -s conftest.err; then
15188 ac_cpp_err=$ac_c_preproc_warn_flag
15189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15190 else
15191 ac_cpp_err=
15192 fi
15193 else
15194 ac_cpp_err=yes
15195 fi
15196 if test -z "$ac_cpp_err"; then
15197 ac_header_preproc=yes
15198 else
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15201
15202 ac_header_preproc=no
15203 fi
15204 rm -f conftest.err conftest.$ac_ext
15205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15206 echo "${ECHO_T}$ac_header_preproc" >&6
15207
15208 # So? What about this header?
15209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15210 yes:no: )
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15215 ac_header_preproc=yes
15216 ;;
15217 no:yes:* )
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15230 (
15231 cat <<\_ASBOX
15232 ## ------------------------------------------ ##
15233 ## Report this to the AC_PACKAGE_NAME lists. ##
15234 ## ------------------------------------------ ##
15235 _ASBOX
15236 ) |
15237 sed "s/^/$as_me: WARNING: /" >&2
15238 ;;
15239 esac
15240 echo "$as_me:$LINENO: checking for $ac_header" >&5
15241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245 eval "$as_ac_Header=\$ac_header_preproc"
15246 fi
15247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15249
15250 fi
15251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15252 cat >>confdefs.h <<_ACEOF
15253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15254 _ACEOF
15255
15256 fi
15257
15258 done
15259
15260
15261 for ac_header in sys/types.h
15262 do
15263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15265 echo "$as_me:$LINENO: checking for $ac_header" >&5
15266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 fi
15270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15272 else
15273 # Is the header compilable?
15274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h. */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 $ac_includes_default
15283 #include <$ac_header>
15284 _ACEOF
15285 rm -f conftest.$ac_objext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag"
15295 || test ! -s conftest.err'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest.$ac_objext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_header_compiler=yes
15308 else
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15311
15312 ac_header_compiler=no
15313 fi
15314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15316 echo "${ECHO_T}$ac_header_compiler" >&6
15317
15318 # Is the header present?
15319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 #include <$ac_header>
15328 _ACEOF
15329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } >/dev/null; then
15337 if test -s conftest.err; then
15338 ac_cpp_err=$ac_c_preproc_warn_flag
15339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15340 else
15341 ac_cpp_err=
15342 fi
15343 else
15344 ac_cpp_err=yes
15345 fi
15346 if test -z "$ac_cpp_err"; then
15347 ac_header_preproc=yes
15348 else
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ac_header_preproc=no
15353 fi
15354 rm -f conftest.err conftest.$ac_ext
15355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15356 echo "${ECHO_T}$ac_header_preproc" >&6
15357
15358 # So? What about this header?
15359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15360 yes:no: )
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15365 ac_header_preproc=yes
15366 ;;
15367 no:yes:* )
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15380 (
15381 cat <<\_ASBOX
15382 ## ------------------------------------------ ##
15383 ## Report this to the AC_PACKAGE_NAME lists. ##
15384 ## ------------------------------------------ ##
15385 _ASBOX
15386 ) |
15387 sed "s/^/$as_me: WARNING: /" >&2
15388 ;;
15389 esac
15390 echo "$as_me:$LINENO: checking for $ac_header" >&5
15391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395 eval "$as_ac_Header=\$ac_header_preproc"
15396 fi
15397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15399
15400 fi
15401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15402 cat >>confdefs.h <<_ACEOF
15403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15404 _ACEOF
15405
15406 fi
15407
15408 done
15409
15410
15411 for ac_header in sys/user.h
15412 do
15413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_header" >&5
15415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 #if HAVE_SYS_PARAM_H
15426 # include <sys/param.h>
15427 #endif
15428
15429
15430 #include <$ac_header>
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15434 (eval $ac_compile) 2>conftest.er1
15435 ac_status=$?
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_c_werror_flag"
15442 || test ! -s conftest.err'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest.$ac_objext'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15454 eval "$as_ac_Header=yes"
15455 else
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 eval "$as_ac_Header=no"
15460 fi
15461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15462 fi
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15468 _ACEOF
15469
15470 fi
15471
15472 done
15473
15474
15475
15476 for ac_header in sys/wait.h wait.h
15477 do
15478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15480 echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 fi
15485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15487 else
15488 # Is the header compilable?
15489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15491 cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h. */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 $ac_includes_default
15498 #include <$ac_header>
15499 _ACEOF
15500 rm -f conftest.$ac_objext
15501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15502 (eval $ac_compile) 2>conftest.er1
15503 ac_status=$?
15504 grep -v '^ *+' conftest.er1 >conftest.err
15505 rm -f conftest.er1
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
15509 { ac_try='test -z "$ac_c_werror_flag"
15510 || test ! -s conftest.err'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_header_compiler=yes
15523 else
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 ac_header_compiler=no
15528 fi
15529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531 echo "${ECHO_T}$ac_header_compiler" >&6
15532
15533 # Is the header present?
15534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h. */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <$ac_header>
15543 _ACEOF
15544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } >/dev/null; then
15552 if test -s conftest.err; then
15553 ac_cpp_err=$ac_c_preproc_warn_flag
15554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15555 else
15556 ac_cpp_err=
15557 fi
15558 else
15559 ac_cpp_err=yes
15560 fi
15561 if test -z "$ac_cpp_err"; then
15562 ac_header_preproc=yes
15563 else
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15566
15567 ac_header_preproc=no
15568 fi
15569 rm -f conftest.err conftest.$ac_ext
15570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571 echo "${ECHO_T}$ac_header_preproc" >&6
15572
15573 # So? What about this header?
15574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15575 yes:no: )
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15580 ac_header_preproc=yes
15581 ;;
15582 no:yes:* )
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15595 (
15596 cat <<\_ASBOX
15597 ## ------------------------------------------ ##
15598 ## Report this to the AC_PACKAGE_NAME lists. ##
15599 ## ------------------------------------------ ##
15600 _ASBOX
15601 ) |
15602 sed "s/^/$as_me: WARNING: /" >&2
15603 ;;
15604 esac
15605 echo "$as_me:$LINENO: checking for $ac_header" >&5
15606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610 eval "$as_ac_Header=\$ac_header_preproc"
15611 fi
15612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15614
15615 fi
15616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15617 cat >>confdefs.h <<_ACEOF
15618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15619 _ACEOF
15620
15621 fi
15622
15623 done
15624
15625
15626
15627
15628 for ac_header in termios.h termio.h sgtty.h
15629 do
15630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15632 echo "$as_me:$LINENO: checking for $ac_header" >&5
15633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 fi
15637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15639 else
15640 # Is the header compilable?
15641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15643 cat >conftest.$ac_ext <<_ACEOF
15644 /* confdefs.h. */
15645 _ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h. */
15649 $ac_includes_default
15650 #include <$ac_header>
15651 _ACEOF
15652 rm -f conftest.$ac_objext
15653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15654 (eval $ac_compile) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
15661 { ac_try='test -z "$ac_c_werror_flag"
15662 || test ! -s conftest.err'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest.$ac_objext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_header_compiler=yes
15675 else
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15678
15679 ac_header_compiler=no
15680 fi
15681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15683 echo "${ECHO_T}$ac_header_compiler" >&6
15684
15685 # Is the header present?
15686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15688 cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h. */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 #include <$ac_header>
15695 _ACEOF
15696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } >/dev/null; then
15704 if test -s conftest.err; then
15705 ac_cpp_err=$ac_c_preproc_warn_flag
15706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15707 else
15708 ac_cpp_err=
15709 fi
15710 else
15711 ac_cpp_err=yes
15712 fi
15713 if test -z "$ac_cpp_err"; then
15714 ac_header_preproc=yes
15715 else
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_header_preproc=no
15720 fi
15721 rm -f conftest.err conftest.$ac_ext
15722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15723 echo "${ECHO_T}$ac_header_preproc" >&6
15724
15725 # So? What about this header?
15726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15727 yes:no: )
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15732 ac_header_preproc=yes
15733 ;;
15734 no:yes:* )
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15747 (
15748 cat <<\_ASBOX
15749 ## ------------------------------------------ ##
15750 ## Report this to the AC_PACKAGE_NAME lists. ##
15751 ## ------------------------------------------ ##
15752 _ASBOX
15753 ) |
15754 sed "s/^/$as_me: WARNING: /" >&2
15755 ;;
15756 esac
15757 echo "$as_me:$LINENO: checking for $ac_header" >&5
15758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762 eval "$as_ac_Header=\$ac_header_preproc"
15763 fi
15764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15766
15767 fi
15768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15771 _ACEOF
15772
15773 fi
15774
15775 done
15776
15777
15778 for ac_header in unistd.h
15779 do
15780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15782 echo "$as_me:$LINENO: checking for $ac_header" >&5
15783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 fi
15787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15789 else
15790 # Is the header compilable?
15791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h. */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 $ac_includes_default
15800 #include <$ac_header>
15801 _ACEOF
15802 rm -f conftest.$ac_objext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15804 (eval $ac_compile) 2>conftest.er1
15805 ac_status=$?
15806 grep -v '^ *+' conftest.er1 >conftest.err
15807 rm -f conftest.er1
15808 cat conftest.err >&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -z "$ac_c_werror_flag"
15812 || test ! -s conftest.err'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest.$ac_objext'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_header_compiler=yes
15825 else
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_header_compiler=no
15830 fi
15831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15833 echo "${ECHO_T}$ac_header_compiler" >&6
15834
15835 # Is the header present?
15836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h. */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 #include <$ac_header>
15845 _ACEOF
15846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15848 ac_status=$?
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } >/dev/null; then
15854 if test -s conftest.err; then
15855 ac_cpp_err=$ac_c_preproc_warn_flag
15856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15857 else
15858 ac_cpp_err=
15859 fi
15860 else
15861 ac_cpp_err=yes
15862 fi
15863 if test -z "$ac_cpp_err"; then
15864 ac_header_preproc=yes
15865 else
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15868
15869 ac_header_preproc=no
15870 fi
15871 rm -f conftest.err conftest.$ac_ext
15872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15873 echo "${ECHO_T}$ac_header_preproc" >&6
15874
15875 # So? What about this header?
15876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15877 yes:no: )
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15882 ac_header_preproc=yes
15883 ;;
15884 no:yes:* )
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15897 (
15898 cat <<\_ASBOX
15899 ## ------------------------------------------ ##
15900 ## Report this to the AC_PACKAGE_NAME lists. ##
15901 ## ------------------------------------------ ##
15902 _ASBOX
15903 ) |
15904 sed "s/^/$as_me: WARNING: /" >&2
15905 ;;
15906 esac
15907 echo "$as_me:$LINENO: checking for $ac_header" >&5
15908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912 eval "$as_ac_Header=\$ac_header_preproc"
15913 fi
15914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15916
15917 fi
15918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15919 cat >>confdefs.h <<_ACEOF
15920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15921 _ACEOF
15922
15923 fi
15924
15925 done
15926
15927
15928 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15929 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15930 # think that we don't have <curses.h> if we're using GCC.
15931 case $host_os in
15932 solaris2.[789])
15933 if test "$GCC" = yes; then
15934
15935 cat >>confdefs.h <<\_ACEOF
15936 #define _MSE_INT_H 1
15937 _ACEOF
15938
15939 fi ;;
15940 esac
15941
15942
15943
15944
15945 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15946 do
15947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15949 echo "$as_me:$LINENO: checking for $ac_header" >&5
15950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15952 echo $ECHO_N "(cached) $ECHO_C" >&6
15953 fi
15954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15956 else
15957 # Is the header compilable?
15958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h. */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15967 #include <$ac_header>
15968 _ACEOF
15969 rm -f conftest.$ac_objext
15970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15971 (eval $ac_compile) 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } &&
15978 { ac_try='test -z "$ac_c_werror_flag"
15979 || test ! -s conftest.err'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try='test -s conftest.$ac_objext'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 ac_header_compiler=yes
15992 else
15993 echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15995
15996 ac_header_compiler=no
15997 fi
15998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16000 echo "${ECHO_T}$ac_header_compiler" >&6
16001
16002 # Is the header present?
16003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16005 cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include <$ac_header>
16012 _ACEOF
16013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } >/dev/null; then
16021 if test -s conftest.err; then
16022 ac_cpp_err=$ac_c_preproc_warn_flag
16023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16024 else
16025 ac_cpp_err=
16026 fi
16027 else
16028 ac_cpp_err=yes
16029 fi
16030 if test -z "$ac_cpp_err"; then
16031 ac_header_preproc=yes
16032 else
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16035
16036 ac_header_preproc=no
16037 fi
16038 rm -f conftest.err conftest.$ac_ext
16039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16040 echo "${ECHO_T}$ac_header_preproc" >&6
16041
16042 # So? What about this header?
16043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16044 yes:no: )
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16048 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16049 ac_header_preproc=yes
16050 ;;
16051 no:yes:* )
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16057 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16059 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16063 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16064 (
16065 cat <<\_ASBOX
16066 ## ------------------------------------------ ##
16067 ## Report this to the AC_PACKAGE_NAME lists. ##
16068 ## ------------------------------------------ ##
16069 _ASBOX
16070 ) |
16071 sed "s/^/$as_me: WARNING: /" >&2
16072 ;;
16073 esac
16074 echo "$as_me:$LINENO: checking for $ac_header" >&5
16075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 else
16079 eval "$as_ac_Header=\$ac_header_preproc"
16080 fi
16081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16083
16084 fi
16085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16088 _ACEOF
16089
16090 fi
16091
16092 done
16093
16094
16095 for ac_header in ncurses/term.h
16096 do
16097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16099 echo "$as_me:$LINENO: checking for $ac_header" >&5
16100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 fi
16104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16106 else
16107 # Is the header compilable?
16108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 $ac_includes_default
16117 #include <$ac_header>
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -z "$ac_c_werror_flag"
16129 || test ! -s conftest.err'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_header_compiler=yes
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_header_compiler=no
16147 fi
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16150 echo "${ECHO_T}$ac_header_compiler" >&6
16151
16152 # Is the header present?
16153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h. */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 #include <$ac_header>
16162 _ACEOF
16163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } >/dev/null; then
16171 if test -s conftest.err; then
16172 ac_cpp_err=$ac_c_preproc_warn_flag
16173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16174 else
16175 ac_cpp_err=
16176 fi
16177 else
16178 ac_cpp_err=yes
16179 fi
16180 if test -z "$ac_cpp_err"; then
16181 ac_header_preproc=yes
16182 else
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16185
16186 ac_header_preproc=no
16187 fi
16188 rm -f conftest.err conftest.$ac_ext
16189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16190 echo "${ECHO_T}$ac_header_preproc" >&6
16191
16192 # So? What about this header?
16193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16194 yes:no: )
16195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16199 ac_header_preproc=yes
16200 ;;
16201 no:yes:* )
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16214 (
16215 cat <<\_ASBOX
16216 ## ------------------------------------------ ##
16217 ## Report this to the AC_PACKAGE_NAME lists. ##
16218 ## ------------------------------------------ ##
16219 _ASBOX
16220 ) |
16221 sed "s/^/$as_me: WARNING: /" >&2
16222 ;;
16223 esac
16224 echo "$as_me:$LINENO: checking for $ac_header" >&5
16225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229 eval "$as_ac_Header=\$ac_header_preproc"
16230 fi
16231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16233
16234 fi
16235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16236 cat >>confdefs.h <<_ACEOF
16237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16238 _ACEOF
16239
16240 fi
16241
16242 done
16243
16244
16245 for ac_header in term.h
16246 do
16247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16248 echo "$as_me:$LINENO: checking for $ac_header" >&5
16249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #if HAVE_CURSES_H
16260 # include <curses.h>
16261 #endif
16262
16263
16264 #include <$ac_header>
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 (eval $ac_compile) 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_c_werror_flag"
16276 || test ! -s conftest.err'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 eval "$as_ac_Header=yes"
16289 else
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 eval "$as_ac_Header=no"
16294 fi
16295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16296 fi
16297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16300 cat >>confdefs.h <<_ACEOF
16301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16302 _ACEOF
16303
16304 fi
16305
16306 done
16307
16308
16309 # Check for HP/UX 64-bit shared library support
16310
16311 for ac_header in elf_hp.h
16312 do
16313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16315 echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 fi
16320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16322 else
16323 # Is the header compilable?
16324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16326 cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h. */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 $ac_includes_default
16333 #include <$ac_header>
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_header_compiler=yes
16358 else
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362 ac_header_compiler=no
16363 fi
16364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16366 echo "${ECHO_T}$ac_header_compiler" >&6
16367
16368 # Is the header present?
16369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h. */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #include <$ac_header>
16378 _ACEOF
16379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16381 ac_status=$?
16382 grep -v '^ *+' conftest.er1 >conftest.err
16383 rm -f conftest.er1
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } >/dev/null; then
16387 if test -s conftest.err; then
16388 ac_cpp_err=$ac_c_preproc_warn_flag
16389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16390 else
16391 ac_cpp_err=
16392 fi
16393 else
16394 ac_cpp_err=yes
16395 fi
16396 if test -z "$ac_cpp_err"; then
16397 ac_header_preproc=yes
16398 else
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16401
16402 ac_header_preproc=no
16403 fi
16404 rm -f conftest.err conftest.$ac_ext
16405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16406 echo "${ECHO_T}$ac_header_preproc" >&6
16407
16408 # So? What about this header?
16409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16410 yes:no: )
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16415 ac_header_preproc=yes
16416 ;;
16417 no:yes:* )
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16430 (
16431 cat <<\_ASBOX
16432 ## ------------------------------------------ ##
16433 ## Report this to the AC_PACKAGE_NAME lists. ##
16434 ## ------------------------------------------ ##
16435 _ASBOX
16436 ) |
16437 sed "s/^/$as_me: WARNING: /" >&2
16438 ;;
16439 esac
16440 echo "$as_me:$LINENO: checking for $ac_header" >&5
16441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445 eval "$as_ac_Header=\$ac_header_preproc"
16446 fi
16447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16449
16450 fi
16451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16452 cat >>confdefs.h <<_ACEOF
16453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16454 _ACEOF
16455
16456 fi
16457
16458 done
16459
16460
16461 # FIXME: kettenis/20030102: In most cases we include these
16462 # unconditionally, so what's the point in checking these?
16463
16464
16465 for ac_header in ctype.h time.h
16466 do
16467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16469 echo "$as_me:$LINENO: checking for $ac_header" >&5
16470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 fi
16474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16476 else
16477 # Is the header compilable?
16478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16480 cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h. */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 $ac_includes_default
16487 #include <$ac_header>
16488 _ACEOF
16489 rm -f conftest.$ac_objext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16491 (eval $ac_compile) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_header_compiler=yes
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16515
16516 ac_header_compiler=no
16517 fi
16518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16520 echo "${ECHO_T}$ac_header_compiler" >&6
16521
16522 # Is the header present?
16523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16525 cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h. */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 #include <$ac_header>
16532 _ACEOF
16533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16535 ac_status=$?
16536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } >/dev/null; then
16541 if test -s conftest.err; then
16542 ac_cpp_err=$ac_c_preproc_warn_flag
16543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16544 else
16545 ac_cpp_err=
16546 fi
16547 else
16548 ac_cpp_err=yes
16549 fi
16550 if test -z "$ac_cpp_err"; then
16551 ac_header_preproc=yes
16552 else
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556 ac_header_preproc=no
16557 fi
16558 rm -f conftest.err conftest.$ac_ext
16559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16560 echo "${ECHO_T}$ac_header_preproc" >&6
16561
16562 # So? What about this header?
16563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16564 yes:no: )
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16569 ac_header_preproc=yes
16570 ;;
16571 no:yes:* )
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16584 (
16585 cat <<\_ASBOX
16586 ## ------------------------------------------ ##
16587 ## Report this to the AC_PACKAGE_NAME lists. ##
16588 ## ------------------------------------------ ##
16589 _ASBOX
16590 ) |
16591 sed "s/^/$as_me: WARNING: /" >&2
16592 ;;
16593 esac
16594 echo "$as_me:$LINENO: checking for $ac_header" >&5
16595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599 eval "$as_ac_Header=\$ac_header_preproc"
16600 fi
16601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16603
16604 fi
16605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16606 cat >>confdefs.h <<_ACEOF
16607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16608 _ACEOF
16609
16610 fi
16611
16612 done
16613
16614
16615 # ------------------------- #
16616 # Checks for declarations. #
16617 # ------------------------- #
16618
16619 echo "$as_me:$LINENO: checking whether free is declared" >&5
16620 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16621 if test "${ac_cv_have_decl_free+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 else
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 $ac_includes_default
16631 int
16632 main ()
16633 {
16634 #ifndef free
16635 char *p = (char *) free;
16636 #endif
16637
16638 ;
16639 return 0;
16640 }
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag"
16652 || test ! -s conftest.err'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_have_decl_free=yes
16665 else
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16668
16669 ac_cv_have_decl_free=no
16670 fi
16671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672 fi
16673 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16674 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16675 if test $ac_cv_have_decl_free = yes; then
16676
16677 cat >>confdefs.h <<_ACEOF
16678 #define HAVE_DECL_FREE 1
16679 _ACEOF
16680
16681
16682 else
16683 cat >>confdefs.h <<_ACEOF
16684 #define HAVE_DECL_FREE 0
16685 _ACEOF
16686
16687
16688 fi
16689 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16690 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16691 if test "${ac_cv_have_decl_malloc+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h. */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 $ac_includes_default
16701 int
16702 main ()
16703 {
16704 #ifndef malloc
16705 char *p = (char *) malloc;
16706 #endif
16707
16708 ;
16709 return 0;
16710 }
16711 _ACEOF
16712 rm -f conftest.$ac_objext
16713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag"
16722 || test ! -s conftest.err'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; } &&
16728 { ac_try='test -s conftest.$ac_objext'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 ac_cv_have_decl_malloc=yes
16735 else
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16738
16739 ac_cv_have_decl_malloc=no
16740 fi
16741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16742 fi
16743 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16744 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16745 if test $ac_cv_have_decl_malloc = yes; then
16746
16747 cat >>confdefs.h <<_ACEOF
16748 #define HAVE_DECL_MALLOC 1
16749 _ACEOF
16750
16751
16752 else
16753 cat >>confdefs.h <<_ACEOF
16754 #define HAVE_DECL_MALLOC 0
16755 _ACEOF
16756
16757
16758 fi
16759 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16760 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16761 if test "${ac_cv_have_decl_realloc+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 $ac_includes_default
16771 int
16772 main ()
16773 {
16774 #ifndef realloc
16775 char *p = (char *) realloc;
16776 #endif
16777
16778 ;
16779 return 0;
16780 }
16781 _ACEOF
16782 rm -f conftest.$ac_objext
16783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16784 (eval $ac_compile) 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag"
16792 || test ! -s conftest.err'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest.$ac_objext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_have_decl_realloc=yes
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 ac_cv_have_decl_realloc=no
16810 fi
16811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16812 fi
16813 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16814 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16815 if test $ac_cv_have_decl_realloc = yes; then
16816
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_DECL_REALLOC 1
16819 _ACEOF
16820
16821
16822 else
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_DECL_REALLOC 0
16825 _ACEOF
16826
16827
16828 fi
16829
16830
16831 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16832 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
16833 if test "${ac_cv_have_decl_strerror+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836 cat >conftest.$ac_ext <<_ACEOF
16837 /* confdefs.h. */
16838 _ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 $ac_includes_default
16843 int
16844 main ()
16845 {
16846 #ifndef strerror
16847 char *p = (char *) strerror;
16848 #endif
16849
16850 ;
16851 return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext
16855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16856 (eval $ac_compile) 2>conftest.er1
16857 ac_status=$?
16858 grep -v '^ *+' conftest.er1 >conftest.err
16859 rm -f conftest.er1
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
16863 { ac_try='test -z "$ac_c_werror_flag"
16864 || test ! -s conftest.err'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest.$ac_objext'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_have_decl_strerror=yes
16877 else
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 ac_cv_have_decl_strerror=no
16882 fi
16883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16884 fi
16885 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16886 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16887 if test $ac_cv_have_decl_strerror = yes; then
16888
16889 cat >>confdefs.h <<_ACEOF
16890 #define HAVE_DECL_STRERROR 1
16891 _ACEOF
16892
16893
16894 else
16895 cat >>confdefs.h <<_ACEOF
16896 #define HAVE_DECL_STRERROR 0
16897 _ACEOF
16898
16899
16900 fi
16901 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16902 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16903 if test "${ac_cv_have_decl_strstr+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 $ac_includes_default
16913 int
16914 main ()
16915 {
16916 #ifndef strstr
16917 char *p = (char *) strstr;
16918 #endif
16919
16920 ;
16921 return 0;
16922 }
16923 _ACEOF
16924 rm -f conftest.$ac_objext
16925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926 (eval $ac_compile) 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag"
16934 || test ! -s conftest.err'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try='test -s conftest.$ac_objext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 ac_cv_have_decl_strstr=yes
16947 else
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951 ac_cv_have_decl_strstr=no
16952 fi
16953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16954 fi
16955 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16956 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16957 if test $ac_cv_have_decl_strstr = yes; then
16958
16959 cat >>confdefs.h <<_ACEOF
16960 #define HAVE_DECL_STRSTR 1
16961 _ACEOF
16962
16963
16964 else
16965 cat >>confdefs.h <<_ACEOF
16966 #define HAVE_DECL_STRSTR 0
16967 _ACEOF
16968
16969
16970 fi
16971
16972
16973 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16974 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
16975 if test "${ac_cv_have_decl_getopt+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978 cat >conftest.$ac_ext <<_ACEOF
16979 /* confdefs.h. */
16980 _ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h. */
16984 $ac_includes_default
16985 int
16986 main ()
16987 {
16988 #ifndef getopt
16989 char *p = (char *) getopt;
16990 #endif
16991
16992 ;
16993 return 0;
16994 }
16995 _ACEOF
16996 rm -f conftest.$ac_objext
16997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16998 (eval $ac_compile) 2>conftest.er1
16999 ac_status=$?
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag"
17006 || test ! -s conftest.err'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest.$ac_objext'
17013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
17018 ac_cv_have_decl_getopt=yes
17019 else
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 ac_cv_have_decl_getopt=no
17024 fi
17025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17026 fi
17027 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
17028 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
17029 if test $ac_cv_have_decl_getopt = yes; then
17030
17031 cat >>confdefs.h <<_ACEOF
17032 #define HAVE_DECL_GETOPT 1
17033 _ACEOF
17034
17035
17036 else
17037 cat >>confdefs.h <<_ACEOF
17038 #define HAVE_DECL_GETOPT 0
17039 _ACEOF
17040
17041
17042 fi
17043 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17044 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17045 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h. */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17054 $ac_includes_default
17055 int
17056 main ()
17057 {
17058 #ifndef snprintf
17059 char *p = (char *) snprintf;
17060 #endif
17061
17062 ;
17063 return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17068 (eval $ac_compile) 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag"
17076 || test ! -s conftest.err'
17077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17078 (eval $ac_try) 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_cv_have_decl_snprintf=yes
17089 else
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 ac_cv_have_decl_snprintf=no
17094 fi
17095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17096 fi
17097 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17098 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17099 if test $ac_cv_have_decl_snprintf = yes; then
17100
17101 cat >>confdefs.h <<_ACEOF
17102 #define HAVE_DECL_SNPRINTF 1
17103 _ACEOF
17104
17105
17106 else
17107 cat >>confdefs.h <<_ACEOF
17108 #define HAVE_DECL_SNPRINTF 0
17109 _ACEOF
17110
17111
17112 fi
17113 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17114 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17115 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h. */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 $ac_includes_default
17125 int
17126 main ()
17127 {
17128 #ifndef vsnprintf
17129 char *p = (char *) vsnprintf;
17130 #endif
17131
17132 ;
17133 return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest.$ac_objext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17138 (eval $ac_compile) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_cv_have_decl_vsnprintf=yes
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163 ac_cv_have_decl_vsnprintf=no
17164 fi
17165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17166 fi
17167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17168 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17169 if test $ac_cv_have_decl_vsnprintf = yes; then
17170
17171 cat >>confdefs.h <<_ACEOF
17172 #define HAVE_DECL_VSNPRINTF 1
17173 _ACEOF
17174
17175
17176 else
17177 cat >>confdefs.h <<_ACEOF
17178 #define HAVE_DECL_VSNPRINTF 0
17179 _ACEOF
17180
17181
17182 fi
17183
17184
17185
17186 # ----------------------- #
17187 # Checks for structures. #
17188 # ----------------------- #
17189
17190 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17191 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17192 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195 cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h. */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 $ac_includes_default
17202 int
17203 main ()
17204 {
17205 static struct stat ac_aggr;
17206 if (ac_aggr.st_blocks)
17207 return 0;
17208 ;
17209 return 0;
17210 }
17211 _ACEOF
17212 rm -f conftest.$ac_objext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17214 (eval $ac_compile) 2>conftest.er1
17215 ac_status=$?
17216 grep -v '^ *+' conftest.er1 >conftest.err
17217 rm -f conftest.er1
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } &&
17221 { ac_try='test -z "$ac_c_werror_flag"
17222 || test ! -s conftest.err'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest.$ac_objext'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_member_struct_stat_st_blocks=yes
17235 else
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 $ac_includes_default
17246 int
17247 main ()
17248 {
17249 static struct stat ac_aggr;
17250 if (sizeof ac_aggr.st_blocks)
17251 return 0;
17252 ;
17253 return 0;
17254 }
17255 _ACEOF
17256 rm -f conftest.$ac_objext
17257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag"
17266 || test ! -s conftest.err'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest.$ac_objext'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 ac_cv_member_struct_stat_st_blocks=yes
17279 else
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 ac_cv_member_struct_stat_st_blocks=no
17284 fi
17285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17286 fi
17287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17288 fi
17289 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17290 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17291 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17292
17293 cat >>confdefs.h <<_ACEOF
17294 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17295 _ACEOF
17296
17297
17298 fi
17299
17300 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17301 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17302 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $ac_includes_default
17312 int
17313 main ()
17314 {
17315 static struct stat ac_aggr;
17316 if (ac_aggr.st_blksize)
17317 return 0;
17318 ;
17319 return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17324 (eval $ac_compile) 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest.$ac_objext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_member_struct_stat_st_blksize=yes
17345 else
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17348
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h. */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 $ac_includes_default
17356 int
17357 main ()
17358 {
17359 static struct stat ac_aggr;
17360 if (sizeof ac_aggr.st_blksize)
17361 return 0;
17362 ;
17363 return 0;
17364 }
17365 _ACEOF
17366 rm -f conftest.$ac_objext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17368 (eval $ac_compile) 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } &&
17375 { ac_try='test -z "$ac_c_werror_flag"
17376 || test ! -s conftest.err'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } &&
17382 { ac_try='test -s conftest.$ac_objext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_member_struct_stat_st_blksize=yes
17389 else
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393 ac_cv_member_struct_stat_st_blksize=no
17394 fi
17395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17396 fi
17397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398 fi
17399 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17400 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17401 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17402
17403 cat >>confdefs.h <<_ACEOF
17404 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17405 _ACEOF
17406
17407
17408 fi
17409
17410
17411 # ------------------ #
17412 # Checks for types. #
17413 # ------------------ #
17414
17415 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17416 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17417 if test "${ac_cv_type_signal+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 #include <sys/types.h>
17427 #include <signal.h>
17428 #ifdef signal
17429 # undef signal
17430 #endif
17431 #ifdef __cplusplus
17432 extern "C" void (*signal (int, void (*)(int)))(int);
17433 #else
17434 void (*signal ()) ();
17435 #endif
17436
17437 int
17438 main ()
17439 {
17440 int i;
17441 ;
17442 return 0;
17443 }
17444 _ACEOF
17445 rm -f conftest.$ac_objext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447 (eval $ac_compile) 2>conftest.er1
17448 ac_status=$?
17449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
17454 { ac_try='test -z "$ac_c_werror_flag"
17455 || test ! -s conftest.err'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest.$ac_objext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_cv_type_signal=void
17468 else
17469 echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17471
17472 ac_cv_type_signal=int
17473 fi
17474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475 fi
17476 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17477 echo "${ECHO_T}$ac_cv_type_signal" >&6
17478
17479 cat >>confdefs.h <<_ACEOF
17480 #define RETSIGTYPE $ac_cv_type_signal
17481 _ACEOF
17482
17483
17484 echo "$as_me:$LINENO: checking for socklen_t" >&5
17485 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17486 if test "${ac_cv_type_socklen_t+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489 cat >conftest.$ac_ext <<_ACEOF
17490 /* confdefs.h. */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 #include <sys/types.h>
17496 #include <sys/socket.h>
17497
17498
17499 int
17500 main ()
17501 {
17502 if ((socklen_t *) 0)
17503 return 0;
17504 if (sizeof (socklen_t))
17505 return 0;
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest.$ac_objext
17511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17512 (eval $ac_compile) 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag"
17520 || test ! -s conftest.err'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; } &&
17526 { ac_try='test -s conftest.$ac_objext'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_type_socklen_t=yes
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537 ac_cv_type_socklen_t=no
17538 fi
17539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17540 fi
17541 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17542 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17543 if test $ac_cv_type_socklen_t = yes; then
17544
17545 cat >>confdefs.h <<_ACEOF
17546 #define HAVE_SOCKLEN_T 1
17547 _ACEOF
17548
17549
17550 fi
17551
17552
17553 # ------------------------------------- #
17554 # Checks for compiler characteristics. #
17555 # ------------------------------------- #
17556
17557 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17558 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17559 if test "${ac_cv_c_const+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562 cat >conftest.$ac_ext <<_ACEOF
17563 /* confdefs.h. */
17564 _ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568
17569 int
17570 main ()
17571 {
17572 /* FIXME: Include the comments suggested by Paul. */
17573 #ifndef __cplusplus
17574 /* Ultrix mips cc rejects this. */
17575 typedef int charset[2];
17576 const charset x;
17577 /* SunOS 4.1.1 cc rejects this. */
17578 char const *const *ccp;
17579 char **p;
17580 /* NEC SVR4.0.2 mips cc rejects this. */
17581 struct point {int x, y;};
17582 static struct point const zero = {0,0};
17583 /* AIX XL C 1.02.0.0 rejects this.
17584 It does not let you subtract one const X* pointer from another in
17585 an arm of an if-expression whose if-part is not a constant
17586 expression */
17587 const char *g = "string";
17588 ccp = &g + (g ? g-g : 0);
17589 /* HPUX 7.0 cc rejects these. */
17590 ++ccp;
17591 p = (char**) ccp;
17592 ccp = (char const *const *) p;
17593 { /* SCO 3.2v4 cc rejects this. */
17594 char *t;
17595 char const *s = 0 ? (char *) 0 : (char const *) 0;
17596
17597 *t++ = 0;
17598 }
17599 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17600 int x[] = {25, 17};
17601 const int *foo = &x[0];
17602 ++foo;
17603 }
17604 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17605 typedef const int *iptr;
17606 iptr p = 0;
17607 ++p;
17608 }
17609 { /* AIX XL C 1.02.0.0 rejects this saying
17610 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17611 struct s { int j; const int *ap[3]; };
17612 struct s *b; b->j = 5;
17613 }
17614 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17615 const int foo = 10;
17616 }
17617 #endif
17618
17619 ;
17620 return 0;
17621 }
17622 _ACEOF
17623 rm -f conftest.$ac_objext
17624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17625 (eval $ac_compile) 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
17632 { ac_try='test -z "$ac_c_werror_flag"
17633 || test ! -s conftest.err'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } &&
17639 { ac_try='test -s conftest.$ac_objext'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_cv_c_const=yes
17646 else
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650 ac_cv_c_const=no
17651 fi
17652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17653 fi
17654 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17655 echo "${ECHO_T}$ac_cv_c_const" >&6
17656 if test $ac_cv_c_const = no; then
17657
17658 cat >>confdefs.h <<\_ACEOF
17659 #define const
17660 _ACEOF
17661
17662 fi
17663
17664 echo "$as_me:$LINENO: checking for inline" >&5
17665 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17666 if test "${ac_cv_c_inline+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669 ac_cv_c_inline=no
17670 for ac_kw in inline __inline__ __inline; do
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h. */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 #ifndef __cplusplus
17678 typedef int foo_t;
17679 static $ac_kw foo_t static_foo () {return 0; }
17680 $ac_kw foo_t foo () {return 0; }
17681 #endif
17682
17683 _ACEOF
17684 rm -f conftest.$ac_objext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686 (eval $ac_compile) 2>conftest.er1
17687 ac_status=$?
17688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag"
17694 || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest.$ac_objext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_c_inline=$ac_kw; break
17707 else
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 fi
17712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17713 done
17714
17715 fi
17716 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17717 echo "${ECHO_T}$ac_cv_c_inline" >&6
17718
17719
17720 case $ac_cv_c_inline in
17721 inline | yes) ;;
17722 *)
17723 case $ac_cv_c_inline in
17724 no) ac_val=;;
17725 *) ac_val=$ac_cv_c_inline;;
17726 esac
17727 cat >>confdefs.h <<_ACEOF
17728 #ifndef __cplusplus
17729 #define inline $ac_val
17730 #endif
17731 _ACEOF
17732 ;;
17733 esac
17734
17735 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17736 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17737 if test "${ac_cv_c_bigendian+set}" = set; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740 # See if sys/param.h defines the BYTE_ORDER macro.
17741 cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h. */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747 #include <sys/types.h>
17748 #include <sys/param.h>
17749
17750 int
17751 main ()
17752 {
17753 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17754 bogus endian macros
17755 #endif
17756
17757 ;
17758 return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763 (eval $ac_compile) 2>conftest.er1
17764 ac_status=$?
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 # It does; now see whether it defined to BIG_ENDIAN or not.
17784 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h. */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 #include <sys/types.h>
17791 #include <sys/param.h>
17792
17793 int
17794 main ()
17795 {
17796 #if BYTE_ORDER != BIG_ENDIAN
17797 not big endian
17798 #endif
17799
17800 ;
17801 return 0;
17802 }
17803 _ACEOF
17804 rm -f conftest.$ac_objext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17806 (eval $ac_compile) 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag"
17814 || test ! -s conftest.err'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_cv_c_bigendian=yes
17827 else
17828 echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17830
17831 ac_cv_c_bigendian=no
17832 fi
17833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17834 else
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 # It does not; compile a test program.
17839 if test "$cross_compiling" = yes; then
17840 # try to guess the endianness by grepping values into an object file
17841 ac_cv_c_bigendian=unknown
17842 cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h. */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17848 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17849 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17850 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17851 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17852 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17853 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17854 int
17855 main ()
17856 {
17857 _ascii (); _ebcdic ();
17858 ;
17859 return 0;
17860 }
17861 _ACEOF
17862 rm -f conftest.$ac_objext
17863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17864 (eval $ac_compile) 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_c_werror_flag"
17872 || test ! -s conftest.err'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; } &&
17878 { ac_try='test -s conftest.$ac_objext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17885 ac_cv_c_bigendian=yes
17886 fi
17887 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17888 if test "$ac_cv_c_bigendian" = unknown; then
17889 ac_cv_c_bigendian=no
17890 else
17891 # finding both strings is unlikely to happen, but who knows?
17892 ac_cv_c_bigendian=unknown
17893 fi
17894 fi
17895 else
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 fi
17900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17901 else
17902 cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h. */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 int
17909 main ()
17910 {
17911 /* Are we little or big endian? From Harbison&Steele. */
17912 union
17913 {
17914 long l;
17915 char c[sizeof (long)];
17916 } u;
17917 u.l = 1;
17918 exit (u.c[sizeof (long) - 1] == 1);
17919 }
17920 _ACEOF
17921 rm -f conftest$ac_exeext
17922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17923 (eval $ac_link) 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_cv_c_bigendian=no
17933 else
17934 echo "$as_me: program exited with status $ac_status" >&5
17935 echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17937
17938 ( exit $ac_status )
17939 ac_cv_c_bigendian=yes
17940 fi
17941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17942 fi
17943 fi
17944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17945 fi
17946 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17947 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17948 case $ac_cv_c_bigendian in
17949 yes)
17950
17951 cat >>confdefs.h <<\_ACEOF
17952 #define WORDS_BIGENDIAN 1
17953 _ACEOF
17954 ;;
17955 no)
17956 ;;
17957 *)
17958 { { echo "$as_me:$LINENO: error: unknown endianness
17959 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17960 echo "$as_me: error: unknown endianness
17961 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17962 { (exit 1); exit 1; }; } ;;
17963 esac
17964
17965
17966 # ------------------------------ #
17967 # Checks for library functions. #
17968 # ------------------------------ #
17969
17970 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17971 # for constant arguments. Useless!
17972 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17973 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17974 if test "${ac_cv_working_alloca_h+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977 cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h. */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 #include <alloca.h>
17984 int
17985 main ()
17986 {
17987 char *p = (char *) alloca (2 * sizeof (int));
17988 ;
17989 return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_working_alloca_h=yes
18015 else
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019 ac_cv_working_alloca_h=no
18020 fi
18021 rm -f conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18023 fi
18024 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18025 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18026 if test $ac_cv_working_alloca_h = yes; then
18027
18028 cat >>confdefs.h <<\_ACEOF
18029 #define HAVE_ALLOCA_H 1
18030 _ACEOF
18031
18032 fi
18033
18034 echo "$as_me:$LINENO: checking for alloca" >&5
18035 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18036 if test "${ac_cv_func_alloca_works+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039 cat >conftest.$ac_ext <<_ACEOF
18040 /* confdefs.h. */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18045 #ifdef __GNUC__
18046 # define alloca __builtin_alloca
18047 #else
18048 # ifdef _MSC_VER
18049 # include <malloc.h>
18050 # define alloca _alloca
18051 # else
18052 # if HAVE_ALLOCA_H
18053 # include <alloca.h>
18054 # else
18055 # ifdef _AIX
18056 #pragma alloca
18057 # else
18058 # ifndef alloca /* predefined by HP cc +Olibcalls */
18059 char *alloca ();
18060 # endif
18061 # endif
18062 # endif
18063 # endif
18064 #endif
18065
18066 int
18067 main ()
18068 {
18069 char *p = (char *) alloca (1);
18070 ;
18071 return 0;
18072 }
18073 _ACEOF
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18076 (eval $ac_link) 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -z "$ac_c_werror_flag"
18084 || test ! -s conftest.err'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096 ac_cv_func_alloca_works=yes
18097 else
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 ac_cv_func_alloca_works=no
18102 fi
18103 rm -f conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
18105 fi
18106 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18107 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18108
18109 if test $ac_cv_func_alloca_works = yes; then
18110
18111 cat >>confdefs.h <<\_ACEOF
18112 #define HAVE_ALLOCA 1
18113 _ACEOF
18114
18115 else
18116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18117 # that cause trouble. Some versions do not even contain alloca or
18118 # contain a buggy version. If you still want to use their alloca,
18119 # use ar to extract alloca.o from them instead of compiling alloca.c.
18120
18121 ALLOCA=alloca.$ac_objext
18122
18123 cat >>confdefs.h <<\_ACEOF
18124 #define C_ALLOCA 1
18125 _ACEOF
18126
18127
18128 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18129 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18130 if test "${ac_cv_os_cray+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 #if defined(CRAY) && ! defined(CRAY2)
18140 webecray
18141 #else
18142 wenotbecray
18143 #endif
18144
18145 _ACEOF
18146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18147 $EGREP "webecray" >/dev/null 2>&1; then
18148 ac_cv_os_cray=yes
18149 else
18150 ac_cv_os_cray=no
18151 fi
18152 rm -f conftest*
18153
18154 fi
18155 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18156 echo "${ECHO_T}$ac_cv_os_cray" >&6
18157 if test $ac_cv_os_cray = yes; then
18158 for ac_func in _getb67 GETB67 getb67; do
18159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18160 echo "$as_me:$LINENO: checking for $ac_func" >&5
18161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18162 if eval "test \"\${$as_ac_var+set}\" = set"; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165 cat >conftest.$ac_ext <<_ACEOF
18166 /* confdefs.h. */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18173 #define $ac_func innocuous_$ac_func
18174
18175 /* System header to define __stub macros and hopefully few prototypes,
18176 which can conflict with char $ac_func (); below.
18177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18178 <limits.h> exists even on freestanding compilers. */
18179
18180 #ifdef __STDC__
18181 # include <limits.h>
18182 #else
18183 # include <assert.h>
18184 #endif
18185
18186 #undef $ac_func
18187
18188 /* Override any gcc2 internal prototype to avoid an error. */
18189 #ifdef __cplusplus
18190 extern "C"
18191 {
18192 #endif
18193 /* We use char because int might match the return type of a gcc2
18194 builtin and then its argument prototype would still apply. */
18195 char $ac_func ();
18196 /* The GNU C library defines this for functions which it implements
18197 to always fail with ENOSYS. Some functions are actually named
18198 something starting with __ and the normal name is an alias. */
18199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18200 choke me
18201 #else
18202 char (*f) () = $ac_func;
18203 #endif
18204 #ifdef __cplusplus
18205 }
18206 #endif
18207
18208 int
18209 main ()
18210 {
18211 return f != $ac_func;
18212 ;
18213 return 0;
18214 }
18215 _ACEOF
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18218 (eval $ac_link) 2>conftest.er1
18219 ac_status=$?
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } &&
18225 { ac_try='test -z "$ac_c_werror_flag"
18226 || test ! -s conftest.err'
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest$ac_exeext'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 eval "$as_ac_var=yes"
18239 else
18240 echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243 eval "$as_ac_var=no"
18244 fi
18245 rm -f conftest.err conftest.$ac_objext \
18246 conftest$ac_exeext conftest.$ac_ext
18247 fi
18248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18250 if test `eval echo '${'$as_ac_var'}'` = yes; then
18251
18252 cat >>confdefs.h <<_ACEOF
18253 #define CRAY_STACKSEG_END $ac_func
18254 _ACEOF
18255
18256 break
18257 fi
18258
18259 done
18260 fi
18261
18262 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18263 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18264 if test "${ac_cv_c_stack_direction+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267 if test "$cross_compiling" = yes; then
18268 ac_cv_c_stack_direction=0
18269 else
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 int
18277 find_stack_direction ()
18278 {
18279 static char *addr = 0;
18280 auto char dummy;
18281 if (addr == 0)
18282 {
18283 addr = &dummy;
18284 return find_stack_direction ();
18285 }
18286 else
18287 return (&dummy > addr) ? 1 : -1;
18288 }
18289
18290 int
18291 main ()
18292 {
18293 exit (find_stack_direction () < 0);
18294 }
18295 _ACEOF
18296 rm -f conftest$ac_exeext
18297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18298 (eval $ac_link) 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_c_stack_direction=1
18308 else
18309 echo "$as_me: program exited with status $ac_status" >&5
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18312
18313 ( exit $ac_status )
18314 ac_cv_c_stack_direction=-1
18315 fi
18316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18317 fi
18318 fi
18319 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18320 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18321
18322 cat >>confdefs.h <<_ACEOF
18323 #define STACK_DIRECTION $ac_cv_c_stack_direction
18324 _ACEOF
18325
18326
18327 fi
18328
18329
18330
18331 for ac_header in stdlib.h unistd.h
18332 do
18333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18335 echo "$as_me:$LINENO: checking for $ac_header" >&5
18336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 fi
18340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18342 else
18343 # Is the header compilable?
18344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18346 cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h. */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18352 $ac_includes_default
18353 #include <$ac_header>
18354 _ACEOF
18355 rm -f conftest.$ac_objext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_header_compiler=yes
18378 else
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18381
18382 ac_header_compiler=no
18383 fi
18384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18386 echo "${ECHO_T}$ac_header_compiler" >&6
18387
18388 # Is the header present?
18389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h. */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 #include <$ac_header>
18398 _ACEOF
18399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } >/dev/null; then
18407 if test -s conftest.err; then
18408 ac_cpp_err=$ac_c_preproc_warn_flag
18409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18410 else
18411 ac_cpp_err=
18412 fi
18413 else
18414 ac_cpp_err=yes
18415 fi
18416 if test -z "$ac_cpp_err"; then
18417 ac_header_preproc=yes
18418 else
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422 ac_header_preproc=no
18423 fi
18424 rm -f conftest.err conftest.$ac_ext
18425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18426 echo "${ECHO_T}$ac_header_preproc" >&6
18427
18428 # So? What about this header?
18429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18430 yes:no: )
18431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18435 ac_header_preproc=yes
18436 ;;
18437 no:yes:* )
18438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18450 (
18451 cat <<\_ASBOX
18452 ## ------------------------------------------ ##
18453 ## Report this to the AC_PACKAGE_NAME lists. ##
18454 ## ------------------------------------------ ##
18455 _ASBOX
18456 ) |
18457 sed "s/^/$as_me: WARNING: /" >&2
18458 ;;
18459 esac
18460 echo "$as_me:$LINENO: checking for $ac_header" >&5
18461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18464 else
18465 eval "$as_ac_Header=\$ac_header_preproc"
18466 fi
18467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18469
18470 fi
18471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18474 _ACEOF
18475
18476 fi
18477
18478 done
18479
18480
18481 for ac_func in getpagesize
18482 do
18483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18484 echo "$as_me:$LINENO: checking for $ac_func" >&5
18485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18486 if eval "test \"\${$as_ac_var+set}\" = set"; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 else
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h. */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18497 #define $ac_func innocuous_$ac_func
18498
18499 /* System header to define __stub macros and hopefully few prototypes,
18500 which can conflict with char $ac_func (); below.
18501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18502 <limits.h> exists even on freestanding compilers. */
18503
18504 #ifdef __STDC__
18505 # include <limits.h>
18506 #else
18507 # include <assert.h>
18508 #endif
18509
18510 #undef $ac_func
18511
18512 /* Override any gcc2 internal prototype to avoid an error. */
18513 #ifdef __cplusplus
18514 extern "C"
18515 {
18516 #endif
18517 /* We use char because int might match the return type of a gcc2
18518 builtin and then its argument prototype would still apply. */
18519 char $ac_func ();
18520 /* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18524 choke me
18525 #else
18526 char (*f) () = $ac_func;
18527 #endif
18528 #ifdef __cplusplus
18529 }
18530 #endif
18531
18532 int
18533 main ()
18534 {
18535 return f != $ac_func;
18536 ;
18537 return 0;
18538 }
18539 _ACEOF
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18542 (eval $ac_link) 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -z "$ac_c_werror_flag"
18550 || test ! -s conftest.err'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; } &&
18556 { ac_try='test -s conftest$ac_exeext'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 eval "$as_ac_var=yes"
18563 else
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 eval "$as_ac_var=no"
18568 fi
18569 rm -f conftest.err conftest.$ac_objext \
18570 conftest$ac_exeext conftest.$ac_ext
18571 fi
18572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18574 if test `eval echo '${'$as_ac_var'}'` = yes; then
18575 cat >>confdefs.h <<_ACEOF
18576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18577 _ACEOF
18578
18579 fi
18580 done
18581
18582 echo "$as_me:$LINENO: checking for working mmap" >&5
18583 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18584 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587 if test "$cross_compiling" = yes; then
18588 ac_cv_func_mmap_fixed_mapped=no
18589 else
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596 $ac_includes_default
18597 /* malloc might have been renamed as rpl_malloc. */
18598 #undef malloc
18599
18600 /* Thanks to Mike Haertel and Jim Avera for this test.
18601 Here is a matrix of mmap possibilities:
18602 mmap private not fixed
18603 mmap private fixed at somewhere currently unmapped
18604 mmap private fixed at somewhere already mapped
18605 mmap shared not fixed
18606 mmap shared fixed at somewhere currently unmapped
18607 mmap shared fixed at somewhere already mapped
18608 For private mappings, we should verify that changes cannot be read()
18609 back from the file, nor mmap's back from the file at a different
18610 address. (There have been systems where private was not correctly
18611 implemented like the infamous i386 svr4.0, and systems where the
18612 VM page cache was not coherent with the file system buffer cache
18613 like early versions of FreeBSD and possibly contemporary NetBSD.)
18614 For shared mappings, we should conversely verify that changes get
18615 propagated back to all the places they're supposed to be.
18616
18617 Grep wants private fixed already mapped.
18618 The main things grep needs to know about mmap are:
18619 * does it exist and is it safe to write into the mmap'd area
18620 * how to use it (BSD variants) */
18621
18622 #include <fcntl.h>
18623 #include <sys/mman.h>
18624
18625 #if !STDC_HEADERS && !HAVE_STDLIB_H
18626 char *malloc ();
18627 #endif
18628
18629 /* This mess was copied from the GNU getpagesize.h. */
18630 #if !HAVE_GETPAGESIZE
18631 /* Assume that all systems that can run configure have sys/param.h. */
18632 # if !HAVE_SYS_PARAM_H
18633 # define HAVE_SYS_PARAM_H 1
18634 # endif
18635
18636 # ifdef _SC_PAGESIZE
18637 # define getpagesize() sysconf(_SC_PAGESIZE)
18638 # else /* no _SC_PAGESIZE */
18639 # if HAVE_SYS_PARAM_H
18640 # include <sys/param.h>
18641 # ifdef EXEC_PAGESIZE
18642 # define getpagesize() EXEC_PAGESIZE
18643 # else /* no EXEC_PAGESIZE */
18644 # ifdef NBPG
18645 # define getpagesize() NBPG * CLSIZE
18646 # ifndef CLSIZE
18647 # define CLSIZE 1
18648 # endif /* no CLSIZE */
18649 # else /* no NBPG */
18650 # ifdef NBPC
18651 # define getpagesize() NBPC
18652 # else /* no NBPC */
18653 # ifdef PAGESIZE
18654 # define getpagesize() PAGESIZE
18655 # endif /* PAGESIZE */
18656 # endif /* no NBPC */
18657 # endif /* no NBPG */
18658 # endif /* no EXEC_PAGESIZE */
18659 # else /* no HAVE_SYS_PARAM_H */
18660 # define getpagesize() 8192 /* punt totally */
18661 # endif /* no HAVE_SYS_PARAM_H */
18662 # endif /* no _SC_PAGESIZE */
18663
18664 #endif /* no HAVE_GETPAGESIZE */
18665
18666 int
18667 main ()
18668 {
18669 char *data, *data2, *data3;
18670 int i, pagesize;
18671 int fd;
18672
18673 pagesize = getpagesize ();
18674
18675 /* First, make a file with some known garbage in it. */
18676 data = (char *) malloc (pagesize);
18677 if (!data)
18678 exit (1);
18679 for (i = 0; i < pagesize; ++i)
18680 *(data + i) = rand ();
18681 umask (0);
18682 fd = creat ("conftest.mmap", 0600);
18683 if (fd < 0)
18684 exit (1);
18685 if (write (fd, data, pagesize) != pagesize)
18686 exit (1);
18687 close (fd);
18688
18689 /* Next, try to mmap the file at a fixed address which already has
18690 something else allocated at it. If we can, also make sure that
18691 we see the same garbage. */
18692 fd = open ("conftest.mmap", O_RDWR);
18693 if (fd < 0)
18694 exit (1);
18695 data2 = (char *) malloc (2 * pagesize);
18696 if (!data2)
18697 exit (1);
18698 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18699 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18700 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18701 exit (1);
18702 for (i = 0; i < pagesize; ++i)
18703 if (*(data + i) != *(data2 + i))
18704 exit (1);
18705
18706 /* Finally, make sure that changes to the mapped area do not
18707 percolate back to the file as seen by read(). (This is a bug on
18708 some variants of i386 svr4.0.) */
18709 for (i = 0; i < pagesize; ++i)
18710 *(data2 + i) = *(data2 + i) + 1;
18711 data3 = (char *) malloc (pagesize);
18712 if (!data3)
18713 exit (1);
18714 if (read (fd, data3, pagesize) != pagesize)
18715 exit (1);
18716 for (i = 0; i < pagesize; ++i)
18717 if (*(data + i) != *(data3 + i))
18718 exit (1);
18719 close (fd);
18720 exit (0);
18721 }
18722 _ACEOF
18723 rm -f conftest$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_cv_func_mmap_fixed_mapped=yes
18735 else
18736 echo "$as_me: program exited with status $ac_status" >&5
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ( exit $ac_status )
18741 ac_cv_func_mmap_fixed_mapped=no
18742 fi
18743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18744 fi
18745 fi
18746 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18747 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18748 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18749
18750 cat >>confdefs.h <<\_ACEOF
18751 #define HAVE_MMAP 1
18752 _ACEOF
18753
18754 fi
18755 rm -f conftest.mmap
18756
18757 echo "$as_me:$LINENO: checking for pid_t" >&5
18758 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18759 if test "${ac_cv_type_pid_t+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 $ac_includes_default
18769 int
18770 main ()
18771 {
18772 if ((pid_t *) 0)
18773 return 0;
18774 if (sizeof (pid_t))
18775 return 0;
18776 ;
18777 return 0;
18778 }
18779 _ACEOF
18780 rm -f conftest.$ac_objext
18781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18782 (eval $ac_compile) 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try='test -z "$ac_c_werror_flag"
18790 || test ! -s conftest.err'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_type_pid_t=yes
18803 else
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18806
18807 ac_cv_type_pid_t=no
18808 fi
18809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18810 fi
18811 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18812 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18813 if test $ac_cv_type_pid_t = yes; then
18814 :
18815 else
18816
18817 cat >>confdefs.h <<_ACEOF
18818 #define pid_t int
18819 _ACEOF
18820
18821 fi
18822
18823
18824
18825 for ac_header in unistd.h vfork.h
18826 do
18827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18829 echo "$as_me:$LINENO: checking for $ac_header" >&5
18830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18833 fi
18834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18836 else
18837 # Is the header compilable?
18838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18840 cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h. */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 $ac_includes_default
18847 #include <$ac_header>
18848 _ACEOF
18849 rm -f conftest.$ac_objext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18851 (eval $ac_compile) 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag"
18859 || test ! -s conftest.err'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest.$ac_objext'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871 ac_header_compiler=yes
18872 else
18873 echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18875
18876 ac_header_compiler=no
18877 fi
18878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18880 echo "${ECHO_T}$ac_header_compiler" >&6
18881
18882 # Is the header present?
18883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18885 cat >conftest.$ac_ext <<_ACEOF
18886 /* confdefs.h. */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 #include <$ac_header>
18892 _ACEOF
18893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } >/dev/null; then
18901 if test -s conftest.err; then
18902 ac_cpp_err=$ac_c_preproc_warn_flag
18903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18904 else
18905 ac_cpp_err=
18906 fi
18907 else
18908 ac_cpp_err=yes
18909 fi
18910 if test -z "$ac_cpp_err"; then
18911 ac_header_preproc=yes
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 ac_header_preproc=no
18917 fi
18918 rm -f conftest.err conftest.$ac_ext
18919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18920 echo "${ECHO_T}$ac_header_preproc" >&6
18921
18922 # So? What about this header?
18923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18924 yes:no: )
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18929 ac_header_preproc=yes
18930 ;;
18931 no:yes:* )
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18944 (
18945 cat <<\_ASBOX
18946 ## ------------------------------------------ ##
18947 ## Report this to the AC_PACKAGE_NAME lists. ##
18948 ## ------------------------------------------ ##
18949 _ASBOX
18950 ) |
18951 sed "s/^/$as_me: WARNING: /" >&2
18952 ;;
18953 esac
18954 echo "$as_me:$LINENO: checking for $ac_header" >&5
18955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959 eval "$as_ac_Header=\$ac_header_preproc"
18960 fi
18961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18963
18964 fi
18965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18966 cat >>confdefs.h <<_ACEOF
18967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18968 _ACEOF
18969
18970 fi
18971
18972 done
18973
18974
18975
18976 for ac_func in fork vfork
18977 do
18978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18979 echo "$as_me:$LINENO: checking for $ac_func" >&5
18980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18981 if eval "test \"\${$as_ac_var+set}\" = set"; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 else
18984 cat >conftest.$ac_ext <<_ACEOF
18985 /* confdefs.h. */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18992 #define $ac_func innocuous_$ac_func
18993
18994 /* System header to define __stub macros and hopefully few prototypes,
18995 which can conflict with char $ac_func (); below.
18996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18997 <limits.h> exists even on freestanding compilers. */
18998
18999 #ifdef __STDC__
19000 # include <limits.h>
19001 #else
19002 # include <assert.h>
19003 #endif
19004
19005 #undef $ac_func
19006
19007 /* Override any gcc2 internal prototype to avoid an error. */
19008 #ifdef __cplusplus
19009 extern "C"
19010 {
19011 #endif
19012 /* We use char because int might match the return type of a gcc2
19013 builtin and then its argument prototype would still apply. */
19014 char $ac_func ();
19015 /* The GNU C library defines this for functions which it implements
19016 to always fail with ENOSYS. Some functions are actually named
19017 something starting with __ and the normal name is an alias. */
19018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19019 choke me
19020 #else
19021 char (*f) () = $ac_func;
19022 #endif
19023 #ifdef __cplusplus
19024 }
19025 #endif
19026
19027 int
19028 main ()
19029 {
19030 return f != $ac_func;
19031 ;
19032 return 0;
19033 }
19034 _ACEOF
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19037 (eval $ac_link) 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try='test -z "$ac_c_werror_flag"
19045 || test ! -s conftest.err'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest$ac_exeext'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 eval "$as_ac_var=yes"
19058 else
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062 eval "$as_ac_var=no"
19063 fi
19064 rm -f conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19066 fi
19067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19069 if test `eval echo '${'$as_ac_var'}'` = yes; then
19070 cat >>confdefs.h <<_ACEOF
19071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19072 _ACEOF
19073
19074 fi
19075 done
19076
19077 if test "x$ac_cv_func_fork" = xyes; then
19078 echo "$as_me:$LINENO: checking for working fork" >&5
19079 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19080 if test "${ac_cv_func_fork_works+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083 if test "$cross_compiling" = yes; then
19084 ac_cv_func_fork_works=cross
19085 else
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* By Ruediger Kuhlmann. */
19088 #include <sys/types.h>
19089 #if HAVE_UNISTD_H
19090 # include <unistd.h>
19091 #endif
19092 /* Some systems only have a dummy stub for fork() */
19093 int main ()
19094 {
19095 if (fork() < 0)
19096 exit (1);
19097 exit (0);
19098 }
19099 _ACEOF
19100 rm -f conftest$ac_exeext
19101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19102 (eval $ac_link) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_func_fork_works=yes
19112 else
19113 echo "$as_me: program exited with status $ac_status" >&5
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117 ( exit $ac_status )
19118 ac_cv_func_fork_works=no
19119 fi
19120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19121 fi
19122 fi
19123 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19124 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19125
19126 else
19127 ac_cv_func_fork_works=$ac_cv_func_fork
19128 fi
19129 if test "x$ac_cv_func_fork_works" = xcross; then
19130 case $host in
19131 *-*-amigaos* | *-*-msdosdjgpp*)
19132 # Override, as these systems have only a dummy fork() stub
19133 ac_cv_func_fork_works=no
19134 ;;
19135 *)
19136 ac_cv_func_fork_works=yes
19137 ;;
19138 esac
19139 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19140 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19141 fi
19142 ac_cv_func_vfork_works=$ac_cv_func_vfork
19143 if test "x$ac_cv_func_vfork" = xyes; then
19144 echo "$as_me:$LINENO: checking for working vfork" >&5
19145 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19146 if test "${ac_cv_func_vfork_works+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 else
19149 if test "$cross_compiling" = yes; then
19150 ac_cv_func_vfork_works=cross
19151 else
19152 cat >conftest.$ac_ext <<_ACEOF
19153 /* confdefs.h. */
19154 _ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19158 /* Thanks to Paul Eggert for this test. */
19159 #include <stdio.h>
19160 #include <stdlib.h>
19161 #include <sys/types.h>
19162 #include <sys/stat.h>
19163 #include <sys/wait.h>
19164 #if HAVE_UNISTD_H
19165 # include <unistd.h>
19166 #endif
19167 #if HAVE_VFORK_H
19168 # include <vfork.h>
19169 #endif
19170 /* On some sparc systems, changes by the child to local and incoming
19171 argument registers are propagated back to the parent. The compiler
19172 is told about this with #include <vfork.h>, but some compilers
19173 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19174 static variable whose address is put into a register that is
19175 clobbered by the vfork. */
19176 static void
19177 #ifdef __cplusplus
19178 sparc_address_test (int arg)
19179 # else
19180 sparc_address_test (arg) int arg;
19181 #endif
19182 {
19183 static pid_t child;
19184 if (!child) {
19185 child = vfork ();
19186 if (child < 0) {
19187 perror ("vfork");
19188 _exit(2);
19189 }
19190 if (!child) {
19191 arg = getpid();
19192 write(-1, "", 0);
19193 _exit (arg);
19194 }
19195 }
19196 }
19197
19198 int
19199 main ()
19200 {
19201 pid_t parent = getpid ();
19202 pid_t child;
19203
19204 sparc_address_test (0);
19205
19206 child = vfork ();
19207
19208 if (child == 0) {
19209 /* Here is another test for sparc vfork register problems. This
19210 test uses lots of local variables, at least as many local
19211 variables as main has allocated so far including compiler
19212 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19213 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19214 reuse the register of parent for one of the local variables,
19215 since it will think that parent can't possibly be used any more
19216 in this routine. Assigning to the local variable will thus
19217 munge parent in the parent process. */
19218 pid_t
19219 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19220 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19221 /* Convince the compiler that p..p7 are live; otherwise, it might
19222 use the same hardware register for all 8 local variables. */
19223 if (p != p1 || p != p2 || p != p3 || p != p4
19224 || p != p5 || p != p6 || p != p7)
19225 _exit(1);
19226
19227 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19228 from child file descriptors. If the child closes a descriptor
19229 before it execs or exits, this munges the parent's descriptor
19230 as well. Test for this by closing stdout in the child. */
19231 _exit(close(fileno(stdout)) != 0);
19232 } else {
19233 int status;
19234 struct stat st;
19235
19236 while (wait(&status) != child)
19237 ;
19238 exit(
19239 /* Was there some problem with vforking? */
19240 child < 0
19241
19242 /* Did the child fail? (This shouldn't happen.) */
19243 || status
19244
19245 /* Did the vfork/compiler bug occur? */
19246 || parent != getpid()
19247
19248 /* Did the file descriptor bug occur? */
19249 || fstat(fileno(stdout), &st) != 0
19250 );
19251 }
19252 }
19253 _ACEOF
19254 rm -f conftest$ac_exeext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19256 (eval $ac_link) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_cv_func_vfork_works=yes
19266 else
19267 echo "$as_me: program exited with status $ac_status" >&5
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19270
19271 ( exit $ac_status )
19272 ac_cv_func_vfork_works=no
19273 fi
19274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19275 fi
19276 fi
19277 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19278 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19279
19280 fi;
19281 if test "x$ac_cv_func_fork_works" = xcross; then
19282 ac_cv_func_vfork_works=$ac_cv_func_vfork
19283 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19284 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19285 fi
19286
19287 if test "x$ac_cv_func_vfork_works" = xyes; then
19288
19289 cat >>confdefs.h <<\_ACEOF
19290 #define HAVE_WORKING_VFORK 1
19291 _ACEOF
19292
19293 else
19294
19295 cat >>confdefs.h <<\_ACEOF
19296 #define vfork fork
19297 _ACEOF
19298
19299 fi
19300 if test "x$ac_cv_func_fork_works" = xyes; then
19301
19302 cat >>confdefs.h <<\_ACEOF
19303 #define HAVE_WORKING_FORK 1
19304 _ACEOF
19305
19306 fi
19307
19308
19309
19310 for ac_func in canonicalize_file_name realpath
19311 do
19312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19313 echo "$as_me:$LINENO: checking for $ac_func" >&5
19314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19315 if eval "test \"\${$as_ac_var+set}\" = set"; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318 cat >conftest.$ac_ext <<_ACEOF
19319 /* confdefs.h. */
19320 _ACEOF
19321 cat confdefs.h >>conftest.$ac_ext
19322 cat >>conftest.$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19326 #define $ac_func innocuous_$ac_func
19327
19328 /* System header to define __stub macros and hopefully few prototypes,
19329 which can conflict with char $ac_func (); below.
19330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19331 <limits.h> exists even on freestanding compilers. */
19332
19333 #ifdef __STDC__
19334 # include <limits.h>
19335 #else
19336 # include <assert.h>
19337 #endif
19338
19339 #undef $ac_func
19340
19341 /* Override any gcc2 internal prototype to avoid an error. */
19342 #ifdef __cplusplus
19343 extern "C"
19344 {
19345 #endif
19346 /* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19348 char $ac_func ();
19349 /* The GNU C library defines this for functions which it implements
19350 to always fail with ENOSYS. Some functions are actually named
19351 something starting with __ and the normal name is an alias. */
19352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19353 choke me
19354 #else
19355 char (*f) () = $ac_func;
19356 #endif
19357 #ifdef __cplusplus
19358 }
19359 #endif
19360
19361 int
19362 main ()
19363 {
19364 return f != $ac_func;
19365 ;
19366 return 0;
19367 }
19368 _ACEOF
19369 rm -f conftest.$ac_objext conftest$ac_exeext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19371 (eval $ac_link) 2>conftest.er1
19372 ac_status=$?
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest$ac_exeext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 eval "$as_ac_var=yes"
19392 else
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19395
19396 eval "$as_ac_var=no"
19397 fi
19398 rm -f conftest.err conftest.$ac_objext \
19399 conftest$ac_exeext conftest.$ac_ext
19400 fi
19401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19403 if test `eval echo '${'$as_ac_var'}'` = yes; then
19404 cat >>confdefs.h <<_ACEOF
19405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19406 _ACEOF
19407
19408 fi
19409 done
19410
19411
19412 for ac_func in getrusage
19413 do
19414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19415 echo "$as_me:$LINENO: checking for $ac_func" >&5
19416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19417 if eval "test \"\${$as_ac_var+set}\" = set"; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h. */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19428 #define $ac_func innocuous_$ac_func
19429
19430 /* System header to define __stub macros and hopefully few prototypes,
19431 which can conflict with char $ac_func (); below.
19432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19433 <limits.h> exists even on freestanding compilers. */
19434
19435 #ifdef __STDC__
19436 # include <limits.h>
19437 #else
19438 # include <assert.h>
19439 #endif
19440
19441 #undef $ac_func
19442
19443 /* Override any gcc2 internal prototype to avoid an error. */
19444 #ifdef __cplusplus
19445 extern "C"
19446 {
19447 #endif
19448 /* We use char because int might match the return type of a gcc2
19449 builtin and then its argument prototype would still apply. */
19450 char $ac_func ();
19451 /* The GNU C library defines this for functions which it implements
19452 to always fail with ENOSYS. Some functions are actually named
19453 something starting with __ and the normal name is an alias. */
19454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19455 choke me
19456 #else
19457 char (*f) () = $ac_func;
19458 #endif
19459 #ifdef __cplusplus
19460 }
19461 #endif
19462
19463 int
19464 main ()
19465 {
19466 return f != $ac_func;
19467 ;
19468 return 0;
19469 }
19470 _ACEOF
19471 rm -f conftest.$ac_objext conftest$ac_exeext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19473 (eval $ac_link) 2>conftest.er1
19474 ac_status=$?
19475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
19480 { ac_try='test -z "$ac_c_werror_flag"
19481 || test ! -s conftest.err'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; } &&
19487 { ac_try='test -s conftest$ac_exeext'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 eval "$as_ac_var=yes"
19494 else
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19497
19498 eval "$as_ac_var=no"
19499 fi
19500 rm -f conftest.err conftest.$ac_objext \
19501 conftest$ac_exeext conftest.$ac_ext
19502 fi
19503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19505 if test `eval echo '${'$as_ac_var'}'` = yes; then
19506 cat >>confdefs.h <<_ACEOF
19507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19508 _ACEOF
19509
19510 fi
19511 done
19512
19513
19514
19515 for ac_func in getuid getgid
19516 do
19517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19518 echo "$as_me:$LINENO: checking for $ac_func" >&5
19519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19520 if eval "test \"\${$as_ac_var+set}\" = set"; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h. */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19531 #define $ac_func innocuous_$ac_func
19532
19533 /* System header to define __stub macros and hopefully few prototypes,
19534 which can conflict with char $ac_func (); below.
19535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19536 <limits.h> exists even on freestanding compilers. */
19537
19538 #ifdef __STDC__
19539 # include <limits.h>
19540 #else
19541 # include <assert.h>
19542 #endif
19543
19544 #undef $ac_func
19545
19546 /* Override any gcc2 internal prototype to avoid an error. */
19547 #ifdef __cplusplus
19548 extern "C"
19549 {
19550 #endif
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19553 char $ac_func ();
19554 /* The GNU C library defines this for functions which it implements
19555 to always fail with ENOSYS. Some functions are actually named
19556 something starting with __ and the normal name is an alias. */
19557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19558 choke me
19559 #else
19560 char (*f) () = $ac_func;
19561 #endif
19562 #ifdef __cplusplus
19563 }
19564 #endif
19565
19566 int
19567 main ()
19568 {
19569 return f != $ac_func;
19570 ;
19571 return 0;
19572 }
19573 _ACEOF
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest$ac_exeext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 eval "$as_ac_var=yes"
19597 else
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 eval "$as_ac_var=no"
19602 fi
19603 rm -f conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19605 fi
19606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19608 if test `eval echo '${'$as_ac_var'}'` = yes; then
19609 cat >>confdefs.h <<_ACEOF
19610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19611 _ACEOF
19612
19613 fi
19614 done
19615
19616
19617 for ac_func in poll
19618 do
19619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19620 echo "$as_me:$LINENO: checking for $ac_func" >&5
19621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19622 if eval "test \"\${$as_ac_var+set}\" = set"; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 else
19625 cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h. */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19633 #define $ac_func innocuous_$ac_func
19634
19635 /* System header to define __stub macros and hopefully few prototypes,
19636 which can conflict with char $ac_func (); below.
19637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19638 <limits.h> exists even on freestanding compilers. */
19639
19640 #ifdef __STDC__
19641 # include <limits.h>
19642 #else
19643 # include <assert.h>
19644 #endif
19645
19646 #undef $ac_func
19647
19648 /* Override any gcc2 internal prototype to avoid an error. */
19649 #ifdef __cplusplus
19650 extern "C"
19651 {
19652 #endif
19653 /* We use char because int might match the return type of a gcc2
19654 builtin and then its argument prototype would still apply. */
19655 char $ac_func ();
19656 /* The GNU C library defines this for functions which it implements
19657 to always fail with ENOSYS. Some functions are actually named
19658 something starting with __ and the normal name is an alias. */
19659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19660 choke me
19661 #else
19662 char (*f) () = $ac_func;
19663 #endif
19664 #ifdef __cplusplus
19665 }
19666 #endif
19667
19668 int
19669 main ()
19670 {
19671 return f != $ac_func;
19672 ;
19673 return 0;
19674 }
19675 _ACEOF
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678 (eval $ac_link) 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest$ac_exeext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 eval "$as_ac_var=yes"
19699 else
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703 eval "$as_ac_var=no"
19704 fi
19705 rm -f conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19707 fi
19708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19710 if test `eval echo '${'$as_ac_var'}'` = yes; then
19711 cat >>confdefs.h <<_ACEOF
19712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19713 _ACEOF
19714
19715 fi
19716 done
19717
19718
19719 for ac_func in pread64
19720 do
19721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19722 echo "$as_me:$LINENO: checking for $ac_func" >&5
19723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19724 if eval "test \"\${$as_ac_var+set}\" = set"; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h. */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19735 #define $ac_func innocuous_$ac_func
19736
19737 /* System header to define __stub macros and hopefully few prototypes,
19738 which can conflict with char $ac_func (); below.
19739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19740 <limits.h> exists even on freestanding compilers. */
19741
19742 #ifdef __STDC__
19743 # include <limits.h>
19744 #else
19745 # include <assert.h>
19746 #endif
19747
19748 #undef $ac_func
19749
19750 /* Override any gcc2 internal prototype to avoid an error. */
19751 #ifdef __cplusplus
19752 extern "C"
19753 {
19754 #endif
19755 /* We use char because int might match the return type of a gcc2
19756 builtin and then its argument prototype would still apply. */
19757 char $ac_func ();
19758 /* The GNU C library defines this for functions which it implements
19759 to always fail with ENOSYS. Some functions are actually named
19760 something starting with __ and the normal name is an alias. */
19761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19762 choke me
19763 #else
19764 char (*f) () = $ac_func;
19765 #endif
19766 #ifdef __cplusplus
19767 }
19768 #endif
19769
19770 int
19771 main ()
19772 {
19773 return f != $ac_func;
19774 ;
19775 return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19780 (eval $ac_link) 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest$ac_exeext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 eval "$as_ac_var=yes"
19801 else
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 eval "$as_ac_var=no"
19806 fi
19807 rm -f conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19809 fi
19810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19812 if test `eval echo '${'$as_ac_var'}'` = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19815 _ACEOF
19816
19817 fi
19818 done
19819
19820
19821 for ac_func in sbrk
19822 do
19823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19824 echo "$as_me:$LINENO: checking for $ac_func" >&5
19825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19826 if eval "test \"\${$as_ac_var+set}\" = set"; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h. */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19837 #define $ac_func innocuous_$ac_func
19838
19839 /* System header to define __stub macros and hopefully few prototypes,
19840 which can conflict with char $ac_func (); below.
19841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19842 <limits.h> exists even on freestanding compilers. */
19843
19844 #ifdef __STDC__
19845 # include <limits.h>
19846 #else
19847 # include <assert.h>
19848 #endif
19849
19850 #undef $ac_func
19851
19852 /* Override any gcc2 internal prototype to avoid an error. */
19853 #ifdef __cplusplus
19854 extern "C"
19855 {
19856 #endif
19857 /* We use char because int might match the return type of a gcc2
19858 builtin and then its argument prototype would still apply. */
19859 char $ac_func ();
19860 /* The GNU C library defines this for functions which it implements
19861 to always fail with ENOSYS. Some functions are actually named
19862 something starting with __ and the normal name is an alias. */
19863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19864 choke me
19865 #else
19866 char (*f) () = $ac_func;
19867 #endif
19868 #ifdef __cplusplus
19869 }
19870 #endif
19871
19872 int
19873 main ()
19874 {
19875 return f != $ac_func;
19876 ;
19877 return 0;
19878 }
19879 _ACEOF
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882 (eval $ac_link) 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_c_werror_flag"
19890 || test ! -s conftest.err'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest$ac_exeext'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 eval "$as_ac_var=yes"
19903 else
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19906
19907 eval "$as_ac_var=no"
19908 fi
19909 rm -f conftest.err conftest.$ac_objext \
19910 conftest$ac_exeext conftest.$ac_ext
19911 fi
19912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19914 if test `eval echo '${'$as_ac_var'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19917 _ACEOF
19918
19919 fi
19920 done
19921
19922
19923
19924
19925 for ac_func in setpgid setpgrp setsid
19926 do
19927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19928 echo "$as_me:$LINENO: checking for $ac_func" >&5
19929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19930 if eval "test \"\${$as_ac_var+set}\" = set"; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941 #define $ac_func innocuous_$ac_func
19942
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char $ac_func (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19947
19948 #ifdef __STDC__
19949 # include <limits.h>
19950 #else
19951 # include <assert.h>
19952 #endif
19953
19954 #undef $ac_func
19955
19956 /* Override any gcc2 internal prototype to avoid an error. */
19957 #ifdef __cplusplus
19958 extern "C"
19959 {
19960 #endif
19961 /* We use char because int might match the return type of a gcc2
19962 builtin and then its argument prototype would still apply. */
19963 char $ac_func ();
19964 /* The GNU C library defines this for functions which it implements
19965 to always fail with ENOSYS. Some functions are actually named
19966 something starting with __ and the normal name is an alias. */
19967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19968 choke me
19969 #else
19970 char (*f) () = $ac_func;
19971 #endif
19972 #ifdef __cplusplus
19973 }
19974 #endif
19975
19976 int
19977 main ()
19978 {
19979 return f != $ac_func;
19980 ;
19981 return 0;
19982 }
19983 _ACEOF
19984 rm -f conftest.$ac_objext conftest$ac_exeext
19985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19986 (eval $ac_link) 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest$ac_exeext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 eval "$as_ac_var=yes"
20007 else
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011 eval "$as_ac_var=no"
20012 fi
20013 rm -f conftest.err conftest.$ac_objext \
20014 conftest$ac_exeext conftest.$ac_ext
20015 fi
20016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20018 if test `eval echo '${'$as_ac_var'}'` = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20021 _ACEOF
20022
20023 fi
20024 done
20025
20026
20027
20028
20029 for ac_func in sigaction sigprocmask sigsetmask
20030 do
20031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20032 echo "$as_me:$LINENO: checking for $ac_func" >&5
20033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20034 if eval "test \"\${$as_ac_var+set}\" = set"; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037 cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h. */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20045 #define $ac_func innocuous_$ac_func
20046
20047 /* System header to define __stub macros and hopefully few prototypes,
20048 which can conflict with char $ac_func (); below.
20049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20050 <limits.h> exists even on freestanding compilers. */
20051
20052 #ifdef __STDC__
20053 # include <limits.h>
20054 #else
20055 # include <assert.h>
20056 #endif
20057
20058 #undef $ac_func
20059
20060 /* Override any gcc2 internal prototype to avoid an error. */
20061 #ifdef __cplusplus
20062 extern "C"
20063 {
20064 #endif
20065 /* We use char because int might match the return type of a gcc2
20066 builtin and then its argument prototype would still apply. */
20067 char $ac_func ();
20068 /* The GNU C library defines this for functions which it implements
20069 to always fail with ENOSYS. Some functions are actually named
20070 something starting with __ and the normal name is an alias. */
20071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20072 choke me
20073 #else
20074 char (*f) () = $ac_func;
20075 #endif
20076 #ifdef __cplusplus
20077 }
20078 #endif
20079
20080 int
20081 main ()
20082 {
20083 return f != $ac_func;
20084 ;
20085 return 0;
20086 }
20087 _ACEOF
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20090 (eval $ac_link) 2>conftest.er1
20091 ac_status=$?
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
20097 { ac_try='test -z "$ac_c_werror_flag"
20098 || test ! -s conftest.err'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; } &&
20104 { ac_try='test -s conftest$ac_exeext'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 eval "$as_ac_var=yes"
20111 else
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115 eval "$as_ac_var=no"
20116 fi
20117 rm -f conftest.err conftest.$ac_objext \
20118 conftest$ac_exeext conftest.$ac_ext
20119 fi
20120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20122 if test `eval echo '${'$as_ac_var'}'` = yes; then
20123 cat >>confdefs.h <<_ACEOF
20124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20125 _ACEOF
20126
20127 fi
20128 done
20129
20130
20131 for ac_func in socketpair
20132 do
20133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20134 echo "$as_me:$LINENO: checking for $ac_func" >&5
20135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20136 if eval "test \"\${$as_ac_var+set}\" = set"; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h. */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20147 #define $ac_func innocuous_$ac_func
20148
20149 /* System header to define __stub macros and hopefully few prototypes,
20150 which can conflict with char $ac_func (); below.
20151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20152 <limits.h> exists even on freestanding compilers. */
20153
20154 #ifdef __STDC__
20155 # include <limits.h>
20156 #else
20157 # include <assert.h>
20158 #endif
20159
20160 #undef $ac_func
20161
20162 /* Override any gcc2 internal prototype to avoid an error. */
20163 #ifdef __cplusplus
20164 extern "C"
20165 {
20166 #endif
20167 /* We use char because int might match the return type of a gcc2
20168 builtin and then its argument prototype would still apply. */
20169 char $ac_func ();
20170 /* The GNU C library defines this for functions which it implements
20171 to always fail with ENOSYS. Some functions are actually named
20172 something starting with __ and the normal name is an alias. */
20173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20174 choke me
20175 #else
20176 char (*f) () = $ac_func;
20177 #endif
20178 #ifdef __cplusplus
20179 }
20180 #endif
20181
20182 int
20183 main ()
20184 {
20185 return f != $ac_func;
20186 ;
20187 return 0;
20188 }
20189 _ACEOF
20190 rm -f conftest.$ac_objext conftest$ac_exeext
20191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20192 (eval $ac_link) 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try='test -z "$ac_c_werror_flag"
20200 || test ! -s conftest.err'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest$ac_exeext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 eval "$as_ac_var=yes"
20213 else
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 eval "$as_ac_var=no"
20218 fi
20219 rm -f conftest.err conftest.$ac_objext \
20220 conftest$ac_exeext conftest.$ac_ext
20221 fi
20222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20224 if test `eval echo '${'$as_ac_var'}'` = yes; then
20225 cat >>confdefs.h <<_ACEOF
20226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20227 _ACEOF
20228
20229 fi
20230 done
20231
20232
20233 for ac_func in syscall
20234 do
20235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20236 echo "$as_me:$LINENO: checking for $ac_func" >&5
20237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20238 if eval "test \"\${$as_ac_var+set}\" = set"; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h. */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20249 #define $ac_func innocuous_$ac_func
20250
20251 /* System header to define __stub macros and hopefully few prototypes,
20252 which can conflict with char $ac_func (); below.
20253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20254 <limits.h> exists even on freestanding compilers. */
20255
20256 #ifdef __STDC__
20257 # include <limits.h>
20258 #else
20259 # include <assert.h>
20260 #endif
20261
20262 #undef $ac_func
20263
20264 /* Override any gcc2 internal prototype to avoid an error. */
20265 #ifdef __cplusplus
20266 extern "C"
20267 {
20268 #endif
20269 /* We use char because int might match the return type of a gcc2
20270 builtin and then its argument prototype would still apply. */
20271 char $ac_func ();
20272 /* The GNU C library defines this for functions which it implements
20273 to always fail with ENOSYS. Some functions are actually named
20274 something starting with __ and the normal name is an alias. */
20275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20276 choke me
20277 #else
20278 char (*f) () = $ac_func;
20279 #endif
20280 #ifdef __cplusplus
20281 }
20282 #endif
20283
20284 int
20285 main ()
20286 {
20287 return f != $ac_func;
20288 ;
20289 return 0;
20290 }
20291 _ACEOF
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20294 (eval $ac_link) 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag"
20302 || test ! -s conftest.err'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } &&
20308 { ac_try='test -s conftest$ac_exeext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 eval "$as_ac_var=yes"
20315 else
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20318
20319 eval "$as_ac_var=no"
20320 fi
20321 rm -f conftest.err conftest.$ac_objext \
20322 conftest$ac_exeext conftest.$ac_ext
20323 fi
20324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20326 if test `eval echo '${'$as_ac_var'}'` = yes; then
20327 cat >>confdefs.h <<_ACEOF
20328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20329 _ACEOF
20330
20331 fi
20332 done
20333
20334
20335 for ac_func in ttrace
20336 do
20337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20338 echo "$as_me:$LINENO: checking for $ac_func" >&5
20339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20340 if eval "test \"\${$as_ac_var+set}\" = set"; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20351 #define $ac_func innocuous_$ac_func
20352
20353 /* System header to define __stub macros and hopefully few prototypes,
20354 which can conflict with char $ac_func (); below.
20355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20356 <limits.h> exists even on freestanding compilers. */
20357
20358 #ifdef __STDC__
20359 # include <limits.h>
20360 #else
20361 # include <assert.h>
20362 #endif
20363
20364 #undef $ac_func
20365
20366 /* Override any gcc2 internal prototype to avoid an error. */
20367 #ifdef __cplusplus
20368 extern "C"
20369 {
20370 #endif
20371 /* We use char because int might match the return type of a gcc2
20372 builtin and then its argument prototype would still apply. */
20373 char $ac_func ();
20374 /* The GNU C library defines this for functions which it implements
20375 to always fail with ENOSYS. Some functions are actually named
20376 something starting with __ and the normal name is an alias. */
20377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20378 choke me
20379 #else
20380 char (*f) () = $ac_func;
20381 #endif
20382 #ifdef __cplusplus
20383 }
20384 #endif
20385
20386 int
20387 main ()
20388 {
20389 return f != $ac_func;
20390 ;
20391 return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396 (eval $ac_link) 2>conftest.er1
20397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag"
20404 || test ! -s conftest.err'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest$ac_exeext'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 eval "$as_ac_var=yes"
20417 else
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 eval "$as_ac_var=no"
20422 fi
20423 rm -f conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20425 fi
20426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20428 if test `eval echo '${'$as_ac_var'}'` = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20431 _ACEOF
20432
20433 fi
20434 done
20435
20436
20437 for ac_func in wborder
20438 do
20439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20440 echo "$as_me:$LINENO: checking for $ac_func" >&5
20441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20442 if eval "test \"\${$as_ac_var+set}\" = set"; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20453 #define $ac_func innocuous_$ac_func
20454
20455 /* System header to define __stub macros and hopefully few prototypes,
20456 which can conflict with char $ac_func (); below.
20457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20458 <limits.h> exists even on freestanding compilers. */
20459
20460 #ifdef __STDC__
20461 # include <limits.h>
20462 #else
20463 # include <assert.h>
20464 #endif
20465
20466 #undef $ac_func
20467
20468 /* Override any gcc2 internal prototype to avoid an error. */
20469 #ifdef __cplusplus
20470 extern "C"
20471 {
20472 #endif
20473 /* We use char because int might match the return type of a gcc2
20474 builtin and then its argument prototype would still apply. */
20475 char $ac_func ();
20476 /* The GNU C library defines this for functions which it implements
20477 to always fail with ENOSYS. Some functions are actually named
20478 something starting with __ and the normal name is an alias. */
20479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20480 choke me
20481 #else
20482 char (*f) () = $ac_func;
20483 #endif
20484 #ifdef __cplusplus
20485 }
20486 #endif
20487
20488 int
20489 main ()
20490 {
20491 return f != $ac_func;
20492 ;
20493 return 0;
20494 }
20495 _ACEOF
20496 rm -f conftest.$ac_objext conftest$ac_exeext
20497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20498 (eval $ac_link) 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } &&
20505 { ac_try='test -z "$ac_c_werror_flag"
20506 || test ! -s conftest.err'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try='test -s conftest$ac_exeext'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 eval "$as_ac_var=yes"
20519 else
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 eval "$as_ac_var=no"
20524 fi
20525 rm -f conftest.err conftest.$ac_objext \
20526 conftest$ac_exeext conftest.$ac_ext
20527 fi
20528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20530 if test `eval echo '${'$as_ac_var'}'` = yes; then
20531 cat >>confdefs.h <<_ACEOF
20532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20533 _ACEOF
20534
20535 fi
20536 done
20537
20538
20539 # Check the return and argument types of ptrace. No canned test for
20540 # this, so roll our own.
20541 gdb_ptrace_headers='
20542 #if HAVE_SYS_TYPES_H
20543 # include <sys/types.h>
20544 #endif
20545 #if HAVE_SYS_PTRACE_H
20546 # include <sys/ptrace.h>
20547 #endif
20548 #if HAVE_UNISTD_H
20549 # include <unistd.h>
20550 #endif
20551 '
20552 # There is no point in checking if we don't have a prototype.
20553 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20554 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
20555 if test "${ac_cv_have_decl_ptrace+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558 cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h. */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20564 $gdb_ptrace_headers
20565
20566 int
20567 main ()
20568 {
20569 #ifndef ptrace
20570 char *p = (char *) ptrace;
20571 #endif
20572
20573 ;
20574 return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest.$ac_objext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20579 (eval $ac_compile) 2>conftest.er1
20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } &&
20586 { ac_try='test -z "$ac_c_werror_flag"
20587 || test ! -s conftest.err'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try='test -s conftest.$ac_objext'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_cv_have_decl_ptrace=yes
20600 else
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604 ac_cv_have_decl_ptrace=no
20605 fi
20606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20607 fi
20608 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20609 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
20610 if test $ac_cv_have_decl_ptrace = yes; then
20611
20612 cat >>confdefs.h <<_ACEOF
20613 #define HAVE_DECL_PTRACE 1
20614 _ACEOF
20615
20616
20617 else
20618 cat >>confdefs.h <<_ACEOF
20619 #define HAVE_DECL_PTRACE 0
20620 _ACEOF
20621
20622
20623 : ${gdb_cv_func_ptrace_ret='int'}
20624 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20625
20626 fi
20627
20628
20629 # Check return type. Varargs (used on GNU/Linux) conflict with the
20630 # empty argument list, so check for that explicitly.
20631 echo "$as_me:$LINENO: checking return type of ptrace" >&5
20632 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20633 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 else
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 $gdb_ptrace_headers
20643 int
20644 main ()
20645 {
20646 extern long ptrace (enum __ptrace_request, ...);
20647 ;
20648 return 0;
20649 }
20650 _ACEOF
20651 rm -f conftest.$ac_objext
20652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20653 (eval $ac_compile) 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag"
20661 || test ! -s conftest.err'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; } &&
20667 { ac_try='test -s conftest.$ac_objext'
20668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669 (eval $ac_try) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
20673 gdb_cv_func_ptrace_ret='long'
20674 else
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 $gdb_ptrace_headers
20685 int
20686 main ()
20687 {
20688 extern int ptrace ();
20689 ;
20690 return 0;
20691 }
20692 _ACEOF
20693 rm -f conftest.$ac_objext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695 (eval $ac_compile) 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest.$ac_objext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 gdb_cv_func_ptrace_ret='int'
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 gdb_cv_func_ptrace_ret='long'
20721 fi
20722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20723 fi
20724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20725 fi
20726 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20727 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20728
20729 cat >>confdefs.h <<_ACEOF
20730 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20731 _ACEOF
20732
20733 # Check argument types.
20734 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20735 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20736 if test "${gdb_cv_func_ptrace_args+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h. */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 $gdb_ptrace_headers
20747 int
20748 main ()
20749 {
20750 extern long ptrace (enum __ptrace_request, ...);
20751 ;
20752 return 0;
20753 }
20754 _ACEOF
20755 rm -f conftest.$ac_objext
20756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757 (eval $ac_compile) 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
20764 { ac_try='test -z "$ac_c_werror_flag"
20765 || test ! -s conftest.err'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 gdb_cv_func_ptrace_args='int,int,long,long'
20778 else
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20781
20782
20783 for gdb_arg1 in 'int' 'long'; do
20784 for gdb_arg2 in 'pid_t' 'int' 'long'; do
20785 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20786 for gdb_arg4 in 'int' 'long'; do
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h. */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 $gdb_ptrace_headers
20794 int
20795 main ()
20796 {
20797
20798 extern $gdb_cv_func_ptrace_ret
20799 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20800
20801 ;
20802 return 0;
20803 }
20804 _ACEOF
20805 rm -f conftest.$ac_objext
20806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20807 (eval $ac_compile) 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
20814 { ac_try='test -z "$ac_c_werror_flag"
20815 || test ! -s conftest.err'
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; } &&
20821 { ac_try='test -s conftest.$ac_objext'
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20828 break 4;
20829 else
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833 fi
20834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20835 for gdb_arg5 in 'int *' 'int' 'long'; do
20836 cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h. */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 $gdb_ptrace_headers
20843 int
20844 main ()
20845 {
20846
20847 extern $gdb_cv_func_ptrace_ret
20848 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20849
20850 ;
20851 return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856 (eval $ac_compile) 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
20863 { ac_try='test -z "$ac_c_werror_flag"
20864 || test ! -s conftest.err'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest.$ac_objext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876
20877 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20878 break 5;
20879 else
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 fi
20884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20885 done
20886 done
20887 done
20888 done
20889 done
20890 # Provide a safe default value.
20891 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20892
20893 fi
20894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20895 fi
20896 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20897 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20898 ac_save_IFS=$IFS; IFS=','
20899 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20900 IFS=$ac_save_IFS
20901 shift
20902
20903 cat >>confdefs.h <<_ACEOF
20904 #define PTRACE_TYPE_ARG3 $3
20905 _ACEOF
20906
20907 if test -n "$5"; then
20908
20909 cat >>confdefs.h <<_ACEOF
20910 #define PTRACE_TYPE_ARG5 $5
20911 _ACEOF
20912
20913 fi
20914
20915 if test "$cross_compiling" = no; then
20916 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20917 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20918 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20921 if test "$cross_compiling" = yes; then
20922 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20923 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20924 { (exit 1); exit 1; }; }
20925 else
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #if HAVE_UNISTD_H
20933 # include <unistd.h>
20934 #endif
20935
20936 int
20937 main ()
20938 {
20939 /* If this system has a BSD-style setpgrp which takes arguments,
20940 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20941 exit successfully. */
20942 exit (setpgrp (1,1) == -1 ? 0 : 1);
20943 ;
20944 return 0;
20945 }
20946 _ACEOF
20947 rm -f conftest$ac_exeext
20948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949 (eval $ac_link) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_func_setpgrp_void=no
20959 else
20960 echo "$as_me: program exited with status $ac_status" >&5
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20963
20964 ( exit $ac_status )
20965 ac_cv_func_setpgrp_void=yes
20966 fi
20967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20968 fi
20969 fi
20970 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20971 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20972 if test $ac_cv_func_setpgrp_void = yes; then
20973
20974 cat >>confdefs.h <<\_ACEOF
20975 #define SETPGRP_VOID 1
20976 _ACEOF
20977
20978 fi
20979
20980 else
20981 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20982 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20983 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 else
20986 cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h. */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992
20993 #include <unistd.h>
20994
20995 int
20996 main ()
20997 {
20998
20999 if (setpgrp(1,1) == -1)
21000 exit (0);
21001 else
21002 exit (1);
21003
21004 ;
21005 return 0;
21006 }
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21010 (eval $ac_compile) 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try='test -z "$ac_c_werror_flag"
21018 || test ! -s conftest.err'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; } &&
21024 { ac_try='test -s conftest.$ac_objext'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 ac_cv_func_setpgrp_void=no
21031 else
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035 ac_cv_func_setpgrp_void=yes
21036 fi
21037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21038 fi
21039 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21040 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
21041 if test $ac_cv_func_setpgrp_void = yes; then
21042 cat >>confdefs.h <<\_ACEOF
21043 #define SETPGRP_VOID 1
21044 _ACEOF
21045
21046 fi
21047 fi
21048
21049 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
21050 # since sigsetjmp might only be defined as a macro.
21051 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21052 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
21053 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21055 else
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h. */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062
21063 #include <setjmp.h>
21064
21065 int
21066 main ()
21067 {
21068 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21069 ;
21070 return 0;
21071 }
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075 (eval $ac_compile) 2>conftest.er1
21076 ac_status=$?
21077 grep -v '^ *+' conftest.er1 >conftest.err
21078 rm -f conftest.er1
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } &&
21082 { ac_try='test -z "$ac_c_werror_flag"
21083 || test ! -s conftest.err'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; } &&
21089 { ac_try='test -s conftest.$ac_objext'
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
21095 gdb_cv_func_sigsetjmp=yes
21096 else
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 gdb_cv_func_sigsetjmp=no
21101 fi
21102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21103 fi
21104 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
21105 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
21106 if test $gdb_cv_func_sigsetjmp = yes; then
21107
21108 cat >>confdefs.h <<\_ACEOF
21109 #define HAVE_SIGSETJMP 1
21110 _ACEOF
21111
21112 fi
21113
21114 # Assume we'll default to using the included libiberty regex.
21115 gdb_use_included_regex=yes
21116
21117 # However, if the system regex is GNU regex, then default to *not*
21118 # using the included regex.
21119 echo "$as_me:$LINENO: checking for GNU regex" >&5
21120 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
21121 if test "${gdb_cv_have_gnu_regex+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124 cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h. */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21130 #include <gnu-versions.h>
21131 int
21132 main ()
21133 {
21134 #define REGEX_INTERFACE_VERSION 1
21135 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
21136 # error "Version mismatch"
21137 #endif
21138 ;
21139 return 0;
21140 }
21141 _ACEOF
21142 rm -f conftest.$ac_objext
21143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21144 (eval $ac_compile) 2>conftest.er1
21145 ac_status=$?
21146 grep -v '^ *+' conftest.er1 >conftest.err
21147 rm -f conftest.er1
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } &&
21151 { ac_try='test -z "$ac_c_werror_flag"
21152 || test ! -s conftest.err'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; } &&
21158 { ac_try='test -s conftest.$ac_objext'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; }; then
21164 gdb_cv_have_gnu_regex=yes
21165 else
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 gdb_cv_have_gnu_regex=no
21170 fi
21171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172 fi
21173 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
21174 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
21175 if test $gdb_cv_have_gnu_regex = yes; then
21176 gdb_use_included_regex=no
21177 fi
21178
21179
21180 # Check whether --with-included-regex or --without-included-regex was given.
21181 if test "${with_included_regex+set}" = set; then
21182 withval="$with_included_regex"
21183 gdb_with_regex=$withval
21184 else
21185 gdb_with_regex=$gdb_use_included_regex
21186 fi;
21187 if test "$gdb_with_regex" = yes; then
21188
21189 cat >>confdefs.h <<\_ACEOF
21190 #define USE_INCLUDED_REGEX 1
21191 _ACEOF
21192
21193 fi
21194
21195 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
21196 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
21197 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
21198 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 else
21201 cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h. */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21207 #include <sys/param.h>
21208 #include <sys/proc.h>
21209
21210
21211 int
21212 main ()
21213 {
21214 static struct thread ac_aggr;
21215 if (ac_aggr.td_pcb)
21216 return 0;
21217 ;
21218 return 0;
21219 }
21220 _ACEOF
21221 rm -f conftest.$ac_objext
21222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21223 (eval $ac_compile) 2>conftest.er1
21224 ac_status=$?
21225 grep -v '^ *+' conftest.er1 >conftest.err
21226 rm -f conftest.er1
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -z "$ac_c_werror_flag"
21231 || test ! -s conftest.err'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21234 ac_status=$?
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
21238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239 (eval $ac_try) 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_cv_member_struct_thread_td_pcb=yes
21244 else
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248 cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h. */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 #include <sys/param.h>
21255 #include <sys/proc.h>
21256
21257
21258 int
21259 main ()
21260 {
21261 static struct thread ac_aggr;
21262 if (sizeof ac_aggr.td_pcb)
21263 return 0;
21264 ;
21265 return 0;
21266 }
21267 _ACEOF
21268 rm -f conftest.$ac_objext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
21277 { ac_try='test -z "$ac_c_werror_flag"
21278 || test ! -s conftest.err'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; } &&
21284 { ac_try='test -s conftest.$ac_objext'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 ac_cv_member_struct_thread_td_pcb=yes
21291 else
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295 ac_cv_member_struct_thread_td_pcb=no
21296 fi
21297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21298 fi
21299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21300 fi
21301 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
21302 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
21303 if test $ac_cv_member_struct_thread_td_pcb = yes; then
21304
21305 cat >>confdefs.h <<_ACEOF
21306 #define HAVE_STRUCT_THREAD_TD_PCB 1
21307 _ACEOF
21308
21309
21310 fi
21311
21312
21313 # See if <sys/lwp.h> defines `struct lwp`.
21314 echo "$as_me:$LINENO: checking for struct lwp" >&5
21315 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
21316 if test "${gdb_cv_struct_lwp+set}" = set; then
21317 echo $ECHO_N "(cached) $ECHO_C" >&6
21318 else
21319 cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h. */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 #include <sys/param.h>
21326 #include <sys/lwp.h>
21327 int
21328 main ()
21329 {
21330 struct lwp l;
21331 ;
21332 return 0;
21333 }
21334 _ACEOF
21335 rm -f conftest.$ac_objext
21336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21337 (eval $ac_compile) 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
21344 { ac_try='test -z "$ac_c_werror_flag"
21345 || test ! -s conftest.err'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; } &&
21351 { ac_try='test -s conftest.$ac_objext'
21352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353 (eval $ac_try) 2>&5
21354 ac_status=$?
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); }; }; then
21357 gdb_cv_struct_lwp=yes
21358 else
21359 echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21361
21362 gdb_cv_struct_lwp=no
21363 fi
21364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21365 fi
21366 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
21367 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
21368 if test $gdb_cv_struct_lwp = yes; then
21369
21370 cat >>confdefs.h <<\_ACEOF
21371 #define HAVE_STRUCT_LWP 1
21372 _ACEOF
21373
21374 fi
21375
21376 # See if <machine/reg.h> degines `struct reg'.
21377 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
21378 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
21379 if test "${gdb_cv_struct_reg+set}" = set; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h. */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 #include <sys/types.h>
21389 #include <machine/reg.h>
21390 int
21391 main ()
21392 {
21393 struct reg r;
21394 ;
21395 return 0;
21396 }
21397 _ACEOF
21398 rm -f conftest.$ac_objext
21399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21400 (eval $ac_compile) 2>conftest.er1
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } &&
21407 { ac_try='test -z "$ac_c_werror_flag"
21408 || test ! -s conftest.err'
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; } &&
21414 { ac_try='test -s conftest.$ac_objext'
21415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; }; then
21420 gdb_cv_struct_reg=yes
21421 else
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425 gdb_cv_struct_reg=no
21426 fi
21427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21428 fi
21429 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
21430 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
21431 if test $gdb_cv_struct_reg = yes; then
21432
21433 cat >>confdefs.h <<\_ACEOF
21434 #define HAVE_STRUCT_REG 1
21435 _ACEOF
21436
21437 fi
21438
21439 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
21440 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
21441 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
21442 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
21443 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 else
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h. */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <machine/reg.h>
21453
21454 int
21455 main ()
21456 {
21457 static struct reg ac_aggr;
21458 if (ac_aggr.r_fs)
21459 return 0;
21460 ;
21461 return 0;
21462 }
21463 _ACEOF
21464 rm -f conftest.$ac_objext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
21486 ac_cv_member_struct_reg_r_fs=yes
21487 else
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h. */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <machine/reg.h>
21498
21499 int
21500 main ()
21501 {
21502 static struct reg ac_aggr;
21503 if (sizeof ac_aggr.r_fs)
21504 return 0;
21505 ;
21506 return 0;
21507 }
21508 _ACEOF
21509 rm -f conftest.$ac_objext
21510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21511 (eval $ac_compile) 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } &&
21518 { ac_try='test -z "$ac_c_werror_flag"
21519 || test ! -s conftest.err'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } &&
21525 { ac_try='test -s conftest.$ac_objext'
21526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21528 ac_status=$?
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; }; then
21531 ac_cv_member_struct_reg_r_fs=yes
21532 else
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536 ac_cv_member_struct_reg_r_fs=no
21537 fi
21538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21539 fi
21540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21541 fi
21542 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21543 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
21544 if test $ac_cv_member_struct_reg_r_fs = yes; then
21545
21546 cat >>confdefs.h <<_ACEOF
21547 #define HAVE_STRUCT_REG_R_FS 1
21548 _ACEOF
21549
21550
21551 fi
21552 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21553 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
21554 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 else
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h. */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563 #include <machine/reg.h>
21564
21565 int
21566 main ()
21567 {
21568 static struct reg ac_aggr;
21569 if (ac_aggr.r_gs)
21570 return 0;
21571 ;
21572 return 0;
21573 }
21574 _ACEOF
21575 rm -f conftest.$ac_objext
21576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21577 (eval $ac_compile) 2>conftest.er1
21578 ac_status=$?
21579 grep -v '^ *+' conftest.er1 >conftest.err
21580 rm -f conftest.er1
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } &&
21584 { ac_try='test -z "$ac_c_werror_flag"
21585 || test ! -s conftest.err'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; } &&
21591 { ac_try='test -s conftest.$ac_objext'
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; }; then
21597 ac_cv_member_struct_reg_r_gs=yes
21598 else
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h. */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 #include <machine/reg.h>
21609
21610 int
21611 main ()
21612 {
21613 static struct reg ac_aggr;
21614 if (sizeof ac_aggr.r_gs)
21615 return 0;
21616 ;
21617 return 0;
21618 }
21619 _ACEOF
21620 rm -f conftest.$ac_objext
21621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21622 (eval $ac_compile) 2>conftest.er1
21623 ac_status=$?
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } &&
21629 { ac_try='test -z "$ac_c_werror_flag"
21630 || test ! -s conftest.err'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; } &&
21636 { ac_try='test -s conftest.$ac_objext'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; }; then
21642 ac_cv_member_struct_reg_r_gs=yes
21643 else
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21646
21647 ac_cv_member_struct_reg_r_gs=no
21648 fi
21649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21650 fi
21651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21652 fi
21653 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21654 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21655 if test $ac_cv_member_struct_reg_r_gs = yes; then
21656
21657 cat >>confdefs.h <<_ACEOF
21658 #define HAVE_STRUCT_REG_R_GS 1
21659 _ACEOF
21660
21661
21662 fi
21663
21664
21665 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21666 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21667 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21668 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671 cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h. */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 #include <sys/ptrace.h>
21678 int
21679 main ()
21680 {
21681 PTRACE_GETREGS;
21682 ;
21683 return 0;
21684 }
21685 _ACEOF
21686 rm -f conftest.$ac_objext
21687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21688 (eval $ac_compile) 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } &&
21695 { ac_try='test -z "$ac_c_werror_flag"
21696 || test ! -s conftest.err'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; } &&
21702 { ac_try='test -s conftest.$ac_objext'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21705 ac_status=$?
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; }; then
21708 gdb_cv_have_ptrace_getregs=yes
21709 else
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 gdb_cv_have_ptrace_getregs=no
21714 fi
21715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21716 fi
21717
21718 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21719 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21720 if test $gdb_cv_have_ptrace_getregs = yes; then
21721
21722 cat >>confdefs.h <<\_ACEOF
21723 #define HAVE_PTRACE_GETREGS 1
21724 _ACEOF
21725
21726 fi
21727
21728 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21729 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21730 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21731 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734 cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h. */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 #include <sys/ptrace.h>
21741 int
21742 main ()
21743 {
21744 PTRACE_GETFPXREGS;
21745 ;
21746 return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
21758 { ac_try='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 gdb_cv_have_ptrace_getfpxregs=yes
21772 else
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21775
21776 gdb_cv_have_ptrace_getfpxregs=no
21777 fi
21778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21779 fi
21780
21781 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21782 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21783 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21784
21785 cat >>confdefs.h <<\_ACEOF
21786 #define HAVE_PTRACE_GETFPXREGS 1
21787 _ACEOF
21788
21789 fi
21790
21791 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21792 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21793 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21794 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h. */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 #include <sys/types.h>
21804 #include <sys/ptrace.h>
21805 int
21806 main ()
21807 {
21808 PT_GETDBREGS;
21809 ;
21810 return 0;
21811 }
21812 _ACEOF
21813 rm -f conftest.$ac_objext
21814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21815 (eval $ac_compile) 2>conftest.er1
21816 ac_status=$?
21817 grep -v '^ *+' conftest.er1 >conftest.err
21818 rm -f conftest.er1
21819 cat conftest.err >&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } &&
21822 { ac_try='test -z "$ac_c_werror_flag"
21823 || test ! -s conftest.err'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; } &&
21829 { ac_try='test -s conftest.$ac_objext'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; }; then
21835 gdb_cv_have_pt_getdbregs=yes
21836 else
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21839
21840 gdb_cv_have_pt_getdbregs=no
21841 fi
21842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21843 fi
21844
21845 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21846 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21847 if test $gdb_cv_have_pt_getdbregs = yes; then
21848
21849 cat >>confdefs.h <<\_ACEOF
21850 #define HAVE_PT_GETDBREGS 1
21851 _ACEOF
21852
21853 fi
21854
21855 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21856 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21857 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21858 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21860 else
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h. */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 #include <sys/types.h>
21868 #include <sys/ptrace.h>
21869 int
21870 main ()
21871 {
21872 PT_GETXMMREGS;
21873 ;
21874 return 0;
21875 }
21876 _ACEOF
21877 rm -f conftest.$ac_objext
21878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21879 (eval $ac_compile) 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest.$ac_objext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 gdb_cv_have_pt_getxmmregs=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 gdb_cv_have_pt_getxmmregs=no
21905 fi
21906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21907 fi
21908
21909 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21910 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21911 if test $gdb_cv_have_pt_getxmmregs = yes; then
21912
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_PT_GETXMMREGS 1
21915 _ACEOF
21916
21917 fi
21918
21919 # Detect which type of /proc is in use, such as for Unixware or Solaris.
21920
21921 if test "${target}" = "${host}"; then
21922 case "${host}" in
21923 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21924
21925 cat >>confdefs.h <<\_ACEOF
21926 #define NEW_PROC_API 1
21927 _ACEOF
21928
21929 ;;
21930 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21931
21932 cat >>confdefs.h <<\_ACEOF
21933 #define NEW_PROC_API 1
21934 _ACEOF
21935
21936 ;;
21937 mips-sgi-irix5*)
21938 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21939
21940 cat >>confdefs.h <<\_ACEOF
21941 #define _KMEMUSER 1
21942 _ACEOF
21943
21944 ;;
21945 esac
21946 fi
21947
21948 if test "$ac_cv_header_sys_procfs_h" = yes; then
21949 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21950 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
21951 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 else
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h. */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960
21961 #define _SYSCALL32
21962 #include <sys/procfs.h>
21963 int
21964 main ()
21965 {
21966 pstatus_t avar
21967 ;
21968 return 0;
21969 }
21970 _ACEOF
21971 rm -f conftest.$ac_objext
21972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21973 (eval $ac_compile) 2>conftest.er1
21974 ac_status=$?
21975 grep -v '^ *+' conftest.er1 >conftest.err
21976 rm -f conftest.er1
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } &&
21980 { ac_try='test -z "$ac_c_werror_flag"
21981 || test ! -s conftest.err'
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; } &&
21987 { ac_try='test -s conftest.$ac_objext'
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21990 ac_status=$?
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; }; then
21993 bfd_cv_have_sys_procfs_type_pstatus_t=yes
21994 else
21995 echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21997
21998 bfd_cv_have_sys_procfs_type_pstatus_t=no
21999
22000 fi
22001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22002 fi
22003
22004 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
22005
22006 cat >>confdefs.h <<\_ACEOF
22007 #define HAVE_PSTATUS_T 1
22008 _ACEOF
22009
22010 fi
22011 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
22012 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
22013
22014 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
22015 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
22016 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019 cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h. */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22025
22026 #define _SYSCALL32
22027 #include <sys/procfs.h>
22028 int
22029 main ()
22030 {
22031 prrun_t avar
22032 ;
22033 return 0;
22034 }
22035 _ACEOF
22036 rm -f conftest.$ac_objext
22037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22038 (eval $ac_compile) 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_c_werror_flag"
22046 || test ! -s conftest.err'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest.$ac_objext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 bfd_cv_have_sys_procfs_type_prrun_t=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 bfd_cv_have_sys_procfs_type_prrun_t=no
22064
22065 fi
22066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22067 fi
22068
22069 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
22070
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_PRRUN_T 1
22073 _ACEOF
22074
22075 fi
22076 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
22077 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
22078
22079 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
22080 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
22081 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 else
22084 cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h. */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090
22091 #define _SYSCALL32
22092 #include <sys/procfs.h>
22093 int
22094 main ()
22095 {
22096 gregset_t avar
22097 ;
22098 return 0;
22099 }
22100 _ACEOF
22101 rm -f conftest.$ac_objext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22103 (eval $ac_compile) 2>conftest.er1
22104 ac_status=$?
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
22110 { ac_try='test -z "$ac_c_werror_flag"
22111 || test ! -s conftest.err'
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22114 ac_status=$?
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; } &&
22117 { ac_try='test -s conftest.$ac_objext'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 bfd_cv_have_sys_procfs_type_gregset_t=yes
22124 else
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128 bfd_cv_have_sys_procfs_type_gregset_t=no
22129
22130 fi
22131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22132 fi
22133
22134 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
22135
22136 cat >>confdefs.h <<\_ACEOF
22137 #define HAVE_GREGSET_T 1
22138 _ACEOF
22139
22140 fi
22141 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
22142 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
22143
22144 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
22145 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
22146 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
22147 echo $ECHO_N "(cached) $ECHO_C" >&6
22148 else
22149 cat >conftest.$ac_ext <<_ACEOF
22150 /* confdefs.h. */
22151 _ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h. */
22155
22156 #define _SYSCALL32
22157 #include <sys/procfs.h>
22158 int
22159 main ()
22160 {
22161 fpregset_t avar
22162 ;
22163 return 0;
22164 }
22165 _ACEOF
22166 rm -f conftest.$ac_objext
22167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22168 (eval $ac_compile) 2>conftest.er1
22169 ac_status=$?
22170 grep -v '^ *+' conftest.er1 >conftest.err
22171 rm -f conftest.er1
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } &&
22175 { ac_try='test -z "$ac_c_werror_flag"
22176 || test ! -s conftest.err'
22177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22178 (eval $ac_try) 2>&5
22179 ac_status=$?
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); }; } &&
22182 { ac_try='test -s conftest.$ac_objext'
22183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184 (eval $ac_try) 2>&5
22185 ac_status=$?
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); }; }; then
22188 bfd_cv_have_sys_procfs_type_fpregset_t=yes
22189 else
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22192
22193 bfd_cv_have_sys_procfs_type_fpregset_t=no
22194
22195 fi
22196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22197 fi
22198
22199 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
22200
22201 cat >>confdefs.h <<\_ACEOF
22202 #define HAVE_FPREGSET_T 1
22203 _ACEOF
22204
22205 fi
22206 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
22207 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
22208
22209 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
22210 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
22211 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 else
22214 cat >conftest.$ac_ext <<_ACEOF
22215 /* confdefs.h. */
22216 _ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h. */
22220
22221 #define _SYSCALL32
22222 #include <sys/procfs.h>
22223 int
22224 main ()
22225 {
22226 prgregset_t avar
22227 ;
22228 return 0;
22229 }
22230 _ACEOF
22231 rm -f conftest.$ac_objext
22232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22233 (eval $ac_compile) 2>conftest.er1
22234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
22240 { ac_try='test -z "$ac_c_werror_flag"
22241 || test ! -s conftest.err'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; } &&
22247 { ac_try='test -s conftest.$ac_objext'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; }; then
22253 bfd_cv_have_sys_procfs_type_prgregset_t=yes
22254 else
22255 echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22257
22258 bfd_cv_have_sys_procfs_type_prgregset_t=no
22259
22260 fi
22261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22262 fi
22263
22264 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
22265
22266 cat >>confdefs.h <<\_ACEOF
22267 #define HAVE_PRGREGSET_T 1
22268 _ACEOF
22269
22270 fi
22271 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
22272 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
22273
22274 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
22275 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
22276 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22278 else
22279 cat >conftest.$ac_ext <<_ACEOF
22280 /* confdefs.h. */
22281 _ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22285
22286 #define _SYSCALL32
22287 #include <sys/procfs.h>
22288 int
22289 main ()
22290 {
22291 prfpregset_t avar
22292 ;
22293 return 0;
22294 }
22295 _ACEOF
22296 rm -f conftest.$ac_objext
22297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22298 (eval $ac_compile) 2>conftest.er1
22299 ac_status=$?
22300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } &&
22305 { ac_try='test -z "$ac_c_werror_flag"
22306 || test ! -s conftest.err'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest.$ac_objext'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
22319 else
22320 echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22322
22323 bfd_cv_have_sys_procfs_type_prfpregset_t=no
22324
22325 fi
22326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22327 fi
22328
22329 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22330
22331 cat >>confdefs.h <<\_ACEOF
22332 #define HAVE_PRFPREGSET_T 1
22333 _ACEOF
22334
22335 fi
22336 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
22337 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
22338
22339 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
22340 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
22341 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344 cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h. */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350
22351 #define _SYSCALL32
22352 #include <sys/procfs.h>
22353 int
22354 main ()
22355 {
22356 prgregset32_t avar
22357 ;
22358 return 0;
22359 }
22360 _ACEOF
22361 rm -f conftest.$ac_objext
22362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363 (eval $ac_compile) 2>conftest.er1
22364 ac_status=$?
22365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -z "$ac_c_werror_flag"
22371 || test ! -s conftest.err'
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; } &&
22377 { ac_try='test -s conftest.$ac_objext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
22383 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
22384 else
22385 echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388 bfd_cv_have_sys_procfs_type_prgregset32_t=no
22389
22390 fi
22391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22392 fi
22393
22394 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
22395
22396 cat >>confdefs.h <<\_ACEOF
22397 #define HAVE_PRGREGSET32_T 1
22398 _ACEOF
22399
22400 fi
22401 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
22402 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
22403
22404 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
22405 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
22406 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409 cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h. */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415
22416 #define _SYSCALL32
22417 #include <sys/procfs.h>
22418 int
22419 main ()
22420 {
22421 prfpregset32_t avar
22422 ;
22423 return 0;
22424 }
22425 _ACEOF
22426 rm -f conftest.$ac_objext
22427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22428 (eval $ac_compile) 2>conftest.er1
22429 ac_status=$?
22430 grep -v '^ *+' conftest.er1 >conftest.err
22431 rm -f conftest.er1
22432 cat conftest.err >&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } &&
22435 { ac_try='test -z "$ac_c_werror_flag"
22436 || test ! -s conftest.err'
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22439 ac_status=$?
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; } &&
22442 { ac_try='test -s conftest.$ac_objext'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
22449 else
22450 echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22452
22453 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
22454
22455 fi
22456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22457 fi
22458
22459 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
22460
22461 cat >>confdefs.h <<\_ACEOF
22462 #define HAVE_PRFPREGSET32_T 1
22463 _ACEOF
22464
22465 fi
22466 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
22467 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
22468
22469 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
22470 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
22471 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
22472 echo $ECHO_N "(cached) $ECHO_C" >&6
22473 else
22474 cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h. */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480
22481 #define _SYSCALL32
22482 #include <sys/procfs.h>
22483 int
22484 main ()
22485 {
22486 lwpid_t avar
22487 ;
22488 return 0;
22489 }
22490 _ACEOF
22491 rm -f conftest.$ac_objext
22492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22493 (eval $ac_compile) 2>conftest.er1
22494 ac_status=$?
22495 grep -v '^ *+' conftest.er1 >conftest.err
22496 rm -f conftest.er1
22497 cat conftest.err >&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } &&
22500 { ac_try='test -z "$ac_c_werror_flag"
22501 || test ! -s conftest.err'
22502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; } &&
22507 { ac_try='test -s conftest.$ac_objext'
22508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22509 (eval $ac_try) 2>&5
22510 ac_status=$?
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); }; }; then
22513 bfd_cv_have_sys_procfs_type_lwpid_t=yes
22514 else
22515 echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22517
22518 bfd_cv_have_sys_procfs_type_lwpid_t=no
22519
22520 fi
22521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22522 fi
22523
22524 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
22525
22526 cat >>confdefs.h <<\_ACEOF
22527 #define HAVE_LWPID_T 1
22528 _ACEOF
22529
22530 fi
22531 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22532 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
22533
22534 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22535 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
22536 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22538 else
22539 cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h. */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545
22546 #define _SYSCALL32
22547 #include <sys/procfs.h>
22548 int
22549 main ()
22550 {
22551 psaddr_t avar
22552 ;
22553 return 0;
22554 }
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558 (eval $ac_compile) 2>conftest.er1
22559 ac_status=$?
22560 grep -v '^ *+' conftest.er1 >conftest.err
22561 rm -f conftest.er1
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } &&
22565 { ac_try='test -z "$ac_c_werror_flag"
22566 || test ! -s conftest.err'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest.$ac_objext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 bfd_cv_have_sys_procfs_type_psaddr_t=yes
22579 else
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583 bfd_cv_have_sys_procfs_type_psaddr_t=no
22584
22585 fi
22586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22587 fi
22588
22589 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
22590
22591 cat >>confdefs.h <<\_ACEOF
22592 #define HAVE_PSADDR_T 1
22593 _ACEOF
22594
22595 fi
22596 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22597 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
22598
22599 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22600 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22601 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22602 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 else
22604 cat >conftest.$ac_ext <<_ACEOF
22605 /* confdefs.h. */
22606 _ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22610
22611 #define _SYSCALL32
22612 #include <sys/procfs.h>
22613 int
22614 main ()
22615 {
22616 prsysent_t avar
22617 ;
22618 return 0;
22619 }
22620 _ACEOF
22621 rm -f conftest.$ac_objext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>conftest.er1
22624 ac_status=$?
22625 grep -v '^ *+' conftest.er1 >conftest.err
22626 rm -f conftest.er1
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -z "$ac_c_werror_flag"
22631 || test ! -s conftest.err'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } &&
22637 { ac_try='test -s conftest.$ac_objext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 bfd_cv_have_sys_procfs_type_prsysent_t=yes
22644 else
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648 bfd_cv_have_sys_procfs_type_prsysent_t=no
22649
22650 fi
22651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22652 fi
22653
22654 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22655
22656 cat >>confdefs.h <<\_ACEOF
22657 #define HAVE_PRSYSENT_T 1
22658 _ACEOF
22659
22660 fi
22661 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22662 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22663
22664 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22665 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22666 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669 cat >conftest.$ac_ext <<_ACEOF
22670 /* confdefs.h. */
22671 _ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22675
22676 #define _SYSCALL32
22677 #include <sys/procfs.h>
22678 int
22679 main ()
22680 {
22681 pr_sigset_t avar
22682 ;
22683 return 0;
22684 }
22685 _ACEOF
22686 rm -f conftest.$ac_objext
22687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22688 (eval $ac_compile) 2>conftest.er1
22689 ac_status=$?
22690 grep -v '^ *+' conftest.er1 >conftest.err
22691 rm -f conftest.er1
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } &&
22695 { ac_try='test -z "$ac_c_werror_flag"
22696 || test ! -s conftest.err'
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; } &&
22702 { ac_try='test -s conftest.$ac_objext'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; }; then
22708 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22709 else
22710 echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22712
22713 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22714
22715 fi
22716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22717 fi
22718
22719 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22720
22721 cat >>confdefs.h <<\_ACEOF
22722 #define HAVE_PR_SIGSET_T 1
22723 _ACEOF
22724
22725 fi
22726 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22727 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22728
22729 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22730 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22731 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 else
22734 cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h. */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740
22741 #define _SYSCALL32
22742 #include <sys/procfs.h>
22743 int
22744 main ()
22745 {
22746 pr_sigaction64_t avar
22747 ;
22748 return 0;
22749 }
22750 _ACEOF
22751 rm -f conftest.$ac_objext
22752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22753 (eval $ac_compile) 2>conftest.er1
22754 ac_status=$?
22755 grep -v '^ *+' conftest.er1 >conftest.err
22756 rm -f conftest.er1
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } &&
22760 { ac_try='test -z "$ac_c_werror_flag"
22761 || test ! -s conftest.err'
22762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest.$ac_objext'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; }; then
22773 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22774 else
22775 echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22777
22778 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22779
22780 fi
22781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22782 fi
22783
22784 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22785
22786 cat >>confdefs.h <<\_ACEOF
22787 #define HAVE_PR_SIGACTION64_T 1
22788 _ACEOF
22789
22790 fi
22791 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22792 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22793
22794 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22795 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22796 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22797 echo $ECHO_N "(cached) $ECHO_C" >&6
22798 else
22799 cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805
22806 #define _SYSCALL32
22807 #include <sys/procfs.h>
22808 int
22809 main ()
22810 {
22811 pr_siginfo64_t avar
22812 ;
22813 return 0;
22814 }
22815 _ACEOF
22816 rm -f conftest.$ac_objext
22817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22818 (eval $ac_compile) 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } &&
22825 { ac_try='test -z "$ac_c_werror_flag"
22826 || test ! -s conftest.err'
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; } &&
22832 { ac_try='test -s conftest.$ac_objext'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22835 ac_status=$?
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; }; then
22838 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22839 else
22840 echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22842
22843 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22844
22845 fi
22846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847 fi
22848
22849 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22850
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_PR_SIGINFO64_T 1
22853 _ACEOF
22854
22855 fi
22856 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22857 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22858
22859
22860
22861
22862
22863 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22864 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22865 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22866 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22867 echo $ECHO_N "(cached) $ECHO_C" >&6
22868 else
22869 if test "$cross_compiling" = yes; then
22870 gdb_cv_prfpregset_t_broken=yes
22871 else
22872 cat >conftest.$ac_ext <<_ACEOF
22873 /* confdefs.h. */
22874 _ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 #include <sys/procfs.h>
22879 int main ()
22880 {
22881 if (sizeof (prfpregset_t) == sizeof (void *))
22882 return 1;
22883 return 0;
22884 }
22885 _ACEOF
22886 rm -f conftest$ac_exeext
22887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22888 (eval $ac_link) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893 (eval $ac_try) 2>&5
22894 ac_status=$?
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); }; }; then
22897 gdb_cv_prfpregset_t_broken=no
22898 else
22899 echo "$as_me: program exited with status $ac_status" >&5
22900 echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903 ( exit $ac_status )
22904 gdb_cv_prfpregset_t_broken=yes
22905 fi
22906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22907 fi
22908 fi
22909
22910 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22911 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22912 if test $gdb_cv_prfpregset_t_broken = yes; then
22913
22914 cat >>confdefs.h <<\_ACEOF
22915 #define PRFPREGSET_T_BROKEN 1
22916 _ACEOF
22917
22918 fi
22919 fi
22920
22921
22922 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22923 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22924 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927 cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h. */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 #include <unistd.h>
22934 #include <sys/types.h>
22935 #include <sys/procfs.h>
22936
22937 int
22938 main ()
22939 {
22940
22941 int dummy;;
22942 dummy = ioctl(0, PIOCSET, &dummy);
22943
22944 ;
22945 return 0;
22946 }
22947 _ACEOF
22948 rm -f conftest.$ac_objext
22949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22950 (eval $ac_compile) 2>conftest.er1
22951 ac_status=$?
22952 grep -v '^ *+' conftest.er1 >conftest.err
22953 rm -f conftest.er1
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } &&
22957 { ac_try='test -z "$ac_c_werror_flag"
22958 || test ! -s conftest.err'
22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; } &&
22964 { ac_try='test -s conftest.$ac_objext'
22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; }; then
22970 gdb_cv_have_procfs_piocset=yes
22971 else
22972 echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975 gdb_cv_have_procfs_piocset=no
22976 fi
22977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22978 fi
22979
22980 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22981 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
22982 if test $gdb_cv_have_procfs_piocset = yes; then
22983
22984 cat >>confdefs.h <<\_ACEOF
22985 #define HAVE_PROCFS_PIOCSET 1
22986 _ACEOF
22987
22988 fi
22989 fi
22990
22991 if test ${host} = ${target} ; then
22992
22993 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22994 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
22995 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22997 else
22998 cat >conftest.$ac_ext <<_ACEOF
22999 /* confdefs.h. */
23000 _ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h. */
23004 #include <link.h>
23005 int
23006 main ()
23007 {
23008 struct link_map lm; (void) lm.l_addr;
23009 ;
23010 return 0;
23011 }
23012 _ACEOF
23013 rm -f conftest.$ac_objext
23014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23015 (eval $ac_compile) 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } &&
23022 { ac_try='test -z "$ac_c_werror_flag"
23023 || test ! -s conftest.err'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; } &&
23029 { ac_try='test -s conftest.$ac_objext'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; }; then
23035 gdb_cv_have_struct_link_map_with_l_members=yes
23036 else
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23039
23040 gdb_cv_have_struct_link_map_with_l_members=no
23041 fi
23042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23043 fi
23044
23045 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
23046 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
23047 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
23048
23049 cat >>confdefs.h <<\_ACEOF
23050 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
23051 _ACEOF
23052
23053 fi
23054
23055
23056 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
23057 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
23058 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061 cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h. */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 #include <sys/types.h>
23068 #include <link.h>
23069 int
23070 main ()
23071 {
23072 struct link_map lm; (void) lm.lm_addr;
23073 ;
23074 return 0;
23075 }
23076 _ACEOF
23077 rm -f conftest.$ac_objext
23078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23079 (eval $ac_compile) 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } &&
23086 { ac_try='test -z "$ac_c_werror_flag"
23087 || test ! -s conftest.err'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; } &&
23093 { ac_try='test -s conftest.$ac_objext'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 gdb_cv_have_struct_link_map_with_lm_members=yes
23100 else
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104 gdb_cv_have_struct_link_map_with_lm_members=no
23105 fi
23106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23107 fi
23108
23109 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
23110 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
23111 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
23112
23113 cat >>confdefs.h <<\_ACEOF
23114 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
23115 _ACEOF
23116
23117 fi
23118
23119
23120 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
23121 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
23122 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125 cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h. */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23131 #include <sys/types.h>
23132 #ifdef HAVE_NLIST_H
23133 #include <nlist.h>
23134 #endif
23135 #include <link.h>
23136 int
23137 main ()
23138 {
23139 struct so_map lm; (void) lm.som_addr;
23140 ;
23141 return 0;
23142 }
23143 _ACEOF
23144 rm -f conftest.$ac_objext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23146 (eval $ac_compile) 2>conftest.er1
23147 ac_status=$?
23148 grep -v '^ *+' conftest.er1 >conftest.err
23149 rm -f conftest.er1
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
23153 { ac_try='test -z "$ac_c_werror_flag"
23154 || test ! -s conftest.err'
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; } &&
23160 { ac_try='test -s conftest.$ac_objext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 gdb_cv_have_struct_so_map_with_som_members=yes
23167 else
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171 gdb_cv_have_struct_so_map_with_som_members=no
23172 fi
23173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23174 fi
23175
23176 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
23177 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
23178 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
23179
23180 cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
23182 _ACEOF
23183
23184 fi
23185
23186
23187 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
23188 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
23189 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 else
23192 cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h. */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 #define _SYSCALL32
23199 #include <sys/link.h>
23200 int
23201 main ()
23202 {
23203 struct link_map32 l;
23204 ;
23205 return 0;
23206 }
23207 _ACEOF
23208 rm -f conftest.$ac_objext
23209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23210 (eval $ac_compile) 2>conftest.er1
23211 ac_status=$?
23212 grep -v '^ *+' conftest.er1 >conftest.err
23213 rm -f conftest.er1
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } &&
23217 { ac_try='test -z "$ac_c_werror_flag"
23218 || test ! -s conftest.err'
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; } &&
23224 { ac_try='test -s conftest.$ac_objext'
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; }; then
23230 gdb_cv_have_struct_link_map32=yes
23231 else
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235 gdb_cv_have_struct_link_map32=no
23236 fi
23237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23238 fi
23239
23240 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
23241 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
23242 if test $gdb_cv_have_struct_link_map32 = yes; then
23243
23244 cat >>confdefs.h <<\_ACEOF
23245 #define HAVE_STRUCT_LINK_MAP32 1
23246 _ACEOF
23247
23248
23249 cat >>confdefs.h <<\_ACEOF
23250 #define _SYSCALL32 1
23251 _ACEOF
23252
23253 fi
23254 fi
23255
23256 # Check if the compiler supports the `long long' type.
23257
23258 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
23259 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
23260 if test "${gdb_cv_c_long_long+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23262 else
23263 cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h. */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23269 extern long long foo;
23270 int
23271 main ()
23272 {
23273 switch (foo & 2) { case 0: return 1; }
23274 ;
23275 return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23280 (eval $ac_compile) 2>conftest.er1
23281 ac_status=$?
23282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
23287 { ac_try='test -z "$ac_c_werror_flag"
23288 || test ! -s conftest.err'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest.$ac_objext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 gdb_cv_c_long_long=yes
23301 else
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305 gdb_cv_c_long_long=no
23306 fi
23307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23308 fi
23309 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
23310 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
23311 if test $gdb_cv_c_long_long = yes; then
23312
23313 cat >>confdefs.h <<\_ACEOF
23314 #define CC_HAS_LONG_LONG 1
23315 _ACEOF
23316
23317 fi
23318
23319 # Check if the compiler and runtime support printing long longs.
23320
23321 echo "$as_me:$LINENO: checking for long long support in printf" >&5
23322 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
23323 if test "${gdb_cv_printf_has_long_long+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326 if test "$cross_compiling" = yes; then
23327 gdb_cv_printf_has_long_long=no
23328 else
23329 cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h. */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23335 $ac_includes_default
23336 int
23337 main ()
23338 {
23339 char buf[32];
23340 long long l = 0;
23341 l = (l << 16) + 0x0123;
23342 l = (l << 16) + 0x4567;
23343 l = (l << 16) + 0x89ab;
23344 l = (l << 16) + 0xcdef;
23345 sprintf (buf, "0x%016llx", l);
23346 return (strcmp ("0x0123456789abcdef", buf));
23347 ;
23348 return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest$ac_exeext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23353 (eval $ac_link) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358 (eval $ac_try) 2>&5
23359 ac_status=$?
23360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361 (exit $ac_status); }; }; then
23362 gdb_cv_printf_has_long_long=yes
23363 else
23364 echo "$as_me: program exited with status $ac_status" >&5
23365 echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367
23368 ( exit $ac_status )
23369 gdb_cv_printf_has_long_long=no
23370 fi
23371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23372 fi
23373 fi
23374 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
23375 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
23376 if test $gdb_cv_printf_has_long_long = yes; then
23377
23378 cat >>confdefs.h <<\_ACEOF
23379 #define PRINTF_HAS_LONG_LONG 1
23380 _ACEOF
23381
23382 fi
23383
23384 # Check if the compiler and runtime support printing decfloats.
23385
23386 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
23387 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
23388 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23390 else
23391 if test "$cross_compiling" = yes; then
23392 gdb_cv_printf_has_decfloat=no
23393 else
23394 cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h. */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23400 $ac_includes_default
23401 int
23402 main ()
23403 {
23404 char buf[64];
23405 _Decimal32 d32 = 1.2345df;
23406 _Decimal64 d64 = 1.2345dd;
23407 _Decimal128 d128 = 1.2345dl;
23408 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
23409 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
23410 ;
23411 return 0;
23412 }
23413 _ACEOF
23414 rm -f conftest$ac_exeext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23416 (eval $ac_link) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 gdb_cv_printf_has_decfloat=yes
23426 else
23427 echo "$as_me: program exited with status $ac_status" >&5
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23430
23431 ( exit $ac_status )
23432 gdb_cv_printf_has_decfloat=no
23433 fi
23434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23435 fi
23436 fi
23437 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
23438 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
23439 if test $gdb_cv_printf_has_decfloat = yes; then
23440
23441 cat >>confdefs.h <<\_ACEOF
23442 #define PRINTF_HAS_DECFLOAT 1
23443 _ACEOF
23444
23445 fi
23446
23447 # Check if the compiler supports the `long double' type. We can't use
23448 # AC_C_LONG_DOUBLE because that one does additional checks on the
23449 # constants defined in <float.h> that fail on some systems,
23450 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
23451
23452 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
23453 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
23454 if test "${gdb_cv_c_long_double+set}" = set; then
23455 echo $ECHO_N "(cached) $ECHO_C" >&6
23456 else
23457 cat >conftest.$ac_ext <<_ACEOF
23458 /* confdefs.h. */
23459 _ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 long double foo;
23464 _ACEOF
23465 rm -f conftest.$ac_objext
23466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 (eval $ac_compile) 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
23474 { ac_try='test -z "$ac_c_werror_flag"
23475 || test ! -s conftest.err'
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23478 ac_status=$?
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; } &&
23481 { ac_try='test -s conftest.$ac_objext'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; }; then
23487 gdb_cv_c_long_double=yes
23488 else
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23491
23492 gdb_cv_c_long_double=no
23493 fi
23494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23495 fi
23496 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
23497 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
23498 if test $gdb_cv_c_long_double = yes; then
23499
23500 cat >>confdefs.h <<\_ACEOF
23501 #define HAVE_LONG_DOUBLE 1
23502 _ACEOF
23503
23504 fi
23505
23506 # Check if the compiler and runtime support printing long doubles.
23507
23508 echo "$as_me:$LINENO: checking for long double support in printf" >&5
23509 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
23510 if test "${gdb_cv_printf_has_long_double+set}" = set; then
23511 echo $ECHO_N "(cached) $ECHO_C" >&6
23512 else
23513 if test "$cross_compiling" = yes; then
23514 gdb_cv_printf_has_long_double=no
23515 else
23516 cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h. */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 $ac_includes_default
23523 int
23524 main ()
23525 {
23526 char buf[16];
23527 long double f = 3.141592653;
23528 sprintf (buf, "%Lg", f);
23529 return (strncmp ("3.14159", buf, 7));
23530 ;
23531 return 0;
23532 }
23533 _ACEOF
23534 rm -f conftest$ac_exeext
23535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23536 (eval $ac_link) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23542 ac_status=$?
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; }; then
23545 gdb_cv_printf_has_long_double=yes
23546 else
23547 echo "$as_me: program exited with status $ac_status" >&5
23548 echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23550
23551 ( exit $ac_status )
23552 gdb_cv_printf_has_long_double=no
23553 fi
23554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23555 fi
23556 fi
23557 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23558 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
23559 if test $gdb_cv_printf_has_long_double = yes; then
23560
23561 cat >>confdefs.h <<\_ACEOF
23562 #define PRINTF_HAS_LONG_DOUBLE 1
23563 _ACEOF
23564
23565 fi
23566
23567 # Check if the compiler and runtime support scanning long doubles.
23568
23569 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23570 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
23571 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23572 echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23574 if test "$cross_compiling" = yes; then
23575 gdb_cv_scanf_has_long_double=no
23576 else
23577 cat >conftest.$ac_ext <<_ACEOF
23578 /* confdefs.h. */
23579 _ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 #include <stdio.h>
23584 int
23585 main ()
23586 {
23587 char *buf = "3.141592653";
23588 long double f = 0;
23589 sscanf (buf, "%Lg", &f);
23590 return !(f > 3.14159 && f < 3.14160);
23591 ;
23592 return 0;
23593 }
23594 _ACEOF
23595 rm -f conftest$ac_exeext
23596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23597 (eval $ac_link) 2>&5
23598 ac_status=$?
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; }; then
23606 gdb_cv_scanf_has_long_double=yes
23607 else
23608 echo "$as_me: program exited with status $ac_status" >&5
23609 echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23611
23612 ( exit $ac_status )
23613 gdb_cv_scanf_has_long_double=no
23614 fi
23615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23616 fi
23617 fi
23618 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23619 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23620 if test $gdb_cv_scanf_has_long_double = yes; then
23621
23622 cat >>confdefs.h <<\_ACEOF
23623 #define SCANF_HAS_LONG_DOUBLE 1
23624 _ACEOF
23625
23626 fi
23627
23628 case ${host_os} in
23629 aix*)
23630 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23631 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23632 if test "${gdb_cv_bigtoc+set}" = set; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23634 else
23635
23636 SAVE_LDFLAGS=$LDFLAGS
23637
23638 case $GCC in
23639 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23640 *) gdb_cv_bigtoc=-bbigtoc ;;
23641 esac
23642
23643 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23644 cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h. */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h. */
23650
23651 int
23652 main ()
23653 {
23654 int i;
23655 ;
23656 return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext conftest$ac_exeext
23660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23661 (eval $ac_link) 2>conftest.er1
23662 ac_status=$?
23663 grep -v '^ *+' conftest.er1 >conftest.err
23664 rm -f conftest.er1
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -z "$ac_c_werror_flag"
23669 || test ! -s conftest.err'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; } &&
23675 { ac_try='test -s conftest$ac_exeext'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23681 :
23682 else
23683 echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23685
23686 gdb_cv_bigtoc=
23687 fi
23688 rm -f conftest.err conftest.$ac_objext \
23689 conftest$ac_exeext conftest.$ac_ext
23690 LDFLAGS="${SAVE_LDFLAGS}"
23691
23692 fi
23693 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23694 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23695 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23696 ;;
23697 esac
23698
23699
23700
23701 if test ${build} = ${host} -a ${host} = ${target} ; then
23702 case ${host_os} in
23703 hpux*)
23704 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23705 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23706 if test -f /usr/include/dce/cma_config.h ; then
23707 if test "$GCC" = "yes" ; then
23708 echo "$as_me:$LINENO: result: yes" >&5
23709 echo "${ECHO_T}yes" >&6
23710
23711 cat >>confdefs.h <<\_ACEOF
23712 #define HAVE_HPUX_THREAD_SUPPORT 1
23713 _ACEOF
23714
23715 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23716 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23717 else
23718 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23719 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23720 fi
23721 else
23722 echo "$as_me:$LINENO: result: no" >&5
23723 echo "${ECHO_T}no" >&6
23724 fi
23725 ;;
23726 solaris*)
23727 # See if thread_db library is around for Solaris thread debugging.
23728 # Note that we must explicitly test for version 1 of the library
23729 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23730 # the same API.
23731 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23732 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23733 if test -f /usr/lib/libthread_db.so.1 ; then
23734 echo "$as_me:$LINENO: result: yes" >&5
23735 echo "${ECHO_T}yes" >&6
23736
23737 cat >>confdefs.h <<\_ACEOF
23738 #define HAVE_THREAD_DB_LIB 1
23739 _ACEOF
23740
23741 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23742 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23743
23744 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23745 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23747 echo $ECHO_N "(cached) $ECHO_C" >&6
23748 else
23749 ac_check_lib_save_LIBS=$LIBS
23750 LIBS="-ldl $LIBS"
23751 cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h. */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757
23758 /* Override any gcc2 internal prototype to avoid an error. */
23759 #ifdef __cplusplus
23760 extern "C"
23761 #endif
23762 /* We use char because int might match the return type of a gcc2
23763 builtin and then its argument prototype would still apply. */
23764 char dlopen ();
23765 int
23766 main ()
23767 {
23768 dlopen ();
23769 ;
23770 return 0;
23771 }
23772 _ACEOF
23773 rm -f conftest.$ac_objext conftest$ac_exeext
23774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23775 (eval $ac_link) 2>conftest.er1
23776 ac_status=$?
23777 grep -v '^ *+' conftest.er1 >conftest.err
23778 rm -f conftest.er1
23779 cat conftest.err >&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); } &&
23782 { ac_try='test -z "$ac_c_werror_flag"
23783 || test ! -s conftest.err'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; } &&
23789 { ac_try='test -s conftest$ac_exeext'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23792 ac_status=$?
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
23795 ac_cv_lib_dl_dlopen=yes
23796 else
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23799
23800 ac_cv_lib_dl_dlopen=no
23801 fi
23802 rm -f conftest.err conftest.$ac_objext \
23803 conftest$ac_exeext conftest.$ac_ext
23804 LIBS=$ac_check_lib_save_LIBS
23805 fi
23806 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23807 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23808 if test $ac_cv_lib_dl_dlopen = yes; then
23809 cat >>confdefs.h <<_ACEOF
23810 #define HAVE_LIBDL 1
23811 _ACEOF
23812
23813 LIBS="-ldl $LIBS"
23814
23815 fi
23816
23817 if test "$GCC" = "yes" ; then
23818 # The GNU linker requires the -export-dynamic option to make
23819 # all symbols visible in the dynamic symbol table.
23820 hold_ldflags=$LDFLAGS
23821 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23822 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23823 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23824 cat >conftest.$ac_ext <<_ACEOF
23825 /* confdefs.h. */
23826 _ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h. */
23830
23831 int
23832 main ()
23833 {
23834 int i;
23835 ;
23836 return 0;
23837 }
23838 _ACEOF
23839 rm -f conftest.$ac_objext conftest$ac_exeext
23840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23841 (eval $ac_link) 2>conftest.er1
23842 ac_status=$?
23843 grep -v '^ *+' conftest.er1 >conftest.err
23844 rm -f conftest.er1
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } &&
23848 { ac_try='test -z "$ac_c_werror_flag"
23849 || test ! -s conftest.err'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; } &&
23855 { ac_try='test -s conftest$ac_exeext'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23858 ac_status=$?
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 found=yes
23862 else
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23865
23866 found=no
23867 fi
23868 rm -f conftest.err conftest.$ac_objext \
23869 conftest$ac_exeext conftest.$ac_ext
23870 LDFLAGS=$hold_ldflags
23871 echo "$as_me:$LINENO: result: $found" >&5
23872 echo "${ECHO_T}$found" >&6
23873 if test $found = yes; then
23874 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23875 fi
23876 fi
23877 # Sun randomly tweaked the prototypes in <proc_service.h>
23878 # at one point.
23879 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23880 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23881 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23882 echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884
23885 cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h. */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23891
23892 #include <proc_service.h>
23893 ps_err_e ps_pdwrite
23894 (struct ps_prochandle*, psaddr_t, const void*, size_t);
23895
23896 int
23897 main ()
23898 {
23899
23900 ;
23901 return 0;
23902 }
23903 _ACEOF
23904 rm -f conftest.$ac_objext
23905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23906 (eval $ac_compile) 2>conftest.er1
23907 ac_status=$?
23908 grep -v '^ *+' conftest.er1 >conftest.err
23909 rm -f conftest.er1
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } &&
23913 { ac_try='test -z "$ac_c_werror_flag"
23914 || test ! -s conftest.err'
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; } &&
23920 { ac_try='test -s conftest.$ac_objext'
23921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922 (eval $ac_try) 2>&5
23923 ac_status=$?
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; }; then
23926 gdb_cv_proc_service_is_old=no
23927 else
23928 echo "$as_me: failed program was:" >&5
23929 sed 's/^/| /' conftest.$ac_ext >&5
23930
23931 gdb_cv_proc_service_is_old=yes
23932 fi
23933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23934
23935 fi
23936
23937 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23938 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23939 if test $gdb_cv_proc_service_is_old = yes; then
23940
23941 cat >>confdefs.h <<\_ACEOF
23942 #define PROC_SERVICE_IS_OLD 1
23943 _ACEOF
23944
23945 fi
23946 else
23947 echo "$as_me:$LINENO: result: no" >&5
23948 echo "${ECHO_T}no" >&6
23949 fi
23950 ;;
23951 aix*)
23952 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23953 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
23954 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23956 else
23957 cat >conftest.$ac_ext <<_ACEOF
23958 /* confdefs.h. */
23959 _ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h. */
23963 #include <sys/pthdebug.h>
23964 int
23965 main ()
23966 {
23967 #ifndef PTHDB_VERSION_3
23968 #error
23969 #endif
23970 ;
23971 return 0;
23972 }
23973 _ACEOF
23974 rm -f conftest.$ac_objext
23975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23976 (eval $ac_compile) 2>conftest.er1
23977 ac_status=$?
23978 grep -v '^ *+' conftest.er1 >conftest.err
23979 rm -f conftest.er1
23980 cat conftest.err >&5
23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982 (exit $ac_status); } &&
23983 { ac_try='test -z "$ac_c_werror_flag"
23984 || test ! -s conftest.err'
23985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23987 ac_status=$?
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; } &&
23990 { ac_try='test -s conftest.$ac_objext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23993 ac_status=$?
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 gdb_cv_have_aix_thread_debug=yes
23997 else
23998 echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24000
24001 gdb_cv_have_aix_thread_debug=no
24002 fi
24003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24004 fi
24005
24006 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
24007 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
24008 if test $gdb_cv_have_aix_thread_debug = yes; then
24009 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
24010 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
24011 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
24012 fi
24013 ;;
24014 esac
24015
24016 fi
24017
24018 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
24019 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
24020 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
24021 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24023 else
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h. */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 #include <thread_db.h>
24031 int
24032 main ()
24033 {
24034 int i = TD_NOTALLOC;
24035 ;
24036 return 0;
24037 }
24038 _ACEOF
24039 rm -f conftest.$ac_objext
24040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24041 (eval $ac_compile) 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } &&
24048 { ac_try='test -z "$ac_c_werror_flag"
24049 || test ! -s conftest.err'
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; } &&
24055 { ac_try='test -s conftest.$ac_objext'
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; }; then
24061 gdb_cv_thread_db_h_has_td_notalloc=yes
24062 else
24063 echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24065
24066 gdb_cv_thread_db_h_has_td_notalloc=no
24067
24068 fi
24069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24070
24071 fi
24072 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
24073 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
24074 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
24075 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
24076 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
24077 echo $ECHO_N "(cached) $ECHO_C" >&6
24078 else
24079 cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h. */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 #include <thread_db.h>
24086 int
24087 main ()
24088 {
24089 int i = TD_VERSION;
24090 ;
24091 return 0;
24092 }
24093 _ACEOF
24094 rm -f conftest.$ac_objext
24095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096 (eval $ac_compile) 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
24103 { ac_try='test -z "$ac_c_werror_flag"
24104 || test ! -s conftest.err'
24105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; } &&
24110 { ac_try='test -s conftest.$ac_objext'
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24113 ac_status=$?
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
24116 gdb_cv_thread_db_h_has_td_version=yes
24117 else
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24120
24121 gdb_cv_thread_db_h_has_td_version=no
24122
24123 fi
24124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24125
24126 fi
24127 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
24128 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
24129 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
24130 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
24131 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24133 else
24134 cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h. */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 #include <thread_db.h>
24141 int
24142 main ()
24143 {
24144 int i = TD_NOTLS;
24145 ;
24146 return 0;
24147 }
24148 _ACEOF
24149 rm -f conftest.$ac_objext
24150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24151 (eval $ac_compile) 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } &&
24158 { ac_try='test -z "$ac_c_werror_flag"
24159 || test ! -s conftest.err'
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; } &&
24165 { ac_try='test -s conftest.$ac_objext'
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; }; then
24171 gdb_cv_thread_db_h_has_td_notls=yes
24172 else
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24175
24176 gdb_cv_thread_db_h_has_td_notls=no
24177
24178 fi
24179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180
24181 fi
24182 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
24183 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
24184 fi
24185 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
24186
24187 cat >>confdefs.h <<\_ACEOF
24188 #define THREAD_DB_HAS_TD_NOTALLOC 1
24189 _ACEOF
24190
24191 fi
24192 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
24193
24194 cat >>confdefs.h <<\_ACEOF
24195 #define THREAD_DB_HAS_TD_VERSION 1
24196 _ACEOF
24197
24198 fi
24199 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
24200
24201 cat >>confdefs.h <<\_ACEOF
24202 #define THREAD_DB_HAS_TD_NOTLS 1
24203 _ACEOF
24204
24205 fi
24206
24207 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
24208 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
24209 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
24210 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24212 else
24213 cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h. */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24219 #include <sys/syscall.h>
24220 int
24221 main ()
24222 {
24223 int i = __NR_tkill;
24224 ;
24225 return 0;
24226 }
24227 _ACEOF
24228 rm -f conftest.$ac_objext
24229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24230 (eval $ac_compile) 2>conftest.er1
24231 ac_status=$?
24232 grep -v '^ *+' conftest.er1 >conftest.err
24233 rm -f conftest.er1
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } &&
24237 { ac_try='test -z "$ac_c_werror_flag"
24238 || test ! -s conftest.err'
24239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240 (eval $ac_try) 2>&5
24241 ac_status=$?
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); }; } &&
24244 { ac_try='test -s conftest.$ac_objext'
24245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246 (eval $ac_try) 2>&5
24247 ac_status=$?
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); }; }; then
24250 gdb_cv_sys_syscall_h_has_tkill=yes
24251 else
24252 echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24254
24255 gdb_cv_sys_syscall_h_has_tkill=no
24256
24257 fi
24258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24259
24260 fi
24261 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
24262 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
24263 fi
24264 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
24265
24266 cat >>confdefs.h <<\_ACEOF
24267 #define HAVE_TKILL_SYSCALL 1
24268 _ACEOF
24269
24270 fi
24271
24272 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
24273 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
24274 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24276 else
24277 cat >conftest.$ac_ext <<_ACEOF
24278 /* confdefs.h. */
24279 _ACEOF
24280 cat confdefs.h >>conftest.$ac_ext
24281 cat >>conftest.$ac_ext <<_ACEOF
24282 /* end confdefs.h. */
24283 #include <sys/personality.h>
24284
24285 int
24286 main ()
24287 {
24288 #ifndef ADDR_NO_RANDOMIZE
24289 char *p = (char *) ADDR_NO_RANDOMIZE;
24290 #endif
24291
24292 ;
24293 return 0;
24294 }
24295 _ACEOF
24296 rm -f conftest.$ac_objext
24297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24298 (eval $ac_compile) 2>conftest.er1
24299 ac_status=$?
24300 grep -v '^ *+' conftest.er1 >conftest.err
24301 rm -f conftest.er1
24302 cat conftest.err >&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); } &&
24305 { ac_try='test -z "$ac_c_werror_flag"
24306 || test ! -s conftest.err'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; } &&
24312 { ac_try='test -s conftest.$ac_objext'
24313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314 (eval $ac_try) 2>&5
24315 ac_status=$?
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; }; then
24318 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
24319 else
24320 echo "$as_me: failed program was:" >&5
24321 sed 's/^/| /' conftest.$ac_ext >&5
24322
24323 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
24324 fi
24325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24326 fi
24327 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
24328 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
24329 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
24330
24331 cat >>confdefs.h <<_ACEOF
24332 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
24333 _ACEOF
24334
24335
24336 else
24337 cat >>confdefs.h <<_ACEOF
24338 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
24339 _ACEOF
24340
24341
24342 fi
24343
24344
24345
24346 if test "$cross_compiling" = yes; then
24347 cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h. */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24353 #include <sys/personality.h>
24354 int
24355 main ()
24356 {
24357
24358 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
24359 # define ADDR_NO_RANDOMIZE 0x0040000
24360 # endif
24361 /* Test the flag could be set and stays set. */
24362 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24363 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24364 return 1
24365 ;
24366 return 0;
24367 }
24368 _ACEOF
24369 rm -f conftest.$ac_objext conftest$ac_exeext
24370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24371 (eval $ac_link) 2>conftest.er1
24372 ac_status=$?
24373 grep -v '^ *+' conftest.er1 >conftest.err
24374 rm -f conftest.er1
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } &&
24378 { ac_try='test -z "$ac_c_werror_flag"
24379 || test ! -s conftest.err'
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24382 ac_status=$?
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; } &&
24385 { ac_try='test -s conftest$ac_exeext'
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24388 ac_status=$?
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24391 have_personality=true
24392 else
24393 echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24395
24396 have_personality=false
24397 fi
24398 rm -f conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
24400 else
24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h. */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 #include <sys/personality.h>
24408 int
24409 main ()
24410 {
24411
24412 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
24413 # define ADDR_NO_RANDOMIZE 0x0040000
24414 # endif
24415 /* Test the flag could be set and stays set. */
24416 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24417 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24418 return 1
24419 ;
24420 return 0;
24421 }
24422 _ACEOF
24423 rm -f conftest$ac_exeext
24424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24425 (eval $ac_link) 2>&5
24426 ac_status=$?
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; }; then
24434 have_personality=true
24435 else
24436 echo "$as_me: program exited with status $ac_status" >&5
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24439
24440 ( exit $ac_status )
24441 have_personality=false
24442 fi
24443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24444 fi
24445 if $have_personality
24446 then
24447
24448 cat >>confdefs.h <<\_ACEOF
24449 #define HAVE_PERSONALITY 1
24450 _ACEOF
24451
24452 fi
24453
24454
24455
24456 # Check whether --with-sysroot or --without-sysroot was given.
24457 if test "${with_sysroot+set}" = set; then
24458 withval="$with_sysroot"
24459
24460 case ${with_sysroot} in
24461 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
24462 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
24463 esac
24464
24465 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
24466
24467 if test "x$prefix" = xNONE; then
24468 test_prefix=/usr/local
24469 else
24470 test_prefix=$prefix
24471 fi
24472 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24473 test_exec_prefix=$test_prefix
24474 else
24475 test_exec_prefix=$exec_prefix
24476 fi
24477 case ${TARGET_SYSTEM_ROOT} in
24478 "${test_prefix}"|"${test_prefix}/"*|\
24479 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
24480 '${prefix}'|'${prefix}/'*|\
24481 '${exec_prefix}'|'${exec_prefix}/'*)
24482 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
24483 TARGET_SYSTEM_ROOT_DEFINE="$t"
24484 ;;
24485 esac
24486
24487 else
24488
24489 TARGET_SYSTEM_ROOT=
24490 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
24491
24492 fi;
24493
24494
24495
24496 # Check whether --enable-werror or --disable-werror was given.
24497 if test "${enable_werror+set}" = set; then
24498 enableval="$enable_werror"
24499 case "${enableval}" in
24500 yes | y) ERROR_ON_WARNING="yes" ;;
24501 no | n) ERROR_ON_WARNING="no" ;;
24502 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
24503 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
24504 { (exit 1); exit 1; }; } ;;
24505 esac
24506 fi;
24507
24508 # Enable -Werror by default when using gcc
24509 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24510 ERROR_ON_WARNING=yes
24511 fi
24512
24513 WERROR_CFLAGS=""
24514 if test "${ERROR_ON_WARNING}" = yes ; then
24515 WERROR_CFLAGS="-Werror"
24516 fi
24517
24518 # The entries after -Wno-pointer-sign are disabled warnings which may
24519 # be enabled in the future, which can not currently be used to build
24520 # GDB.
24521 # NOTE: If you change this list, remember to update
24522 # gdb/doc/gdbint.texinfo.
24523 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24524 -Wformat-nonliteral -Wno-pointer-sign \
24525 -Wno-unused -Wno-switch -Wno-char-subscripts"
24526
24527 # Enable -Wno-format by default when using gcc on mingw since many
24528 # GCC versions complain about %I64.
24529 case "${host}" in
24530 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24531 esac
24532
24533 # Check whether --enable-build-warnings or --disable-build-warnings was given.
24534 if test "${enable_build_warnings+set}" = set; then
24535 enableval="$enable_build_warnings"
24536 case "${enableval}" in
24537 yes) ;;
24538 no) build_warnings="-w";;
24539 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24540 build_warnings="${build_warnings} ${t}";;
24541 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24542 build_warnings="${t} ${build_warnings}";;
24543 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24544 esac
24545 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24546 echo "Setting compiler warning flags = $build_warnings" 6>&1
24547 fi
24548 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
24549 if test "${enable_gdb_build_warnings+set}" = set; then
24550 enableval="$enable_gdb_build_warnings"
24551 case "${enableval}" in
24552 yes) ;;
24553 no) build_warnings="-w";;
24554 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24555 build_warnings="${build_warnings} ${t}";;
24556 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24557 build_warnings="${t} ${build_warnings}";;
24558 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24559 esac
24560 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24561 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24562 fi
24563 fi; WARN_CFLAGS=""
24564 if test "x${build_warnings}" != x -a "x$GCC" = xyes
24565 then
24566 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24567 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
24568 # Separate out the -Werror flag as some files just cannot be
24569 # compiled with it enabled.
24570 for w in ${build_warnings}; do
24571 case $w in
24572 -Werr*) WERROR_CFLAGS=-Werror ;;
24573 *) # Check that GCC accepts it
24574 saved_CFLAGS="$CFLAGS"
24575 CFLAGS="$CFLAGS $w"
24576 cat >conftest.$ac_ext <<_ACEOF
24577 /* confdefs.h. */
24578 _ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24582
24583 int
24584 main ()
24585 {
24586
24587 ;
24588 return 0;
24589 }
24590 _ACEOF
24591 rm -f conftest.$ac_objext
24592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24593 (eval $ac_compile) 2>conftest.er1
24594 ac_status=$?
24595 grep -v '^ *+' conftest.er1 >conftest.err
24596 rm -f conftest.er1
24597 cat conftest.err >&5
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } &&
24600 { ac_try='test -z "$ac_c_werror_flag"
24601 || test ! -s conftest.err'
24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603 (eval $ac_try) 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest.$ac_objext'
24608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609 (eval $ac_try) 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
24613 WARN_CFLAGS="${WARN_CFLAGS} $w"
24614 else
24615 echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24617
24618 fi
24619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24620 CFLAGS="$saved_CFLAGS"
24621 esac
24622 done
24623 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24624 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
24625 fi
24626
24627
24628
24629 # In the Cygwin environment, we need some additional flags.
24630 echo "$as_me:$LINENO: checking for cygwin" >&5
24631 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
24632 if test "${gdb_cv_os_cygwin+set}" = set; then
24633 echo $ECHO_N "(cached) $ECHO_C" >&6
24634 else
24635 cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h. */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24641
24642 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
24643 lose
24644 #endif
24645 _ACEOF
24646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24647 $EGREP "lose" >/dev/null 2>&1; then
24648 gdb_cv_os_cygwin=yes
24649 else
24650 gdb_cv_os_cygwin=no
24651 fi
24652 rm -f conftest*
24653
24654 fi
24655 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24656 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
24657
24658
24659 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24660 case ${host} in
24661 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24662 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24663 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24664 esac
24665
24666
24667 # libreadline needs libuser32.a in a cygwin environment
24668 WIN32LIBS=
24669 if test x$gdb_cv_os_cygwin = xyes; then
24670 WIN32LIBS="-luser32"
24671 case "${target}" in
24672 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24673 ;;
24674 esac
24675 fi
24676
24677 # The ser-tcp.c module requires sockets.
24678 case ${host} in
24679 *mingw32*)
24680
24681 cat >>confdefs.h <<\_ACEOF
24682 #define USE_WIN32API 1
24683 _ACEOF
24684
24685 WIN32LIBS="$WIN32LIBS -lws2_32"
24686 ;;
24687 esac
24688
24689
24690 # Add ELF support to GDB, but only if BFD includes ELF support.
24691 OLD_CFLAGS=$CFLAGS
24692 OLD_LDFLAGS=$LDFLAGS
24693 OLD_LIBS=$LIBS
24694 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24695 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24696 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24697 LIBS="-lbfd -liberty $intl $LIBS"
24698 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24699 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24700 if test "${gdb_cv_var_elf+set}" = set; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24702 else
24703 cat >conftest.$ac_ext <<_ACEOF
24704 /* confdefs.h. */
24705 _ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h. */
24709 #include <stdlib.h>
24710 #include "bfd.h"
24711 #include "elf-bfd.h"
24712
24713 int
24714 main ()
24715 {
24716 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24717 ;
24718 return 0;
24719 }
24720 _ACEOF
24721 rm -f conftest.$ac_objext conftest$ac_exeext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723 (eval $ac_link) 2>conftest.er1
24724 ac_status=$?
24725 grep -v '^ *+' conftest.er1 >conftest.err
24726 rm -f conftest.er1
24727 cat conftest.err >&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } &&
24730 { ac_try='test -z "$ac_c_werror_flag"
24731 || test ! -s conftest.err'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest$ac_exeext'
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24740 ac_status=$?
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 gdb_cv_var_elf=yes
24744 else
24745 echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748 gdb_cv_var_elf=no
24749 fi
24750 rm -f conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
24752 fi
24753 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24754 echo "${ECHO_T}$gdb_cv_var_elf" >&6
24755 if test $gdb_cv_var_elf = yes; then
24756 CONFIG_OBS="$CONFIG_OBS elfread.o"
24757
24758 cat >>confdefs.h <<\_ACEOF
24759 #define HAVE_ELF 1
24760 _ACEOF
24761
24762 fi
24763 CFLAGS=$OLD_CFLAGS
24764 LDFLAGS=$OLD_LDFLAGS
24765 LIBS=$OLD_LIBS
24766
24767 # Add any host-specific objects to GDB.
24768 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24769
24770 LIBGUI="../libgui/src/libgui.a"
24771 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24772
24773
24774
24775 WIN32LDAPP=
24776
24777
24778
24779 case "${host}" in
24780 *-*-cygwin* | *-*-mingw* )
24781 configdir="win"
24782 ;;
24783 *)
24784 configdir="unix"
24785 ;;
24786 esac
24787
24788 GDBTKLIBS=
24789 if test "${enable_gdbtk}" = "yes"; then
24790
24791 # Gdbtk must have an absolute path to srcdir in order to run
24792 # properly when not installed.
24793 here=`pwd`
24794 cd ${srcdir}
24795 GDBTK_SRC_DIR=`pwd`
24796 cd $here
24797
24798
24799 #
24800 # Ok, lets find the tcl configuration
24801 # First, look for one uninstalled.
24802 # the alternative search directory is invoked by --with-tcl
24803 #
24804
24805 if test x"${no_tcl}" = x ; then
24806 # we reset no_tcl in case something fails here
24807 no_tcl=true
24808
24809 # Check whether --with-tcl or --without-tcl was given.
24810 if test "${with_tcl+set}" = set; then
24811 withval="$with_tcl"
24812 with_tclconfig=${withval}
24813 fi;
24814 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24815 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24816 if test "${ac_cv_c_tclconfig+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24819
24820
24821 # First check to see if --with-tcl was specified.
24822 case "${host}" in
24823 *-*-cygwin*) platDir="win" ;;
24824 *) platDir="unix" ;;
24825 esac
24826 if test x"${with_tclconfig}" != x ; then
24827 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24828 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24829 else
24830 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24831 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24832 { (exit 1); exit 1; }; }
24833 fi
24834 fi
24835
24836 # then check for a private Tcl installation
24837 if test x"${ac_cv_c_tclconfig}" = x ; then
24838 for i in \
24839 ../tcl \
24840 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24841 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24842 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24843 ../../tcl \
24844 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24845 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24846 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24847 ../../../tcl \
24848 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24849 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24850 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24851 if test -f "$i/$platDir/tclConfig.sh" ; then
24852 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24853 break
24854 fi
24855 done
24856 fi
24857
24858 # on Darwin, check in Framework installation locations
24859 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24860 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24861 `ls -d /Library/Frameworks 2>/dev/null` \
24862 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24863 `ls -d /System/Library/Frameworks 2>/dev/null` \
24864 ; do
24865 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24866 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24867 break
24868 fi
24869 done
24870 fi
24871
24872 # check in a few common install locations
24873 if test x"${ac_cv_c_tclconfig}" = x ; then
24874 for i in `ls -d ${libdir} 2>/dev/null` \
24875 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24876 `ls -d ${prefix}/lib 2>/dev/null` \
24877 `ls -d /usr/local/lib 2>/dev/null` \
24878 `ls -d /usr/contrib/lib 2>/dev/null` \
24879 `ls -d /usr/lib 2>/dev/null` \
24880 ; do
24881 if test -f "$i/tclConfig.sh" ; then
24882 ac_cv_c_tclconfig=`(cd $i; pwd)`
24883 break
24884 fi
24885 done
24886 fi
24887
24888 # check in a few other private locations
24889 if test x"${ac_cv_c_tclconfig}" = x ; then
24890 for i in \
24891 ${srcdir}/../tcl \
24892 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24893 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24894 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24895 if test -f "$i/$platDir/tclConfig.sh" ; then
24896 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24897 break
24898 fi
24899 done
24900 fi
24901
24902 fi
24903
24904
24905 if test x"${ac_cv_c_tclconfig}" = x ; then
24906 TCL_BIN_DIR="# no Tcl configs found"
24907 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24908 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24909 exit 0
24910 else
24911 no_tcl=
24912 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24913 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24914 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24915 fi
24916 fi
24917
24918 if test -z "${no_tcl}"; then
24919
24920 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24921 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
24922
24923 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24924 echo "$as_me:$LINENO: result: loading" >&5
24925 echo "${ECHO_T}loading" >&6
24926 . ${TCL_BIN_DIR}/tclConfig.sh
24927 else
24928 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24929 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24930 fi
24931
24932 # eval is required to do the TCL_DBGX substitution
24933 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24934 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24935
24936 # If the TCL_BIN_DIR is the build directory (not the install directory),
24937 # then set the common variable name to the value of the build variables.
24938 # For example, the variable TCL_LIB_SPEC will be set to the value
24939 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24940 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24941 # installed and uninstalled version of Tcl.
24942 if test -f ${TCL_BIN_DIR}/Makefile ; then
24943 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24944 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
24945 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
24946 elif test "`uname -s`" = "Darwin"; then
24947 # If Tcl was built as a framework, attempt to use the libraries
24948 # from the framework at the given location so that linking works
24949 # against Tcl.framework installed in an arbitary location.
24950 case ${TCL_DEFS} in
24951 *TCL_FRAMEWORK*)
24952 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
24953 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
24954 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
24955 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
24956 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
24957 break
24958 fi
24959 done
24960 fi
24961 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
24962 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
24963 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
24964 fi
24965 ;;
24966 esac
24967 fi
24968
24969 # eval is required to do the TCL_DBGX substitution
24970 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
24971 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
24972 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
24973 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989 # Check for in-tree tcl
24990 here=`pwd`
24991 cd ${srcdir}/..
24992 topdir=`pwd`
24993 cd ${here}
24994
24995 intree="no"
24996 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
24997 intree="yes"
24998 fi
24999
25000 # Find Tcl private headers
25001 if test x"${intree}" = xno; then
25002
25003 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
25004 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
25005 private_dir=""
25006 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
25007 if test -f ${dir}/tclInt.h ; then
25008 private_dir=${dir}
25009 fi
25010
25011 if test x"${private_dir}" = x; then
25012 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
25013 echo "$as_me: error: could not find private Tcl headers" >&2;}
25014 { (exit 1); exit 1; }; }
25015 else
25016 TCL_PRIVATE_INCLUDE="-I${private_dir}"
25017 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25018 echo "${ECHO_T}${private_dir}" >&6
25019 fi
25020
25021 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
25022 TCL_LIBRARY="${TCL_LIB_SPEC}"
25023 TCL_DEPS=""
25024 else
25025 # If building tcl in the same src tree, private headers
25026 # are not needed, but we need to be sure to use the right
25027 # headers library
25028 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
25029 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
25030 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
25031 fi
25032
25033
25034
25035
25036 # If $no_tk is nonempty, then we can't do Tk, and there is no
25037 # point to doing Tcl.
25038 if test -z "${no_tk}"; then
25039
25040 #
25041 # Ok, lets find the tk configuration
25042 # First, look for one uninstalled.
25043 # the alternative search directory is invoked by --with-tk
25044 #
25045
25046 if test x"${no_tk}" = x ; then
25047 # we reset no_tk in case something fails here
25048 no_tk=true
25049
25050 # Check whether --with-tk or --without-tk was given.
25051 if test "${with_tk+set}" = set; then
25052 withval="$with_tk"
25053 with_tkconfig=${withval}
25054 fi;
25055 echo "$as_me:$LINENO: checking for Tk configuration" >&5
25056 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
25057 if test "${ac_cv_c_tkconfig+set}" = set; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 else
25060
25061
25062 # First check to see if --with-tkconfig was specified.
25063 if test x"${with_tkconfig}" != x ; then
25064 if test -f "${with_tkconfig}/tkConfig.sh" ; then
25065 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
25066 else
25067 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
25068 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
25069 { (exit 1); exit 1; }; }
25070 fi
25071 fi
25072
25073 # then check for a private Tk library
25074 case "${host}" in
25075 *-*-cygwin*) platDir="win" ;;
25076 *) platDir="unix" ;;
25077 esac
25078 if test x"${ac_cv_c_tkconfig}" = x ; then
25079 for i in \
25080 ../tk \
25081 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25082 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
25083 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
25084 ../../tk \
25085 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25086 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
25087 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
25088 ../../../tk \
25089 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25090 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
25091 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
25092 if test -f "$i/$platDir/tkConfig.sh" ; then
25093 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25094 break
25095 fi
25096 done
25097 fi
25098
25099 # on Darwin, check in Framework installation locations
25100 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
25101 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
25102 `ls -d /Library/Frameworks 2>/dev/null` \
25103 `ls -d /Network/Library/Frameworks 2>/dev/null` \
25104 `ls -d /System/Library/Frameworks 2>/dev/null` \
25105 ; do
25106 if test -f "$i/Tk.framework/tkConfig.sh" ; then
25107 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
25108 break
25109 fi
25110 done
25111 fi
25112
25113 # check in a few common install locations
25114 if test x"${ac_cv_c_tkconfig}" = x ; then
25115 for i in `ls -d ${libdir} 2>/dev/null` \
25116 `ls -d ${exec_prefix}/lib 2>/dev/null` \
25117 `ls -d ${prefix}/lib 2>/dev/null` \
25118 `ls -d /usr/local/lib 2>/dev/null` \
25119 `ls -d /usr/contrib/lib 2>/dev/null` \
25120 `ls -d /usr/lib 2>/dev/null` \
25121 ; do
25122 if test -f "$i/tkConfig.sh" ; then
25123 ac_cv_c_tkconfig=`(cd $i; pwd)`
25124 break
25125 fi
25126 done
25127 fi
25128 # check in a few other private locations
25129 if test x"${ac_cv_c_tkconfig}" = x ; then
25130 for i in \
25131 ${srcdir}/../tk \
25132 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25133 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
25134 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
25135 if test -f "$i/$platDir/tkConfig.sh" ; then
25136 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25137 break
25138 fi
25139 done
25140 fi
25141
25142 fi
25143
25144
25145 if test x"${ac_cv_c_tkconfig}" = x ; then
25146 TK_BIN_DIR="# no Tk configs found"
25147 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
25148 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
25149 exit 0
25150 else
25151 no_tk=
25152 TK_BIN_DIR=${ac_cv_c_tkconfig}
25153 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
25154 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
25155 fi
25156 fi
25157
25158
25159 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
25160 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
25161
25162 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
25163 echo "$as_me:$LINENO: result: loading" >&5
25164 echo "${ECHO_T}loading" >&6
25165 . ${TK_BIN_DIR}/tkConfig.sh
25166 else
25167 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
25168 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
25169 fi
25170
25171 # eval is required to do the TK_DBGX substitution
25172 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
25173 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
25174
25175 # If the TK_BIN_DIR is the build directory (not the install directory),
25176 # then set the common variable name to the value of the build variables.
25177 # For example, the variable TK_LIB_SPEC will be set to the value
25178 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
25179 # instead of TK_BUILD_LIB_SPEC since it will work with both an
25180 # installed and uninstalled version of Tcl.
25181 if test -f ${TK_BIN_DIR}/Makefile ; then
25182 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
25183 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
25184 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
25185 elif test "`uname -s`" = "Darwin"; then
25186 # If Tk was built as a framework, attempt to use the libraries
25187 # from the framework at the given location so that linking works
25188 # against Tk.framework installed in an arbitary location.
25189 case ${TK_DEFS} in
25190 *TK_FRAMEWORK*)
25191 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
25192 for i in "`cd ${TK_BIN_DIR}; pwd`" \
25193 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
25194 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
25195 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
25196 break
25197 fi
25198 done
25199 fi
25200 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
25201 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
25202 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
25203 fi
25204 ;;
25205 esac
25206 fi
25207
25208 # eval is required to do the TK_DBGX substitution
25209 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
25210 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
25211 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
25212 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227 # Check for in-tree Tk
25228 intree="no"
25229 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
25230 intree="yes"
25231 fi
25232
25233 # Find Tk private headers
25234 if test x"${intree}" = xno; then
25235
25236 echo "$as_me:$LINENO: checking for Tk private headers" >&5
25237 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
25238 private_dir=""
25239 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
25240 if test -f ${dir}/tkInt.h; then
25241 private_dir=${dir}
25242 fi
25243
25244 if test x"${private_dir}" = x; then
25245 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
25246 echo "$as_me: error: could not find Tk private headers" >&2;}
25247 { (exit 1); exit 1; }; }
25248 else
25249 TK_PRIVATE_INCLUDE="-I${private_dir}"
25250 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25251 echo "${ECHO_T}${private_dir}" >&6
25252 fi
25253
25254 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
25255 TK_LIBRARY=${TK_LIB_SPEC}
25256 TK_DEPS=""
25257 else
25258 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
25259 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
25260 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
25261 fi
25262
25263
25264
25265
25266
25267 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25268
25269 # Include some libraries that Tcl and Tk want.
25270 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25271 # Yes, the ordering seems wrong here. But it isn't.
25272 # TK_LIBS is the list of libraries that need to be linked
25273 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25274 # were in LIBS then any link tests after this point would
25275 # try to include things like `$(LIBGUI)', which wouldn't work.
25276 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25277
25278 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25279 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25280 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25281 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25282 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25283 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25284 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25285
25286 if test x$gdb_cv_os_cygwin = xyes; then
25287 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25288 WIN32LDAPP="-Wl,--subsystem,console"
25289 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25290 fi
25291 fi
25292 fi
25293
25294
25295
25296 subdirs="$subdirs gdbtk"
25297
25298 fi
25299
25300
25301
25302
25303
25304
25305
25306
25307 echo "$as_me:$LINENO: checking for X" >&5
25308 echo $ECHO_N "checking for X... $ECHO_C" >&6
25309
25310
25311 # Check whether --with-x or --without-x was given.
25312 if test "${with_x+set}" = set; then
25313 withval="$with_x"
25314
25315 fi;
25316 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25317 if test "x$with_x" = xno; then
25318 # The user explicitly disabled X.
25319 have_x=disabled
25320 else
25321 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25322 # Both variables are already set.
25323 have_x=yes
25324 else
25325 if test "${ac_cv_have_x+set}" = set; then
25326 echo $ECHO_N "(cached) $ECHO_C" >&6
25327 else
25328 # One or both of the vars are not set, and there is no cached value.
25329 ac_x_includes=no ac_x_libraries=no
25330 rm -fr conftest.dir
25331 if mkdir conftest.dir; then
25332 cd conftest.dir
25333 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25334 cat >Imakefile <<'_ACEOF'
25335 acfindx:
25336 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25337 _ACEOF
25338 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25340 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25341 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25342 for ac_extension in a so sl; do
25343 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25344 test -f $ac_im_libdir/libX11.$ac_extension; then
25345 ac_im_usrlibdir=$ac_im_libdir; break
25346 fi
25347 done
25348 # Screen out bogus values from the imake configuration. They are
25349 # bogus both because they are the default anyway, and because
25350 # using them would break gcc on systems where it needs fixed includes.
25351 case $ac_im_incroot in
25352 /usr/include) ;;
25353 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25354 esac
25355 case $ac_im_usrlibdir in
25356 /usr/lib | /lib) ;;
25357 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25358 esac
25359 fi
25360 cd ..
25361 rm -fr conftest.dir
25362 fi
25363
25364 # Standard set of common directories for X headers.
25365 # Check X11 before X11Rn because it is often a symlink to the current release.
25366 ac_x_header_dirs='
25367 /usr/X11/include
25368 /usr/X11R6/include
25369 /usr/X11R5/include
25370 /usr/X11R4/include
25371
25372 /usr/include/X11
25373 /usr/include/X11R6
25374 /usr/include/X11R5
25375 /usr/include/X11R4
25376
25377 /usr/local/X11/include
25378 /usr/local/X11R6/include
25379 /usr/local/X11R5/include
25380 /usr/local/X11R4/include
25381
25382 /usr/local/include/X11
25383 /usr/local/include/X11R6
25384 /usr/local/include/X11R5
25385 /usr/local/include/X11R4
25386
25387 /usr/X386/include
25388 /usr/x386/include
25389 /usr/XFree86/include/X11
25390
25391 /usr/include
25392 /usr/local/include
25393 /usr/unsupported/include
25394 /usr/athena/include
25395 /usr/local/x11r5/include
25396 /usr/lpp/Xamples/include
25397
25398 /usr/openwin/include
25399 /usr/openwin/share/include'
25400
25401 if test "$ac_x_includes" = no; then
25402 # Guess where to find include files, by looking for Intrinsic.h.
25403 # First, try using that file with no special directory specified.
25404 cat >conftest.$ac_ext <<_ACEOF
25405 /* confdefs.h. */
25406 _ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h. */
25410 #include <X11/Intrinsic.h>
25411 _ACEOF
25412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25414 ac_status=$?
25415 grep -v '^ *+' conftest.er1 >conftest.err
25416 rm -f conftest.er1
25417 cat conftest.err >&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } >/dev/null; then
25420 if test -s conftest.err; then
25421 ac_cpp_err=$ac_c_preproc_warn_flag
25422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25423 else
25424 ac_cpp_err=
25425 fi
25426 else
25427 ac_cpp_err=yes
25428 fi
25429 if test -z "$ac_cpp_err"; then
25430 # We can compile using X headers with no special include directory.
25431 ac_x_includes=
25432 else
25433 echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25435
25436 for ac_dir in $ac_x_header_dirs; do
25437 if test -r "$ac_dir/X11/Intrinsic.h"; then
25438 ac_x_includes=$ac_dir
25439 break
25440 fi
25441 done
25442 fi
25443 rm -f conftest.err conftest.$ac_ext
25444 fi # $ac_x_includes = no
25445
25446 if test "$ac_x_libraries" = no; then
25447 # Check for the libraries.
25448 # See if we find them without any special options.
25449 # Don't add to $LIBS permanently.
25450 ac_save_LIBS=$LIBS
25451 LIBS="-lXt $LIBS"
25452 cat >conftest.$ac_ext <<_ACEOF
25453 /* confdefs.h. */
25454 _ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h. */
25458 #include <X11/Intrinsic.h>
25459 int
25460 main ()
25461 {
25462 XtMalloc (0)
25463 ;
25464 return 0;
25465 }
25466 _ACEOF
25467 rm -f conftest.$ac_objext conftest$ac_exeext
25468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25469 (eval $ac_link) 2>conftest.er1
25470 ac_status=$?
25471 grep -v '^ *+' conftest.er1 >conftest.err
25472 rm -f conftest.er1
25473 cat conftest.err >&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } &&
25476 { ac_try='test -z "$ac_c_werror_flag"
25477 || test ! -s conftest.err'
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; } &&
25483 { ac_try='test -s conftest$ac_exeext'
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 LIBS=$ac_save_LIBS
25490 # We can link X programs with no special library path.
25491 ac_x_libraries=
25492 else
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25495
25496 LIBS=$ac_save_LIBS
25497 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25498 do
25499 # Don't even attempt the hair of trying to link an X program!
25500 for ac_extension in a so sl; do
25501 if test -r $ac_dir/libXt.$ac_extension; then
25502 ac_x_libraries=$ac_dir
25503 break 2
25504 fi
25505 done
25506 done
25507 fi
25508 rm -f conftest.err conftest.$ac_objext \
25509 conftest$ac_exeext conftest.$ac_ext
25510 fi # $ac_x_libraries = no
25511
25512 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25513 # Didn't find X anywhere. Cache the known absence of X.
25514 ac_cv_have_x="have_x=no"
25515 else
25516 # Record where we found X for the cache.
25517 ac_cv_have_x="have_x=yes \
25518 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25519 fi
25520 fi
25521
25522 fi
25523 eval "$ac_cv_have_x"
25524 fi # $with_x != no
25525
25526 if test "$have_x" != yes; then
25527 echo "$as_me:$LINENO: result: $have_x" >&5
25528 echo "${ECHO_T}$have_x" >&6
25529 no_x=yes
25530 else
25531 # If each of the values was on the command line, it overrides each guess.
25532 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25533 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25534 # Update the cache value to reflect the command line values.
25535 ac_cv_have_x="have_x=yes \
25536 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25537 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25538 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25539 fi
25540
25541
25542 # Check whether we should enable the TUI, but only do so if we really
25543 # can.
25544 if test x"$enable_tui" != xno; then
25545 if test -d $srcdir/tui; then
25546 if test "$ac_cv_search_waddstr" != no; then
25547 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25548 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25549 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25550 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25551 CONFIG_ALL="${CONFIG_ALL} all-tui"
25552 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25553 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25554 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25555 else
25556 if test x"$enable_tui" = xyes; then
25557 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25558 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25559 { (exit 1); exit 1; }; }
25560 else
25561 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
25562 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
25563 fi
25564 fi
25565 fi
25566 fi
25567
25568 # Unlike the sim directory, whether a simulator is linked is controlled by
25569 # presence of a gdb_sim definition in the target configure.tgt entry.
25570 # This code just checks for a few cases where we'd like to ignore those
25571 # definitions, even when they're present in the '.mt' file. These cases
25572 # are when --disable-sim is specified, or if the simulator directory is
25573 # not part of the source tree.
25574 #
25575 # Check whether --enable-sim or --disable-sim was given.
25576 if test "${enable_sim+set}" = set; then
25577 enableval="$enable_sim"
25578 echo "enable_sim = $enable_sim";
25579 echo "enableval = ${enableval}";
25580 case "${enableval}" in
25581 yes) ignore_sim=false ;;
25582 no) ignore_sim=true ;;
25583 *) ignore_sim=false ;;
25584 esac
25585 else
25586 ignore_sim=false
25587 fi;
25588
25589 if test ! -d "${srcdir}/../sim"; then
25590 ignore_sim=true
25591 fi
25592
25593 SIM=
25594 SIM_OBS=
25595 if test "${ignore_sim}" = "false"; then
25596 if test x"${gdb_sim}" != x ; then
25597 SIM="${gdb_sim}"
25598 SIM_OBS="remote-sim.o"
25599
25600 cat >>confdefs.h <<\_ACEOF
25601 #define WITH_SIM 1
25602 _ACEOF
25603
25604 fi
25605 fi
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620 # List of host floatformats.
25621
25622 cat >>confdefs.h <<_ACEOF
25623 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25624 _ACEOF
25625
25626
25627 cat >>confdefs.h <<_ACEOF
25628 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25629 _ACEOF
25630
25631
25632 cat >>confdefs.h <<_ACEOF
25633 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25634 _ACEOF
25635
25636
25637 # target_subdir is used by the testsuite to find the target libraries.
25638 target_subdir=
25639 if test "${host}" != "${target}"; then
25640 target_subdir="${target_alias}/"
25641 fi
25642
25643
25644 frags=
25645 if test "${gdb_native}" = "yes"; then
25646 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25647 if test ! -f ${host_makefile_frag}; then
25648 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25649 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25650 { (exit 1); exit 1; }; }
25651 fi
25652 frags="$frags $host_makefile_frag"
25653 else
25654 host_makefile_frag=/dev/null
25655 fi
25656
25657
25658
25659
25660 if test "${gdb_native}" = "yes"; then
25661 # We pick this up from the host configuration file (.mh) because we
25662 # do not have a native configuration Makefile fragment.
25663 nativefile=`sed -n '
25664 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25665 ' ${host_makefile_frag}`
25666 fi
25667
25668
25669 if test x"${gdb_osabi}" != x ; then
25670
25671 cat >>confdefs.h <<_ACEOF
25672 #define GDB_OSABI_DEFAULT $gdb_osabi
25673 _ACEOF
25674
25675 fi
25676
25677 # Enable multi-ice-gdb-server.
25678 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25679 if test "${enable_multi_ice+set}" = set; then
25680 enableval="$enable_multi_ice"
25681 case $enableval in
25682 yes | no)
25683 ;;
25684 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25685 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25686 { (exit 1); exit 1; }; } ;;
25687 esac
25688 fi;
25689 if test "x$enable_multi_ice" = xyes; then
25690
25691
25692 subdirs="$subdirs multi-ice"
25693
25694 fi
25695
25696 # We only build gdbserver automatically in a native configuration.
25697 if test "$gdb_native" = "yes"; then
25698 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25699 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25700 if test "x$build_gdbserver" = xyes; then
25701 echo "$as_me:$LINENO: result: yes" >&5
25702 echo "${ECHO_T}yes" >&6
25703
25704
25705 subdirs="$subdirs gdbserver"
25706
25707 else
25708 echo "$as_me:$LINENO: result: no" >&5
25709 echo "${ECHO_T}no" >&6
25710 fi
25711 fi
25712
25713 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25714 # to an empty version.
25715
25716 files=
25717 links=
25718
25719 rm -f nm.h
25720 nm_h=""
25721 if test "${nativefile}" != ""; then
25722 nm_h=nm.h
25723 case "${nativefile}" in
25724 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25725 * ) GDB_NM_FILE="${nativefile}"
25726 esac
25727 files="${files} ${GDB_NM_FILE}"
25728 links="${links} nm.h"
25729
25730 cat >>confdefs.h <<_ACEOF
25731 #define GDB_NM_FILE "${GDB_NM_FILE}"
25732 _ACEOF
25733
25734 fi
25735
25736
25737 ac_sources="$files"
25738 ac_dests="$links"
25739 while test -n "$ac_sources"; do
25740 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25741 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25742 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25743 done
25744 ac_config_links="$ac_config_links $ac_config_links_1"
25745
25746
25747
25748
25749
25750
25751 cat >>confdefs.h <<\_ACEOF
25752 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25753 _ACEOF
25754
25755
25756
25757
25758
25759 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25760 if test "${with_libiconv_prefix+set}" = set; then
25761 withval="$with_libiconv_prefix"
25762
25763 for dir in `echo "$withval" | tr : ' '`; do
25764 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25765 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25766 done
25767
25768 fi;
25769
25770 echo "$as_me:$LINENO: checking for iconv" >&5
25771 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25772 if test "${am_cv_func_iconv+set}" = set; then
25773 echo $ECHO_N "(cached) $ECHO_C" >&6
25774 else
25775
25776 am_cv_func_iconv="no, consider installing GNU libiconv"
25777 am_cv_lib_iconv=no
25778 cat >conftest.$ac_ext <<_ACEOF
25779 /* confdefs.h. */
25780 _ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h. */
25784 #include <stdlib.h>
25785 #include <iconv.h>
25786 int
25787 main ()
25788 {
25789 iconv_t cd = iconv_open("","");
25790 iconv(cd,NULL,NULL,NULL,NULL);
25791 iconv_close(cd);
25792 ;
25793 return 0;
25794 }
25795 _ACEOF
25796 rm -f conftest.$ac_objext conftest$ac_exeext
25797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25798 (eval $ac_link) 2>conftest.er1
25799 ac_status=$?
25800 grep -v '^ *+' conftest.er1 >conftest.err
25801 rm -f conftest.er1
25802 cat conftest.err >&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } &&
25805 { ac_try='test -z "$ac_c_werror_flag"
25806 || test ! -s conftest.err'
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; } &&
25812 { ac_try='test -s conftest$ac_exeext'
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; }; then
25818 am_cv_func_iconv=yes
25819 else
25820 echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25822
25823 fi
25824 rm -f conftest.err conftest.$ac_objext \
25825 conftest$ac_exeext conftest.$ac_ext
25826 if test "$am_cv_func_iconv" != yes; then
25827 am_save_LIBS="$LIBS"
25828 LIBS="$LIBS -liconv"
25829 cat >conftest.$ac_ext <<_ACEOF
25830 /* confdefs.h. */
25831 _ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h. */
25835 #include <stdlib.h>
25836 #include <iconv.h>
25837 int
25838 main ()
25839 {
25840 iconv_t cd = iconv_open("","");
25841 iconv(cd,NULL,NULL,NULL,NULL);
25842 iconv_close(cd);
25843 ;
25844 return 0;
25845 }
25846 _ACEOF
25847 rm -f conftest.$ac_objext conftest$ac_exeext
25848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25849 (eval $ac_link) 2>conftest.er1
25850 ac_status=$?
25851 grep -v '^ *+' conftest.er1 >conftest.err
25852 rm -f conftest.er1
25853 cat conftest.err >&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } &&
25856 { ac_try='test -z "$ac_c_werror_flag"
25857 || test ! -s conftest.err'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; } &&
25863 { ac_try='test -s conftest$ac_exeext'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 am_cv_lib_iconv=yes
25870 am_cv_func_iconv=yes
25871 else
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25874
25875 fi
25876 rm -f conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
25878 LIBS="$am_save_LIBS"
25879 fi
25880
25881 fi
25882 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25883 echo "${ECHO_T}$am_cv_func_iconv" >&6
25884 if test "$am_cv_func_iconv" = yes; then
25885
25886 cat >>confdefs.h <<\_ACEOF
25887 #define HAVE_ICONV 1
25888 _ACEOF
25889
25890 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25891 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25892 if test "${am_cv_proto_iconv+set}" = set; then
25893 echo $ECHO_N "(cached) $ECHO_C" >&6
25894 else
25895
25896 cat >conftest.$ac_ext <<_ACEOF
25897 /* confdefs.h. */
25898 _ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h. */
25902
25903 #include <stdlib.h>
25904 #include <iconv.h>
25905 extern
25906 #ifdef __cplusplus
25907 "C"
25908 #endif
25909 #if defined(__STDC__) || defined(__cplusplus)
25910 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25911 #else
25912 size_t iconv();
25913 #endif
25914
25915 int
25916 main ()
25917 {
25918
25919 ;
25920 return 0;
25921 }
25922 _ACEOF
25923 rm -f conftest.$ac_objext
25924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25925 (eval $ac_compile) 2>conftest.er1
25926 ac_status=$?
25927 grep -v '^ *+' conftest.er1 >conftest.err
25928 rm -f conftest.er1
25929 cat conftest.err >&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } &&
25932 { ac_try='test -z "$ac_c_werror_flag"
25933 || test ! -s conftest.err'
25934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935 (eval $ac_try) 2>&5
25936 ac_status=$?
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); }; } &&
25939 { ac_try='test -s conftest.$ac_objext'
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
25945 am_cv_proto_iconv_arg1=""
25946 else
25947 echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25949
25950 am_cv_proto_iconv_arg1="const"
25951 fi
25952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25953 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
25954 fi
25955
25956 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25957 echo "$as_me:$LINENO: result: ${ac_t:-
25958 }$am_cv_proto_iconv" >&5
25959 echo "${ECHO_T}${ac_t:-
25960 }$am_cv_proto_iconv" >&6
25961
25962 cat >>confdefs.h <<_ACEOF
25963 #define ICONV_CONST $am_cv_proto_iconv_arg1
25964 _ACEOF
25965
25966 fi
25967 LIBICONV=
25968 if test "$am_cv_lib_iconv" = yes; then
25969 LIBICONV="-liconv"
25970 fi
25971
25972
25973
25974 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
25975 ac_config_commands="$ac_config_commands default"
25976 cat >confcache <<\_ACEOF
25977 # This file is a shell script that caches the results of configure
25978 # tests run on this system so they can be shared between configure
25979 # scripts and configure runs, see configure's option --config-cache.
25980 # It is not useful on other systems. If it contains results you don't
25981 # want to keep, you may remove or edit it.
25982 #
25983 # config.status only pays attention to the cache file if you give it
25984 # the --recheck option to rerun configure.
25985 #
25986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25988 # following values.
25989
25990 _ACEOF
25991
25992 # The following way of writing the cache mishandles newlines in values,
25993 # but we know of no workaround that is simple, portable, and efficient.
25994 # So, don't put newlines in cache variables' values.
25995 # Ultrix sh set writes to stderr and can't be redirected directly,
25996 # and sets the high bit in the cache file unless we assign to the vars.
25997 {
25998 (set) 2>&1 |
25999 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26000 *ac_space=\ *)
26001 # `set' does not quote correctly, so add quotes (double-quote
26002 # substitution turns \\\\ into \\, and sed turns \\ into \).
26003 sed -n \
26004 "s/'/'\\\\''/g;
26005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26006 ;;
26007 *)
26008 # `set' quotes correctly as required by POSIX, so do not add quotes.
26009 sed -n \
26010 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26011 ;;
26012 esac;
26013 } |
26014 sed '
26015 t clear
26016 : clear
26017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26018 t end
26019 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26020 : end' >>confcache
26021 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26022 if test -w $cache_file; then
26023 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26024 cat confcache >$cache_file
26025 else
26026 echo "not updating unwritable cache $cache_file"
26027 fi
26028 fi
26029 rm -f confcache
26030
26031 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26032 # Let make expand exec_prefix.
26033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26034
26035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26037 # trailing colons and then remove the whole line if VPATH becomes empty
26038 # (actually we leave an empty line to preserve line numbers).
26039 if test "x$srcdir" = x.; then
26040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26041 s/:*\$(srcdir):*/:/;
26042 s/:*\${srcdir}:*/:/;
26043 s/:*@srcdir@:*/:/;
26044 s/^\([^=]*=[ ]*\):*/\1/;
26045 s/:*$//;
26046 s/^[^=]*=[ ]*$//;
26047 }'
26048 fi
26049
26050 DEFS=-DHAVE_CONFIG_H
26051
26052 ac_libobjs=
26053 ac_ltlibobjs=
26054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26055 # 1. Remove the extension, and $U if already installed.
26056 ac_i=`echo "$ac_i" |
26057 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26058 # 2. Add them.
26059 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26060 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26061 done
26062 LIBOBJS=$ac_libobjs
26063
26064 LTLIBOBJS=$ac_ltlibobjs
26065
26066
26067 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26068 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26069 Usually this means the macro was only invoked conditionally." >&5
26070 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26071 Usually this means the macro was only invoked conditionally." >&2;}
26072 { (exit 1); exit 1; }; }
26073 fi
26074 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
26075 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
26076 Usually this means the macro was only invoked conditionally." >&5
26077 echo "$as_me: error: conditional \"GMAKE\" was never defined.
26078 Usually this means the macro was only invoked conditionally." >&2;}
26079 { (exit 1); exit 1; }; }
26080 fi
26081 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26082 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26083 Usually this means the macro was only invoked conditionally." >&5
26084 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26085 Usually this means the macro was only invoked conditionally." >&2;}
26086 { (exit 1); exit 1; }; }
26087 fi
26088
26089 gl_libobjs=
26090 gl_ltlibobjs=
26091 if test -n "$gl_LIBOBJS"; then
26092 # Remove the extension.
26093 sed_drop_objext='s/\.o$//;s/\.obj$//'
26094 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26095 gl_libobjs="$gl_libobjs $i.$ac_objext"
26096 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26097 done
26098 fi
26099 gl_LIBOBJS=$gl_libobjs
26100
26101 gl_LTLIBOBJS=$gl_ltlibobjs
26102
26103
26104
26105 gltests_libobjs=
26106 gltests_ltlibobjs=
26107 if test -n "$gltests_LIBOBJS"; then
26108 # Remove the extension.
26109 sed_drop_objext='s/\.o$//;s/\.obj$//'
26110 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26111 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26112 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26113 done
26114 fi
26115 gltests_LIBOBJS=$gltests_libobjs
26116
26117 gltests_LTLIBOBJS=$gltests_ltlibobjs
26118
26119
26120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26121 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26122 Usually this means the macro was only invoked conditionally." >&5
26123 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26124 Usually this means the macro was only invoked conditionally." >&2;}
26125 { (exit 1); exit 1; }; }
26126 fi
26127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26129 Usually this means the macro was only invoked conditionally." >&5
26130 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26131 Usually this means the macro was only invoked conditionally." >&2;}
26132 { (exit 1); exit 1; }; }
26133 fi
26134
26135 : ${CONFIG_STATUS=./config.status}
26136 ac_clean_files_save=$ac_clean_files
26137 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26138 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26139 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26140 cat >$CONFIG_STATUS <<_ACEOF
26141 #! $SHELL
26142 # Generated by $as_me.
26143 # Run this file to recreate the current configuration.
26144 # Compiler output produced by configure, useful for debugging
26145 # configure, is in config.log if it exists.
26146
26147 debug=false
26148 ac_cs_recheck=false
26149 ac_cs_silent=false
26150 SHELL=\${CONFIG_SHELL-$SHELL}
26151 _ACEOF
26152
26153 cat >>$CONFIG_STATUS <<\_ACEOF
26154 ## --------------------- ##
26155 ## M4sh Initialization. ##
26156 ## --------------------- ##
26157
26158 # Be Bourne compatible
26159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26160 emulate sh
26161 NULLCMD=:
26162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26163 # is contrary to our usage. Disable this feature.
26164 alias -g '${1+"$@"}'='"$@"'
26165 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26166 set -o posix
26167 fi
26168 DUALCASE=1; export DUALCASE # for MKS sh
26169
26170 # Support unset when possible.
26171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26172 as_unset=unset
26173 else
26174 as_unset=false
26175 fi
26176
26177
26178 # Work around bugs in pre-3.0 UWIN ksh.
26179 $as_unset ENV MAIL MAILPATH
26180 PS1='$ '
26181 PS2='> '
26182 PS4='+ '
26183
26184 # NLS nuisances.
26185 for as_var in \
26186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26188 LC_TELEPHONE LC_TIME
26189 do
26190 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26191 eval $as_var=C; export $as_var
26192 else
26193 $as_unset $as_var
26194 fi
26195 done
26196
26197 # Required to use basename.
26198 if expr a : '\(a\)' >/dev/null 2>&1; then
26199 as_expr=expr
26200 else
26201 as_expr=false
26202 fi
26203
26204 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26205 as_basename=basename
26206 else
26207 as_basename=false
26208 fi
26209
26210
26211 # Name of the executable.
26212 as_me=`$as_basename "$0" ||
26213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26214 X"$0" : 'X\(//\)$' \| \
26215 X"$0" : 'X\(/\)$' \| \
26216 . : '\(.\)' 2>/dev/null ||
26217 echo X/"$0" |
26218 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26219 /^X\/\(\/\/\)$/{ s//\1/; q; }
26220 /^X\/\(\/\).*/{ s//\1/; q; }
26221 s/.*/./; q'`
26222
26223
26224 # PATH needs CR, and LINENO needs CR and PATH.
26225 # Avoid depending upon Character Ranges.
26226 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26227 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26228 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26229 as_cr_digits='0123456789'
26230 as_cr_alnum=$as_cr_Letters$as_cr_digits
26231
26232 # The user is always right.
26233 if test "${PATH_SEPARATOR+set}" != set; then
26234 echo "#! /bin/sh" >conf$$.sh
26235 echo "exit 0" >>conf$$.sh
26236 chmod +x conf$$.sh
26237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26238 PATH_SEPARATOR=';'
26239 else
26240 PATH_SEPARATOR=:
26241 fi
26242 rm -f conf$$.sh
26243 fi
26244
26245
26246 as_lineno_1=$LINENO
26247 as_lineno_2=$LINENO
26248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26249 test "x$as_lineno_1" != "x$as_lineno_2" &&
26250 test "x$as_lineno_3" = "x$as_lineno_2" || {
26251 # Find who we are. Look in the path if we contain no path at all
26252 # relative or not.
26253 case $0 in
26254 *[\\/]* ) as_myself=$0 ;;
26255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26256 for as_dir in $PATH
26257 do
26258 IFS=$as_save_IFS
26259 test -z "$as_dir" && as_dir=.
26260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26261 done
26262
26263 ;;
26264 esac
26265 # We did not find ourselves, most probably we were run as `sh COMMAND'
26266 # in which case we are not to be found in the path.
26267 if test "x$as_myself" = x; then
26268 as_myself=$0
26269 fi
26270 if test ! -f "$as_myself"; then
26271 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26272 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26273 { (exit 1); exit 1; }; }
26274 fi
26275 case $CONFIG_SHELL in
26276 '')
26277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26278 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26279 do
26280 IFS=$as_save_IFS
26281 test -z "$as_dir" && as_dir=.
26282 for as_base in sh bash ksh sh5; do
26283 case $as_dir in
26284 /*)
26285 if ("$as_dir/$as_base" -c '
26286 as_lineno_1=$LINENO
26287 as_lineno_2=$LINENO
26288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26289 test "x$as_lineno_1" != "x$as_lineno_2" &&
26290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26291 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26292 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26293 CONFIG_SHELL=$as_dir/$as_base
26294 export CONFIG_SHELL
26295 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26296 fi;;
26297 esac
26298 done
26299 done
26300 ;;
26301 esac
26302
26303 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26304 # uniformly replaced by the line number. The first 'sed' inserts a
26305 # line-number line before each line; the second 'sed' does the real
26306 # work. The second script uses 'N' to pair each line-number line
26307 # with the numbered line, and appends trailing '-' during
26308 # substitution so that $LINENO is not a special case at line end.
26309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26310 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26311 sed '=' <$as_myself |
26312 sed '
26313 N
26314 s,$,-,
26315 : loop
26316 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26317 t loop
26318 s,-$,,
26319 s,^['$as_cr_digits']*\n,,
26320 ' >$as_me.lineno &&
26321 chmod +x $as_me.lineno ||
26322 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26323 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26324 { (exit 1); exit 1; }; }
26325
26326 # Don't try to exec as it changes $[0], causing all sort of problems
26327 # (the dirname of $[0] is not the place where we might find the
26328 # original and so on. Autoconf is especially sensible to this).
26329 . ./$as_me.lineno
26330 # Exit status is that of the last command.
26331 exit
26332 }
26333
26334
26335 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26336 *c*,-n*) ECHO_N= ECHO_C='
26337 ' ECHO_T=' ' ;;
26338 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26339 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26340 esac
26341
26342 if expr a : '\(a\)' >/dev/null 2>&1; then
26343 as_expr=expr
26344 else
26345 as_expr=false
26346 fi
26347
26348 rm -f conf$$ conf$$.exe conf$$.file
26349 echo >conf$$.file
26350 if ln -s conf$$.file conf$$ 2>/dev/null; then
26351 # We could just check for DJGPP; but this test a) works b) is more generic
26352 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26353 if test -f conf$$.exe; then
26354 # Don't use ln at all; we don't have any links
26355 as_ln_s='cp -p'
26356 else
26357 as_ln_s='ln -s'
26358 fi
26359 elif ln conf$$.file conf$$ 2>/dev/null; then
26360 as_ln_s=ln
26361 else
26362 as_ln_s='cp -p'
26363 fi
26364 rm -f conf$$ conf$$.exe conf$$.file
26365
26366 if mkdir -p . 2>/dev/null; then
26367 as_mkdir_p=:
26368 else
26369 test -d ./-p && rmdir ./-p
26370 as_mkdir_p=false
26371 fi
26372
26373 as_executable_p="test -f"
26374
26375 # Sed expression to map a string onto a valid CPP name.
26376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26377
26378 # Sed expression to map a string onto a valid variable name.
26379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26380
26381
26382 # IFS
26383 # We need space, tab and new line, in precisely that order.
26384 as_nl='
26385 '
26386 IFS=" $as_nl"
26387
26388 # CDPATH.
26389 $as_unset CDPATH
26390
26391 exec 6>&1
26392
26393 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26394 # report actual input values of CONFIG_FILES etc. instead of their
26395 # values after options handling. Logging --version etc. is OK.
26396 exec 5>>config.log
26397 {
26398 echo
26399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26400 ## Running $as_me. ##
26401 _ASBOX
26402 } >&5
26403 cat >&5 <<_CSEOF
26404
26405 This file was extended by $as_me, which was
26406 generated by GNU Autoconf 2.59. Invocation command line was
26407
26408 CONFIG_FILES = $CONFIG_FILES
26409 CONFIG_HEADERS = $CONFIG_HEADERS
26410 CONFIG_LINKS = $CONFIG_LINKS
26411 CONFIG_COMMANDS = $CONFIG_COMMANDS
26412 $ $0 $@
26413
26414 _CSEOF
26415 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26416 echo >&5
26417 _ACEOF
26418
26419 # Files that config.status was made for.
26420 if test -n "$ac_config_files"; then
26421 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26422 fi
26423
26424 if test -n "$ac_config_headers"; then
26425 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26426 fi
26427
26428 if test -n "$ac_config_links"; then
26429 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26430 fi
26431
26432 if test -n "$ac_config_commands"; then
26433 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26434 fi
26435
26436 cat >>$CONFIG_STATUS <<\_ACEOF
26437
26438 ac_cs_usage="\
26439 \`$as_me' instantiates files from templates according to the
26440 current configuration.
26441
26442 Usage: $0 [OPTIONS] [FILE]...
26443
26444 -h, --help print this help, then exit
26445 -V, --version print version number, then exit
26446 -q, --quiet do not print progress messages
26447 -d, --debug don't remove temporary files
26448 --recheck update $as_me by reconfiguring in the same conditions
26449 --file=FILE[:TEMPLATE]
26450 instantiate the configuration file FILE
26451 --header=FILE[:TEMPLATE]
26452 instantiate the configuration header FILE
26453
26454 Configuration files:
26455 $config_files
26456
26457 Configuration headers:
26458 $config_headers
26459
26460 Configuration links:
26461 $config_links
26462
26463 Configuration commands:
26464 $config_commands
26465
26466 Report bugs to <bug-autoconf@gnu.org>."
26467 _ACEOF
26468
26469 cat >>$CONFIG_STATUS <<_ACEOF
26470 ac_cs_version="\\
26471 config.status
26472 configured by $0, generated by GNU Autoconf 2.59,
26473 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26474
26475 Copyright (C) 2003 Free Software Foundation, Inc.
26476 This config.status script is free software; the Free Software Foundation
26477 gives unlimited permission to copy, distribute and modify it."
26478 srcdir=$srcdir
26479 INSTALL="$INSTALL"
26480 _ACEOF
26481
26482 cat >>$CONFIG_STATUS <<\_ACEOF
26483 # If no file are specified by the user, then we need to provide default
26484 # value. By we need to know if files were specified by the user.
26485 ac_need_defaults=:
26486 while test $# != 0
26487 do
26488 case $1 in
26489 --*=*)
26490 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26491 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26492 ac_shift=:
26493 ;;
26494 -*)
26495 ac_option=$1
26496 ac_optarg=$2
26497 ac_shift=shift
26498 ;;
26499 *) # This is not an option, so the user has probably given explicit
26500 # arguments.
26501 ac_option=$1
26502 ac_need_defaults=false;;
26503 esac
26504
26505 case $ac_option in
26506 # Handling of the options.
26507 _ACEOF
26508 cat >>$CONFIG_STATUS <<\_ACEOF
26509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26510 ac_cs_recheck=: ;;
26511 --version | --vers* | -V )
26512 echo "$ac_cs_version"; exit 0 ;;
26513 --he | --h)
26514 # Conflict between --help and --header
26515 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26516 Try \`$0 --help' for more information." >&5
26517 echo "$as_me: error: ambiguous option: $1
26518 Try \`$0 --help' for more information." >&2;}
26519 { (exit 1); exit 1; }; };;
26520 --help | --hel | -h )
26521 echo "$ac_cs_usage"; exit 0 ;;
26522 --debug | --d* | -d )
26523 debug=: ;;
26524 --file | --fil | --fi | --f )
26525 $ac_shift
26526 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26527 ac_need_defaults=false;;
26528 --header | --heade | --head | --hea )
26529 $ac_shift
26530 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26531 ac_need_defaults=false;;
26532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26534 ac_cs_silent=: ;;
26535
26536 # This is an error.
26537 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26538 Try \`$0 --help' for more information." >&5
26539 echo "$as_me: error: unrecognized option: $1
26540 Try \`$0 --help' for more information." >&2;}
26541 { (exit 1); exit 1; }; } ;;
26542
26543 *) ac_config_targets="$ac_config_targets $1" ;;
26544
26545 esac
26546 shift
26547 done
26548
26549 ac_configure_extra_args=
26550
26551 if $ac_cs_silent; then
26552 exec 6>/dev/null
26553 ac_configure_extra_args="$ac_configure_extra_args --silent"
26554 fi
26555
26556 _ACEOF
26557 cat >>$CONFIG_STATUS <<_ACEOF
26558 if \$ac_cs_recheck; then
26559 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26560 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26561 fi
26562
26563 _ACEOF
26564
26565 cat >>$CONFIG_STATUS <<_ACEOF
26566 #
26567 # INIT-COMMANDS section.
26568 #
26569
26570 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
26571 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26572
26573 gdb_host_cpu=$gdb_host_cpu
26574 nativefile=$nativefile
26575
26576
26577 _ACEOF
26578
26579
26580
26581 cat >>$CONFIG_STATUS <<\_ACEOF
26582 for ac_config_target in $ac_config_targets
26583 do
26584 case "$ac_config_target" in
26585 # Handling of arguments.
26586 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26587 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26588 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26589 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26590 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
26591 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26592 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26593 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26596 { (exit 1); exit 1; }; };;
26597 esac
26598 done
26599
26600 # If the user did not use the arguments to specify the items to instantiate,
26601 # then the envvar interface is used. Set only those that are not.
26602 # We use the long form for the default assignment because of an extremely
26603 # bizarre bug on SunOS 4.1.3.
26604 if $ac_need_defaults; then
26605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26607 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26609 fi
26610
26611 # Have a temporary directory for convenience. Make it in the build tree
26612 # simply because there is no reason to put it here, and in addition,
26613 # creating and moving files from /tmp can sometimes cause problems.
26614 # Create a temporary directory, and hook for its removal unless debugging.
26615 $debug ||
26616 {
26617 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26618 trap '{ (exit 1); exit 1; }' 1 2 13 15
26619 }
26620
26621 # Create a (secure) tmp directory for tmp files.
26622
26623 {
26624 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26625 test -n "$tmp" && test -d "$tmp"
26626 } ||
26627 {
26628 tmp=./confstat$$-$RANDOM
26629 (umask 077 && mkdir $tmp)
26630 } ||
26631 {
26632 echo "$me: cannot create a temporary directory in ." >&2
26633 { (exit 1); exit 1; }
26634 }
26635
26636 _ACEOF
26637
26638 cat >>$CONFIG_STATUS <<_ACEOF
26639
26640 #
26641 # CONFIG_FILES section.
26642 #
26643
26644 # No need to generate the scripts if there are no CONFIG_FILES.
26645 # This happens for instance when ./config.status config.h
26646 if test -n "\$CONFIG_FILES"; then
26647 # Protect against being on the right side of a sed subst in config.status.
26648 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26649 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26650 s,@SHELL@,$SHELL,;t t
26651 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26652 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26653 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26654 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26655 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26656 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26657 s,@exec_prefix@,$exec_prefix,;t t
26658 s,@prefix@,$prefix,;t t
26659 s,@program_transform_name@,$program_transform_name,;t t
26660 s,@bindir@,$bindir,;t t
26661 s,@sbindir@,$sbindir,;t t
26662 s,@libexecdir@,$libexecdir,;t t
26663 s,@datadir@,$datadir,;t t
26664 s,@sysconfdir@,$sysconfdir,;t t
26665 s,@sharedstatedir@,$sharedstatedir,;t t
26666 s,@localstatedir@,$localstatedir,;t t
26667 s,@libdir@,$libdir,;t t
26668 s,@includedir@,$includedir,;t t
26669 s,@oldincludedir@,$oldincludedir,;t t
26670 s,@infodir@,$infodir,;t t
26671 s,@mandir@,$mandir,;t t
26672 s,@build_alias@,$build_alias,;t t
26673 s,@host_alias@,$host_alias,;t t
26674 s,@target_alias@,$target_alias,;t t
26675 s,@DEFS@,$DEFS,;t t
26676 s,@ECHO_C@,$ECHO_C,;t t
26677 s,@ECHO_N@,$ECHO_N,;t t
26678 s,@ECHO_T@,$ECHO_T,;t t
26679 s,@LIBS@,$LIBS,;t t
26680 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26681 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26682 s,@MAINT@,$MAINT,;t t
26683 s,@CC@,$CC,;t t
26684 s,@CFLAGS@,$CFLAGS,;t t
26685 s,@LDFLAGS@,$LDFLAGS,;t t
26686 s,@CPPFLAGS@,$CPPFLAGS,;t t
26687 s,@ac_ct_CC@,$ac_ct_CC,;t t
26688 s,@EXEEXT@,$EXEEXT,;t t
26689 s,@OBJEXT@,$OBJEXT,;t t
26690 s,@CPP@,$CPP,;t t
26691 s,@EGREP@,$EGREP,;t t
26692 s,@RANLIB@,$RANLIB,;t t
26693 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26694 s,@build@,$build,;t t
26695 s,@build_cpu@,$build_cpu,;t t
26696 s,@build_vendor@,$build_vendor,;t t
26697 s,@build_os@,$build_os,;t t
26698 s,@host@,$host,;t t
26699 s,@host_cpu@,$host_cpu,;t t
26700 s,@host_vendor@,$host_vendor,;t t
26701 s,@host_os@,$host_os,;t t
26702 s,@target@,$target,;t t
26703 s,@target_cpu@,$target_cpu,;t t
26704 s,@target_vendor@,$target_vendor,;t t
26705 s,@target_os@,$target_os,;t t
26706 s,@am__leading_dot@,$am__leading_dot,;t t
26707 s,@DEPDIR@,$DEPDIR,;t t
26708 s,@CCDEPMODE@,$CCDEPMODE,;t t
26709 s,@MAKE@,$MAKE,;t t
26710 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
26711 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
26712 s,@SET_MAKE@,$SET_MAKE,;t t
26713 s,@USE_NLS@,$USE_NLS,;t t
26714 s,@LIBINTL@,$LIBINTL,;t t
26715 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26716 s,@INCINTL@,$INCINTL,;t t
26717 s,@XGETTEXT@,$XGETTEXT,;t t
26718 s,@GMSGFMT@,$GMSGFMT,;t t
26719 s,@POSUB@,$POSUB,;t t
26720 s,@CATALOGS@,$CATALOGS,;t t
26721 s,@DATADIRNAME@,$DATADIRNAME,;t t
26722 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26723 s,@GENCAT@,$GENCAT,;t t
26724 s,@CATOBJEXT@,$CATOBJEXT,;t t
26725 s,@localedir@,$localedir,;t t
26726 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26727 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26728 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26729 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26730 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26731 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26732 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26733 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26734 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26735 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26736 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26737 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26738 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26739 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26740 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26741 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26742 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26743 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26744 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26745 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26746 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26747 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26748 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26749 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26750 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26751 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26752 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26753 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26754 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26755 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26756 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26757 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26758 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26759 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26760 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26761 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26762 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26763 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26764 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26765 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26766 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26767 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26768 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26769 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26770 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26771 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26772 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26773 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26774 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26775 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26776 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26777 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26778 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26779 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26780 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26781 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26782 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26783 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26784 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26785 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26786 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26787 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26788 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26789 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26790 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26791 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26792 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26793 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26794 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26795 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26796 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26797 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26798 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26799 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26800 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26801 s,@STDINT_H@,$STDINT_H,;t t
26802 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26803 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26804 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26805 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26806 s,@WCHAR_H@,$WCHAR_H,;t t
26807 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26808 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26809 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26810 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26811 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26812 s,@PACKAGE@,$PACKAGE,;t t
26813 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26814 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26815 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26816 s,@CYGPATH_W@,$CYGPATH_W,;t t
26817 s,@PYTHON2_4@,$PYTHON2_4,;t t
26818 s,@ACLOCAL@,$ACLOCAL,;t t
26819 s,@AUTOCONF@,$AUTOCONF,;t t
26820 s,@AUTOMAKE@,$AUTOMAKE,;t t
26821 s,@AUTOHEADER@,$AUTOHEADER,;t t
26822 s,@MAKEINFO@,$MAKEINFO,;t t
26823 s,@install_sh@,$install_sh,;t t
26824 s,@STRIP@,$STRIP,;t t
26825 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26826 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26827 s,@mkdir_p@,$mkdir_p,;t t
26828 s,@AWK@,$AWK,;t t
26829 s,@AMTAR@,$AMTAR,;t t
26830 s,@am__tar@,$am__tar,;t t
26831 s,@am__untar@,$am__untar,;t t
26832 s,@am__include@,$am__include,;t t
26833 s,@am__quote@,$am__quote,;t t
26834 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26835 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26836 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26837 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26838 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26839 s,@subdirs@,$subdirs,;t t
26840 s,@TARGET_OBS@,$TARGET_OBS,;t t
26841 s,@PKGVERSION@,$PKGVERSION,;t t
26842 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26843 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26844 s,@LN_S@,$LN_S,;t t
26845 s,@YACC@,$YACC,;t t
26846 s,@AR@,$AR,;t t
26847 s,@ac_ct_AR@,$ac_ct_AR,;t t
26848 s,@DLLTOOL@,$DLLTOOL,;t t
26849 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26850 s,@WINDRES@,$WINDRES,;t t
26851 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26852 s,@MIG@,$MIG,;t t
26853 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26854 s,@READLINE@,$READLINE,;t t
26855 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26856 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26857 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26858 s,@LIBEXPAT@,$LIBEXPAT,;t t
26859 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26860 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
26861 s,@ALLOCA@,$ALLOCA,;t t
26862 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26863 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26864 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26865 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26866 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26867 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26868 s,@WIN32LIBS@,$WIN32LIBS,;t t
26869 s,@LIBGUI@,$LIBGUI,;t t
26870 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26871 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26872 s,@TCL_VERSION@,$TCL_VERSION,;t t
26873 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26874 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26875 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26876 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26877 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
26878 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26879 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26880 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26881 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26882 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26883 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26884 s,@TCL_DEPS@,$TCL_DEPS,;t t
26885 s,@TK_VERSION@,$TK_VERSION,;t t
26886 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26887 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26888 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26889 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
26890 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26891 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26892 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26893 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26894 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26895 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26896 s,@TK_DEPS@,$TK_DEPS,;t t
26897 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26898 s,@X_CFLAGS@,$X_CFLAGS,;t t
26899 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26900 s,@X_LIBS@,$X_LIBS,;t t
26901 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26902 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26903 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26904 s,@SIM@,$SIM,;t t
26905 s,@SIM_OBS@,$SIM_OBS,;t t
26906 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26907 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26908 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26909 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26910 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26911 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26912 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26913 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26914 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26915 s,@target_subdir@,$target_subdir,;t t
26916 s,@frags@,$frags,;t t
26917 s,@nm_h@,$nm_h,;t t
26918 s,@LIBICONV@,$LIBICONV,;t t
26919 s,@LIBOBJS@,$LIBOBJS,;t t
26920 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26921 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26922 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26923 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26924 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26925 /@host_makefile_frag@/r $host_makefile_frag
26926 s,@host_makefile_frag@,,;t t
26927 CEOF
26928
26929 _ACEOF
26930
26931 cat >>$CONFIG_STATUS <<\_ACEOF
26932 # Split the substitutions into bite-sized pieces for seds with
26933 # small command number limits, like on Digital OSF/1 and HP-UX.
26934 ac_max_sed_lines=48
26935 ac_sed_frag=1 # Number of current file.
26936 ac_beg=1 # First line for current file.
26937 ac_end=$ac_max_sed_lines # Line after last line for current file.
26938 ac_more_lines=:
26939 ac_sed_cmds=
26940 while $ac_more_lines; do
26941 if test $ac_beg -gt 1; then
26942 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26943 else
26944 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26945 fi
26946 if test ! -s $tmp/subs.frag; then
26947 ac_more_lines=false
26948 else
26949 # The purpose of the label and of the branching condition is to
26950 # speed up the sed processing (if there are no `@' at all, there
26951 # is no need to browse any of the substitutions).
26952 # These are the two extra sed commands mentioned above.
26953 (echo ':t
26954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26955 if test -z "$ac_sed_cmds"; then
26956 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26957 else
26958 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26959 fi
26960 ac_sed_frag=`expr $ac_sed_frag + 1`
26961 ac_beg=$ac_end
26962 ac_end=`expr $ac_end + $ac_max_sed_lines`
26963 fi
26964 done
26965 if test -z "$ac_sed_cmds"; then
26966 ac_sed_cmds=cat
26967 fi
26968 fi # test -n "$CONFIG_FILES"
26969
26970 _ACEOF
26971 cat >>$CONFIG_STATUS <<\_ACEOF
26972 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26973 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26974 case $ac_file in
26975 - | *:- | *:-:* ) # input from stdin
26976 cat >$tmp/stdin
26977 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26978 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26979 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26980 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26981 * ) ac_file_in=$ac_file.in ;;
26982 esac
26983
26984 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26985 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26987 X"$ac_file" : 'X\(//\)[^/]' \| \
26988 X"$ac_file" : 'X\(//\)$' \| \
26989 X"$ac_file" : 'X\(/\)' \| \
26990 . : '\(.\)' 2>/dev/null ||
26991 echo X"$ac_file" |
26992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26994 /^X\(\/\/\)$/{ s//\1/; q; }
26995 /^X\(\/\).*/{ s//\1/; q; }
26996 s/.*/./; q'`
26997 { if $as_mkdir_p; then
26998 mkdir -p "$ac_dir"
26999 else
27000 as_dir="$ac_dir"
27001 as_dirs=
27002 while test ! -d "$as_dir"; do
27003 as_dirs="$as_dir $as_dirs"
27004 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27006 X"$as_dir" : 'X\(//\)[^/]' \| \
27007 X"$as_dir" : 'X\(//\)$' \| \
27008 X"$as_dir" : 'X\(/\)' \| \
27009 . : '\(.\)' 2>/dev/null ||
27010 echo X"$as_dir" |
27011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27013 /^X\(\/\/\)$/{ s//\1/; q; }
27014 /^X\(\/\).*/{ s//\1/; q; }
27015 s/.*/./; q'`
27016 done
27017 test ! -n "$as_dirs" || mkdir $as_dirs
27018 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27019 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27020 { (exit 1); exit 1; }; }; }
27021
27022 ac_builddir=.
27023
27024 if test "$ac_dir" != .; then
27025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27026 # A "../" for each directory in $ac_dir_suffix.
27027 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27028 else
27029 ac_dir_suffix= ac_top_builddir=
27030 fi
27031
27032 case $srcdir in
27033 .) # No --srcdir option. We are building in place.
27034 ac_srcdir=.
27035 if test -z "$ac_top_builddir"; then
27036 ac_top_srcdir=.
27037 else
27038 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27039 fi ;;
27040 [\\/]* | ?:[\\/]* ) # Absolute path.
27041 ac_srcdir=$srcdir$ac_dir_suffix;
27042 ac_top_srcdir=$srcdir ;;
27043 *) # Relative path.
27044 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27045 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27046 esac
27047
27048 # Do not use `cd foo && pwd` to compute absolute paths, because
27049 # the directories may not exist.
27050 case `pwd` in
27051 .) ac_abs_builddir="$ac_dir";;
27052 *)
27053 case "$ac_dir" in
27054 .) ac_abs_builddir=`pwd`;;
27055 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27056 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27057 esac;;
27058 esac
27059 case $ac_abs_builddir in
27060 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27061 *)
27062 case ${ac_top_builddir}. in
27063 .) ac_abs_top_builddir=$ac_abs_builddir;;
27064 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27065 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27066 esac;;
27067 esac
27068 case $ac_abs_builddir in
27069 .) ac_abs_srcdir=$ac_srcdir;;
27070 *)
27071 case $ac_srcdir in
27072 .) ac_abs_srcdir=$ac_abs_builddir;;
27073 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27074 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27075 esac;;
27076 esac
27077 case $ac_abs_builddir in
27078 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27079 *)
27080 case $ac_top_srcdir in
27081 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27082 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27083 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27084 esac;;
27085 esac
27086
27087
27088 case $INSTALL in
27089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27090 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27091 esac
27092
27093 if test x"$ac_file" != x-; then
27094 { echo "$as_me:$LINENO: creating $ac_file" >&5
27095 echo "$as_me: creating $ac_file" >&6;}
27096 rm -f "$ac_file"
27097 fi
27098 # Let's still pretend it is `configure' which instantiates (i.e., don't
27099 # use $as_me), people would be surprised to read:
27100 # /* config.h. Generated by config.status. */
27101 if test x"$ac_file" = x-; then
27102 configure_input=
27103 else
27104 configure_input="$ac_file. "
27105 fi
27106 configure_input=$configure_input"Generated from `echo $ac_file_in |
27107 sed 's,.*/,,'` by configure."
27108
27109 # First look for the input files in the build tree, otherwise in the
27110 # src tree.
27111 ac_file_inputs=`IFS=:
27112 for f in $ac_file_in; do
27113 case $f in
27114 -) echo $tmp/stdin ;;
27115 [\\/$]*)
27116 # Absolute (can't be DOS-style, as IFS=:)
27117 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27118 echo "$as_me: error: cannot find input file: $f" >&2;}
27119 { (exit 1); exit 1; }; }
27120 echo "$f";;
27121 *) # Relative
27122 if test -f "$f"; then
27123 # Build tree
27124 echo "$f"
27125 elif test -f "$srcdir/$f"; then
27126 # Source tree
27127 echo "$srcdir/$f"
27128 else
27129 # /dev/null tree
27130 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27131 echo "$as_me: error: cannot find input file: $f" >&2;}
27132 { (exit 1); exit 1; }; }
27133 fi;;
27134 esac
27135 done` || { (exit 1); exit 1; }
27136 _ACEOF
27137 cat >>$CONFIG_STATUS <<_ACEOF
27138 sed "$ac_vpsub
27139 $extrasub
27140 _ACEOF
27141 cat >>$CONFIG_STATUS <<\_ACEOF
27142 :t
27143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27144 s,@configure_input@,$configure_input,;t t
27145 s,@srcdir@,$ac_srcdir,;t t
27146 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27147 s,@top_srcdir@,$ac_top_srcdir,;t t
27148 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27149 s,@builddir@,$ac_builddir,;t t
27150 s,@abs_builddir@,$ac_abs_builddir,;t t
27151 s,@top_builddir@,$ac_top_builddir,;t t
27152 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27153 s,@INSTALL@,$ac_INSTALL,;t t
27154 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27155 rm -f $tmp/stdin
27156 if test x"$ac_file" != x-; then
27157 mv $tmp/out $ac_file
27158 else
27159 cat $tmp/out
27160 rm -f $tmp/out
27161 fi
27162
27163 done
27164 _ACEOF
27165 cat >>$CONFIG_STATUS <<\_ACEOF
27166
27167 #
27168 # CONFIG_HEADER section.
27169 #
27170
27171 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27172 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27173 #
27174 # ac_d sets the value in "#define NAME VALUE" lines.
27175 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27176 ac_dB='[ ].*$,\1#\2'
27177 ac_dC=' '
27178 ac_dD=',;t'
27179 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27180 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27181 ac_uB='$,\1#\2define\3'
27182 ac_uC=' '
27183 ac_uD=',;t'
27184
27185 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27186 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27187 case $ac_file in
27188 - | *:- | *:-:* ) # input from stdin
27189 cat >$tmp/stdin
27190 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27192 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27194 * ) ac_file_in=$ac_file.in ;;
27195 esac
27196
27197 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27198 echo "$as_me: creating $ac_file" >&6;}
27199
27200 # First look for the input files in the build tree, otherwise in the
27201 # src tree.
27202 ac_file_inputs=`IFS=:
27203 for f in $ac_file_in; do
27204 case $f in
27205 -) echo $tmp/stdin ;;
27206 [\\/$]*)
27207 # Absolute (can't be DOS-style, as IFS=:)
27208 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27209 echo "$as_me: error: cannot find input file: $f" >&2;}
27210 { (exit 1); exit 1; }; }
27211 # Do quote $f, to prevent DOS paths from being IFS'd.
27212 echo "$f";;
27213 *) # Relative
27214 if test -f "$f"; then
27215 # Build tree
27216 echo "$f"
27217 elif test -f "$srcdir/$f"; then
27218 # Source tree
27219 echo "$srcdir/$f"
27220 else
27221 # /dev/null tree
27222 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27223 echo "$as_me: error: cannot find input file: $f" >&2;}
27224 { (exit 1); exit 1; }; }
27225 fi;;
27226 esac
27227 done` || { (exit 1); exit 1; }
27228 # Remove the trailing spaces.
27229 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27230
27231 _ACEOF
27232
27233 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27234 # `conftest.undefs', that substitutes the proper values into
27235 # config.h.in to produce config.h. The first handles `#define'
27236 # templates, and the second `#undef' templates.
27237 # And first: Protect against being on the right side of a sed subst in
27238 # config.status. Protect against being in an unquoted here document
27239 # in config.status.
27240 rm -f conftest.defines conftest.undefs
27241 # Using a here document instead of a string reduces the quoting nightmare.
27242 # Putting comments in sed scripts is not portable.
27243 #
27244 # `end' is used to avoid that the second main sed command (meant for
27245 # 0-ary CPP macros) applies to n-ary macro definitions.
27246 # See the Autoconf documentation for `clear'.
27247 cat >confdef2sed.sed <<\_ACEOF
27248 s/[\\&,]/\\&/g
27249 s,[\\$`],\\&,g
27250 t clear
27251 : clear
27252 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27253 t end
27254 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27255 : end
27256 _ACEOF
27257 # If some macros were called several times there might be several times
27258 # the same #defines, which is useless. Nevertheless, we may not want to
27259 # sort them, since we want the *last* AC-DEFINE to be honored.
27260 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27261 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27262 rm -f confdef2sed.sed
27263
27264 # This sed command replaces #undef with comments. This is necessary, for
27265 # example, in the case of _POSIX_SOURCE, which is predefined and required
27266 # on some systems where configure will not decide to define it.
27267 cat >>conftest.undefs <<\_ACEOF
27268 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27269 _ACEOF
27270
27271 # Break up conftest.defines because some shells have a limit on the size
27272 # of here documents, and old seds have small limits too (100 cmds).
27273 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27274 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27275 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27276 echo ' :' >>$CONFIG_STATUS
27277 rm -f conftest.tail
27278 while grep . conftest.defines >/dev/null
27279 do
27280 # Write a limited-size here document to $tmp/defines.sed.
27281 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27282 # Speed up: don't consider the non `#define' lines.
27283 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27284 # Work around the forget-to-reset-the-flag bug.
27285 echo 't clr' >>$CONFIG_STATUS
27286 echo ': clr' >>$CONFIG_STATUS
27287 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27288 echo 'CEOF
27289 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27290 rm -f $tmp/in
27291 mv $tmp/out $tmp/in
27292 ' >>$CONFIG_STATUS
27293 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27294 rm -f conftest.defines
27295 mv conftest.tail conftest.defines
27296 done
27297 rm -f conftest.defines
27298 echo ' fi # grep' >>$CONFIG_STATUS
27299 echo >>$CONFIG_STATUS
27300
27301 # Break up conftest.undefs because some shells have a limit on the size
27302 # of here documents, and old seds have small limits too (100 cmds).
27303 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27304 rm -f conftest.tail
27305 while grep . conftest.undefs >/dev/null
27306 do
27307 # Write a limited-size here document to $tmp/undefs.sed.
27308 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27309 # Speed up: don't consider the non `#undef'
27310 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27311 # Work around the forget-to-reset-the-flag bug.
27312 echo 't clr' >>$CONFIG_STATUS
27313 echo ': clr' >>$CONFIG_STATUS
27314 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27315 echo 'CEOF
27316 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27317 rm -f $tmp/in
27318 mv $tmp/out $tmp/in
27319 ' >>$CONFIG_STATUS
27320 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27321 rm -f conftest.undefs
27322 mv conftest.tail conftest.undefs
27323 done
27324 rm -f conftest.undefs
27325
27326 cat >>$CONFIG_STATUS <<\_ACEOF
27327 # Let's still pretend it is `configure' which instantiates (i.e., don't
27328 # use $as_me), people would be surprised to read:
27329 # /* config.h. Generated by config.status. */
27330 if test x"$ac_file" = x-; then
27331 echo "/* Generated by configure. */" >$tmp/config.h
27332 else
27333 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27334 fi
27335 cat $tmp/in >>$tmp/config.h
27336 rm -f $tmp/in
27337 if test x"$ac_file" != x-; then
27338 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27339 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27340 echo "$as_me: $ac_file is unchanged" >&6;}
27341 else
27342 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27344 X"$ac_file" : 'X\(//\)[^/]' \| \
27345 X"$ac_file" : 'X\(//\)$' \| \
27346 X"$ac_file" : 'X\(/\)' \| \
27347 . : '\(.\)' 2>/dev/null ||
27348 echo X"$ac_file" |
27349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27351 /^X\(\/\/\)$/{ s//\1/; q; }
27352 /^X\(\/\).*/{ s//\1/; q; }
27353 s/.*/./; q'`
27354 { if $as_mkdir_p; then
27355 mkdir -p "$ac_dir"
27356 else
27357 as_dir="$ac_dir"
27358 as_dirs=
27359 while test ! -d "$as_dir"; do
27360 as_dirs="$as_dir $as_dirs"
27361 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27363 X"$as_dir" : 'X\(//\)[^/]' \| \
27364 X"$as_dir" : 'X\(//\)$' \| \
27365 X"$as_dir" : 'X\(/\)' \| \
27366 . : '\(.\)' 2>/dev/null ||
27367 echo X"$as_dir" |
27368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27370 /^X\(\/\/\)$/{ s//\1/; q; }
27371 /^X\(\/\).*/{ s//\1/; q; }
27372 s/.*/./; q'`
27373 done
27374 test ! -n "$as_dirs" || mkdir $as_dirs
27375 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27376 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27377 { (exit 1); exit 1; }; }; }
27378
27379 rm -f $ac_file
27380 mv $tmp/config.h $ac_file
27381 fi
27382 else
27383 cat $tmp/config.h
27384 rm -f $tmp/config.h
27385 fi
27386 # Compute $ac_file's index in $config_headers.
27387 _am_stamp_count=1
27388 for _am_header in $config_headers :; do
27389 case $_am_header in
27390 $ac_file | $ac_file:* )
27391 break ;;
27392 * )
27393 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27394 esac
27395 done
27396 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27397 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27398 X$ac_file : 'X\(//\)[^/]' \| \
27399 X$ac_file : 'X\(//\)$' \| \
27400 X$ac_file : 'X\(/\)' \| \
27401 . : '\(.\)' 2>/dev/null ||
27402 echo X$ac_file |
27403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27405 /^X\(\/\/\)$/{ s//\1/; q; }
27406 /^X\(\/\).*/{ s//\1/; q; }
27407 s/.*/./; q'`/stamp-h$_am_stamp_count
27408 done
27409 _ACEOF
27410 cat >>$CONFIG_STATUS <<\_ACEOF
27411
27412 #
27413 # CONFIG_LINKS section.
27414 #
27415
27416 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27417 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27418 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27419
27420 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27421 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27422
27423 if test ! -r $srcdir/$ac_source; then
27424 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27425 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27426 { (exit 1); exit 1; }; }
27427 fi
27428 rm -f $ac_dest
27429
27430 # Make relative symlinks.
27431 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27432 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27433 X"$ac_dest" : 'X\(//\)[^/]' \| \
27434 X"$ac_dest" : 'X\(//\)$' \| \
27435 X"$ac_dest" : 'X\(/\)' \| \
27436 . : '\(.\)' 2>/dev/null ||
27437 echo X"$ac_dest" |
27438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27440 /^X\(\/\/\)$/{ s//\1/; q; }
27441 /^X\(\/\).*/{ s//\1/; q; }
27442 s/.*/./; q'`
27443 { if $as_mkdir_p; then
27444 mkdir -p "$ac_dest_dir"
27445 else
27446 as_dir="$ac_dest_dir"
27447 as_dirs=
27448 while test ! -d "$as_dir"; do
27449 as_dirs="$as_dir $as_dirs"
27450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27452 X"$as_dir" : 'X\(//\)[^/]' \| \
27453 X"$as_dir" : 'X\(//\)$' \| \
27454 X"$as_dir" : 'X\(/\)' \| \
27455 . : '\(.\)' 2>/dev/null ||
27456 echo X"$as_dir" |
27457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27459 /^X\(\/\/\)$/{ s//\1/; q; }
27460 /^X\(\/\).*/{ s//\1/; q; }
27461 s/.*/./; q'`
27462 done
27463 test ! -n "$as_dirs" || mkdir $as_dirs
27464 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27465 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27466 { (exit 1); exit 1; }; }; }
27467
27468 ac_builddir=.
27469
27470 if test "$ac_dest_dir" != .; then
27471 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27472 # A "../" for each directory in $ac_dir_suffix.
27473 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27474 else
27475 ac_dir_suffix= ac_top_builddir=
27476 fi
27477
27478 case $srcdir in
27479 .) # No --srcdir option. We are building in place.
27480 ac_srcdir=.
27481 if test -z "$ac_top_builddir"; then
27482 ac_top_srcdir=.
27483 else
27484 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27485 fi ;;
27486 [\\/]* | ?:[\\/]* ) # Absolute path.
27487 ac_srcdir=$srcdir$ac_dir_suffix;
27488 ac_top_srcdir=$srcdir ;;
27489 *) # Relative path.
27490 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27491 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27492 esac
27493
27494 # Do not use `cd foo && pwd` to compute absolute paths, because
27495 # the directories may not exist.
27496 case `pwd` in
27497 .) ac_abs_builddir="$ac_dest_dir";;
27498 *)
27499 case "$ac_dest_dir" in
27500 .) ac_abs_builddir=`pwd`;;
27501 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27502 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27503 esac;;
27504 esac
27505 case $ac_abs_builddir in
27506 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27507 *)
27508 case ${ac_top_builddir}. in
27509 .) ac_abs_top_builddir=$ac_abs_builddir;;
27510 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27511 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27512 esac;;
27513 esac
27514 case $ac_abs_builddir in
27515 .) ac_abs_srcdir=$ac_srcdir;;
27516 *)
27517 case $ac_srcdir in
27518 .) ac_abs_srcdir=$ac_abs_builddir;;
27519 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27520 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27521 esac;;
27522 esac
27523 case $ac_abs_builddir in
27524 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27525 *)
27526 case $ac_top_srcdir in
27527 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27528 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27529 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27530 esac;;
27531 esac
27532
27533
27534 case $srcdir in
27535 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27536 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27537 esac
27538
27539 # Try a symlink, then a hard link, then a copy.
27540 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27541 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27542 cp -p $srcdir/$ac_source $ac_dest ||
27543 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27544 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27545 { (exit 1); exit 1; }; }
27546 done
27547 _ACEOF
27548 cat >>$CONFIG_STATUS <<\_ACEOF
27549
27550 #
27551 # CONFIG_COMMANDS section.
27552 #
27553 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27554 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27555 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27556 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27557 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27558 X"$ac_dest" : 'X\(//\)[^/]' \| \
27559 X"$ac_dest" : 'X\(//\)$' \| \
27560 X"$ac_dest" : 'X\(/\)' \| \
27561 . : '\(.\)' 2>/dev/null ||
27562 echo X"$ac_dest" |
27563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27565 /^X\(\/\/\)$/{ s//\1/; q; }
27566 /^X\(\/\).*/{ s//\1/; q; }
27567 s/.*/./; q'`
27568 { if $as_mkdir_p; then
27569 mkdir -p "$ac_dir"
27570 else
27571 as_dir="$ac_dir"
27572 as_dirs=
27573 while test ! -d "$as_dir"; do
27574 as_dirs="$as_dir $as_dirs"
27575 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27577 X"$as_dir" : 'X\(//\)[^/]' \| \
27578 X"$as_dir" : 'X\(//\)$' \| \
27579 X"$as_dir" : 'X\(/\)' \| \
27580 . : '\(.\)' 2>/dev/null ||
27581 echo X"$as_dir" |
27582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27584 /^X\(\/\/\)$/{ s//\1/; q; }
27585 /^X\(\/\).*/{ s//\1/; q; }
27586 s/.*/./; q'`
27587 done
27588 test ! -n "$as_dirs" || mkdir $as_dirs
27589 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27591 { (exit 1); exit 1; }; }; }
27592
27593 ac_builddir=.
27594
27595 if test "$ac_dir" != .; then
27596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27597 # A "../" for each directory in $ac_dir_suffix.
27598 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27599 else
27600 ac_dir_suffix= ac_top_builddir=
27601 fi
27602
27603 case $srcdir in
27604 .) # No --srcdir option. We are building in place.
27605 ac_srcdir=.
27606 if test -z "$ac_top_builddir"; then
27607 ac_top_srcdir=.
27608 else
27609 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27610 fi ;;
27611 [\\/]* | ?:[\\/]* ) # Absolute path.
27612 ac_srcdir=$srcdir$ac_dir_suffix;
27613 ac_top_srcdir=$srcdir ;;
27614 *) # Relative path.
27615 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27616 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27617 esac
27618
27619 # Do not use `cd foo && pwd` to compute absolute paths, because
27620 # the directories may not exist.
27621 case `pwd` in
27622 .) ac_abs_builddir="$ac_dir";;
27623 *)
27624 case "$ac_dir" in
27625 .) ac_abs_builddir=`pwd`;;
27626 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27627 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27628 esac;;
27629 esac
27630 case $ac_abs_builddir in
27631 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27632 *)
27633 case ${ac_top_builddir}. in
27634 .) ac_abs_top_builddir=$ac_abs_builddir;;
27635 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27636 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27637 esac;;
27638 esac
27639 case $ac_abs_builddir in
27640 .) ac_abs_srcdir=$ac_srcdir;;
27641 *)
27642 case $ac_srcdir in
27643 .) ac_abs_srcdir=$ac_abs_builddir;;
27644 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27645 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27646 esac;;
27647 esac
27648 case $ac_abs_builddir in
27649 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27650 *)
27651 case $ac_top_srcdir in
27652 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27653 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27654 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27655 esac;;
27656 esac
27657
27658
27659 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27660 echo "$as_me: executing $ac_dest commands" >&6;}
27661 case $ac_dest in
27662 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
27663 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27664 # Strip MF so we end up with the name of the file.
27665 mf=`echo "$mf" | sed -e 's/:.*$//'`
27666 # Check whether this is an Automake generated Makefile or not.
27667 # We used to match only the files named `Makefile.in', but
27668 # some people rename them; so instead we look at the file content.
27669 # Grep'ing the first line is not enough: some people post-process
27670 # each Makefile.in and add a new line on top of each file to say so.
27671 # So let's grep whole file.
27672 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27673 dirpart=`(dirname "$mf") 2>/dev/null ||
27674 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27675 X"$mf" : 'X\(//\)[^/]' \| \
27676 X"$mf" : 'X\(//\)$' \| \
27677 X"$mf" : 'X\(/\)' \| \
27678 . : '\(.\)' 2>/dev/null ||
27679 echo X"$mf" |
27680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27682 /^X\(\/\/\)$/{ s//\1/; q; }
27683 /^X\(\/\).*/{ s//\1/; q; }
27684 s/.*/./; q'`
27685 else
27686 continue
27687 fi
27688 # Extract the definition of DEPDIR, am__include, and am__quote
27689 # from the Makefile without running `make'.
27690 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27691 test -z "$DEPDIR" && continue
27692 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27693 test -z "am__include" && continue
27694 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27695 # When using ansi2knr, U may be empty or an underscore; expand it
27696 U=`sed -n 's/^U = //p' < "$mf"`
27697 # Find all dependency output files, they are included files with
27698 # $(DEPDIR) in their names. We invoke sed twice because it is the
27699 # simplest approach to changing $(DEPDIR) to its actual value in the
27700 # expansion.
27701 for file in `sed -n "
27702 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27703 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27704 # Make sure the directory exists.
27705 test -f "$dirpart/$file" && continue
27706 fdir=`(dirname "$file") 2>/dev/null ||
27707 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27708 X"$file" : 'X\(//\)[^/]' \| \
27709 X"$file" : 'X\(//\)$' \| \
27710 X"$file" : 'X\(/\)' \| \
27711 . : '\(.\)' 2>/dev/null ||
27712 echo X"$file" |
27713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27715 /^X\(\/\/\)$/{ s//\1/; q; }
27716 /^X\(\/\).*/{ s//\1/; q; }
27717 s/.*/./; q'`
27718 { if $as_mkdir_p; then
27719 mkdir -p $dirpart/$fdir
27720 else
27721 as_dir=$dirpart/$fdir
27722 as_dirs=
27723 while test ! -d "$as_dir"; do
27724 as_dirs="$as_dir $as_dirs"
27725 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27727 X"$as_dir" : 'X\(//\)[^/]' \| \
27728 X"$as_dir" : 'X\(//\)$' \| \
27729 X"$as_dir" : 'X\(/\)' \| \
27730 . : '\(.\)' 2>/dev/null ||
27731 echo X"$as_dir" |
27732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27734 /^X\(\/\/\)$/{ s//\1/; q; }
27735 /^X\(\/\).*/{ s//\1/; q; }
27736 s/.*/./; q'`
27737 done
27738 test ! -n "$as_dirs" || mkdir $as_dirs
27739 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27740 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27741 { (exit 1); exit 1; }; }; }
27742
27743 # echo "creating $dirpart/$file"
27744 echo '# dummy' > "$dirpart/$file"
27745 done
27746 done
27747 ;;
27748 default )
27749
27750 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27751 mv -f Makefile.tmp Makefile
27752
27753
27754 case x$CONFIG_HEADERS in
27755 xconfig.h:config.in)
27756 echo > stamp-h ;;
27757 esac
27758 ;;
27759 esac
27760 done
27761 _ACEOF
27762
27763 cat >>$CONFIG_STATUS <<\_ACEOF
27764
27765 { (exit 0); exit 0; }
27766 _ACEOF
27767 chmod +x $CONFIG_STATUS
27768 ac_clean_files=$ac_clean_files_save
27769
27770
27771 # configure is writing to config.log, and then calls config.status.
27772 # config.status does its own redirection, appending to config.log.
27773 # Unfortunately, on DOS this fails, as config.log is still kept open
27774 # by configure, so config.status won't be able to write to it; its
27775 # output is simply discarded. So we exec the FD to /dev/null,
27776 # effectively closing config.log, so it can be properly (re)opened and
27777 # appended to by config.status. When coming back to configure, we
27778 # need to make the FD available again.
27779 if test "$no_create" != yes; then
27780 ac_cs_success=:
27781 ac_config_status_args=
27782 test "$silent" = yes &&
27783 ac_config_status_args="$ac_config_status_args --quiet"
27784 exec 5>/dev/null
27785 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27786 exec 5>>config.log
27787 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27788 # would make configure fail if this is the last instruction.
27789 $ac_cs_success || { (exit 1); exit 1; }
27790 fi
27791
27792 #
27793 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27794 #
27795 if test "$no_recursion" != yes; then
27796
27797 # Remove --cache-file and --srcdir arguments so they do not pile up.
27798 ac_sub_configure_args=
27799 ac_prev=
27800 eval "set x $ac_configure_args"
27801 shift
27802 for ac_arg
27803 do
27804 if test -n "$ac_prev"; then
27805 ac_prev=
27806 continue
27807 fi
27808 case $ac_arg in
27809 -cache-file | --cache-file | --cache-fil | --cache-fi \
27810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27811 ac_prev=cache_file ;;
27812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27814 | --c=*)
27815 ;;
27816 --config-cache | -C)
27817 ;;
27818 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27819 ac_prev=srcdir ;;
27820 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27821 ;;
27822 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27823 ac_prev=prefix ;;
27824 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27825 ;;
27826 *)
27827 case $ac_arg in
27828 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27829 esac
27830 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27831 esac
27832 done
27833
27834 # Always prepend --prefix to ensure using the same prefix
27835 # in subdir configurations.
27836 ac_arg="--prefix=$prefix"
27837 case $ac_arg in
27838 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27839 esac
27840 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27841
27842 ac_popdir=`pwd`
27843 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27844
27845 # Do not complain, so a configure script can configure whichever
27846 # parts of a large source tree are present.
27847 test -d "$srcdir/$ac_dir" || continue
27848
27849 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27850 echo "$as_me: configuring in $ac_dir" >&6;}
27851 { if $as_mkdir_p; then
27852 mkdir -p "$ac_dir"
27853 else
27854 as_dir="$ac_dir"
27855 as_dirs=
27856 while test ! -d "$as_dir"; do
27857 as_dirs="$as_dir $as_dirs"
27858 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27860 X"$as_dir" : 'X\(//\)[^/]' \| \
27861 X"$as_dir" : 'X\(//\)$' \| \
27862 X"$as_dir" : 'X\(/\)' \| \
27863 . : '\(.\)' 2>/dev/null ||
27864 echo X"$as_dir" |
27865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27867 /^X\(\/\/\)$/{ s//\1/; q; }
27868 /^X\(\/\).*/{ s//\1/; q; }
27869 s/.*/./; q'`
27870 done
27871 test ! -n "$as_dirs" || mkdir $as_dirs
27872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27874 { (exit 1); exit 1; }; }; }
27875
27876 ac_builddir=.
27877
27878 if test "$ac_dir" != .; then
27879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27880 # A "../" for each directory in $ac_dir_suffix.
27881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27882 else
27883 ac_dir_suffix= ac_top_builddir=
27884 fi
27885
27886 case $srcdir in
27887 .) # No --srcdir option. We are building in place.
27888 ac_srcdir=.
27889 if test -z "$ac_top_builddir"; then
27890 ac_top_srcdir=.
27891 else
27892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27893 fi ;;
27894 [\\/]* | ?:[\\/]* ) # Absolute path.
27895 ac_srcdir=$srcdir$ac_dir_suffix;
27896 ac_top_srcdir=$srcdir ;;
27897 *) # Relative path.
27898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27900 esac
27901
27902 # Do not use `cd foo && pwd` to compute absolute paths, because
27903 # the directories may not exist.
27904 case `pwd` in
27905 .) ac_abs_builddir="$ac_dir";;
27906 *)
27907 case "$ac_dir" in
27908 .) ac_abs_builddir=`pwd`;;
27909 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27910 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27911 esac;;
27912 esac
27913 case $ac_abs_builddir in
27914 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27915 *)
27916 case ${ac_top_builddir}. in
27917 .) ac_abs_top_builddir=$ac_abs_builddir;;
27918 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27919 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27920 esac;;
27921 esac
27922 case $ac_abs_builddir in
27923 .) ac_abs_srcdir=$ac_srcdir;;
27924 *)
27925 case $ac_srcdir in
27926 .) ac_abs_srcdir=$ac_abs_builddir;;
27927 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27928 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27929 esac;;
27930 esac
27931 case $ac_abs_builddir in
27932 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27933 *)
27934 case $ac_top_srcdir in
27935 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27936 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27937 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27938 esac;;
27939 esac
27940
27941
27942 cd "$ac_dir"
27943
27944 # Check for guested configure; otherwise get Cygnus style configure.
27945 if test -f "$ac_srcdir/configure.gnu"; then
27946 ac_sub_configure=$ac_srcdir/configure.gnu
27947 elif test -f "$ac_srcdir/configure"; then
27948 ac_sub_configure=$ac_srcdir/configure
27949 elif test -f "$ac_srcdir/configure.in"; then
27950 # This should be Cygnus configure.
27951 ac_sub_configure=$ac_aux_dir/configure
27952 else
27953 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27954 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27955 ac_sub_configure=
27956 fi
27957
27958 # The recursion is here.
27959 if test -n "$ac_sub_configure"; then
27960 # Make the cache file name correct relative to the subdirectory.
27961 case $cache_file in
27962 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27963 *) # Relative path.
27964 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27965 esac
27966
27967 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27968 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27969 # The eval makes quoting arguments work.
27970 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27971 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27972 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27973 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27974 { (exit 1); exit 1; }; }
27975 fi
27976
27977 cd "$ac_popdir"
27978 done
27979 fi
27980
27981
27982 exit 0
This page took 1.101103 seconds and 5 git commands to generate.