No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / configure
blob03607d413959ea0ef10849b11baa2935a995e6ab
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
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"
312 ac_subdirs_all="$ac_subdirs_all doc testsuite"
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
317 ac_subst_files='host_makefile_frag target_makefile_frag'
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
357 ac_prev=
358 for ac_option
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369 # Accept the important Cygnus configure options, so we can diagnose typos.
371 case $ac_option in
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
390 --config-cache | -C)
391 cache_file=config.cache ;;
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 esac
654 done
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671 done
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683 done
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706 test "$silent" = yes && exec 6>/dev/null
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
729 else
730 ac_srcdir_defaulted=no
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
779 # Report the --help message.
781 if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785 \`configure' configures this package to adapt to many kinds of systems.
787 Usage: $0 [OPTION]... [VAR=VALUE]...
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE. See below for descriptions of some of the useful variables.
792 Defaults for the options are specified in brackets.
794 Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 _ACEOF
807 cat <<_ACEOF
808 Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
819 For better control, use the options below.
821 Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
834 _ACEOF
836 cat <<\_ACEOF
838 Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843 X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --disable-nls do not use Native Language Support
864 --disable-gdbcli disable command-line interface (CLI)
865 --disable-gdbmi disable machine-interface (MI)
866 --enable-tui enable full-screen terminal user interface (TUI)
867 --enable-gdbtk enable gdbtk graphical user interface (GUI)
868 --enable-profiling enable profiling of GDB
869 --enable-werror treat compile warnings as errors
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
875 Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-included-gettext use the GNU gettext library included here
879 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
880 --with-libunwind Use libunwind frame unwinding support
881 --without-included-regex don't use included regex; this is the default
882 on systems with version 2 of the GNU C library
883 (use with caution on other system)
884 --with-sysroot=DIR Search for usr/lib et al within DIR.
885 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
886 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
887 --with-tclinclude=DIR Directory where tcl private headers are
888 --with-tkinclude=DIR Directory where tk private headers are
889 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
890 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CPP C preprocessor
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
906 _ACEOF
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
911 ac_popdir=`pwd`
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
914 ac_builddir=.
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921 ac_dir_suffix= ac_top_builddir=
924 case $srcdir in
925 .) # No --srcdir option. We are building in place.
926 ac_srcdir=.
927 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=.
929 else
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 fi ;;
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
935 *) # Relative path.
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
942 case `pwd` in
943 .) ac_abs_builddir="$ac_dir";;
945 case "$ac_dir" in
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
963 case $ac_srcdir in
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976 esac;;
977 esac
979 cd $ac_dir
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
982 echo
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
985 echo
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
989 echo
990 $ac_configure --help
991 else
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 cd $ac_popdir
995 done
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1000 cat <<\_ACEOF
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006 exit 0
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1016 $ $0 $@
1018 _ACEOF
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042 _ASUNAME
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050 done
1052 } >&5
1054 cat >&5 <<_ACEOF
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1061 _ACEOF
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1076 for ac_arg
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1109 esac
1110 done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1123 echo
1125 cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 esac;
1146 echo
1148 cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1245 . "$ac_site_file"
1247 done
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1260 else
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1308 done
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers config.h:config.in"
1343 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1344 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1346 if test "${enable_maintainer_mode+set}" = set; then
1347 enableval="$enable_maintainer_mode"
1348 USE_MAINTAINER_MODE=$enableval
1349 else
1350 USE_MAINTAINER_MODE=no
1352 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1353 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1356 if test $USE_MAINTAINER_MODE = yes; then
1357 MAINTAINER_MODE_TRUE=
1358 MAINTAINER_MODE_FALSE='#'
1359 else
1360 MAINTAINER_MODE_TRUE='#'
1361 MAINTAINER_MODE_FALSE=
1364 MAINT=$MAINTAINER_MODE_TRUE
1368 ac_ext=c
1369 ac_cpp='$CPP $CPPFLAGS'
1370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1383 else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 break 2
1395 done
1396 done
1400 CC=$ac_cv_prog_CC
1401 if test -n "$CC"; then
1402 echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1404 else
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1410 if test -z "$ac_cv_prog_CC"; then
1411 ac_ct_CC=$CC
1412 # Extract the first word of "gcc", so it can be a program name with args.
1413 set dummy gcc; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419 if test -n "$ac_ct_CC"; then
1420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1421 else
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 for as_dir in $PATH
1425 IFS=$as_save_IFS
1426 test -z "$as_dir" && as_dir=.
1427 for ac_exec_ext in '' $ac_executable_extensions; do
1428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429 ac_cv_prog_ac_ct_CC="gcc"
1430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431 break 2
1433 done
1434 done
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1442 else
1443 echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1447 CC=$ac_ct_CC
1448 else
1449 CC="$ac_cv_prog_CC"
1452 if test -z "$CC"; then
1453 if test -n "$ac_tool_prefix"; then
1454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1455 set dummy ${ac_tool_prefix}cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test.
1463 else
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 for as_dir in $PATH
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_CC="${ac_tool_prefix}cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 break 2
1475 done
1476 done
1480 CC=$ac_cv_prog_CC
1481 if test -n "$CC"; then
1482 echo "$as_me:$LINENO: result: $CC" >&5
1483 echo "${ECHO_T}$CC" >&6
1484 else
1485 echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1490 if test -z "$ac_cv_prog_CC"; then
1491 ac_ct_CC=$CC
1492 # Extract the first word of "cc", so it can be a program name with args.
1493 set dummy cc; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499 if test -n "$ac_ct_CC"; then
1500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1501 else
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_ac_ct_CC="cc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511 break 2
1513 done
1514 done
1518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1519 if test -n "$ac_ct_CC"; then
1520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1521 echo "${ECHO_T}$ac_ct_CC" >&6
1522 else
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1527 CC=$ac_ct_CC
1528 else
1529 CC="$ac_cv_prog_CC"
1533 if test -z "$CC"; then
1534 # Extract the first word of "cc", so it can be a program name with args.
1535 set dummy cc; ac_word=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1543 else
1544 ac_prog_rejected=no
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1553 ac_prog_rejected=yes
1554 continue
1556 ac_cv_prog_CC="cc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1560 done
1561 done
1563 if test $ac_prog_rejected = yes; then
1564 # We found a bogon in the path, so make sure we never use it.
1565 set dummy $ac_cv_prog_CC
1566 shift
1567 if test $# != 0; then
1568 # We chose a different compiler from the bogus one.
1569 # However, it has the same basename, so the bogon will be chosen
1570 # first if we set CC to just the basename; use the full file name.
1571 shift
1572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1577 CC=$ac_cv_prog_CC
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1581 else
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$CC"; then
1588 if test -n "$ac_tool_prefix"; then
1589 for ac_prog in cl
1591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1612 done
1613 done
1617 CC=$ac_cv_prog_CC
1618 if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620 echo "${ECHO_T}$CC" >&6
1621 else
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1626 test -n "$CC" && break
1627 done
1629 if test -z "$CC"; then
1630 ac_ct_CC=$CC
1631 for ac_prog in cl
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="$ac_prog"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
1654 done
1655 done
1659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660 if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662 echo "${ECHO_T}$ac_ct_CC" >&6
1663 else
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1668 test -n "$ac_ct_CC" && break
1669 done
1671 CC=$ac_ct_CC
1677 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1678 See \`config.log' for more details." >&5
1679 echo "$as_me: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&2;}
1681 { (exit 1); exit 1; }; }
1683 # Provide some information about the compiler.
1684 echo "$as_me:$LINENO:" \
1685 "checking for C compiler version" >&5
1686 ac_compiler=`set X $ac_compile; echo $2`
1687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1688 (eval $ac_compiler --version </dev/null >&5) 2>&5
1689 ac_status=$?
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
1692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1693 (eval $ac_compiler -v </dev/null >&5) 2>&5
1694 ac_status=$?
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1698 (eval $ac_compiler -V </dev/null >&5) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1703 cat >conftest.$ac_ext <<_ACEOF
1704 /* confdefs.h. */
1705 _ACEOF
1706 cat confdefs.h >>conftest.$ac_ext
1707 cat >>conftest.$ac_ext <<_ACEOF
1708 /* end confdefs.h. */
1711 main ()
1715 return 0;
1717 _ACEOF
1718 ac_clean_files_save=$ac_clean_files
1719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1720 # Try to create an executable without -o first, disregard a.out.
1721 # It will help us diagnose broken compilers, and finding out an intuition
1722 # of exeext.
1723 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1726 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1727 (eval $ac_link_default) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }; then
1731 # Find the output, starting from the most likely. This scheme is
1732 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733 # resort.
1735 # Be careful to initialize this variable, since it used to be cached.
1736 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1737 ac_cv_exeext=
1738 # b.out is created by i960 compilers.
1739 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741 test -f "$ac_file" || continue
1742 case $ac_file in
1743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1745 conftest.$ac_ext )
1746 # This is the source file.
1748 [ab].out )
1749 # We found the default executable, but exeext='' is most
1750 # certainly right.
1751 break;;
1752 *.* )
1753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754 # FIXME: I believe we export ac_cv_exeext for Libtool,
1755 # but it would be cool to find out if it's true. Does anybody
1756 # maintain Libtool? --akim.
1757 export ac_cv_exeext
1758 break;;
1760 break;;
1761 esac
1762 done
1763 else
1764 echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: C compiler cannot create executables
1770 See \`config.log' for more details." >&2;}
1771 { (exit 77); exit 77; }; }
1774 ac_exeext=$ac_cv_exeext
1775 echo "$as_me:$LINENO: result: $ac_file" >&5
1776 echo "${ECHO_T}$ac_file" >&6
1778 # Check the compiler produces executables we can run. If not, either
1779 # the compiler is broken, or we cross compile.
1780 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783 # If not cross compiling, check that we can run a simple program.
1784 if test "$cross_compiling" != yes; then
1785 if { ac_try='./$ac_file'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1787 (eval $ac_try) 2>&5
1788 ac_status=$?
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1791 cross_compiling=no
1792 else
1793 if test "$cross_compiling" = maybe; then
1794 cross_compiling=yes
1795 else
1796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'.
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'.
1801 See \`config.log' for more details." >&2;}
1802 { (exit 1); exit 1; }; }
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1809 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1810 ac_clean_files=$ac_clean_files_save
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1816 echo "${ECHO_T}$cross_compiling" >&6
1818 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1819 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827 # work properly (i.e., refer to `conftest.exe'), while it won't with
1828 # `rm'.
1829 for ac_file in conftest.exe conftest conftest.*; do
1830 test -f "$ac_file" || continue
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1833 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 export ac_cv_exeext
1835 break;;
1836 * ) break;;
1837 esac
1838 done
1839 else
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1847 rm -f conftest$ac_cv_exeext
1848 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1849 echo "${ECHO_T}$ac_cv_exeext" >&6
1851 rm -f conftest.$ac_ext
1852 EXEEXT=$ac_cv_exeext
1853 ac_exeext=$EXEEXT
1854 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1855 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1856 if test "${ac_cv_objext+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h. */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h. */
1867 main ()
1871 return 0;
1873 _ACEOF
1874 rm -f conftest.o conftest.obj
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1881 case $ac_file in
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1883 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1884 break;;
1885 esac
1886 done
1887 else
1888 echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1898 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1901 echo "${ECHO_T}$ac_cv_objext" >&6
1902 OBJEXT=$ac_cv_objext
1903 ac_objext=$OBJEXT
1904 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1905 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1906 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 cat >conftest.$ac_ext <<_ACEOF
1910 /* confdefs.h. */
1911 _ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1917 main ()
1919 #ifndef __GNUC__
1920 choke me
1921 #endif
1924 return 0;
1926 _ACEOF
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1930 ac_status=$?
1931 grep -v '^ *+' conftest.er1 >conftest.err
1932 rm -f conftest.er1
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -z "$ac_c_werror_flag"
1937 || test ! -s conftest.err'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 ac_compiler_gnu=yes
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_compiler_gnu=no
1956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1960 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1961 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1962 GCC=`test $ac_compiler_gnu = yes && echo yes`
1963 ac_test_CFLAGS=${CFLAGS+set}
1964 ac_save_CFLAGS=$CFLAGS
1965 CFLAGS="-g"
1966 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1967 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1968 if test "${ac_cv_prog_cc_g+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h. */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1979 main ()
1983 return 0;
1985 _ACEOF
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>conftest.er1
1989 ac_status=$?
1990 grep -v '^ *+' conftest.er1 >conftest.err
1991 rm -f conftest.er1
1992 cat conftest.err >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); } &&
1995 { ac_try='test -z "$ac_c_werror_flag"
1996 || test ! -s conftest.err'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 (eval $ac_try) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 ac_cv_prog_cc_g=yes
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2013 ac_cv_prog_cc_g=no
2015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2018 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2019 if test "$ac_test_CFLAGS" = set; then
2020 CFLAGS=$ac_save_CFLAGS
2021 elif test $ac_cv_prog_cc_g = yes; then
2022 if test "$GCC" = yes; then
2023 CFLAGS="-g -O2"
2024 else
2025 CFLAGS="-g"
2027 else
2028 if test "$GCC" = yes; then
2029 CFLAGS="-O2"
2030 else
2031 CFLAGS=
2034 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2035 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 ac_cv_prog_cc_stdc=no
2040 ac_save_CC=$CC
2041 cat >conftest.$ac_ext <<_ACEOF
2042 /* confdefs.h. */
2043 _ACEOF
2044 cat confdefs.h >>conftest.$ac_ext
2045 cat >>conftest.$ac_ext <<_ACEOF
2046 /* end confdefs.h. */
2047 #include <stdarg.h>
2048 #include <stdio.h>
2049 #include <sys/types.h>
2050 #include <sys/stat.h>
2051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2052 struct buf { int x; };
2053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2054 static char *e (p, i)
2055 char **p;
2056 int i;
2058 return p[i];
2060 static char *f (char * (*g) (char **, int), char **p, ...)
2062 char *s;
2063 va_list v;
2064 va_start (v,p);
2065 s = g (p, va_arg (v,int));
2066 va_end (v);
2067 return s;
2070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2071 function prototypes and stuff, but not '\xHH' hex character constants.
2072 These don't provoke an error unfortunately, instead are silently treated
2073 as 'x'. The following induces an error, until -std1 is added to get
2074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2075 array size at least. It's necessary to write '\x00'==0 to get something
2076 that's true only with -std1. */
2077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079 int test (int i, double x);
2080 struct s1 {int (*f) (int a);};
2081 struct s2 {int (*f) (double a);};
2082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2083 int argc;
2084 char **argv;
2086 main ()
2088 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2090 return 0;
2092 _ACEOF
2093 # Don't try gcc -ansi; that turns off useful extensions and
2094 # breaks some systems' header files.
2095 # AIX -qlanglvl=ansi
2096 # Ultrix and OSF/1 -std1
2097 # HP-UX 10.20 and later -Ae
2098 # HP-UX older versions -Aa -D_HPUX_SOURCE
2099 # SVR4 -Xc -D__EXTENSIONS__
2100 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102 CC="$ac_save_CC $ac_arg"
2103 rm -f conftest.$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>conftest.er1
2106 ac_status=$?
2107 grep -v '^ *+' conftest.er1 >conftest.err
2108 rm -f conftest.er1
2109 cat conftest.err >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try='test -z "$ac_c_werror_flag"
2113 || test ! -s conftest.err'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; } &&
2119 { ac_try='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 ac_cv_prog_cc_stdc=$ac_arg
2126 break
2127 else
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2132 rm -f conftest.err conftest.$ac_objext
2133 done
2134 rm -f conftest.$ac_ext conftest.$ac_objext
2135 CC=$ac_save_CC
2139 case "x$ac_cv_prog_cc_stdc" in
2140 x|xno)
2141 echo "$as_me:$LINENO: result: none needed" >&5
2142 echo "${ECHO_T}none needed" >&6 ;;
2144 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2145 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2146 CC="$CC $ac_cv_prog_cc_stdc" ;;
2147 esac
2149 # Some people use a C++ compiler to compile C. Since we use `exit',
2150 # in C++ we need to declare it. In case someone uses the same compiler
2151 # for both compiling C and C++ we need to have the C++ compiler decide
2152 # the declaration of exit, since it's the most demanding environment.
2153 cat >conftest.$ac_ext <<_ACEOF
2154 #ifndef __cplusplus
2155 choke me
2156 #endif
2157 _ACEOF
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2161 ac_status=$?
2162 grep -v '^ *+' conftest.er1 >conftest.err
2163 rm -f conftest.er1
2164 cat conftest.err >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 for ac_declaration in \
2181 '' \
2182 'extern "C" void std::exit (int) throw (); using std::exit;' \
2183 'extern "C" void std::exit (int); using std::exit;' \
2184 'extern "C" void exit (int) throw ();' \
2185 'extern "C" void exit (int);' \
2186 'void exit (int);'
2188 cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h. */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2194 $ac_declaration
2195 #include <stdlib.h>
2197 main ()
2199 exit (42);
2201 return 0;
2203 _ACEOF
2204 rm -f conftest.$ac_objext
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>conftest.er1
2207 ac_status=$?
2208 grep -v '^ *+' conftest.er1 >conftest.err
2209 rm -f conftest.er1
2210 cat conftest.err >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); } &&
2213 { ac_try='test -z "$ac_c_werror_flag"
2214 || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2231 continue
2233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2234 cat >conftest.$ac_ext <<_ACEOF
2235 /* confdefs.h. */
2236 _ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2240 $ac_declaration
2242 main ()
2244 exit (42);
2246 return 0;
2248 _ACEOF
2249 rm -f conftest.$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>conftest.er1
2252 ac_status=$?
2253 grep -v '^ *+' conftest.er1 >conftest.err
2254 rm -f conftest.er1
2255 cat conftest.err >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -z "$ac_c_werror_flag"
2259 || test ! -s conftest.err'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; } &&
2265 { ac_try='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 break
2272 else
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 done
2279 rm -f conftest*
2280 if test -n "$ac_declaration"; then
2281 echo '#ifdef __cplusplus' >>confdefs.h
2282 echo $ac_declaration >>confdefs.h
2283 echo '#endif' >>confdefs.h
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292 ac_ext=c
2293 ac_cpp='$CPP $CPPFLAGS'
2294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299 cat >>confdefs.h <<\_ACEOF
2300 #define _GNU_SOURCE 1
2301 _ACEOF
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312 # On Suns, sometimes $CPP names a directory.
2313 if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
2316 if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2323 ac_preproc_ok=false
2324 for ac_c_preproc_warn_flag in '' yes
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2338 #ifdef __STDC__
2339 # include <limits.h>
2340 #else
2341 # include <assert.h>
2342 #endif
2343 Syntax error
2344 _ACEOF
2345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2359 else
2360 ac_cpp_err=yes
2362 if test -z "$ac_cpp_err"; then
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 # Broken: fails on valid input.
2369 continue
2371 rm -f conftest.err conftest.$ac_ext
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <ac_nonexistent.h>
2382 _ACEOF
2383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2397 else
2398 ac_cpp_err=yes
2400 if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2402 continue
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 # Passes both tests.
2408 ac_preproc_ok=:
2409 break
2411 rm -f conftest.err conftest.$ac_ext
2413 done
2414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415 rm -f conftest.err conftest.$ac_ext
2416 if $ac_preproc_ok; then
2417 break
2420 done
2421 ac_cv_prog_CPP=$CPP
2424 CPP=$ac_cv_prog_CPP
2425 else
2426 ac_cv_prog_CPP=$CPP
2428 echo "$as_me:$LINENO: result: $CPP" >&5
2429 echo "${ECHO_T}$CPP" >&6
2430 ac_preproc_ok=false
2431 for ac_c_preproc_warn_flag in '' yes
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 #ifdef __STDC__
2446 # include <limits.h>
2447 #else
2448 # include <assert.h>
2449 #endif
2450 Syntax error
2451 _ACEOF
2452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 else
2464 ac_cpp_err=
2466 else
2467 ac_cpp_err=yes
2469 if test -z "$ac_cpp_err"; then
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2475 # Broken: fails on valid input.
2476 continue
2478 rm -f conftest.err conftest.$ac_ext
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2488 #include <ac_nonexistent.h>
2489 _ACEOF
2490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev/null; then
2498 if test -s conftest.err; then
2499 ac_cpp_err=$ac_c_preproc_warn_flag
2500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 else
2502 ac_cpp_err=
2504 else
2505 ac_cpp_err=yes
2507 if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2509 continue
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 # Passes both tests.
2515 ac_preproc_ok=:
2516 break
2518 rm -f conftest.err conftest.$ac_ext
2520 done
2521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522 rm -f conftest.err conftest.$ac_ext
2523 if $ac_preproc_ok; then
2525 else
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540 echo "$as_me:$LINENO: checking for egrep" >&5
2541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542 if test "${ac_cv_prog_egrep+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546 then ac_cv_prog_egrep='grep -E'
2547 else ac_cv_prog_egrep='egrep'
2550 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP=$ac_cv_prog_egrep
2556 echo "$as_me:$LINENO: checking for AIX" >&5
2557 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2564 #ifdef _AIX
2566 #endif
2568 _ACEOF
2569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2570 $EGREP "yes" >/dev/null 2>&1; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2573 cat >>confdefs.h <<\_ACEOF
2574 #define _ALL_SOURCE 1
2575 _ACEOF
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2581 rm -f conftest*
2584 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586 if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 ac_func_search_save_LIBS=$LIBS
2590 ac_cv_search_strerror=no
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2598 /* Override any gcc2 internal prototype to avoid an error. */
2599 #ifdef __cplusplus
2600 extern "C"
2601 #endif
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604 char strerror ();
2606 main ()
2608 strerror ();
2610 return 0;
2612 _ACEOF
2613 rm -f conftest.$ac_objext conftest$ac_exeext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest$ac_exeext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_search_strerror="none required"
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643 if test "$ac_cv_search_strerror" = no; then
2644 for ac_lib in cposix; do
2645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2653 /* Override any gcc2 internal prototype to avoid an error. */
2654 #ifdef __cplusplus
2655 extern "C"
2656 #endif
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659 char strerror ();
2661 main ()
2663 strerror ();
2665 return 0;
2667 _ACEOF
2668 rm -f conftest.$ac_objext conftest$ac_exeext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691 break
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2697 rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
2701 LIBS=$ac_func_search_save_LIBS
2703 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705 if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2713 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715 if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 am_cv_prog_cc_stdc=no
2719 ac_save_CC="$CC"
2720 # Don't try gcc -ansi; that turns off useful extensions and
2721 # breaks some systems' header files.
2722 # AIX -qlanglvl=ansi
2723 # Ultrix and OSF/1 -std1
2724 # HP-UX 10.20 and later -Ae
2725 # HP-UX older versions -Aa -D_HPUX_SOURCE
2726 # SVR4 -Xc -D__EXTENSIONS__
2727 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 CC="$ac_save_CC $ac_arg"
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h. */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2736 #include <stdarg.h>
2737 #include <stdio.h>
2738 #include <sys/types.h>
2739 #include <sys/stat.h>
2740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741 struct buf { int x; };
2742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743 static char *e (p, i)
2744 char **p;
2745 int i;
2747 return p[i];
2749 static char *f (char * (*g) (char **, int), char **p, ...)
2751 char *s;
2752 va_list v;
2753 va_start (v,p);
2754 s = g (p, va_arg (v,int));
2755 va_end (v);
2756 return s;
2758 int test (int i, double x);
2759 struct s1 {int (*f) (int a);};
2760 struct s2 {int (*f) (double a);};
2761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762 int argc;
2763 char **argv;
2766 main ()
2769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2772 return 0;
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 am_cv_prog_cc_stdc="$ac_arg"; break
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 done
2805 CC="$ac_save_CC"
2809 if test -z "$am_cv_prog_cc_stdc"; then
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6
2812 else
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2816 case "x$am_cv_prog_cc_stdc" in
2817 x|xno) ;;
2818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819 esac
2822 ac_aux_dir=
2823 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824 if test -f $ac_dir/install-sh; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 break
2828 elif test -f $ac_dir/install.sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install.sh -c"
2831 break
2832 elif test -f $ac_dir/shtool; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 break
2837 done
2838 if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
2843 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2847 # Make sure we can run config.sub.
2848 $ac_config_sub sun4 >/dev/null 2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2853 echo "$as_me:$LINENO: checking build system type" >&5
2854 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855 if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 ac_cv_build_alias=$build_alias
2859 test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias=`$ac_config_guess`
2861 test -z "$ac_cv_build_alias" &&
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
2865 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868 { (exit 1); exit 1; }; }
2871 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872 echo "${ECHO_T}$ac_cv_build" >&6
2873 build=$ac_cv_build
2874 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2879 echo "$as_me:$LINENO: checking host system type" >&5
2880 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881 if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 ac_cv_host_alias=$host_alias
2885 test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias=$ac_cv_build_alias
2887 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890 { (exit 1); exit 1; }; }
2893 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894 echo "${ECHO_T}$ac_cv_host" >&6
2895 host=$ac_cv_host
2896 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2901 echo "$as_me:$LINENO: checking target system type" >&5
2902 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903 if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 ac_cv_target_alias=$target_alias
2907 test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias=$ac_cv_host_alias
2909 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2915 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916 echo "${ECHO_T}$ac_cv_target" >&6
2917 target=$ac_cv_target
2918 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2923 # The aliases save the names the user supplied, while $host etc.
2924 # will get canonicalized.
2925 test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
2931 CONFIG_OBS=
2932 CONFIG_DEPS=
2933 CONFIG_SRCS=
2934 ENABLE_CFLAGS=
2936 CONFIG_ALL=
2937 CONFIG_CLEAN=
2938 CONFIG_INSTALL=
2939 CONFIG_UNINSTALL=
2942 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2944 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2945 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 cat >conftest.make <<\_ACEOF
2949 all:
2950 @echo 'ac_maketemp="$(MAKE)"'
2951 _ACEOF
2952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2954 if test -n "$ac_maketemp"; then
2955 eval ac_cv_prog_make_${ac_make}_set=yes
2956 else
2957 eval ac_cv_prog_make_${ac_make}_set=no
2959 rm -f conftest.make
2961 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2964 SET_MAKE=
2965 else
2966 echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968 SET_MAKE="MAKE=${MAKE-make}"
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979 if test -n "$RANLIB"; then
2980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2993 done
2994 done
2998 RANLIB=$ac_cv_prog_RANLIB
2999 if test -n "$RANLIB"; then
3000 echo "$as_me:$LINENO: result: $RANLIB" >&5
3001 echo "${ECHO_T}$RANLIB" >&6
3002 else
3003 echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3008 if test -z "$ac_cv_prog_RANLIB"; then
3009 ac_ct_RANLIB=$RANLIB
3010 # Extract the first word of "ranlib", so it can be a program name with args.
3011 set dummy ranlib; ac_word=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 if test -n "$ac_ct_RANLIB"; then
3018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_RANLIB="ranlib"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3031 done
3032 done
3034 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3038 if test -n "$ac_ct_RANLIB"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3041 else
3042 echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6
3046 RANLIB=$ac_ct_RANLIB
3047 else
3048 RANLIB="$ac_cv_prog_RANLIB"
3051 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053 if test "${ac_cv_header_stdc+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <stdlib.h>
3063 #include <stdarg.h>
3064 #include <string.h>
3065 #include <float.h>
3068 main ()
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_header_stdc=yes
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 ac_cv_header_stdc=no
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3106 if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114 #include <string.h>
3116 _ACEOF
3117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 $EGREP "memchr" >/dev/null 2>&1; then
3120 else
3121 ac_cv_header_stdc=no
3123 rm -f conftest*
3127 if test $ac_cv_header_stdc = yes; then
3128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <stdlib.h>
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev/null 2>&1; then
3141 else
3142 ac_cv_header_stdc=no
3144 rm -f conftest*
3148 if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3150 if test "$cross_compiling" = yes; then
3152 else
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #include <ctype.h>
3160 #if ((' ' & 0x0FF) == 0x020)
3161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163 #else
3164 # define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3169 #endif
3171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3173 main ()
3175 int i;
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
3179 exit(2);
3180 exit (0);
3182 _ACEOF
3183 rm -f conftest$ac_exeext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3195 else
3196 echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 ( exit $ac_status )
3201 ac_cv_header_stdc=no
3203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3207 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209 if test $ac_cv_header_stdc = yes; then
3211 cat >>confdefs.h <<\_ACEOF
3212 #define STDC_HEADERS 1
3213 _ACEOF
3217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219 if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 main ()
3232 /* FIXME: Include the comments suggested by Paul. */
3233 #ifndef __cplusplus
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3236 const charset x;
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3239 char **p;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3246 expression */
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3250 ++ccp;
3251 p = (char**) ccp;
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3254 char *t;
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3257 *t++ = 0;
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3260 int x[] = {25, 17};
3261 const int *foo = &x[0];
3262 ++foo;
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3266 iptr p = 0;
3267 ++p;
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275 const int foo = 10;
3277 #endif
3280 return 0;
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_c_const=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 ac_cv_c_const=no
3312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315 echo "${ECHO_T}$ac_cv_c_const" >&6
3316 if test $ac_cv_c_const = no; then
3318 cat >>confdefs.h <<\_ACEOF
3319 #define const
3320 _ACEOF
3324 echo "$as_me:$LINENO: checking for inline" >&5
3325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326 if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 ac_cv_c_inline=no
3330 for ac_kw in inline __inline__ __inline; do
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #ifndef __cplusplus
3338 typedef int foo_t;
3339 static $ac_kw foo_t static_foo () {return 0; }
3340 $ac_kw foo_t foo () {return 0; }
3341 #endif
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline=$ac_kw; break
3367 else
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373 done
3376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377 echo "${ECHO_T}$ac_cv_c_inline" >&6
3380 case $ac_cv_c_inline in
3381 inline | yes) ;;
3383 case $ac_cv_c_inline in
3384 no) ac_val=;;
3385 *) ac_val=$ac_cv_c_inline;;
3386 esac
3387 cat >>confdefs.h <<_ACEOF
3388 #ifndef __cplusplus
3389 #define inline $ac_val
3390 #endif
3391 _ACEOF
3393 esac
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 $ac_includes_default
3422 #include <$ac_header>
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 eval "$as_ac_Header=no"
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460 _ACEOF
3464 done
3467 echo "$as_me:$LINENO: checking for off_t" >&5
3468 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3469 if test "${ac_cv_type_off_t+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 $ac_includes_default
3480 main ()
3482 if ((off_t *) 0)
3483 return 0;
3484 if (sizeof (off_t))
3485 return 0;
3487 return 0;
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_type_off_t=yes
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 ac_cv_type_off_t=no
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3523 if test $ac_cv_type_off_t = yes; then
3525 else
3527 cat >>confdefs.h <<_ACEOF
3528 #define off_t long
3529 _ACEOF
3533 echo "$as_me:$LINENO: checking for size_t" >&5
3534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3535 if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_includes_default
3546 main ()
3548 if ((size_t *) 0)
3549 return 0;
3550 if (sizeof (size_t))
3551 return 0;
3553 return 0;
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_size_t=yes
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3583 ac_cv_type_size_t=no
3585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3589 if test $ac_cv_type_size_t = yes; then
3591 else
3593 cat >>confdefs.h <<_ACEOF
3594 #define size_t unsigned
3595 _ACEOF
3599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600 # for constant arguments. Useless!
3601 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3603 if test "${ac_cv_working_alloca_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <alloca.h>
3614 main ()
3616 char *p = (char *) alloca (2 * sizeof (int));
3618 return 0;
3620 _ACEOF
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3644 else
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 ac_cv_working_alloca_h=no
3650 rm -f conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3653 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3655 if test $ac_cv_working_alloca_h = yes; then
3657 cat >>confdefs.h <<\_ACEOF
3658 #define HAVE_ALLOCA_H 1
3659 _ACEOF
3663 echo "$as_me:$LINENO: checking for alloca" >&5
3664 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3665 if test "${ac_cv_func_alloca_works+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 #ifdef __GNUC__
3675 # define alloca __builtin_alloca
3676 #else
3677 # ifdef _MSC_VER
3678 # include <malloc.h>
3679 # define alloca _alloca
3680 # else
3681 # if HAVE_ALLOCA_H
3682 # include <alloca.h>
3683 # else
3684 # ifdef _AIX
3685 #pragma alloca
3686 # else
3687 # ifndef alloca /* predefined by HP cc +Olibcalls */
3688 char *alloca ();
3689 # endif
3690 # endif
3691 # endif
3692 # endif
3693 #endif
3696 main ()
3698 char *p = (char *) alloca (1);
3700 return 0;
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_func_alloca_works=yes
3726 else
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 ac_cv_func_alloca_works=no
3732 rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
3735 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3738 if test $ac_cv_func_alloca_works = yes; then
3740 cat >>confdefs.h <<\_ACEOF
3741 #define HAVE_ALLOCA 1
3742 _ACEOF
3744 else
3745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746 # that cause trouble. Some versions do not even contain alloca or
3747 # contain a buggy version. If you still want to use their alloca,
3748 # use ar to extract alloca.o from them instead of compiling alloca.c.
3750 ALLOCA=alloca.$ac_objext
3752 cat >>confdefs.h <<\_ACEOF
3753 #define C_ALLOCA 1
3754 _ACEOF
3757 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3759 if test "${ac_cv_os_cray+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 #if defined(CRAY) && ! defined(CRAY2)
3769 webecray
3770 #else
3771 wenotbecray
3772 #endif
3774 _ACEOF
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "webecray" >/dev/null 2>&1; then
3777 ac_cv_os_cray=yes
3778 else
3779 ac_cv_os_cray=no
3781 rm -f conftest*
3784 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785 echo "${ECHO_T}$ac_cv_os_cray" >&6
3786 if test $ac_cv_os_cray = yes; then
3787 for ac_func in _getb67 GETB67 getb67; do
3788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3789 echo "$as_me:$LINENO: checking for $ac_func" >&5
3790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791 if eval "test \"\${$as_ac_var+set}\" = set"; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3802 #define $ac_func innocuous_$ac_func
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func (); below.
3806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 <limits.h> exists even on freestanding compilers. */
3809 #ifdef __STDC__
3810 # include <limits.h>
3811 #else
3812 # include <assert.h>
3813 #endif
3815 #undef $ac_func
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 #ifdef __cplusplus
3819 extern "C"
3821 #endif
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3824 char $ac_func ();
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 choke me
3830 #else
3831 char (*f) () = $ac_func;
3832 #endif
3833 #ifdef __cplusplus
3835 #endif
3838 main ()
3840 return f != $ac_func;
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 eval "$as_ac_var=yes"
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 eval "$as_ac_var=no"
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3879 if test `eval echo '${'$as_ac_var'}'` = yes; then
3881 cat >>confdefs.h <<_ACEOF
3882 #define CRAY_STACKSEG_END $ac_func
3883 _ACEOF
3885 break
3888 done
3891 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3893 if test "${ac_cv_c_stack_direction+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 if test "$cross_compiling" = yes; then
3897 ac_cv_c_stack_direction=0
3898 else
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3906 find_stack_direction ()
3908 static char *addr = 0;
3909 auto char dummy;
3910 if (addr == 0)
3912 addr = &dummy;
3913 return find_stack_direction ();
3915 else
3916 return (&dummy > addr) ? 1 : -1;
3920 main ()
3922 exit (find_stack_direction () < 0);
3924 _ACEOF
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_c_stack_direction=1
3937 else
3938 echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 ( exit $ac_status )
3943 ac_cv_c_stack_direction=-1
3945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3948 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3951 cat >>confdefs.h <<_ACEOF
3952 #define STACK_DIRECTION $ac_cv_c_stack_direction
3953 _ACEOF
3960 for ac_header in stdlib.h unistd.h
3962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971 else
3972 # Is the header compilable?
3973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
3982 #include <$ac_header>
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_header_compiler=yes
4007 else
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4011 ac_header_compiler=no
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015 echo "${ECHO_T}$ac_header_compiler" >&6
4017 # Is the header present?
4018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <$ac_header>
4027 _ACEOF
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 else
4040 ac_cpp_err=
4042 else
4043 ac_cpp_err=yes
4045 if test -z "$ac_cpp_err"; then
4046 ac_header_preproc=yes
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 ac_header_preproc=no
4053 rm -f conftest.err conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055 echo "${ECHO_T}$ac_header_preproc" >&6
4057 # So? What about this header?
4058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4059 yes:no: )
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064 ac_header_preproc=yes
4066 no:yes:* )
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4080 cat <<\_ASBOX
4081 ## ------------------------------------------ ##
4082 ## Report this to the AC_PACKAGE_NAME lists. ##
4083 ## ------------------------------------------ ##
4084 _ASBOX
4086 sed "s/^/$as_me: WARNING: /" >&2
4088 esac
4089 echo "$as_me:$LINENO: checking for $ac_header" >&5
4090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 eval "$as_ac_Header=\$ac_header_preproc"
4096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 _ACEOF
4107 done
4110 for ac_func in getpagesize
4112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113 echo "$as_me:$LINENO: checking for $ac_func" >&5
4114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115 if eval "test \"\${$as_ac_var+set}\" = set"; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126 #define $ac_func innocuous_$ac_func
4128 /* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4133 #ifdef __STDC__
4134 # include <limits.h>
4135 #else
4136 # include <assert.h>
4137 #endif
4139 #undef $ac_func
4141 /* Override any gcc2 internal prototype to avoid an error. */
4142 #ifdef __cplusplus
4143 extern "C"
4145 #endif
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char $ac_func ();
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153 choke me
4154 #else
4155 char (*f) () = $ac_func;
4156 #endif
4157 #ifdef __cplusplus
4159 #endif
4162 main ()
4164 return f != $ac_func;
4166 return 0;
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_var=yes"
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 eval "$as_ac_var=no"
4198 rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203 if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4206 _ACEOF
4209 done
4211 echo "$as_me:$LINENO: checking for working mmap" >&5
4212 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test "$cross_compiling" = yes; then
4217 ac_cv_func_mmap_fixed_mapped=no
4218 else
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 $ac_includes_default
4226 /* malloc might have been renamed as rpl_malloc. */
4227 #undef malloc
4229 /* Thanks to Mike Haertel and Jim Avera for this test.
4230 Here is a matrix of mmap possibilities:
4231 mmap private not fixed
4232 mmap private fixed at somewhere currently unmapped
4233 mmap private fixed at somewhere already mapped
4234 mmap shared not fixed
4235 mmap shared fixed at somewhere currently unmapped
4236 mmap shared fixed at somewhere already mapped
4237 For private mappings, we should verify that changes cannot be read()
4238 back from the file, nor mmap's back from the file at a different
4239 address. (There have been systems where private was not correctly
4240 implemented like the infamous i386 svr4.0, and systems where the
4241 VM page cache was not coherent with the file system buffer cache
4242 like early versions of FreeBSD and possibly contemporary NetBSD.)
4243 For shared mappings, we should conversely verify that changes get
4244 propagated back to all the places they're supposed to be.
4246 Grep wants private fixed already mapped.
4247 The main things grep needs to know about mmap are:
4248 * does it exist and is it safe to write into the mmap'd area
4249 * how to use it (BSD variants) */
4251 #include <fcntl.h>
4252 #include <sys/mman.h>
4254 #if !STDC_HEADERS && !HAVE_STDLIB_H
4255 char *malloc ();
4256 #endif
4258 /* This mess was copied from the GNU getpagesize.h. */
4259 #if !HAVE_GETPAGESIZE
4260 /* Assume that all systems that can run configure have sys/param.h. */
4261 # if !HAVE_SYS_PARAM_H
4262 # define HAVE_SYS_PARAM_H 1
4263 # endif
4265 # ifdef _SC_PAGESIZE
4266 # define getpagesize() sysconf(_SC_PAGESIZE)
4267 # else /* no _SC_PAGESIZE */
4268 # if HAVE_SYS_PARAM_H
4269 # include <sys/param.h>
4270 # ifdef EXEC_PAGESIZE
4271 # define getpagesize() EXEC_PAGESIZE
4272 # else /* no EXEC_PAGESIZE */
4273 # ifdef NBPG
4274 # define getpagesize() NBPG * CLSIZE
4275 # ifndef CLSIZE
4276 # define CLSIZE 1
4277 # endif /* no CLSIZE */
4278 # else /* no NBPG */
4279 # ifdef NBPC
4280 # define getpagesize() NBPC
4281 # else /* no NBPC */
4282 # ifdef PAGESIZE
4283 # define getpagesize() PAGESIZE
4284 # endif /* PAGESIZE */
4285 # endif /* no NBPC */
4286 # endif /* no NBPG */
4287 # endif /* no EXEC_PAGESIZE */
4288 # else /* no HAVE_SYS_PARAM_H */
4289 # define getpagesize() 8192 /* punt totally */
4290 # endif /* no HAVE_SYS_PARAM_H */
4291 # endif /* no _SC_PAGESIZE */
4293 #endif /* no HAVE_GETPAGESIZE */
4296 main ()
4298 char *data, *data2, *data3;
4299 int i, pagesize;
4300 int fd;
4302 pagesize = getpagesize ();
4304 /* First, make a file with some known garbage in it. */
4305 data = (char *) malloc (pagesize);
4306 if (!data)
4307 exit (1);
4308 for (i = 0; i < pagesize; ++i)
4309 *(data + i) = rand ();
4310 umask (0);
4311 fd = creat ("conftest.mmap", 0600);
4312 if (fd < 0)
4313 exit (1);
4314 if (write (fd, data, pagesize) != pagesize)
4315 exit (1);
4316 close (fd);
4318 /* Next, try to mmap the file at a fixed address which already has
4319 something else allocated at it. If we can, also make sure that
4320 we see the same garbage. */
4321 fd = open ("conftest.mmap", O_RDWR);
4322 if (fd < 0)
4323 exit (1);
4324 data2 = (char *) malloc (2 * pagesize);
4325 if (!data2)
4326 exit (1);
4327 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4330 exit (1);
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data2 + i))
4333 exit (1);
4335 /* Finally, make sure that changes to the mapped area do not
4336 percolate back to the file as seen by read(). (This is a bug on
4337 some variants of i386 svr4.0.) */
4338 for (i = 0; i < pagesize; ++i)
4339 *(data2 + i) = *(data2 + i) + 1;
4340 data3 = (char *) malloc (pagesize);
4341 if (!data3)
4342 exit (1);
4343 if (read (fd, data3, pagesize) != pagesize)
4344 exit (1);
4345 for (i = 0; i < pagesize; ++i)
4346 if (*(data + i) != *(data3 + i))
4347 exit (1);
4348 close (fd);
4349 exit (0);
4351 _ACEOF
4352 rm -f conftest$ac_exeext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_mmap_fixed_mapped=yes
4364 else
4365 echo "$as_me: program exited with status $ac_status" >&5
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 ( exit $ac_status )
4370 ac_cv_func_mmap_fixed_mapped=no
4372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_MMAP 1
4381 _ACEOF
4384 rm -f conftest.mmap
4396 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397 unistd.h values.h sys/param.h
4399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 else
4409 # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 $ac_includes_default
4419 #include <$ac_header>
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
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); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler=yes
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 ac_header_compiler=no
4450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452 echo "${ECHO_T}$ac_header_compiler" >&6
4454 # Is the header present?
4455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <$ac_header>
4464 _ACEOF
4465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null; then
4473 if test -s conftest.err; then
4474 ac_cpp_err=$ac_c_preproc_warn_flag
4475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 else
4477 ac_cpp_err=
4479 else
4480 ac_cpp_err=yes
4482 if test -z "$ac_cpp_err"; then
4483 ac_header_preproc=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_header_preproc=no
4490 rm -f conftest.err conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492 echo "${ECHO_T}$ac_header_preproc" >&6
4494 # So? What about this header?
4495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 yes:no: )
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc=yes
4503 no:yes:* )
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4517 cat <<\_ASBOX
4518 ## ------------------------------------------ ##
4519 ## Report this to the AC_PACKAGE_NAME lists. ##
4520 ## ------------------------------------------ ##
4521 _ASBOX
4523 sed "s/^/$as_me: WARNING: /" >&2
4525 esac
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 eval "$as_ac_Header=\$ac_header_preproc"
4533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540 _ACEOF
4544 done
4556 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557 __argz_count __argz_stringify __argz_next
4559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560 echo "$as_me:$LINENO: checking for $ac_func" >&5
4561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573 #define $ac_func innocuous_$ac_func
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4580 #ifdef __STDC__
4581 # include <limits.h>
4582 #else
4583 # include <assert.h>
4584 #endif
4586 #undef $ac_func
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 #ifdef __cplusplus
4590 extern "C"
4592 #endif
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4595 char $ac_func ();
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 choke me
4601 #else
4602 char (*f) () = $ac_func;
4603 #endif
4604 #ifdef __cplusplus
4606 #endif
4609 main ()
4611 return f != $ac_func;
4613 return 0;
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_var=yes"
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 eval "$as_ac_var=no"
4645 rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650 if test `eval echo '${'$as_ac_var'}'` = yes; then
4651 cat >>confdefs.h <<_ACEOF
4652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4653 _ACEOF
4656 done
4659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4661 for ac_func in stpcpy
4663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664 echo "$as_me:$LINENO: checking for $ac_func" >&5
4665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_var+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4677 #define $ac_func innocuous_$ac_func
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func (); below.
4681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 <limits.h> exists even on freestanding compilers. */
4684 #ifdef __STDC__
4685 # include <limits.h>
4686 #else
4687 # include <assert.h>
4688 #endif
4690 #undef $ac_func
4692 /* Override any gcc2 internal prototype to avoid an error. */
4693 #ifdef __cplusplus
4694 extern "C"
4696 #endif
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699 char $ac_func ();
4700 /* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704 choke me
4705 #else
4706 char (*f) () = $ac_func;
4707 #endif
4708 #ifdef __cplusplus
4710 #endif
4713 main ()
4715 return f != $ac_func;
4717 return 0;
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 eval "$as_ac_var=yes"
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 eval "$as_ac_var=no"
4749 rm -f conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4754 if test `eval echo '${'$as_ac_var'}'` = yes; then
4755 cat >>confdefs.h <<_ACEOF
4756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4757 _ACEOF
4760 done
4763 if test "${ac_cv_func_stpcpy}" = "yes"; then
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_STPCPY 1
4767 _ACEOF
4771 if test $ac_cv_header_locale_h = yes; then
4772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4774 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #include <locale.h>
4785 main ()
4787 return LC_MESSAGES
4789 return 0;
4791 _ACEOF
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 am_cv_val_LC_MESSAGES=yes
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 am_cv_val_LC_MESSAGES=no
4821 rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4826 if test $am_cv_val_LC_MESSAGES = yes; then
4828 cat >>confdefs.h <<\_ACEOF
4829 #define HAVE_LC_MESSAGES 1
4830 _ACEOF
4834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836 # Check whether --enable-nls or --disable-nls was given.
4837 if test "${enable_nls+set}" = set; then
4838 enableval="$enable_nls"
4839 USE_NLS=$enableval
4840 else
4841 USE_NLS=yes
4843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844 echo "${ECHO_T}$USE_NLS" >&6
4847 USE_INCLUDED_LIBINTL=no
4849 if test "$USE_NLS" = "yes"; then
4850 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4851 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4853 # Check whether --with-included-gettext or --without-included-gettext was given.
4854 if test "${with_included_gettext+set}" = set; then
4855 withval="$with_included_gettext"
4856 nls_cv_force_use_gnu_gettext=$withval
4857 else
4858 nls_cv_force_use_gnu_gettext=no
4860 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4861 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4863 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4864 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4865 nls_cv_header_intl=
4866 nls_cv_header_libgt=
4867 CATOBJEXT=
4869 if test "${ac_cv_header_libintl_h+set}" = set; then
4870 echo "$as_me:$LINENO: checking for libintl.h" >&5
4871 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4872 if test "${ac_cv_header_libintl_h+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4876 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4877 else
4878 # Is the header compilable?
4879 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4880 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 $ac_includes_default
4888 #include <libintl.h>
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -z "$ac_c_werror_flag"
4900 || test ! -s conftest.err'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_header_compiler=yes
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 ac_header_compiler=no
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921 echo "${ECHO_T}$ac_header_compiler" >&6
4923 # Is the header present?
4924 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4925 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <libintl.h>
4933 _ACEOF
4934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null; then
4942 if test -s conftest.err; then
4943 ac_cpp_err=$ac_c_preproc_warn_flag
4944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4945 else
4946 ac_cpp_err=
4948 else
4949 ac_cpp_err=yes
4951 if test -z "$ac_cpp_err"; then
4952 ac_header_preproc=yes
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 ac_header_preproc=no
4959 rm -f conftest.err conftest.$ac_ext
4960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961 echo "${ECHO_T}$ac_header_preproc" >&6
4963 # So? What about this header?
4964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4965 yes:no: )
4966 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4967 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4969 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4970 ac_header_preproc=yes
4972 no:yes:* )
4973 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4974 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4976 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4978 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4980 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4982 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4984 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4986 cat <<\_ASBOX
4987 ## ------------------------------------------ ##
4988 ## Report this to the AC_PACKAGE_NAME lists. ##
4989 ## ------------------------------------------ ##
4990 _ASBOX
4992 sed "s/^/$as_me: WARNING: /" >&2
4994 esac
4995 echo "$as_me:$LINENO: checking for libintl.h" >&5
4996 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4997 if test "${ac_cv_header_libintl_h+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 ac_cv_header_libintl_h=$ac_header_preproc
5002 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5003 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5006 if test $ac_cv_header_libintl_h = yes; then
5007 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5008 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5009 if test "${gt_cv_func_gettext_libc+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <libintl.h>
5020 main ()
5022 return (int) gettext ("")
5024 return 0;
5026 _ACEOF
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 gt_cv_func_gettext_libc=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 gt_cv_func_gettext_libc=no
5056 rm -f conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5059 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5060 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5062 if test "$gt_cv_func_gettext_libc" != "yes"; then
5063 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5064 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5065 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 ac_check_lib_save_LIBS=$LIBS
5069 LIBS="-lintl $LIBS"
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5077 /* Override any gcc2 internal prototype to avoid an error. */
5078 #ifdef __cplusplus
5079 extern "C"
5080 #endif
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083 char bindtextdomain ();
5085 main ()
5087 bindtextdomain ();
5089 return 0;
5091 _ACEOF
5092 rm -f conftest.$ac_objext conftest$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_lib_intl_bindtextdomain=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 ac_cv_lib_intl_bindtextdomain=no
5121 rm -f conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5123 LIBS=$ac_check_lib_save_LIBS
5125 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5126 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5127 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5128 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5129 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5130 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5141 main ()
5143 return (int) gettext ("")
5145 return 0;
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 gt_cv_func_gettext_libintl=yes
5171 else
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 gt_cv_func_gettext_libintl=no
5177 rm -f conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5180 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5181 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5186 if test "$gt_cv_func_gettext_libc" = "yes" \
5187 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5189 cat >>confdefs.h <<\_ACEOF
5190 #define HAVE_GETTEXT 1
5191 _ACEOF
5193 # Extract the first word of "msgfmt", so it can be a program name with args.
5194 set dummy msgfmt; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_path_MSGFMT+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 case "$MSGFMT" in
5202 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5206 for ac_dir in $PATH; do
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/$ac_word; then
5209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5210 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5211 break
5214 done
5215 IFS="$ac_save_ifs"
5216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5218 esac
5220 MSGFMT="$ac_cv_path_MSGFMT"
5221 if test -n "$MSGFMT"; then
5222 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5223 echo "${ECHO_T}$MSGFMT" >&6
5224 else
5225 echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5228 if test "$MSGFMT" != "no"; then
5230 for ac_func in dcgettext
5232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233 echo "$as_me:$LINENO: checking for $ac_func" >&5
5234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5235 if eval "test \"\${$as_ac_var+set}\" = set"; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5246 #define $ac_func innocuous_$ac_func
5248 /* System header to define __stub macros and hopefully few prototypes,
5249 which can conflict with char $ac_func (); below.
5250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5251 <limits.h> exists even on freestanding compilers. */
5253 #ifdef __STDC__
5254 # include <limits.h>
5255 #else
5256 # include <assert.h>
5257 #endif
5259 #undef $ac_func
5261 /* Override any gcc2 internal prototype to avoid an error. */
5262 #ifdef __cplusplus
5263 extern "C"
5265 #endif
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5268 char $ac_func ();
5269 /* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273 choke me
5274 #else
5275 char (*f) () = $ac_func;
5276 #endif
5277 #ifdef __cplusplus
5279 #endif
5282 main ()
5284 return f != $ac_func;
5286 return 0;
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 eval "$as_ac_var=no"
5318 rm -f conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5323 if test `eval echo '${'$as_ac_var'}'` = yes; then
5324 cat >>confdefs.h <<_ACEOF
5325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5326 _ACEOF
5329 done
5331 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5332 set dummy gmsgfmt; ac_word=$2
5333 echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338 case $GMSGFMT in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5357 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5359 esac
5361 GMSGFMT=$ac_cv_path_GMSGFMT
5363 if test -n "$GMSGFMT"; then
5364 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5365 echo "${ECHO_T}$GMSGFMT" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5371 # Extract the first word of "xgettext", so it can be a program name with args.
5372 set dummy xgettext; ac_word=$2
5373 echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 case "$XGETTEXT" in
5380 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5384 for ac_dir in $PATH; do
5385 test -z "$ac_dir" && ac_dir=.
5386 if test -f $ac_dir/$ac_word; then
5387 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5388 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5389 break
5392 done
5393 IFS="$ac_save_ifs"
5394 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5396 esac
5398 XGETTEXT="$ac_cv_path_XGETTEXT"
5399 if test -n "$XGETTEXT"; then
5400 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5401 echo "${ECHO_T}$XGETTEXT" >&6
5402 else
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5415 main ()
5417 extern int _nl_msg_cat_cntr;
5418 return _nl_msg_cat_cntr
5420 return 0;
5422 _ACEOF
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 CATOBJEXT=.gmo
5446 DATADIRNAME=share
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 CATOBJEXT=.mo
5452 DATADIRNAME=lib
5454 rm -f conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5456 INSTOBJEXT=.mo
5465 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5466 # Neither gettext nor catgets in included in the C library.
5467 # Fall back on GNU gettext library (assuming it is present).
5468 nls_cv_use_gnu_gettext=yes
5472 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5473 INTLOBJS="\$(GETTOBJS)"
5474 # Extract the first word of "msgfmt", so it can be a program name with args.
5475 set dummy msgfmt; ac_word=$2
5476 echo "$as_me:$LINENO: checking for $ac_word" >&5
5477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5478 if test "${ac_cv_path_MSGFMT+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 case "$MSGFMT" in
5483 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5487 for ac_dir in $PATH; do
5488 test -z "$ac_dir" && ac_dir=.
5489 if test -f $ac_dir/$ac_word; then
5490 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5491 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5492 break
5495 done
5496 IFS="$ac_save_ifs"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5499 esac
5501 MSGFMT="$ac_cv_path_MSGFMT"
5502 if test -n "$MSGFMT"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504 echo "${ECHO_T}$MSGFMT" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5511 set dummy gmsgfmt; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5533 done
5534 done
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5538 esac
5540 GMSGFMT=$ac_cv_path_GMSGFMT
5542 if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544 echo "${ECHO_T}$GMSGFMT" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5550 # Extract the first word of "xgettext", so it can be a program name with args.
5551 set dummy xgettext; ac_word=$2
5552 echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 case "$XGETTEXT" in
5559 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5563 for ac_dir in $PATH; do
5564 test -z "$ac_dir" && ac_dir=.
5565 if test -f $ac_dir/$ac_word; then
5566 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5567 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5568 break
5571 done
5572 IFS="$ac_save_ifs"
5573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5575 esac
5577 XGETTEXT="$ac_cv_path_XGETTEXT"
5578 if test -n "$XGETTEXT"; then
5579 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580 echo "${ECHO_T}$XGETTEXT" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5587 USE_INCLUDED_LIBINTL=yes
5588 CATOBJEXT=.gmo
5589 INSTOBJEXT=.mo
5590 DATADIRNAME=share
5591 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5592 INTLLIBS=$INTLDEPS
5593 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5594 nls_cv_header_intl=libintl.h
5595 nls_cv_header_libgt=libgettext.h
5598 if test "$XGETTEXT" != ":"; then
5599 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5601 else
5602 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5603 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5604 XGETTEXT=":"
5608 # We need to process the po/ directory.
5609 POSUB=po
5610 else
5611 DATADIRNAME=share
5612 nls_cv_header_intl=libintl.h
5613 nls_cv_header_libgt=libgettext.h
5616 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5617 # because some of the sources are only built for this goal.
5618 if test "$PACKAGE" = gettext; then
5619 USE_NLS=yes
5620 USE_INCLUDED_LIBINTL=yes
5623 for lang in $ALL_LINGUAS; do
5624 GMOFILES="$GMOFILES $lang.gmo"
5625 POFILES="$POFILES $lang.po"
5626 done
5639 if test "x$CATOBJEXT" != "x"; then
5641 cat >>confdefs.h <<\_ACEOF
5642 #define ENABLE_NLS 1
5643 _ACEOF
5648 if test "x$CATOBJEXT" != "x"; then
5649 if test "x$ALL_LINGUAS" = "x"; then
5650 LINGUAS=
5651 else
5652 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5653 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5654 NEW_LINGUAS=
5655 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5656 case "$ALL_LINGUAS" in
5657 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5658 esac
5659 done
5660 LINGUAS=$NEW_LINGUAS
5661 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5662 echo "${ECHO_T}$LINGUAS" >&6
5665 if test -n "$LINGUAS"; then
5666 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5670 if test $ac_cv_header_locale_h = yes; then
5671 INCLUDE_LOCALE_H="#include <locale.h>"
5672 else
5673 INCLUDE_LOCALE_H="\
5674 /* The system does not provide the header <locale.h>. Take care yourself. */"
5678 if test -f $srcdir/po2tbl.sed.in; then
5679 if test "$CATOBJEXT" = ".cat"; then
5680 if test "${ac_cv_header_linux_version_h+set}" = set; then
5681 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5682 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5683 if test "${ac_cv_header_linux_version_h+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5687 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5688 else
5689 # Is the header compilable?
5690 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5691 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 $ac_includes_default
5699 #include <linux/version.h>
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_header_compiler=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_header_compiler=no
5730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5732 echo "${ECHO_T}$ac_header_compiler" >&6
5734 # Is the header present?
5735 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5736 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 #include <linux/version.h>
5744 _ACEOF
5745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } >/dev/null; then
5753 if test -s conftest.err; then
5754 ac_cpp_err=$ac_c_preproc_warn_flag
5755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5756 else
5757 ac_cpp_err=
5759 else
5760 ac_cpp_err=yes
5762 if test -z "$ac_cpp_err"; then
5763 ac_header_preproc=yes
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5768 ac_header_preproc=no
5770 rm -f conftest.err conftest.$ac_ext
5771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5772 echo "${ECHO_T}$ac_header_preproc" >&6
5774 # So? What about this header?
5775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5776 yes:no: )
5777 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5778 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5780 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5781 ac_header_preproc=yes
5783 no:yes:* )
5784 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5785 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5787 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5789 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5791 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5793 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5794 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5795 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5797 cat <<\_ASBOX
5798 ## ------------------------------------------ ##
5799 ## Report this to the AC_PACKAGE_NAME lists. ##
5800 ## ------------------------------------------ ##
5801 _ASBOX
5803 sed "s/^/$as_me: WARNING: /" >&2
5805 esac
5806 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5807 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5808 if test "${ac_cv_header_linux_version_h+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 ac_cv_header_linux_version_h=$ac_header_preproc
5813 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5814 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5817 if test $ac_cv_header_linux_version_h = yes; then
5818 msgformat=linux
5819 else
5820 msgformat=xopen
5825 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5827 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5828 $srcdir/po2tbl.sed.in > po2tbl.sed
5831 if test "$PACKAGE" = "gettext"; then
5832 GT_NO="#NO#"
5833 GT_YES=
5834 else
5835 GT_NO=
5836 GT_YES="#YES#"
5841 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5847 if test -f $srcdir/po/POTFILES.in; then
5848 test -d po || mkdir po
5849 if test "x$srcdir" != "x."; then
5850 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5851 posrcprefix="$srcdir/"
5852 else
5853 posrcprefix="../$srcdir/"
5855 else
5856 posrcprefix="../"
5858 rm -f po/POTFILES
5859 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5860 < $srcdir/po/POTFILES.in > po/POTFILES
5864 localedir='${datadir}/locale'
5867 if test "x$POSUB" != x; then
5869 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5870 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5871 # Look for .po and .gmo files in the source directory.
5872 CATALOGS=
5873 XLINGUAS=
5874 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5875 # If there aren't any .gmo files the shell will give us the
5876 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5877 # weeded out.
5878 case "$cat" in *\**)
5879 continue;;
5880 esac
5881 # The quadruple backslash is collapsed to a double backslash
5882 # by the backticks, then collapsed again by the double quotes,
5883 # leaving us with one backslash in the sed expression (right
5884 # before the dot that mustn't act as a wildcard).
5885 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5886 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5887 # The user is allowed to set LINGUAS to a list of languages to
5888 # install catalogs for. If it's empty that means "all of them."
5889 if test "x$LINGUAS" = x; then
5890 CATALOGS="$CATALOGS $cat"
5891 XLINGUAS="$XLINGUAS $lang"
5892 else
5893 case "$LINGUAS" in *$lang*)
5894 CATALOGS="$CATALOGS $cat"
5895 XLINGUAS="$XLINGUAS $lang"
5897 esac
5899 done
5900 LINGUAS="$XLINGUAS"
5901 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5902 echo "${ECHO_T}$LINGUAS" >&6
5904 CONFIG_ALL="$CONFIG_ALL all-po"
5905 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5906 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5907 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5910 PACKAGE=gdb
5912 cat >>confdefs.h <<_ACEOF
5913 #define PACKAGE "$PACKAGE"
5914 _ACEOF
5918 debugdir=${libdir}/debug
5921 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5922 if test "${with_separate_debug_dir+set}" = set; then
5923 withval="$with_separate_debug_dir"
5924 debugdir="${withval}"
5928 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5930 ac_define_dir=`eval echo $debugdir`
5931 ac_define_dir=`eval echo $ac_define_dir`
5933 cat >>confdefs.h <<_ACEOF
5934 #define DEBUGDIR "$ac_define_dir"
5935 _ACEOF
5938 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5942 subdirs="$subdirs doc testsuite"
5945 # Provide defaults for some variables set by the per-host and per-target
5946 # configuration.
5947 gdb_host_obs=posix-hdep.o
5949 . $srcdir/configure.host
5951 . $srcdir/configure.tgt
5953 # Fetch the default architecture and default target vector from BFD.
5954 targ=$target; . $srcdir/../bfd/config.bfd
5956 # We only want the first architecture, so strip off the others if
5957 # there is more than one.
5958 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5960 if test "x$targ_archs" != x; then
5962 cat >>confdefs.h <<_ACEOF
5963 #define DEFAULT_BFD_ARCH $targ_archs
5964 _ACEOF
5967 if test "x$targ_defvec" != x; then
5969 cat >>confdefs.h <<_ACEOF
5970 #define DEFAULT_BFD_VEC $targ_defvec
5971 _ACEOF
5975 test "$program_prefix" != NONE &&
5976 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5977 # Use a double $ so make ignores it.
5978 test "$program_suffix" != NONE &&
5979 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5980 # Double any \ or $. echo might interpret backslashes.
5981 # By default was `s,x,x', remove it if useless.
5982 cat <<\_ACEOF >conftest.sed
5983 s/[\\$]/&&/g;s/;s,x,x,$//
5984 _ACEOF
5985 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5986 rm conftest.sed
5989 # The CLI cannot be disabled yet, but may be in the future.
5991 # Enable CLI.
5992 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5993 if test "${enable_gdbcli+set}" = set; then
5994 enableval="$enable_gdbcli"
5995 case $enableval in
5996 yes)
5999 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6000 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6001 { (exit 1); exit 1; }; } ;;
6003 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6004 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6005 { (exit 1); exit 1; }; } ;;
6006 esac
6007 else
6008 enable_gdbcli=yes
6010 if test x"$enable_gdbcli" = xyes; then
6011 if test -d $srcdir/cli; then
6012 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6013 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6014 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6015 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6019 # Enable MI.
6020 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6021 if test "${enable_gdbmi+set}" = set; then
6022 enableval="$enable_gdbmi"
6023 case $enableval in
6024 yes | no)
6027 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6028 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6029 { (exit 1); exit 1; }; } ;;
6030 esac
6031 else
6032 enable_gdbmi=yes
6034 if test x"$enable_gdbmi" = xyes; then
6035 if test -d $srcdir/mi; then
6036 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6037 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6038 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6039 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6043 # Enable TUI.
6044 # Check whether --enable-tui or --disable-tui was given.
6045 if test "${enable_tui+set}" = set; then
6046 enableval="$enable_tui"
6047 case $enableval in
6048 yes | no)
6051 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6052 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6053 { (exit 1); exit 1; }; } ;;
6054 esac
6055 else
6056 enable_tui=yes
6059 # Enable gdbtk.
6060 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6061 if test "${enable_gdbtk+set}" = set; then
6062 enableval="$enable_gdbtk"
6063 case $enableval in
6064 yes | no)
6067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6068 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6069 { (exit 1); exit 1; }; } ;;
6070 esac
6071 else
6072 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
6073 enable_gdbtk=yes
6074 else
6075 enable_gdbtk=no
6078 # We unconditionally disable gdbtk tests on selected platforms.
6079 case $host_os in
6080 go32* | windows*)
6081 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6082 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6083 enable_gdbtk=no ;;
6084 esac
6086 # Libunwind support.
6088 # Check whether --with-libunwind or --without-libunwind was given.
6089 if test "${with_libunwind+set}" = set; then
6090 withval="$with_libunwind"
6091 case "${withval}" in
6092 yes) enable_libunwind=yes ;;
6093 no) enable_libunwind=no ;;
6094 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6095 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6096 { (exit 1); exit 1; }; } ;;
6097 esac
6098 else
6101 for ac_header in libunwind.h
6103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6112 else
6113 # Is the header compilable?
6114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6123 #include <$ac_header>
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_header_compiler=yes
6148 else
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ac_header_compiler=no
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6156 echo "${ECHO_T}$ac_header_compiler" >&6
6158 # Is the header present?
6159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <$ac_header>
6168 _ACEOF
6169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } >/dev/null; then
6177 if test -s conftest.err; then
6178 ac_cpp_err=$ac_c_preproc_warn_flag
6179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6180 else
6181 ac_cpp_err=
6183 else
6184 ac_cpp_err=yes
6186 if test -z "$ac_cpp_err"; then
6187 ac_header_preproc=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_header_preproc=no
6194 rm -f conftest.err conftest.$ac_ext
6195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6196 echo "${ECHO_T}$ac_header_preproc" >&6
6198 # So? What about this header?
6199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6200 yes:no: )
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6205 ac_header_preproc=yes
6207 no:yes:* )
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6221 cat <<\_ASBOX
6222 ## ------------------------------------------ ##
6223 ## Report this to the AC_PACKAGE_NAME lists. ##
6224 ## ------------------------------------------ ##
6225 _ASBOX
6227 sed "s/^/$as_me: WARNING: /" >&2
6229 esac
6230 echo "$as_me:$LINENO: checking for $ac_header" >&5
6231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 eval "$as_ac_Header=\$ac_header_preproc"
6237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6242 cat >>confdefs.h <<_ACEOF
6243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244 _ACEOF
6248 done
6251 for ac_header in libunwind-ia64.h
6253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6255 echo "$as_me:$LINENO: checking for $ac_header" >&5
6256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262 else
6263 # Is the header compilable?
6264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6266 cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h. */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 $ac_includes_default
6273 #include <$ac_header>
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_header_compiler=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_header_compiler=no
6304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6306 echo "${ECHO_T}$ac_header_compiler" >&6
6308 # Is the header present?
6309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
6318 _ACEOF
6319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null; then
6327 if test -s conftest.err; then
6328 ac_cpp_err=$ac_c_preproc_warn_flag
6329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6330 else
6331 ac_cpp_err=
6333 else
6334 ac_cpp_err=yes
6336 if test -z "$ac_cpp_err"; then
6337 ac_header_preproc=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342 ac_header_preproc=no
6344 rm -f conftest.err conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6346 echo "${ECHO_T}$ac_header_preproc" >&6
6348 # So? What about this header?
6349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6350 yes:no: )
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6355 ac_header_preproc=yes
6357 no:yes:* )
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6371 cat <<\_ASBOX
6372 ## ------------------------------------------ ##
6373 ## Report this to the AC_PACKAGE_NAME lists. ##
6374 ## ------------------------------------------ ##
6375 _ASBOX
6377 sed "s/^/$as_me: WARNING: /" >&2
6379 esac
6380 echo "$as_me:$LINENO: checking for $ac_header" >&5
6381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 eval "$as_ac_Header=\$ac_header_preproc"
6387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6392 cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394 _ACEOF
6398 done
6400 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6401 enable_libunwind=yes;
6406 if test x"$enable_libunwind" = xyes; then
6408 for ac_header in libunwind.h
6410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412 echo "$as_me:$LINENO: checking for $ac_header" >&5
6413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419 else
6420 # Is the header compilable?
6421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6430 #include <$ac_header>
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag"
6442 || test ! -s conftest.err'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; } &&
6448 { ac_try='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_header_compiler=yes
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_header_compiler=no
6461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6463 echo "${ECHO_T}$ac_header_compiler" >&6
6465 # Is the header present?
6466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 #include <$ac_header>
6475 _ACEOF
6476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } >/dev/null; then
6484 if test -s conftest.err; then
6485 ac_cpp_err=$ac_c_preproc_warn_flag
6486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487 else
6488 ac_cpp_err=
6490 else
6491 ac_cpp_err=yes
6493 if test -z "$ac_cpp_err"; then
6494 ac_header_preproc=yes
6495 else
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 ac_header_preproc=no
6501 rm -f conftest.err conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6503 echo "${ECHO_T}$ac_header_preproc" >&6
6505 # So? What about this header?
6506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6507 yes:no: )
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6512 ac_header_preproc=yes
6514 no:yes:* )
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6528 cat <<\_ASBOX
6529 ## ------------------------------------------ ##
6530 ## Report this to the AC_PACKAGE_NAME lists. ##
6531 ## ------------------------------------------ ##
6532 _ASBOX
6534 sed "s/^/$as_me: WARNING: /" >&2
6536 esac
6537 echo "$as_me:$LINENO: checking for $ac_header" >&5
6538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 eval "$as_ac_Header=\$ac_header_preproc"
6544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6549 cat >>confdefs.h <<_ACEOF
6550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551 _ACEOF
6555 done
6558 for ac_header in libunwind-ia64.h
6560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6569 else
6570 # Is the header compilable?
6571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6580 #include <$ac_header>
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_header_compiler=yes
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_header_compiler=no
6611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6613 echo "${ECHO_T}$ac_header_compiler" >&6
6615 # Is the header present?
6616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 #include <$ac_header>
6625 _ACEOF
6626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } >/dev/null; then
6634 if test -s conftest.err; then
6635 ac_cpp_err=$ac_c_preproc_warn_flag
6636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6637 else
6638 ac_cpp_err=
6640 else
6641 ac_cpp_err=yes
6643 if test -z "$ac_cpp_err"; then
6644 ac_header_preproc=yes
6645 else
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 ac_header_preproc=no
6651 rm -f conftest.err conftest.$ac_ext
6652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6653 echo "${ECHO_T}$ac_header_preproc" >&6
6655 # So? What about this header?
6656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6657 yes:no: )
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6662 ac_header_preproc=yes
6664 no:yes:* )
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6678 cat <<\_ASBOX
6679 ## ------------------------------------------ ##
6680 ## Report this to the AC_PACKAGE_NAME lists. ##
6681 ## ------------------------------------------ ##
6682 _ASBOX
6684 sed "s/^/$as_me: WARNING: /" >&2
6686 esac
6687 echo "$as_me:$LINENO: checking for $ac_header" >&5
6688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 eval "$as_ac_Header=\$ac_header_preproc"
6694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6699 cat >>confdefs.h <<_ACEOF
6700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6701 _ACEOF
6705 done
6708 cat >>confdefs.h <<\_ACEOF
6709 #define HAVE_LIBUNWIND 1
6710 _ACEOF
6712 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6713 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6714 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6717 # Profiling support.
6718 # Check whether --enable-profiling or --disable-profiling was given.
6719 if test "${enable_profiling+set}" = set; then
6720 enableval="$enable_profiling"
6721 case $enableval in
6722 yes | no)
6725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6726 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6727 { (exit 1); exit 1; }; } ;;
6728 esac
6729 else
6730 enable_profiling=no
6735 for ac_func in monstartup _mcleanup
6737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6738 echo "$as_me:$LINENO: checking for $ac_func" >&5
6739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6740 if eval "test \"\${$as_ac_var+set}\" = set"; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 cat >conftest.$ac_ext <<_ACEOF
6744 /* confdefs.h. */
6745 _ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6751 #define $ac_func innocuous_$ac_func
6753 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char $ac_func (); below.
6755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6756 <limits.h> exists even on freestanding compilers. */
6758 #ifdef __STDC__
6759 # include <limits.h>
6760 #else
6761 # include <assert.h>
6762 #endif
6764 #undef $ac_func
6766 /* Override any gcc2 internal prototype to avoid an error. */
6767 #ifdef __cplusplus
6768 extern "C"
6770 #endif
6771 /* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6773 char $ac_func ();
6774 /* The GNU C library defines this for functions which it implements
6775 to always fail with ENOSYS. Some functions are actually named
6776 something starting with __ and the normal name is an alias. */
6777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6778 choke me
6779 #else
6780 char (*f) () = $ac_func;
6781 #endif
6782 #ifdef __cplusplus
6784 #endif
6787 main ()
6789 return f != $ac_func;
6791 return 0;
6793 _ACEOF
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796 (eval $ac_link) 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -z "$ac_c_werror_flag"
6804 || test ! -s conftest.err'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest$ac_exeext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 eval "$as_ac_var=yes"
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6821 eval "$as_ac_var=no"
6823 rm -f conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6828 if test `eval echo '${'$as_ac_var'}'` = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6831 _ACEOF
6834 done
6836 echo "$as_me:$LINENO: checking for _etext" >&5
6837 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6838 if test "${ac_cv_var__etext+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 #include <stdlib.h>
6848 extern char _etext;
6851 main ()
6853 free (&_etext);
6855 return 0;
6857 _ACEOF
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860 (eval $ac_link) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 (eval $ac_try) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; } &&
6874 { ac_try='test -s conftest$ac_exeext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_cv_var__etext=yes
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_cv_var__etext=no
6887 rm -f conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6890 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6891 echo "${ECHO_T}$ac_cv_var__etext" >&6
6892 if test $ac_cv_var__etext = yes; then
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE__ETEXT 1
6896 _ACEOF
6899 if test "$enable_profiling" = yes ; then
6900 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6901 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6902 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6903 { (exit 1); exit 1; }; }
6905 PROFILE_CFLAGS=-pg
6906 OLD_CFLAGS="$CFLAGS"
6907 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6909 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6910 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6911 if test "${ac_cv_cc_supports_pg+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6922 main ()
6924 int x;
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_cc_supports_pg=yes
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_cc_supports_pg=no
6958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6960 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6961 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6963 if test $ac_cv_cc_supports_pg = no; then
6964 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6965 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6966 { (exit 1); exit 1; }; }
6969 CFLAGS="$OLD_CFLAGS"
6972 # --------------------- #
6973 # Checks for programs. #
6974 # --------------------- #
6976 for ac_prog in gawk mawk nawk awk
6978 # Extract the first word of "$ac_prog", so it can be a program name with args.
6979 set dummy $ac_prog; ac_word=$2
6980 echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6982 if test "${ac_cv_prog_AWK+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 if test -n "$AWK"; then
6986 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_AWK="$ac_prog"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7004 AWK=$ac_cv_prog_AWK
7005 if test -n "$AWK"; then
7006 echo "$as_me:$LINENO: result: $AWK" >&5
7007 echo "${ECHO_T}$AWK" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6
7013 test -n "$AWK" && break
7014 done
7016 # Find a good install program. We prefer a C program (faster),
7017 # so one script is as good as another. But avoid the broken or
7018 # incompatible versions:
7019 # SysV /etc/install, /usr/sbin/install
7020 # SunOS /usr/etc/install
7021 # IRIX /sbin/install
7022 # AIX /bin/install
7023 # AmigaOS /C/install, which installs bootblocks on floppy discs
7024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7027 # OS/2's system install, which has a completely different semantic
7028 # ./install, which can be erroneously created by make from ./install.sh.
7029 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7031 if test -z "$INSTALL"; then
7032 if test "${ac_cv_path_install+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 # Account for people who put trailing slashes in PATH elements.
7041 case $as_dir/ in
7042 ./ | .// | /cC/* | \
7043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7045 /usr/ucb/* ) ;;
7047 # OSF1 and SCO ODT 3.0 have their own names for install.
7048 # Don't use installbsd from OSF since it installs stuff as root
7049 # by default.
7050 for ac_prog in ginstall scoinst install; do
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7053 if test $ac_prog = install &&
7054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7055 # AIX install. It has an incompatible calling convention.
7057 elif test $ac_prog = install &&
7058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7059 # program-specific install script used by HP pwplus--don't use.
7061 else
7062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7063 break 3
7066 done
7067 done
7069 esac
7070 done
7074 if test "${ac_cv_path_install+set}" = set; then
7075 INSTALL=$ac_cv_path_install
7076 else
7077 # As a last resort, use the slow shell script. We don't cache a
7078 # path for INSTALL within a source directory, because that will
7079 # break other packages using the cache if that directory is
7080 # removed, or if the path is relative.
7081 INSTALL=$ac_install_sh
7084 echo "$as_me:$LINENO: result: $INSTALL" >&5
7085 echo "${ECHO_T}$INSTALL" >&6
7087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7088 # It thinks the first close brace ends the variable substitution.
7089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7095 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7096 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7097 LN_S=$as_ln_s
7098 if test "$LN_S" = "ln -s"; then
7099 echo "$as_me:$LINENO: result: yes" >&5
7100 echo "${ECHO_T}yes" >&6
7101 else
7102 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7103 echo "${ECHO_T}no, using $LN_S" >&6
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_RANLIB+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 if test -n "$RANLIB"; then
7115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7128 done
7129 done
7133 RANLIB=$ac_cv_prog_RANLIB
7134 if test -n "$RANLIB"; then
7135 echo "$as_me:$LINENO: result: $RANLIB" >&5
7136 echo "${ECHO_T}$RANLIB" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7143 if test -z "$ac_cv_prog_RANLIB"; then
7144 ac_ct_RANLIB=$RANLIB
7145 # Extract the first word of "ranlib", so it can be a program name with args.
7146 set dummy ranlib; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 if test -n "$ac_ct_RANLIB"; then
7153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_ac_ct_RANLIB="ranlib"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7166 done
7167 done
7169 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7173 if test -n "$ac_ct_RANLIB"; then
7174 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7175 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7176 else
7177 echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7181 RANLIB=$ac_ct_RANLIB
7182 else
7183 RANLIB="$ac_cv_prog_RANLIB"
7186 for ac_prog in 'bison -y' byacc
7188 # Extract the first word of "$ac_prog", so it can be a program name with args.
7189 set dummy $ac_prog; ac_word=$2
7190 echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7192 if test "${ac_cv_prog_YACC+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 if test -n "$YACC"; then
7196 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_YACC="$ac_prog"
7206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7209 done
7210 done
7214 YACC=$ac_cv_prog_YACC
7215 if test -n "$YACC"; then
7216 echo "$as_me:$LINENO: result: $YACC" >&5
7217 echo "${ECHO_T}$YACC" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6
7223 test -n "$YACC" && break
7224 done
7225 test -n "$YACC" || YACC="yacc"
7228 if test -n "$ac_tool_prefix"; then
7229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7230 set dummy ${ac_tool_prefix}ar; ac_word=$2
7231 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_prog_AR+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 if test -n "$AR"; then
7237 ac_cv_prog_AR="$AR" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_AR="${ac_tool_prefix}ar"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7255 AR=$ac_cv_prog_AR
7256 if test -n "$AR"; then
7257 echo "$as_me:$LINENO: result: $AR" >&5
7258 echo "${ECHO_T}$AR" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7265 if test -z "$ac_cv_prog_AR"; then
7266 ac_ct_AR=$AR
7267 # Extract the first word of "ar", so it can be a program name with args.
7268 set dummy ar; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 if test -n "$ac_ct_AR"; then
7275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_ac_ct_AR="ar"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7288 done
7289 done
7293 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7294 if test -n "$ac_ct_AR"; then
7295 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7296 echo "${ECHO_T}$ac_ct_AR" >&6
7297 else
7298 echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6
7302 AR=$ac_ct_AR
7303 else
7304 AR="$ac_cv_prog_AR"
7307 if test -n "$ac_tool_prefix"; then
7308 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7309 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7310 echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7312 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 if test -n "$DLLTOOL"; then
7316 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7329 done
7330 done
7334 DLLTOOL=$ac_cv_prog_DLLTOOL
7335 if test -n "$DLLTOOL"; then
7336 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7337 echo "${ECHO_T}$DLLTOOL" >&6
7338 else
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7344 if test -z "$ac_cv_prog_DLLTOOL"; then
7345 ac_ct_DLLTOOL=$DLLTOOL
7346 # Extract the first word of "dlltool", so it can be a program name with args.
7347 set dummy dlltool; ac_word=$2
7348 echo "$as_me:$LINENO: checking for $ac_word" >&5
7349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7350 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353 if test -n "$ac_ct_DLLTOOL"; then
7354 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7367 done
7368 done
7372 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7373 if test -n "$ac_ct_DLLTOOL"; then
7374 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7375 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7381 DLLTOOL=$ac_ct_DLLTOOL
7382 else
7383 DLLTOOL="$ac_cv_prog_DLLTOOL"
7386 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7388 set dummy ${ac_tool_prefix}windres; ac_word=$2
7389 echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391 if test "${ac_cv_prog_WINDRES+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394 if test -n "$WINDRES"; then
7395 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7408 done
7409 done
7413 WINDRES=$ac_cv_prog_WINDRES
7414 if test -n "$WINDRES"; then
7415 echo "$as_me:$LINENO: result: $WINDRES" >&5
7416 echo "${ECHO_T}$WINDRES" >&6
7417 else
7418 echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7423 if test -z "$ac_cv_prog_WINDRES"; then
7424 ac_ct_WINDRES=$WINDRES
7425 # Extract the first word of "windres", so it can be a program name with args.
7426 set dummy windres; ac_word=$2
7427 echo "$as_me:$LINENO: checking for $ac_word" >&5
7428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7429 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432 if test -n "$ac_ct_WINDRES"; then
7433 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_ac_ct_WINDRES="windres"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7446 done
7447 done
7451 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7452 if test -n "$ac_ct_WINDRES"; then
7453 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7454 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6
7460 WINDRES=$ac_ct_WINDRES
7461 else
7462 WINDRES="$ac_cv_prog_WINDRES"
7466 # Needed for GNU/Hurd.
7467 if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7469 set dummy ${ac_tool_prefix}mig; ac_word=$2
7470 echo "$as_me:$LINENO: checking for $ac_word" >&5
7471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7472 if test "${ac_cv_prog_MIG+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 if test -n "$MIG"; then
7476 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7489 done
7490 done
7494 MIG=$ac_cv_prog_MIG
7495 if test -n "$MIG"; then
7496 echo "$as_me:$LINENO: result: $MIG" >&5
7497 echo "${ECHO_T}$MIG" >&6
7498 else
7499 echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6
7504 if test -z "$ac_cv_prog_MIG"; then
7505 ac_ct_MIG=$MIG
7506 # Extract the first word of "mig", so it can be a program name with args.
7507 set dummy mig; ac_word=$2
7508 echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7510 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 if test -n "$ac_ct_MIG"; then
7514 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_ac_ct_MIG="mig"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7532 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7533 if test -n "$ac_ct_MIG"; then
7534 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7535 echo "${ECHO_T}$ac_ct_MIG" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7541 MIG=$ac_ct_MIG
7542 else
7543 MIG="$ac_cv_prog_MIG"
7547 # ---------------------- #
7548 # Checks for libraries. #
7549 # ---------------------- #
7551 # We might need to link with -lm; most simulators need it.
7553 echo "$as_me:$LINENO: checking for main in -lm" >&5
7554 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7555 if test "${ac_cv_lib_m_main+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lm $LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7569 main ()
7571 main ();
7573 return 0;
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578 (eval $ac_link) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag"
7586 || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_cv_lib_m_main=yes
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 ac_cv_lib_m_main=no
7605 rm -f conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607 LIBS=$ac_check_lib_save_LIBS
7609 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7610 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7611 if test $ac_cv_lib_m_main = yes; then
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_LIBM 1
7614 _ACEOF
7616 LIBS="-lm $LIBS"
7621 # We need to link with -lw to get `wctype' on Solaris before Solaris
7622 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7623 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7624 # is known to have this problem). Therefore we avoid libw if we can.
7625 echo "$as_me:$LINENO: checking for wctype" >&5
7626 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7627 if test "${ac_cv_func_wctype+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7638 #define wctype innocuous_wctype
7640 /* System header to define __stub macros and hopefully few prototypes,
7641 which can conflict with char wctype (); below.
7642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7643 <limits.h> exists even on freestanding compilers. */
7645 #ifdef __STDC__
7646 # include <limits.h>
7647 #else
7648 # include <assert.h>
7649 #endif
7651 #undef wctype
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 #ifdef __cplusplus
7655 extern "C"
7657 #endif
7658 /* We use char because int might match the return type of a gcc2
7659 builtin and then its argument prototype would still apply. */
7660 char wctype ();
7661 /* The GNU C library defines this for functions which it implements
7662 to always fail with ENOSYS. Some functions are actually named
7663 something starting with __ and the normal name is an alias. */
7664 #if defined (__stub_wctype) || defined (__stub___wctype)
7665 choke me
7666 #else
7667 char (*f) () = wctype;
7668 #endif
7669 #ifdef __cplusplus
7671 #endif
7674 main ()
7676 return f != wctype;
7678 return 0;
7680 _ACEOF
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683 (eval $ac_link) 2>conftest.er1
7684 ac_status=$?
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_func_wctype=yes
7704 else
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_cv_func_wctype=no
7710 rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7713 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7714 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7715 if test $ac_cv_func_wctype = yes; then
7717 else
7719 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7720 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7721 if test "${ac_cv_lib_w_wctype+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 ac_check_lib_save_LIBS=$LIBS
7725 LIBS="-lw $LIBS"
7726 cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h. */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 #ifdef __cplusplus
7735 extern "C"
7736 #endif
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7739 char wctype ();
7741 main ()
7743 wctype ();
7745 return 0;
7747 _ACEOF
7748 rm -f conftest.$ac_objext conftest$ac_exeext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest$ac_exeext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_cv_lib_w_wctype=yes
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ac_cv_lib_w_wctype=no
7777 rm -f conftest.err conftest.$ac_objext \
7778 conftest$ac_exeext conftest.$ac_ext
7779 LIBS=$ac_check_lib_save_LIBS
7781 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7782 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7783 if test $ac_cv_lib_w_wctype = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785 #define HAVE_LIBW 1
7786 _ACEOF
7788 LIBS="-lw $LIBS"
7795 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7796 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7797 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7798 if test "${ac_cv_search_gethostbyname+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 ac_func_search_save_LIBS=$LIBS
7802 ac_cv_search_gethostbyname=no
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h. */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7810 /* Override any gcc2 internal prototype to avoid an error. */
7811 #ifdef __cplusplus
7812 extern "C"
7813 #endif
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7816 char gethostbyname ();
7818 main ()
7820 gethostbyname ();
7822 return 0;
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_search_gethostbyname="none required"
7848 else
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7853 rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 if test "$ac_cv_search_gethostbyname" = no; then
7856 for ac_lib in nsl; do
7857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7858 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h. */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7865 /* Override any gcc2 internal prototype to avoid an error. */
7866 #ifdef __cplusplus
7867 extern "C"
7868 #endif
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871 char gethostbyname ();
7873 main ()
7875 gethostbyname ();
7877 return 0;
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_search_gethostbyname="-l$ac_lib"
7903 break
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7909 rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 done
7913 LIBS=$ac_func_search_save_LIBS
7915 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7916 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7917 if test "$ac_cv_search_gethostbyname" != no; then
7918 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7923 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7924 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7925 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7926 if test "${ac_cv_search_socketpair+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 ac_func_search_save_LIBS=$LIBS
7930 ac_cv_search_socketpair=no
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7938 /* Override any gcc2 internal prototype to avoid an error. */
7939 #ifdef __cplusplus
7940 extern "C"
7941 #endif
7942 /* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7944 char socketpair ();
7946 main ()
7948 socketpair ();
7950 return 0;
7952 _ACEOF
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_search_socketpair="none required"
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7981 rm -f conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983 if test "$ac_cv_search_socketpair" = no; then
7984 for ac_lib in socket; do
7985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7993 /* Override any gcc2 internal prototype to avoid an error. */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999 char socketpair ();
8001 main ()
8003 socketpair ();
8005 return 0;
8007 _ACEOF
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag"
8018 || test ! -s conftest.err'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try='test -s conftest$ac_exeext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_search_socketpair="-l$ac_lib"
8031 break
8032 else
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8037 rm -f conftest.err conftest.$ac_objext \
8038 conftest$ac_exeext conftest.$ac_ext
8039 done
8041 LIBS=$ac_func_search_save_LIBS
8043 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8044 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8045 if test "$ac_cv_search_socketpair" != no; then
8046 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8051 # For the TUI, we need enhanced curses functionality.
8053 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8054 # curses library because the latter might not provide all the
8055 # functionality we need. However, this leads to problems on systems
8056 # where the linker searches /usr/local/lib, but the compiler doesn't
8057 # search /usr/local/include, if ncurses is installed in /usr/local. A
8058 # default installation of ncurses on alpha*-dec-osf* will lead to such
8059 # a situation.
8060 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8061 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8062 if test "${ac_cv_search_waddstr+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 ac_func_search_save_LIBS=$LIBS
8066 ac_cv_search_waddstr=no
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8074 /* Override any gcc2 internal prototype to avoid an error. */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8080 char waddstr ();
8082 main ()
8084 waddstr ();
8086 return 0;
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 ac_cv_search_waddstr="none required"
8112 else
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8117 rm -f conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 if test "$ac_cv_search_waddstr" = no; then
8120 for ac_lib in ncurses cursesX curses; do
8121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8129 /* Override any gcc2 internal prototype to avoid an error. */
8130 #ifdef __cplusplus
8131 extern "C"
8132 #endif
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8135 char waddstr ();
8137 main ()
8139 waddstr ();
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146 (eval $ac_link) 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest$ac_exeext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_cv_search_waddstr="-l$ac_lib"
8167 break
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8173 rm -f conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 done
8177 LIBS=$ac_func_search_save_LIBS
8179 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8180 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8181 if test "$ac_cv_search_waddstr" != no; then
8182 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8187 # Since GDB uses Readline, we need termcap functionality. In many
8188 # cases this will be provided by the curses library, but some systems
8189 # have a seperate termcap library, or no curses library at all.
8191 case $host_os in
8192 cygwin*)
8193 if test -d $srcdir/libtermcap; then
8194 LIBS="../libtermcap/libtermcap.a $LIBS"
8195 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8196 fi ;;
8197 go32* | *djgpp*)
8198 ac_cv_search_tgetent="none required"
8200 *mingw32*)
8201 ac_cv_search_tgetent="none required"
8202 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8204 esac
8206 # These are the libraries checked by Readline.
8207 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8208 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8209 if test "${ac_cv_search_tgetent+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 ac_func_search_save_LIBS=$LIBS
8213 ac_cv_search_tgetent=no
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h. */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8221 /* Override any gcc2 internal prototype to avoid an error. */
8222 #ifdef __cplusplus
8223 extern "C"
8224 #endif
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8227 char tgetent ();
8229 main ()
8231 tgetent ();
8233 return 0;
8235 _ACEOF
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238 (eval $ac_link) 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_search_tgetent="none required"
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8264 rm -f conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8266 if test "$ac_cv_search_tgetent" = no; then
8267 for ac_lib in termcap tinfo curses ncurses; do
8268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8276 /* Override any gcc2 internal prototype to avoid an error. */
8277 #ifdef __cplusplus
8278 extern "C"
8279 #endif
8280 /* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8282 char tgetent ();
8284 main ()
8286 tgetent ();
8288 return 0;
8290 _ACEOF
8291 rm -f conftest.$ac_objext conftest$ac_exeext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293 (eval $ac_link) 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag"
8301 || test ! -s conftest.err'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest$ac_exeext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 ac_cv_search_tgetent="-l$ac_lib"
8314 break
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8320 rm -f conftest.err conftest.$ac_objext \
8321 conftest$ac_exeext conftest.$ac_ext
8322 done
8324 LIBS=$ac_func_search_save_LIBS
8326 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8327 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8328 if test "$ac_cv_search_tgetent" != no; then
8329 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8334 if test "$ac_cv_search_tgetent" = no; then
8335 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8336 echo "$as_me: error: no termcap library found" >&2;}
8337 { (exit 1); exit 1; }; }
8340 # ------------------------- #
8341 # Checks for header files. #
8342 # ------------------------- #
8349 ac_header_dirent=no
8350 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8351 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8352 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8353 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <$ac_hdr>
8367 main ()
8369 if ((DIR *) 0)
8370 return 0;
8372 return 0;
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 eval "$as_ac_Header=yes"
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8402 eval "$as_ac_Header=no"
8404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8411 _ACEOF
8413 ac_header_dirent=$ac_hdr; break
8416 done
8417 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8418 if test $ac_header_dirent = dirent.h; then
8419 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8420 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8421 if test "${ac_cv_search_opendir+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424 ac_func_search_save_LIBS=$LIBS
8425 ac_cv_search_opendir=no
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char opendir ();
8441 main ()
8443 opendir ();
8445 return 0;
8447 _ACEOF
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_search_opendir="none required"
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8476 rm -f conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 if test "$ac_cv_search_opendir" = no; then
8479 for ac_lib in dir; do
8480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char opendir ();
8496 main ()
8498 opendir ();
8500 return 0;
8502 _ACEOF
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8505 (eval $ac_link) 2>conftest.er1
8506 ac_status=$?
8507 grep -v '^ *+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } &&
8512 { ac_try='test -z "$ac_c_werror_flag"
8513 || test ! -s conftest.err'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest$ac_exeext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_search_opendir="-l$ac_lib"
8526 break
8527 else
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8532 rm -f conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 done
8536 LIBS=$ac_func_search_save_LIBS
8538 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8539 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8540 if test "$ac_cv_search_opendir" != no; then
8541 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8545 else
8546 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8547 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8548 if test "${ac_cv_search_opendir+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 ac_func_search_save_LIBS=$LIBS
8552 ac_cv_search_opendir=no
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8560 /* Override any gcc2 internal prototype to avoid an error. */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8566 char opendir ();
8568 main ()
8570 opendir ();
8572 return 0;
8574 _ACEOF
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_search_opendir="none required"
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8603 rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 if test "$ac_cv_search_opendir" = no; then
8606 for ac_lib in x; do
8607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8615 /* Override any gcc2 internal prototype to avoid an error. */
8616 #ifdef __cplusplus
8617 extern "C"
8618 #endif
8619 /* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8621 char opendir ();
8623 main ()
8625 opendir ();
8627 return 0;
8629 _ACEOF
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag"
8640 || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 (eval $ac_try) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_cv_search_opendir="-l$ac_lib"
8653 break
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8659 rm -f conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 done
8663 LIBS=$ac_func_search_save_LIBS
8665 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8666 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8667 if test "$ac_cv_search_opendir" != no; then
8668 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8674 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8675 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8676 if test "${ac_cv_header_stat_broken+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #include <sys/types.h>
8686 #include <sys/stat.h>
8688 #if defined(S_ISBLK) && defined(S_IFDIR)
8689 # if S_ISBLK (S_IFDIR)
8690 You lose.
8691 # endif
8692 #endif
8694 #if defined(S_ISBLK) && defined(S_IFCHR)
8695 # if S_ISBLK (S_IFCHR)
8696 You lose.
8697 # endif
8698 #endif
8700 #if defined(S_ISLNK) && defined(S_IFREG)
8701 # if S_ISLNK (S_IFREG)
8702 You lose.
8703 # endif
8704 #endif
8706 #if defined(S_ISSOCK) && defined(S_IFREG)
8707 # if S_ISSOCK (S_IFREG)
8708 You lose.
8709 # endif
8710 #endif
8712 _ACEOF
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 $EGREP "You lose" >/dev/null 2>&1; then
8715 ac_cv_header_stat_broken=yes
8716 else
8717 ac_cv_header_stat_broken=no
8719 rm -f conftest*
8722 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8723 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8724 if test $ac_cv_header_stat_broken = yes; then
8726 cat >>confdefs.h <<\_ACEOF
8727 #define STAT_MACROS_BROKEN 1
8728 _ACEOF
8732 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8733 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8734 if test "${ac_cv_header_stdc+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 #include <stdlib.h>
8744 #include <stdarg.h>
8745 #include <string.h>
8746 #include <float.h>
8749 main ()
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_header_stdc=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_header_stdc=no
8785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8787 if test $ac_cv_header_stdc = yes; then
8788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 #include <string.h>
8797 _ACEOF
8798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8799 $EGREP "memchr" >/dev/null 2>&1; then
8801 else
8802 ac_cv_header_stdc=no
8804 rm -f conftest*
8808 if test $ac_cv_header_stdc = yes; then
8809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8810 cat >conftest.$ac_ext <<_ACEOF
8811 /* confdefs.h. */
8812 _ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8816 #include <stdlib.h>
8818 _ACEOF
8819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8820 $EGREP "free" >/dev/null 2>&1; then
8822 else
8823 ac_cv_header_stdc=no
8825 rm -f conftest*
8829 if test $ac_cv_header_stdc = yes; then
8830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8831 if test "$cross_compiling" = yes; then
8833 else
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h. */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 #include <ctype.h>
8841 #if ((' ' & 0x0FF) == 0x020)
8842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8844 #else
8845 # define ISLOWER(c) \
8846 (('a' <= (c) && (c) <= 'i') \
8847 || ('j' <= (c) && (c) <= 'r') \
8848 || ('s' <= (c) && (c) <= 'z'))
8849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8850 #endif
8852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8854 main ()
8856 int i;
8857 for (i = 0; i < 256; i++)
8858 if (XOR (islower (i), ISLOWER (i))
8859 || toupper (i) != TOUPPER (i))
8860 exit(2);
8861 exit (0);
8863 _ACEOF
8864 rm -f conftest$ac_exeext
8865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8866 (eval $ac_link) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8876 else
8877 echo "$as_me: program exited with status $ac_status" >&5
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 ( exit $ac_status )
8882 ac_cv_header_stdc=no
8884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8889 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8890 if test $ac_cv_header_stdc = yes; then
8892 cat >>confdefs.h <<\_ACEOF
8893 #define STDC_HEADERS 1
8894 _ACEOF
8899 for ac_header in nlist.h
8901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo "$as_me:$LINENO: checking for $ac_header" >&5
8904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8910 else
8911 # Is the header compilable?
8912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8921 #include <$ac_header>
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag"
8933 || test ! -s conftest.err'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest.$ac_objext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 (eval $ac_try) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_header_compiler=yes
8946 else
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8950 ac_header_compiler=no
8952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8954 echo "${ECHO_T}$ac_header_compiler" >&6
8956 # Is the header present?
8957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 #include <$ac_header>
8966 _ACEOF
8967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } >/dev/null; then
8975 if test -s conftest.err; then
8976 ac_cpp_err=$ac_c_preproc_warn_flag
8977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8978 else
8979 ac_cpp_err=
8981 else
8982 ac_cpp_err=yes
8984 if test -z "$ac_cpp_err"; then
8985 ac_header_preproc=yes
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_header_preproc=no
8992 rm -f conftest.err conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8994 echo "${ECHO_T}$ac_header_preproc" >&6
8996 # So? What about this header?
8997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8998 yes:no: )
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9003 ac_header_preproc=yes
9005 no:yes:* )
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9019 cat <<\_ASBOX
9020 ## ------------------------------------------ ##
9021 ## Report this to the AC_PACKAGE_NAME lists. ##
9022 ## ------------------------------------------ ##
9023 _ASBOX
9025 sed "s/^/$as_me: WARNING: /" >&2
9027 esac
9028 echo "$as_me:$LINENO: checking for $ac_header" >&5
9029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033 eval "$as_ac_Header=\$ac_header_preproc"
9035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9040 cat >>confdefs.h <<_ACEOF
9041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9042 _ACEOF
9046 done
9049 for ac_header in link.h
9051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057 cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h. */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9063 #if HAVE_SYS_TYPES_H
9064 # include <sys/types.h>
9065 #endif
9066 #if HAVE_NLIST_H
9067 # include <nlist.h>
9068 #endif
9071 #include <$ac_header>
9072 _ACEOF
9073 rm -f conftest.$ac_objext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9075 (eval $ac_compile) 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -z "$ac_c_werror_flag"
9083 || test ! -s conftest.err'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 (eval $ac_try) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; } &&
9089 { ac_try='test -s conftest.$ac_objext'
9090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 eval "$as_ac_Header=yes"
9096 else
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 eval "$as_ac_Header=no"
9102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9107 cat >>confdefs.h <<_ACEOF
9108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9109 _ACEOF
9113 done
9116 for ac_header in machine/reg.h
9118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9120 echo "$as_me:$LINENO: checking for $ac_header" >&5
9121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9127 else
9128 # Is the header compilable?
9129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h. */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 $ac_includes_default
9138 #include <$ac_header>
9139 _ACEOF
9140 rm -f conftest.$ac_objext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
9149 { ac_try='test -z "$ac_c_werror_flag"
9150 || test ! -s conftest.err'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest.$ac_objext'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 (eval $ac_try) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_header_compiler=yes
9163 else
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 ac_header_compiler=no
9169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171 echo "${ECHO_T}$ac_header_compiler" >&6
9173 # Is the header present?
9174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 #include <$ac_header>
9183 _ACEOF
9184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9186 ac_status=$?
9187 grep -v '^ *+' conftest.er1 >conftest.err
9188 rm -f conftest.er1
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } >/dev/null; then
9192 if test -s conftest.err; then
9193 ac_cpp_err=$ac_c_preproc_warn_flag
9194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9195 else
9196 ac_cpp_err=
9198 else
9199 ac_cpp_err=yes
9201 if test -z "$ac_cpp_err"; then
9202 ac_header_preproc=yes
9203 else
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 ac_header_preproc=no
9209 rm -f conftest.err conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9211 echo "${ECHO_T}$ac_header_preproc" >&6
9213 # So? What about this header?
9214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9215 yes:no: )
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9220 ac_header_preproc=yes
9222 no:yes:* )
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9236 cat <<\_ASBOX
9237 ## ------------------------------------------ ##
9238 ## Report this to the AC_PACKAGE_NAME lists. ##
9239 ## ------------------------------------------ ##
9240 _ASBOX
9242 sed "s/^/$as_me: WARNING: /" >&2
9244 esac
9245 echo "$as_me:$LINENO: checking for $ac_header" >&5
9246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250 eval "$as_ac_Header=\$ac_header_preproc"
9252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9257 cat >>confdefs.h <<_ACEOF
9258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9259 _ACEOF
9263 done
9267 for ac_header in poll.h sys/poll.h
9269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9271 echo "$as_me:$LINENO: checking for $ac_header" >&5
9272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9278 else
9279 # Is the header compilable?
9280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 #include <$ac_header>
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9293 (eval $ac_compile) 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try='test -z "$ac_c_werror_flag"
9301 || test ! -s conftest.err'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try='test -s conftest.$ac_objext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_header_compiler=yes
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9318 ac_header_compiler=no
9320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9322 echo "${ECHO_T}$ac_header_compiler" >&6
9324 # Is the header present?
9325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9327 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h. */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 #include <$ac_header>
9334 _ACEOF
9335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } >/dev/null; then
9343 if test -s conftest.err; then
9344 ac_cpp_err=$ac_c_preproc_warn_flag
9345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9346 else
9347 ac_cpp_err=
9349 else
9350 ac_cpp_err=yes
9352 if test -z "$ac_cpp_err"; then
9353 ac_header_preproc=yes
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9358 ac_header_preproc=no
9360 rm -f conftest.err conftest.$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9362 echo "${ECHO_T}$ac_header_preproc" >&6
9364 # So? What about this header?
9365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9366 yes:no: )
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9371 ac_header_preproc=yes
9373 no:yes:* )
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9387 cat <<\_ASBOX
9388 ## ------------------------------------------ ##
9389 ## Report this to the AC_PACKAGE_NAME lists. ##
9390 ## ------------------------------------------ ##
9391 _ASBOX
9393 sed "s/^/$as_me: WARNING: /" >&2
9395 esac
9396 echo "$as_me:$LINENO: checking for $ac_header" >&5
9397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401 eval "$as_ac_Header=\$ac_header_preproc"
9403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9408 cat >>confdefs.h <<_ACEOF
9409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9410 _ACEOF
9414 done
9419 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9423 echo "$as_me:$LINENO: checking for $ac_header" >&5
9424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9430 else
9431 # Is the header compilable?
9432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 $ac_includes_default
9441 #include <$ac_header>
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_header_compiler=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_header_compiler=no
9472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9474 echo "${ECHO_T}$ac_header_compiler" >&6
9476 # Is the header present?
9477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 #include <$ac_header>
9486 _ACEOF
9487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } >/dev/null; then
9495 if test -s conftest.err; then
9496 ac_cpp_err=$ac_c_preproc_warn_flag
9497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9498 else
9499 ac_cpp_err=
9501 else
9502 ac_cpp_err=yes
9504 if test -z "$ac_cpp_err"; then
9505 ac_header_preproc=yes
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 ac_header_preproc=no
9512 rm -f conftest.err conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9514 echo "${ECHO_T}$ac_header_preproc" >&6
9516 # So? What about this header?
9517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9518 yes:no: )
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9523 ac_header_preproc=yes
9525 no:yes:* )
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9539 cat <<\_ASBOX
9540 ## ------------------------------------------ ##
9541 ## Report this to the AC_PACKAGE_NAME lists. ##
9542 ## ------------------------------------------ ##
9543 _ASBOX
9545 sed "s/^/$as_me: WARNING: /" >&2
9547 esac
9548 echo "$as_me:$LINENO: checking for $ac_header" >&5
9549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 eval "$as_ac_Header=\$ac_header_preproc"
9555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9560 cat >>confdefs.h <<_ACEOF
9561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9562 _ACEOF
9566 done
9569 for ac_header in stddef.h
9571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9573 echo "$as_me:$LINENO: checking for $ac_header" >&5
9574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9580 else
9581 # Is the header compilable?
9582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 $ac_includes_default
9591 #include <$ac_header>
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_header_compiler=yes
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 ac_header_compiler=no
9622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624 echo "${ECHO_T}$ac_header_compiler" >&6
9626 # Is the header present?
9627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 #include <$ac_header>
9636 _ACEOF
9637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } >/dev/null; then
9645 if test -s conftest.err; then
9646 ac_cpp_err=$ac_c_preproc_warn_flag
9647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9648 else
9649 ac_cpp_err=
9651 else
9652 ac_cpp_err=yes
9654 if test -z "$ac_cpp_err"; then
9655 ac_header_preproc=yes
9656 else
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_header_preproc=no
9662 rm -f conftest.err conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664 echo "${ECHO_T}$ac_header_preproc" >&6
9666 # So? What about this header?
9667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 yes:no: )
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673 ac_header_preproc=yes
9675 no:yes:* )
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9689 cat <<\_ASBOX
9690 ## ------------------------------------------ ##
9691 ## Report this to the AC_PACKAGE_NAME lists. ##
9692 ## ------------------------------------------ ##
9693 _ASBOX
9695 sed "s/^/$as_me: WARNING: /" >&2
9697 esac
9698 echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 eval "$as_ac_Header=\$ac_header_preproc"
9705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9710 cat >>confdefs.h <<_ACEOF
9711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9712 _ACEOF
9716 done
9719 for ac_header in stdlib.h
9721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723 echo "$as_me:$LINENO: checking for $ac_header" >&5
9724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9730 else
9731 # Is the header compilable?
9732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 $ac_includes_default
9741 #include <$ac_header>
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_header_compiler=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9786 _ACEOF
9787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev/null; then
9795 if test -s conftest.err; then
9796 ac_cpp_err=$ac_c_preproc_warn_flag
9797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9798 else
9799 ac_cpp_err=
9801 else
9802 ac_cpp_err=yes
9804 if test -z "$ac_cpp_err"; then
9805 ac_header_preproc=yes
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_header_preproc=no
9812 rm -f conftest.err conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9818 yes:no: )
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc=yes
9825 no:yes:* )
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9839 cat <<\_ASBOX
9840 ## ------------------------------------------ ##
9841 ## Report this to the AC_PACKAGE_NAME lists. ##
9842 ## ------------------------------------------ ##
9843 _ASBOX
9845 sed "s/^/$as_me: WARNING: /" >&2
9847 esac
9848 echo "$as_me:$LINENO: checking for $ac_header" >&5
9849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 eval "$as_ac_Header=\$ac_header_preproc"
9855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860 cat >>confdefs.h <<_ACEOF
9861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9862 _ACEOF
9866 done
9869 for ac_header in stdint.h
9871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9873 echo "$as_me:$LINENO: checking for $ac_header" >&5
9874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9880 else
9881 # Is the header compilable?
9882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 $ac_includes_default
9891 #include <$ac_header>
9892 _ACEOF
9893 rm -f conftest.$ac_objext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag"
9903 || test ! -s conftest.err'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest.$ac_objext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_header_compiler=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_header_compiler=no
9922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9924 echo "${ECHO_T}$ac_header_compiler" >&6
9926 # Is the header present?
9927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 #include <$ac_header>
9936 _ACEOF
9937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } >/dev/null; then
9945 if test -s conftest.err; then
9946 ac_cpp_err=$ac_c_preproc_warn_flag
9947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9948 else
9949 ac_cpp_err=
9951 else
9952 ac_cpp_err=yes
9954 if test -z "$ac_cpp_err"; then
9955 ac_header_preproc=yes
9956 else
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_header_preproc=no
9962 rm -f conftest.err conftest.$ac_ext
9963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9964 echo "${ECHO_T}$ac_header_preproc" >&6
9966 # So? What about this header?
9967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9968 yes:no: )
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9973 ac_header_preproc=yes
9975 no:yes:* )
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9989 cat <<\_ASBOX
9990 ## ------------------------------------------ ##
9991 ## Report this to the AC_PACKAGE_NAME lists. ##
9992 ## ------------------------------------------ ##
9993 _ASBOX
9995 sed "s/^/$as_me: WARNING: /" >&2
9997 esac
9998 echo "$as_me:$LINENO: checking for $ac_header" >&5
9999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 eval "$as_ac_Header=\$ac_header_preproc"
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10010 cat >>confdefs.h <<_ACEOF
10011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10012 _ACEOF
10016 done
10021 for ac_header in string.h memory.h strings.h
10023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10025 echo "$as_me:$LINENO: checking for $ac_header" >&5
10026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10032 else
10033 # Is the header compilable?
10034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 $ac_includes_default
10043 #include <$ac_header>
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_header_compiler=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_header_compiler=no
10074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10076 echo "${ECHO_T}$ac_header_compiler" >&6
10078 # Is the header present?
10079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 #include <$ac_header>
10088 _ACEOF
10089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } >/dev/null; then
10097 if test -s conftest.err; then
10098 ac_cpp_err=$ac_c_preproc_warn_flag
10099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10100 else
10101 ac_cpp_err=
10103 else
10104 ac_cpp_err=yes
10106 if test -z "$ac_cpp_err"; then
10107 ac_header_preproc=yes
10108 else
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10112 ac_header_preproc=no
10114 rm -f conftest.err conftest.$ac_ext
10115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10116 echo "${ECHO_T}$ac_header_preproc" >&6
10118 # So? What about this header?
10119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10120 yes:no: )
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10125 ac_header_preproc=yes
10127 no:yes:* )
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10141 cat <<\_ASBOX
10142 ## ------------------------------------------ ##
10143 ## Report this to the AC_PACKAGE_NAME lists. ##
10144 ## ------------------------------------------ ##
10145 _ASBOX
10147 sed "s/^/$as_me: WARNING: /" >&2
10149 esac
10150 echo "$as_me:$LINENO: checking for $ac_header" >&5
10151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155 eval "$as_ac_Header=\$ac_header_preproc"
10157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10162 cat >>confdefs.h <<_ACEOF
10163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10164 _ACEOF
10168 done
10171 for ac_header in sys/fault.h
10173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10175 echo "$as_me:$LINENO: checking for $ac_header" >&5
10176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10182 else
10183 # Is the header compilable?
10184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 $ac_includes_default
10193 #include <$ac_header>
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag"
10205 || test ! -s conftest.err'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest.$ac_objext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 ac_header_compiler=yes
10218 else
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 ac_header_compiler=no
10224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10226 echo "${ECHO_T}$ac_header_compiler" >&6
10228 # Is the header present?
10229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 #include <$ac_header>
10238 _ACEOF
10239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } >/dev/null; then
10247 if test -s conftest.err; then
10248 ac_cpp_err=$ac_c_preproc_warn_flag
10249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10250 else
10251 ac_cpp_err=
10253 else
10254 ac_cpp_err=yes
10256 if test -z "$ac_cpp_err"; then
10257 ac_header_preproc=yes
10258 else
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_header_preproc=no
10264 rm -f conftest.err conftest.$ac_ext
10265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10266 echo "${ECHO_T}$ac_header_preproc" >&6
10268 # So? What about this header?
10269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10270 yes:no: )
10271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10275 ac_header_preproc=yes
10277 no:yes:* )
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10291 cat <<\_ASBOX
10292 ## ------------------------------------------ ##
10293 ## Report this to the AC_PACKAGE_NAME lists. ##
10294 ## ------------------------------------------ ##
10295 _ASBOX
10297 sed "s/^/$as_me: WARNING: /" >&2
10299 esac
10300 echo "$as_me:$LINENO: checking for $ac_header" >&5
10301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 eval "$as_ac_Header=\$ac_header_preproc"
10307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10312 cat >>confdefs.h <<_ACEOF
10313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10314 _ACEOF
10318 done
10321 for ac_header in sys/file.h
10323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10325 echo "$as_me:$LINENO: checking for $ac_header" >&5
10326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10332 else
10333 # Is the header compilable?
10334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
10343 #include <$ac_header>
10344 _ACEOF
10345 rm -f conftest.$ac_objext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10347 (eval $ac_compile) 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag"
10355 || test ! -s conftest.err'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_header_compiler=yes
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_header_compiler=no
10374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10376 echo "${ECHO_T}$ac_header_compiler" >&6
10378 # Is the header present?
10379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 #include <$ac_header>
10388 _ACEOF
10389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } >/dev/null; then
10397 if test -s conftest.err; then
10398 ac_cpp_err=$ac_c_preproc_warn_flag
10399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10400 else
10401 ac_cpp_err=
10403 else
10404 ac_cpp_err=yes
10406 if test -z "$ac_cpp_err"; then
10407 ac_header_preproc=yes
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ac_header_preproc=no
10414 rm -f conftest.err conftest.$ac_ext
10415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10416 echo "${ECHO_T}$ac_header_preproc" >&6
10418 # So? What about this header?
10419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10420 yes:no: )
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10425 ac_header_preproc=yes
10427 no:yes:* )
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10441 cat <<\_ASBOX
10442 ## ------------------------------------------ ##
10443 ## Report this to the AC_PACKAGE_NAME lists. ##
10444 ## ------------------------------------------ ##
10445 _ASBOX
10447 sed "s/^/$as_me: WARNING: /" >&2
10449 esac
10450 echo "$as_me:$LINENO: checking for $ac_header" >&5
10451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 eval "$as_ac_Header=\$ac_header_preproc"
10457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10462 cat >>confdefs.h <<_ACEOF
10463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10464 _ACEOF
10468 done
10471 for ac_header in sys/filio.h
10473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10475 echo "$as_me:$LINENO: checking for $ac_header" >&5
10476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10482 else
10483 # Is the header compilable?
10484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10486 cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h. */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 $ac_includes_default
10493 #include <$ac_header>
10494 _ACEOF
10495 rm -f conftest.$ac_objext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>conftest.er1
10498 ac_status=$?
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } &&
10504 { ac_try='test -z "$ac_c_werror_flag"
10505 || test ! -s conftest.err'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest.$ac_objext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_header_compiler=yes
10518 else
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_header_compiler=no
10524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10526 echo "${ECHO_T}$ac_header_compiler" >&6
10528 # Is the header present?
10529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 #include <$ac_header>
10538 _ACEOF
10539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null; then
10547 if test -s conftest.err; then
10548 ac_cpp_err=$ac_c_preproc_warn_flag
10549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10550 else
10551 ac_cpp_err=
10553 else
10554 ac_cpp_err=yes
10556 if test -z "$ac_cpp_err"; then
10557 ac_header_preproc=yes
10558 else
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_header_preproc=no
10564 rm -f conftest.err conftest.$ac_ext
10565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10566 echo "${ECHO_T}$ac_header_preproc" >&6
10568 # So? What about this header?
10569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10570 yes:no: )
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10575 ac_header_preproc=yes
10577 no:yes:* )
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10591 cat <<\_ASBOX
10592 ## ------------------------------------------ ##
10593 ## Report this to the AC_PACKAGE_NAME lists. ##
10594 ## ------------------------------------------ ##
10595 _ASBOX
10597 sed "s/^/$as_me: WARNING: /" >&2
10599 esac
10600 echo "$as_me:$LINENO: checking for $ac_header" >&5
10601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605 eval "$as_ac_Header=\$ac_header_preproc"
10607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10614 _ACEOF
10618 done
10621 for ac_header in sys/ioctl.h
10623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10625 echo "$as_me:$LINENO: checking for $ac_header" >&5
10626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10632 else
10633 # Is the header compilable?
10634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h. */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 $ac_includes_default
10643 #include <$ac_header>
10644 _ACEOF
10645 rm -f conftest.$ac_objext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647 (eval $ac_compile) 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag"
10655 || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest.$ac_objext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_header_compiler=yes
10668 else
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_header_compiler=no
10674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10676 echo "${ECHO_T}$ac_header_compiler" >&6
10678 # Is the header present?
10679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 #include <$ac_header>
10688 _ACEOF
10689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } >/dev/null; then
10697 if test -s conftest.err; then
10698 ac_cpp_err=$ac_c_preproc_warn_flag
10699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10700 else
10701 ac_cpp_err=
10703 else
10704 ac_cpp_err=yes
10706 if test -z "$ac_cpp_err"; then
10707 ac_header_preproc=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_header_preproc=no
10714 rm -f conftest.err conftest.$ac_ext
10715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10716 echo "${ECHO_T}$ac_header_preproc" >&6
10718 # So? What about this header?
10719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10720 yes:no: )
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10725 ac_header_preproc=yes
10727 no:yes:* )
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10741 cat <<\_ASBOX
10742 ## ------------------------------------------ ##
10743 ## Report this to the AC_PACKAGE_NAME lists. ##
10744 ## ------------------------------------------ ##
10745 _ASBOX
10747 sed "s/^/$as_me: WARNING: /" >&2
10749 esac
10750 echo "$as_me:$LINENO: checking for $ac_header" >&5
10751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755 eval "$as_ac_Header=\$ac_header_preproc"
10757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10762 cat >>confdefs.h <<_ACEOF
10763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10764 _ACEOF
10768 done
10771 for ac_header in sys/param.h
10773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10775 echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10782 else
10783 # Is the header compilable?
10784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h. */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 $ac_includes_default
10793 #include <$ac_header>
10794 _ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10797 (eval $ac_compile) 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_header_compiler=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_header_compiler=no
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10826 echo "${ECHO_T}$ac_header_compiler" >&6
10828 # Is the header present?
10829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 #include <$ac_header>
10838 _ACEOF
10839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } >/dev/null; then
10847 if test -s conftest.err; then
10848 ac_cpp_err=$ac_c_preproc_warn_flag
10849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10850 else
10851 ac_cpp_err=
10853 else
10854 ac_cpp_err=yes
10856 if test -z "$ac_cpp_err"; then
10857 ac_header_preproc=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_header_preproc=no
10864 rm -f conftest.err conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866 echo "${ECHO_T}$ac_header_preproc" >&6
10868 # So? What about this header?
10869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10870 yes:no: )
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10875 ac_header_preproc=yes
10877 no:yes:* )
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10891 cat <<\_ASBOX
10892 ## ------------------------------------------ ##
10893 ## Report this to the AC_PACKAGE_NAME lists. ##
10894 ## ------------------------------------------ ##
10895 _ASBOX
10897 sed "s/^/$as_me: WARNING: /" >&2
10899 esac
10900 echo "$as_me:$LINENO: checking for $ac_header" >&5
10901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 eval "$as_ac_Header=\$ac_header_preproc"
10907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10914 _ACEOF
10918 done
10921 for ac_header in sys/proc.h
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 echo "$as_me:$LINENO: checking for $ac_header" >&5
10925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 #if HAVE_SYS_PARAM_H
10936 # include <sys/param.h>
10937 #endif
10940 #include <$ac_header>
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 eval "$as_ac_Header=yes"
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 eval "$as_ac_Header=no"
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10978 _ACEOF
10982 done
10985 for ac_header in sys/procfs.h
10987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10989 echo "$as_me:$LINENO: checking for $ac_header" >&5
10990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10996 else
10997 # Is the header compilable?
10998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 $ac_includes_default
11007 #include <$ac_header>
11008 _ACEOF
11009 rm -f conftest.$ac_objext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_header_compiler=yes
11032 else
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_header_compiler=no
11038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11040 echo "${ECHO_T}$ac_header_compiler" >&6
11042 # Is the header present?
11043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051 #include <$ac_header>
11052 _ACEOF
11053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } >/dev/null; then
11061 if test -s conftest.err; then
11062 ac_cpp_err=$ac_c_preproc_warn_flag
11063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11064 else
11065 ac_cpp_err=
11067 else
11068 ac_cpp_err=yes
11070 if test -z "$ac_cpp_err"; then
11071 ac_header_preproc=yes
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 ac_header_preproc=no
11078 rm -f conftest.err conftest.$ac_ext
11079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11080 echo "${ECHO_T}$ac_header_preproc" >&6
11082 # So? What about this header?
11083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11084 yes:no: )
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11089 ac_header_preproc=yes
11091 no:yes:* )
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11105 cat <<\_ASBOX
11106 ## ------------------------------------------ ##
11107 ## Report this to the AC_PACKAGE_NAME lists. ##
11108 ## ------------------------------------------ ##
11109 _ASBOX
11111 sed "s/^/$as_me: WARNING: /" >&2
11113 esac
11114 echo "$as_me:$LINENO: checking for $ac_header" >&5
11115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 eval "$as_ac_Header=\$ac_header_preproc"
11121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 _ACEOF
11132 done
11136 for ac_header in sys/ptrace.h ptrace.h
11138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11140 echo "$as_me:$LINENO: checking for $ac_header" >&5
11141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11147 else
11148 # Is the header compilable?
11149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11151 cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h. */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 $ac_includes_default
11158 #include <$ac_header>
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_header_compiler=yes
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_header_compiler=no
11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11191 echo "${ECHO_T}$ac_header_compiler" >&6
11193 # Is the header present?
11194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <$ac_header>
11203 _ACEOF
11204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } >/dev/null; then
11212 if test -s conftest.err; then
11213 ac_cpp_err=$ac_c_preproc_warn_flag
11214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11215 else
11216 ac_cpp_err=
11218 else
11219 ac_cpp_err=yes
11221 if test -z "$ac_cpp_err"; then
11222 ac_header_preproc=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 ac_header_preproc=no
11229 rm -f conftest.err conftest.$ac_ext
11230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11231 echo "${ECHO_T}$ac_header_preproc" >&6
11233 # So? What about this header?
11234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11235 yes:no: )
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11240 ac_header_preproc=yes
11242 no:yes:* )
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11256 cat <<\_ASBOX
11257 ## ------------------------------------------ ##
11258 ## Report this to the AC_PACKAGE_NAME lists. ##
11259 ## ------------------------------------------ ##
11260 _ASBOX
11262 sed "s/^/$as_me: WARNING: /" >&2
11264 esac
11265 echo "$as_me:$LINENO: checking for $ac_header" >&5
11266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270 eval "$as_ac_Header=\$ac_header_preproc"
11272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11277 cat >>confdefs.h <<_ACEOF
11278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 _ACEOF
11283 done
11287 for ac_header in sys/reg.h sys/debugreg.h
11289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo "$as_me:$LINENO: checking for $ac_header" >&5
11292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11298 else
11299 # Is the header compilable?
11300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11309 #include <$ac_header>
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag"
11321 || test ! -s conftest.err'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 ac_header_compiler=yes
11334 else
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ac_header_compiler=no
11340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342 echo "${ECHO_T}$ac_header_compiler" >&6
11344 # Is the header present?
11345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h. */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 #include <$ac_header>
11354 _ACEOF
11355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } >/dev/null; then
11363 if test -s conftest.err; then
11364 ac_cpp_err=$ac_c_preproc_warn_flag
11365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366 else
11367 ac_cpp_err=
11369 else
11370 ac_cpp_err=yes
11372 if test -z "$ac_cpp_err"; then
11373 ac_header_preproc=yes
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 ac_header_preproc=no
11380 rm -f conftest.err conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11382 echo "${ECHO_T}$ac_header_preproc" >&6
11384 # So? What about this header?
11385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386 yes:no: )
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11391 ac_header_preproc=yes
11393 no:yes:* )
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11407 cat <<\_ASBOX
11408 ## ------------------------------------------ ##
11409 ## Report this to the AC_PACKAGE_NAME lists. ##
11410 ## ------------------------------------------ ##
11411 _ASBOX
11413 sed "s/^/$as_me: WARNING: /" >&2
11415 esac
11416 echo "$as_me:$LINENO: checking for $ac_header" >&5
11417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 eval "$as_ac_Header=\$ac_header_preproc"
11423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430 _ACEOF
11434 done
11437 for ac_header in sys/select.h
11439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11441 echo "$as_me:$LINENO: checking for $ac_header" >&5
11442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11448 else
11449 # Is the header compilable?
11450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 #include <$ac_header>
11460 _ACEOF
11461 rm -f conftest.$ac_objext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_header_compiler=yes
11484 else
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 ac_header_compiler=no
11490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492 echo "${ECHO_T}$ac_header_compiler" >&6
11494 # Is the header present?
11495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include <$ac_header>
11504 _ACEOF
11505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null; then
11513 if test -s conftest.err; then
11514 ac_cpp_err=$ac_c_preproc_warn_flag
11515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11516 else
11517 ac_cpp_err=
11519 else
11520 ac_cpp_err=yes
11522 if test -z "$ac_cpp_err"; then
11523 ac_header_preproc=yes
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ac_header_preproc=no
11530 rm -f conftest.err conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11532 echo "${ECHO_T}$ac_header_preproc" >&6
11534 # So? What about this header?
11535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11536 yes:no: )
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11541 ac_header_preproc=yes
11543 no:yes:* )
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11557 cat <<\_ASBOX
11558 ## ------------------------------------------ ##
11559 ## Report this to the AC_PACKAGE_NAME lists. ##
11560 ## ------------------------------------------ ##
11561 _ASBOX
11563 sed "s/^/$as_me: WARNING: /" >&2
11565 esac
11566 echo "$as_me:$LINENO: checking for $ac_header" >&5
11567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571 eval "$as_ac_Header=\$ac_header_preproc"
11573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11578 cat >>confdefs.h <<_ACEOF
11579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11580 _ACEOF
11584 done
11587 for ac_header in sys/syscall.h
11589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11591 echo "$as_me:$LINENO: checking for $ac_header" >&5
11592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11598 else
11599 # Is the header compilable?
11600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 $ac_includes_default
11609 #include <$ac_header>
11610 _ACEOF
11611 rm -f conftest.$ac_objext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613 (eval $ac_compile) 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_c_werror_flag"
11621 || test ! -s conftest.err'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest.$ac_objext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_header_compiler=yes
11634 else
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_header_compiler=no
11640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6
11644 # Is the header present?
11645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11654 _ACEOF
11655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } >/dev/null; then
11663 if test -s conftest.err; then
11664 ac_cpp_err=$ac_c_preproc_warn_flag
11665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11666 else
11667 ac_cpp_err=
11669 else
11670 ac_cpp_err=yes
11672 if test -z "$ac_cpp_err"; then
11673 ac_header_preproc=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_header_preproc=no
11680 rm -f conftest.err conftest.$ac_ext
11681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682 echo "${ECHO_T}$ac_header_preproc" >&6
11684 # So? What about this header?
11685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 yes:no: )
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691 ac_header_preproc=yes
11693 no:yes:* )
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11707 cat <<\_ASBOX
11708 ## ------------------------------------------ ##
11709 ## Report this to the AC_PACKAGE_NAME lists. ##
11710 ## ------------------------------------------ ##
11711 _ASBOX
11713 sed "s/^/$as_me: WARNING: /" >&2
11715 esac
11716 echo "$as_me:$LINENO: checking for $ac_header" >&5
11717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 eval "$as_ac_Header=\$ac_header_preproc"
11723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11730 _ACEOF
11734 done
11737 for ac_header in sys/types.h
11739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11741 echo "$as_me:$LINENO: checking for $ac_header" >&5
11742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11748 else
11749 # Is the header compilable?
11750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11759 #include <$ac_header>
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_header_compiler=yes
11784 else
11785 echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11788 ac_header_compiler=no
11790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11792 echo "${ECHO_T}$ac_header_compiler" >&6
11794 # Is the header present?
11795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11797 cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h. */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 #include <$ac_header>
11804 _ACEOF
11805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } >/dev/null; then
11813 if test -s conftest.err; then
11814 ac_cpp_err=$ac_c_preproc_warn_flag
11815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11816 else
11817 ac_cpp_err=
11819 else
11820 ac_cpp_err=yes
11822 if test -z "$ac_cpp_err"; then
11823 ac_header_preproc=yes
11824 else
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11828 ac_header_preproc=no
11830 rm -f conftest.err conftest.$ac_ext
11831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11832 echo "${ECHO_T}$ac_header_preproc" >&6
11834 # So? What about this header?
11835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11836 yes:no: )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11841 ac_header_preproc=yes
11843 no:yes:* )
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11857 cat <<\_ASBOX
11858 ## ------------------------------------------ ##
11859 ## Report this to the AC_PACKAGE_NAME lists. ##
11860 ## ------------------------------------------ ##
11861 _ASBOX
11863 sed "s/^/$as_me: WARNING: /" >&2
11865 esac
11866 echo "$as_me:$LINENO: checking for $ac_header" >&5
11867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 eval "$as_ac_Header=\$ac_header_preproc"
11873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11878 cat >>confdefs.h <<_ACEOF
11879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880 _ACEOF
11884 done
11887 for ac_header in sys/user.h
11889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11890 echo "$as_me:$LINENO: checking for $ac_header" >&5
11891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901 #if HAVE_SYS_PARAM_H
11902 # include <sys/param.h>
11903 #endif
11906 #include <$ac_header>
11907 _ACEOF
11908 rm -f conftest.$ac_objext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11910 (eval $ac_compile) 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 eval "$as_ac_Header=yes"
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 eval "$as_ac_Header=no"
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11944 _ACEOF
11948 done
11952 for ac_header in sys/wait.h wait.h
11954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11956 echo "$as_me:$LINENO: checking for $ac_header" >&5
11957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11963 else
11964 # Is the header compilable?
11965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 $ac_includes_default
11974 #include <$ac_header>
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11978 (eval $ac_compile) 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 ac_header_compiler=yes
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 ac_header_compiler=no
12005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12007 echo "${ECHO_T}$ac_header_compiler" >&6
12009 # Is the header present?
12010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h. */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 #include <$ac_header>
12019 _ACEOF
12020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } >/dev/null; then
12028 if test -s conftest.err; then
12029 ac_cpp_err=$ac_c_preproc_warn_flag
12030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12031 else
12032 ac_cpp_err=
12034 else
12035 ac_cpp_err=yes
12037 if test -z "$ac_cpp_err"; then
12038 ac_header_preproc=yes
12039 else
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12043 ac_header_preproc=no
12045 rm -f conftest.err conftest.$ac_ext
12046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12047 echo "${ECHO_T}$ac_header_preproc" >&6
12049 # So? What about this header?
12050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12051 yes:no: )
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12056 ac_header_preproc=yes
12058 no:yes:* )
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12072 cat <<\_ASBOX
12073 ## ------------------------------------------ ##
12074 ## Report this to the AC_PACKAGE_NAME lists. ##
12075 ## ------------------------------------------ ##
12076 _ASBOX
12078 sed "s/^/$as_me: WARNING: /" >&2
12080 esac
12081 echo "$as_me:$LINENO: checking for $ac_header" >&5
12082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086 eval "$as_ac_Header=\$ac_header_preproc"
12088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12093 cat >>confdefs.h <<_ACEOF
12094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12095 _ACEOF
12099 done
12104 for ac_header in termios.h termio.h sgtty.h
12106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108 echo "$as_me:$LINENO: checking for $ac_header" >&5
12109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12115 else
12116 # Is the header compilable?
12117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 $ac_includes_default
12126 #include <$ac_header>
12127 _ACEOF
12128 rm -f conftest.$ac_objext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130 (eval $ac_compile) 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_header_compiler=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_header_compiler=no
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12159 echo "${ECHO_T}$ac_header_compiler" >&6
12161 # Is the header present?
12162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <$ac_header>
12171 _ACEOF
12172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null; then
12180 if test -s conftest.err; then
12181 ac_cpp_err=$ac_c_preproc_warn_flag
12182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12183 else
12184 ac_cpp_err=
12186 else
12187 ac_cpp_err=yes
12189 if test -z "$ac_cpp_err"; then
12190 ac_header_preproc=yes
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_header_preproc=no
12197 rm -f conftest.err conftest.$ac_ext
12198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199 echo "${ECHO_T}$ac_header_preproc" >&6
12201 # So? What about this header?
12202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12203 yes:no: )
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12208 ac_header_preproc=yes
12210 no:yes:* )
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12224 cat <<\_ASBOX
12225 ## ------------------------------------------ ##
12226 ## Report this to the AC_PACKAGE_NAME lists. ##
12227 ## ------------------------------------------ ##
12228 _ASBOX
12230 sed "s/^/$as_me: WARNING: /" >&2
12232 esac
12233 echo "$as_me:$LINENO: checking for $ac_header" >&5
12234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 eval "$as_ac_Header=\$ac_header_preproc"
12240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12247 _ACEOF
12251 done
12254 for ac_header in unistd.h
12256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12258 echo "$as_me:$LINENO: checking for $ac_header" >&5
12259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12265 else
12266 # Is the header compilable?
12267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 $ac_includes_default
12276 #include <$ac_header>
12277 _ACEOF
12278 rm -f conftest.$ac_objext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280 (eval $ac_compile) 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag"
12288 || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest.$ac_objext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_header_compiler=yes
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 ac_header_compiler=no
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12309 echo "${ECHO_T}$ac_header_compiler" >&6
12311 # Is the header present?
12312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 #include <$ac_header>
12321 _ACEOF
12322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } >/dev/null; then
12330 if test -s conftest.err; then
12331 ac_cpp_err=$ac_c_preproc_warn_flag
12332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12333 else
12334 ac_cpp_err=
12336 else
12337 ac_cpp_err=yes
12339 if test -z "$ac_cpp_err"; then
12340 ac_header_preproc=yes
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_header_preproc=no
12347 rm -f conftest.err conftest.$ac_ext
12348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12349 echo "${ECHO_T}$ac_header_preproc" >&6
12351 # So? What about this header?
12352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12353 yes:no: )
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12358 ac_header_preproc=yes
12360 no:yes:* )
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12374 cat <<\_ASBOX
12375 ## ------------------------------------------ ##
12376 ## Report this to the AC_PACKAGE_NAME lists. ##
12377 ## ------------------------------------------ ##
12378 _ASBOX
12380 sed "s/^/$as_me: WARNING: /" >&2
12382 esac
12383 echo "$as_me:$LINENO: checking for $ac_header" >&5
12384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388 eval "$as_ac_Header=\$ac_header_preproc"
12390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395 cat >>confdefs.h <<_ACEOF
12396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397 _ACEOF
12401 done
12404 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12405 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12406 # think that we don't have <curses.h> if we're using GCC.
12407 case $host_os in
12408 solaris2.[789])
12409 if test "$GCC" = yes; then
12411 cat >>confdefs.h <<\_ACEOF
12412 #define _MSE_INT_H 1
12413 _ACEOF
12415 fi ;;
12416 esac
12421 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12425 echo "$as_me:$LINENO: checking for $ac_header" >&5
12426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12432 else
12433 # Is the header compilable?
12434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h. */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 $ac_includes_default
12443 #include <$ac_header>
12444 _ACEOF
12445 rm -f conftest.$ac_objext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
12454 { ac_try='test -z "$ac_c_werror_flag"
12455 || test ! -s conftest.err'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest.$ac_objext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_header_compiler=yes
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_header_compiler=no
12474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 echo "${ECHO_T}$ac_header_compiler" >&6
12478 # Is the header present?
12479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h. */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 #include <$ac_header>
12488 _ACEOF
12489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } >/dev/null; then
12497 if test -s conftest.err; then
12498 ac_cpp_err=$ac_c_preproc_warn_flag
12499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12500 else
12501 ac_cpp_err=
12503 else
12504 ac_cpp_err=yes
12506 if test -z "$ac_cpp_err"; then
12507 ac_header_preproc=yes
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ac_header_preproc=no
12514 rm -f conftest.err conftest.$ac_ext
12515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 echo "${ECHO_T}$ac_header_preproc" >&6
12518 # So? What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12520 yes:no: )
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12525 ac_header_preproc=yes
12527 no:yes:* )
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12541 cat <<\_ASBOX
12542 ## ------------------------------------------ ##
12543 ## Report this to the AC_PACKAGE_NAME lists. ##
12544 ## ------------------------------------------ ##
12545 _ASBOX
12547 sed "s/^/$as_me: WARNING: /" >&2
12549 esac
12550 echo "$as_me:$LINENO: checking for $ac_header" >&5
12551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555 eval "$as_ac_Header=\$ac_header_preproc"
12557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12562 cat >>confdefs.h <<_ACEOF
12563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12564 _ACEOF
12568 done
12571 for ac_header in ncurses/term.h
12573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12575 echo "$as_me:$LINENO: checking for $ac_header" >&5
12576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12582 else
12583 # Is the header compilable?
12584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 $ac_includes_default
12593 #include <$ac_header>
12594 _ACEOF
12595 rm -f conftest.$ac_objext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12597 (eval $ac_compile) 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -z "$ac_c_werror_flag"
12605 || test ! -s conftest.err'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest.$ac_objext'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_header_compiler=yes
12618 else
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 ac_header_compiler=no
12624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 echo "${ECHO_T}$ac_header_compiler" >&6
12628 # Is the header present?
12629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <$ac_header>
12638 _ACEOF
12639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } >/dev/null; then
12647 if test -s conftest.err; then
12648 ac_cpp_err=$ac_c_preproc_warn_flag
12649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12650 else
12651 ac_cpp_err=
12653 else
12654 ac_cpp_err=yes
12656 if test -z "$ac_cpp_err"; then
12657 ac_header_preproc=yes
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 ac_header_preproc=no
12664 rm -f conftest.err conftest.$ac_ext
12665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12666 echo "${ECHO_T}$ac_header_preproc" >&6
12668 # So? What about this header?
12669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12670 yes:no: )
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12675 ac_header_preproc=yes
12677 no:yes:* )
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12691 cat <<\_ASBOX
12692 ## ------------------------------------------ ##
12693 ## Report this to the AC_PACKAGE_NAME lists. ##
12694 ## ------------------------------------------ ##
12695 _ASBOX
12697 sed "s/^/$as_me: WARNING: /" >&2
12699 esac
12700 echo "$as_me:$LINENO: checking for $ac_header" >&5
12701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705 eval "$as_ac_Header=\$ac_header_preproc"
12707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12712 cat >>confdefs.h <<_ACEOF
12713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12714 _ACEOF
12718 done
12721 for ac_header in term.h
12723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12724 echo "$as_me:$LINENO: checking for $ac_header" >&5
12725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729 cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h. */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 #if HAVE_CURSES_H
12736 # include <curses.h>
12737 #endif
12740 #include <$ac_header>
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744 (eval $ac_compile) 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag"
12752 || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 eval "$as_ac_Header=yes"
12765 else
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 eval "$as_ac_Header=no"
12771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12776 cat >>confdefs.h <<_ACEOF
12777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12778 _ACEOF
12782 done
12785 # FIXME: kettenis/20030102: In most cases we include these
12786 # unconditionally, so what's the point in checking these?
12789 for ac_header in ctype.h time.h
12791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793 echo "$as_me:$LINENO: checking for $ac_header" >&5
12794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12800 else
12801 # Is the header compilable?
12802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 $ac_includes_default
12811 #include <$ac_header>
12812 _ACEOF
12813 rm -f conftest.$ac_objext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -z "$ac_c_werror_flag"
12823 || test ! -s conftest.err'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; } &&
12829 { ac_try='test -s conftest.$ac_objext'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 ac_header_compiler=yes
12836 else
12837 echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12840 ac_header_compiler=no
12842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12844 echo "${ECHO_T}$ac_header_compiler" >&6
12846 # Is the header present?
12847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12849 cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h. */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 #include <$ac_header>
12856 _ACEOF
12857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } >/dev/null; then
12865 if test -s conftest.err; then
12866 ac_cpp_err=$ac_c_preproc_warn_flag
12867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12868 else
12869 ac_cpp_err=
12871 else
12872 ac_cpp_err=yes
12874 if test -z "$ac_cpp_err"; then
12875 ac_header_preproc=yes
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_header_preproc=no
12882 rm -f conftest.err conftest.$ac_ext
12883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12884 echo "${ECHO_T}$ac_header_preproc" >&6
12886 # So? What about this header?
12887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12888 yes:no: )
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12893 ac_header_preproc=yes
12895 no:yes:* )
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12909 cat <<\_ASBOX
12910 ## ------------------------------------------ ##
12911 ## Report this to the AC_PACKAGE_NAME lists. ##
12912 ## ------------------------------------------ ##
12913 _ASBOX
12915 sed "s/^/$as_me: WARNING: /" >&2
12917 esac
12918 echo "$as_me:$LINENO: checking for $ac_header" >&5
12919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923 eval "$as_ac_Header=\$ac_header_preproc"
12925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12930 cat >>confdefs.h <<_ACEOF
12931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12932 _ACEOF
12936 done
12939 # ------------------------- #
12940 # Checks for declarations. #
12941 # ------------------------- #
12943 echo "$as_me:$LINENO: checking whether free is declared" >&5
12944 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12945 if test "${ac_cv_have_decl_free+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948 cat >conftest.$ac_ext <<_ACEOF
12949 /* confdefs.h. */
12950 _ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954 $ac_includes_default
12956 main ()
12958 #ifndef free
12959 char *p = (char *) free;
12960 #endif
12963 return 0;
12965 _ACEOF
12966 rm -f conftest.$ac_objext
12967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12968 (eval $ac_compile) 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_c_werror_flag"
12976 || test ! -s conftest.err'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; } &&
12982 { ac_try='test -s conftest.$ac_objext'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_cv_have_decl_free=yes
12989 else
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 ac_cv_have_decl_free=no
12995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12997 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12998 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12999 if test $ac_cv_have_decl_free = yes; then
13001 cat >>confdefs.h <<_ACEOF
13002 #define HAVE_DECL_FREE 1
13003 _ACEOF
13006 else
13007 cat >>confdefs.h <<_ACEOF
13008 #define HAVE_DECL_FREE 0
13009 _ACEOF
13013 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13014 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13015 if test "${ac_cv_have_decl_malloc+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h. */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 $ac_includes_default
13026 main ()
13028 #ifndef malloc
13029 char *p = (char *) malloc;
13030 #endif
13033 return 0;
13035 _ACEOF
13036 rm -f conftest.$ac_objext
13037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13038 (eval $ac_compile) 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag"
13046 || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest.$ac_objext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_have_decl_malloc=yes
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_cv_have_decl_malloc=no
13065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13067 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13068 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13069 if test $ac_cv_have_decl_malloc = yes; then
13071 cat >>confdefs.h <<_ACEOF
13072 #define HAVE_DECL_MALLOC 1
13073 _ACEOF
13076 else
13077 cat >>confdefs.h <<_ACEOF
13078 #define HAVE_DECL_MALLOC 0
13079 _ACEOF
13083 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13084 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13085 if test "${ac_cv_have_decl_realloc+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 $ac_includes_default
13096 main ()
13098 #ifndef realloc
13099 char *p = (char *) realloc;
13100 #endif
13103 return 0;
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108 (eval $ac_compile) 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try='test -z "$ac_c_werror_flag"
13116 || test ! -s conftest.err'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_cv_have_decl_realloc=yes
13129 else
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 ac_cv_have_decl_realloc=no
13135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13137 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13138 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13139 if test $ac_cv_have_decl_realloc = yes; then
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_DECL_REALLOC 1
13143 _ACEOF
13146 else
13147 cat >>confdefs.h <<_ACEOF
13148 #define HAVE_DECL_REALLOC 0
13149 _ACEOF
13155 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13156 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13157 if test "${ac_cv_have_decl_strerror+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160 cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h. */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 $ac_includes_default
13168 main ()
13170 #ifndef strerror
13171 char *p = (char *) strerror;
13172 #endif
13175 return 0;
13177 _ACEOF
13178 rm -f conftest.$ac_objext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 (eval $ac_compile) 2>conftest.er1
13181 ac_status=$?
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag"
13188 || test ! -s conftest.err'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest.$ac_objext'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 ac_cv_have_decl_strerror=yes
13201 else
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_cv_have_decl_strerror=no
13207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13210 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13211 if test $ac_cv_have_decl_strerror = yes; then
13213 cat >>confdefs.h <<_ACEOF
13214 #define HAVE_DECL_STRERROR 1
13215 _ACEOF
13218 else
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_DECL_STRERROR 0
13221 _ACEOF
13225 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13226 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13227 if test "${ac_cv_have_decl_strstr+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230 cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h. */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 $ac_includes_default
13238 main ()
13240 #ifndef strstr
13241 char *p = (char *) strstr;
13242 #endif
13245 return 0;
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250 (eval $ac_compile) 2>conftest.er1
13251 ac_status=$?
13252 grep -v '^ *+' conftest.er1 >conftest.err
13253 rm -f conftest.er1
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } &&
13257 { ac_try='test -z "$ac_c_werror_flag"
13258 || test ! -s conftest.err'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; } &&
13264 { ac_try='test -s conftest.$ac_objext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_cv_have_decl_strstr=yes
13271 else
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ac_cv_have_decl_strstr=no
13277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13280 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13281 if test $ac_cv_have_decl_strstr = yes; then
13283 cat >>confdefs.h <<_ACEOF
13284 #define HAVE_DECL_STRSTR 1
13285 _ACEOF
13288 else
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_DECL_STRSTR 0
13291 _ACEOF
13297 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13298 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13299 if test "${ac_cv_have_decl_getopt+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302 cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h. */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13308 $ac_includes_default
13310 main ()
13312 #ifndef getopt
13313 char *p = (char *) getopt;
13314 #endif
13317 return 0;
13319 _ACEOF
13320 rm -f conftest.$ac_objext
13321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13322 (eval $ac_compile) 2>conftest.er1
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -z "$ac_c_werror_flag"
13330 || test ! -s conftest.err'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest.$ac_objext'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342 ac_cv_have_decl_getopt=yes
13343 else
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ac_cv_have_decl_getopt=no
13349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13351 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13352 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13353 if test $ac_cv_have_decl_getopt = yes; then
13355 cat >>confdefs.h <<_ACEOF
13356 #define HAVE_DECL_GETOPT 1
13357 _ACEOF
13360 else
13361 cat >>confdefs.h <<_ACEOF
13362 #define HAVE_DECL_GETOPT 0
13363 _ACEOF
13367 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13368 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13369 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 $ac_includes_default
13380 main ()
13382 #ifndef snprintf
13383 char *p = (char *) snprintf;
13384 #endif
13387 return 0;
13389 _ACEOF
13390 rm -f conftest.$ac_objext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13392 (eval $ac_compile) 2>conftest.er1
13393 ac_status=$?
13394 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_c_werror_flag"
13400 || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest.$ac_objext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_cv_have_decl_snprintf=yes
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 ac_cv_have_decl_snprintf=no
13419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13421 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13422 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13423 if test $ac_cv_have_decl_snprintf = yes; then
13425 cat >>confdefs.h <<_ACEOF
13426 #define HAVE_DECL_SNPRINTF 1
13427 _ACEOF
13430 else
13431 cat >>confdefs.h <<_ACEOF
13432 #define HAVE_DECL_SNPRINTF 0
13433 _ACEOF
13437 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13438 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13439 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 else
13442 cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h. */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 $ac_includes_default
13450 main ()
13452 #ifndef vsnprintf
13453 char *p = (char *) vsnprintf;
13454 #endif
13457 return 0;
13459 _ACEOF
13460 rm -f conftest.$ac_objext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13462 (eval $ac_compile) 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try='test -z "$ac_c_werror_flag"
13470 || test ! -s conftest.err'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest.$ac_objext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_cv_have_decl_vsnprintf=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ac_cv_have_decl_vsnprintf=no
13489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13491 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13492 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13493 if test $ac_cv_have_decl_vsnprintf = yes; then
13495 cat >>confdefs.h <<_ACEOF
13496 #define HAVE_DECL_VSNPRINTF 1
13497 _ACEOF
13500 else
13501 cat >>confdefs.h <<_ACEOF
13502 #define HAVE_DECL_VSNPRINTF 0
13503 _ACEOF
13510 # ----------------------- #
13511 # Checks for structures. #
13512 # ----------------------- #
13514 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13515 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13516 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h. */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
13527 main ()
13529 static struct stat ac_aggr;
13530 if (ac_aggr.st_blocks)
13531 return 0;
13533 return 0;
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest.$ac_objext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_member_struct_stat_st_blocks=yes
13559 else
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 $ac_includes_default
13571 main ()
13573 static struct stat ac_aggr;
13574 if (sizeof ac_aggr.st_blocks)
13575 return 0;
13577 return 0;
13579 _ACEOF
13580 rm -f conftest.$ac_objext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582 (eval $ac_compile) 2>conftest.er1
13583 ac_status=$?
13584 grep -v '^ *+' conftest.er1 >conftest.err
13585 rm -f conftest.er1
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -z "$ac_c_werror_flag"
13590 || test ! -s conftest.err'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; } &&
13596 { ac_try='test -s conftest.$ac_objext'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }; then
13602 ac_cv_member_struct_stat_st_blocks=yes
13603 else
13604 echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13607 ac_cv_member_struct_stat_st_blocks=no
13609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13614 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13615 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13617 cat >>confdefs.h <<_ACEOF
13618 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13619 _ACEOF
13624 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13625 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13626 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h. */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13637 main ()
13639 static struct stat ac_aggr;
13640 if (ac_aggr.st_blksize)
13641 return 0;
13643 return 0;
13645 _ACEOF
13646 rm -f conftest.$ac_objext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13648 (eval $ac_compile) 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -z "$ac_c_werror_flag"
13656 || test ! -s conftest.err'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try='test -s conftest.$ac_objext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_cv_member_struct_stat_st_blksize=yes
13669 else
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h. */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 $ac_includes_default
13681 main ()
13683 static struct stat ac_aggr;
13684 if (sizeof ac_aggr.st_blksize)
13685 return 0;
13687 return 0;
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13692 (eval $ac_compile) 2>conftest.er1
13693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -z "$ac_c_werror_flag"
13700 || test ! -s conftest.err'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try='test -s conftest.$ac_objext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_cv_member_struct_stat_st_blksize=yes
13713 else
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ac_cv_member_struct_stat_st_blksize=no
13719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13723 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13724 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13725 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13727 cat >>confdefs.h <<_ACEOF
13728 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13729 _ACEOF
13735 # ------------------ #
13736 # Checks for types. #
13737 # ------------------ #
13739 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13740 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13741 if test "${ac_cv_type_signal+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 else
13744 cat >conftest.$ac_ext <<_ACEOF
13745 /* confdefs.h. */
13746 _ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13750 #include <sys/types.h>
13751 #include <signal.h>
13752 #ifdef signal
13753 # undef signal
13754 #endif
13755 #ifdef __cplusplus
13756 extern "C" void (*signal (int, void (*)(int)))(int);
13757 #else
13758 void (*signal ()) ();
13759 #endif
13762 main ()
13764 int i;
13766 return 0;
13768 _ACEOF
13769 rm -f conftest.$ac_objext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13771 (eval $ac_compile) 2>conftest.er1
13772 ac_status=$?
13773 grep -v '^ *+' conftest.er1 >conftest.err
13774 rm -f conftest.er1
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -z "$ac_c_werror_flag"
13779 || test ! -s conftest.err'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; } &&
13785 { ac_try='test -s conftest.$ac_objext'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 ac_cv_type_signal=void
13792 else
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13796 ac_cv_type_signal=int
13798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13801 echo "${ECHO_T}$ac_cv_type_signal" >&6
13803 cat >>confdefs.h <<_ACEOF
13804 #define RETSIGTYPE $ac_cv_type_signal
13805 _ACEOF
13808 echo "$as_me:$LINENO: checking for socklen_t" >&5
13809 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13810 if test "${ac_cv_type_socklen_t+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 #include <sys/types.h>
13820 #include <sys/socket.h>
13824 main ()
13826 if ((socklen_t *) 0)
13827 return 0;
13828 if (sizeof (socklen_t))
13829 return 0;
13831 return 0;
13833 _ACEOF
13834 rm -f conftest.$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836 (eval $ac_compile) 2>conftest.er1
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_c_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest.$ac_objext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_cv_type_socklen_t=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_cv_type_socklen_t=no
13863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13865 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13866 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13867 if test $ac_cv_type_socklen_t = yes; then
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_SOCKLEN_T 1
13871 _ACEOF
13876 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13877 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13878 if test "${ac_cv_type_uintptr_t+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 #include <stdint.h>
13890 main ()
13892 if ((uintptr_t *) 0)
13893 return 0;
13894 if (sizeof (uintptr_t))
13895 return 0;
13897 return 0;
13899 _ACEOF
13900 rm -f conftest.$ac_objext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>conftest.er1
13903 ac_status=$?
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try='test -z "$ac_c_werror_flag"
13910 || test ! -s conftest.err'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_cv_type_uintptr_t=yes
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 ac_cv_type_uintptr_t=no
13929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13931 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13932 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13933 if test $ac_cv_type_uintptr_t = yes; then
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_UINTPTR_T 1
13937 _ACEOF
13943 # ------------------------------------- #
13944 # Checks for compiler characteristics. #
13945 # ------------------------------------- #
13947 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13948 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13949 if test "${ac_cv_c_const+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13960 main ()
13962 /* FIXME: Include the comments suggested by Paul. */
13963 #ifndef __cplusplus
13964 /* Ultrix mips cc rejects this. */
13965 typedef int charset[2];
13966 const charset x;
13967 /* SunOS 4.1.1 cc rejects this. */
13968 char const *const *ccp;
13969 char **p;
13970 /* NEC SVR4.0.2 mips cc rejects this. */
13971 struct point {int x, y;};
13972 static struct point const zero = {0,0};
13973 /* AIX XL C 1.02.0.0 rejects this.
13974 It does not let you subtract one const X* pointer from another in
13975 an arm of an if-expression whose if-part is not a constant
13976 expression */
13977 const char *g = "string";
13978 ccp = &g + (g ? g-g : 0);
13979 /* HPUX 7.0 cc rejects these. */
13980 ++ccp;
13981 p = (char**) ccp;
13982 ccp = (char const *const *) p;
13983 { /* SCO 3.2v4 cc rejects this. */
13984 char *t;
13985 char const *s = 0 ? (char *) 0 : (char const *) 0;
13987 *t++ = 0;
13989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13990 int x[] = {25, 17};
13991 const int *foo = &x[0];
13992 ++foo;
13994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13995 typedef const int *iptr;
13996 iptr p = 0;
13997 ++p;
13999 { /* AIX XL C 1.02.0.0 rejects this saying
14000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14001 struct s { int j; const int *ap[3]; };
14002 struct s *b; b->j = 5;
14004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14005 const int foo = 10;
14007 #endif
14010 return 0;
14012 _ACEOF
14013 rm -f conftest.$ac_objext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14015 (eval $ac_compile) 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -z "$ac_c_werror_flag"
14023 || test ! -s conftest.err'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; } &&
14029 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14035 ac_cv_c_const=yes
14036 else
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 ac_cv_c_const=no
14042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14044 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14045 echo "${ECHO_T}$ac_cv_c_const" >&6
14046 if test $ac_cv_c_const = no; then
14048 cat >>confdefs.h <<\_ACEOF
14049 #define const
14050 _ACEOF
14054 echo "$as_me:$LINENO: checking for inline" >&5
14055 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14056 if test "${ac_cv_c_inline+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059 ac_cv_c_inline=no
14060 for ac_kw in inline __inline__ __inline; do
14061 cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h. */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 #ifndef __cplusplus
14068 typedef int foo_t;
14069 static $ac_kw foo_t static_foo () {return 0; }
14070 $ac_kw foo_t foo () {return 0; }
14071 #endif
14073 _ACEOF
14074 rm -f conftest.$ac_objext
14075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14076 (eval $ac_compile) 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag"
14084 || test ! -s conftest.err'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_c_inline=$ac_kw; break
14097 else
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14103 done
14106 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14107 echo "${ECHO_T}$ac_cv_c_inline" >&6
14110 case $ac_cv_c_inline in
14111 inline | yes) ;;
14113 case $ac_cv_c_inline in
14114 no) ac_val=;;
14115 *) ac_val=$ac_cv_c_inline;;
14116 esac
14117 cat >>confdefs.h <<_ACEOF
14118 #ifndef __cplusplus
14119 #define inline $ac_val
14120 #endif
14121 _ACEOF
14123 esac
14126 # ------------------------------ #
14127 # Checks for library functions. #
14128 # ------------------------------ #
14130 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14131 # for constant arguments. Useless!
14132 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14133 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14134 if test "${ac_cv_working_alloca_h+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 #include <alloca.h>
14145 main ()
14147 char *p = (char *) alloca (2 * sizeof (int));
14149 return 0;
14151 _ACEOF
14152 rm -f conftest.$ac_objext conftest$ac_exeext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14154 (eval $ac_link) 2>conftest.er1
14155 ac_status=$?
14156 grep -v '^ *+' conftest.er1 >conftest.err
14157 rm -f conftest.er1
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag"
14162 || test ! -s conftest.err'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest$ac_exeext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 ac_cv_working_alloca_h=yes
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_cv_working_alloca_h=no
14181 rm -f conftest.err conftest.$ac_objext \
14182 conftest$ac_exeext conftest.$ac_ext
14184 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14185 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14186 if test $ac_cv_working_alloca_h = yes; then
14188 cat >>confdefs.h <<\_ACEOF
14189 #define HAVE_ALLOCA_H 1
14190 _ACEOF
14194 echo "$as_me:$LINENO: checking for alloca" >&5
14195 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14196 if test "${ac_cv_func_alloca_works+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199 cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h. */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14205 #ifdef __GNUC__
14206 # define alloca __builtin_alloca
14207 #else
14208 # ifdef _MSC_VER
14209 # include <malloc.h>
14210 # define alloca _alloca
14211 # else
14212 # if HAVE_ALLOCA_H
14213 # include <alloca.h>
14214 # else
14215 # ifdef _AIX
14216 #pragma alloca
14217 # else
14218 # ifndef alloca /* predefined by HP cc +Olibcalls */
14219 char *alloca ();
14220 # endif
14221 # endif
14222 # endif
14223 # endif
14224 #endif
14227 main ()
14229 char *p = (char *) alloca (1);
14231 return 0;
14233 _ACEOF
14234 rm -f conftest.$ac_objext conftest$ac_exeext
14235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14236 (eval $ac_link) 2>conftest.er1
14237 ac_status=$?
14238 grep -v '^ *+' conftest.er1 >conftest.err
14239 rm -f conftest.er1
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } &&
14243 { ac_try='test -z "$ac_c_werror_flag"
14244 || test ! -s conftest.err'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest$ac_exeext'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_func_alloca_works=yes
14257 else
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_cv_func_alloca_works=no
14263 rm -f conftest.err conftest.$ac_objext \
14264 conftest$ac_exeext conftest.$ac_ext
14266 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14267 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14269 if test $ac_cv_func_alloca_works = yes; then
14271 cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_ALLOCA 1
14273 _ACEOF
14275 else
14276 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14277 # that cause trouble. Some versions do not even contain alloca or
14278 # contain a buggy version. If you still want to use their alloca,
14279 # use ar to extract alloca.o from them instead of compiling alloca.c.
14281 ALLOCA=alloca.$ac_objext
14283 cat >>confdefs.h <<\_ACEOF
14284 #define C_ALLOCA 1
14285 _ACEOF
14288 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14289 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14290 if test "${ac_cv_os_cray+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h. */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 #if defined(CRAY) && ! defined(CRAY2)
14300 webecray
14301 #else
14302 wenotbecray
14303 #endif
14305 _ACEOF
14306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14307 $EGREP "webecray" >/dev/null 2>&1; then
14308 ac_cv_os_cray=yes
14309 else
14310 ac_cv_os_cray=no
14312 rm -f conftest*
14315 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14316 echo "${ECHO_T}$ac_cv_os_cray" >&6
14317 if test $ac_cv_os_cray = yes; then
14318 for ac_func in _getb67 GETB67 getb67; do
14319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14320 echo "$as_me:$LINENO: checking for $ac_func" >&5
14321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14322 if eval "test \"\${$as_ac_var+set}\" = set"; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325 cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h. */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14333 #define $ac_func innocuous_$ac_func
14335 /* System header to define __stub macros and hopefully few prototypes,
14336 which can conflict with char $ac_func (); below.
14337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14338 <limits.h> exists even on freestanding compilers. */
14340 #ifdef __STDC__
14341 # include <limits.h>
14342 #else
14343 # include <assert.h>
14344 #endif
14346 #undef $ac_func
14348 /* Override any gcc2 internal prototype to avoid an error. */
14349 #ifdef __cplusplus
14350 extern "C"
14352 #endif
14353 /* We use char because int might match the return type of a gcc2
14354 builtin and then its argument prototype would still apply. */
14355 char $ac_func ();
14356 /* The GNU C library defines this for functions which it implements
14357 to always fail with ENOSYS. Some functions are actually named
14358 something starting with __ and the normal name is an alias. */
14359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14360 choke me
14361 #else
14362 char (*f) () = $ac_func;
14363 #endif
14364 #ifdef __cplusplus
14366 #endif
14369 main ()
14371 return f != $ac_func;
14373 return 0;
14375 _ACEOF
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378 (eval $ac_link) 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 eval "$as_ac_var=yes"
14399 else
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 eval "$as_ac_var=no"
14405 rm -f conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14410 if test `eval echo '${'$as_ac_var'}'` = yes; then
14412 cat >>confdefs.h <<_ACEOF
14413 #define CRAY_STACKSEG_END $ac_func
14414 _ACEOF
14416 break
14419 done
14422 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14423 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14424 if test "${ac_cv_c_stack_direction+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 if test "$cross_compiling" = yes; then
14428 ac_cv_c_stack_direction=0
14429 else
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14437 find_stack_direction ()
14439 static char *addr = 0;
14440 auto char dummy;
14441 if (addr == 0)
14443 addr = &dummy;
14444 return find_stack_direction ();
14446 else
14447 return (&dummy > addr) ? 1 : -1;
14451 main ()
14453 exit (find_stack_direction () < 0);
14455 _ACEOF
14456 rm -f conftest$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458 (eval $ac_link) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_c_stack_direction=1
14468 else
14469 echo "$as_me: program exited with status $ac_status" >&5
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ( exit $ac_status )
14474 ac_cv_c_stack_direction=-1
14476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14479 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14480 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14482 cat >>confdefs.h <<_ACEOF
14483 #define STACK_DIRECTION $ac_cv_c_stack_direction
14484 _ACEOF
14491 for ac_header in stdlib.h unistd.h
14493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14495 echo "$as_me:$LINENO: checking for $ac_header" >&5
14496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14502 else
14503 # Is the header compilable?
14504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 $ac_includes_default
14513 #include <$ac_header>
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 ac_header_compiler=yes
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 ac_header_compiler=no
14544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14546 echo "${ECHO_T}$ac_header_compiler" >&6
14548 # Is the header present?
14549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 #include <$ac_header>
14558 _ACEOF
14559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } >/dev/null; then
14567 if test -s conftest.err; then
14568 ac_cpp_err=$ac_c_preproc_warn_flag
14569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14570 else
14571 ac_cpp_err=
14573 else
14574 ac_cpp_err=yes
14576 if test -z "$ac_cpp_err"; then
14577 ac_header_preproc=yes
14578 else
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14582 ac_header_preproc=no
14584 rm -f conftest.err conftest.$ac_ext
14585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14586 echo "${ECHO_T}$ac_header_preproc" >&6
14588 # So? What about this header?
14589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14590 yes:no: )
14591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14595 ac_header_preproc=yes
14597 no:yes:* )
14598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14611 cat <<\_ASBOX
14612 ## ------------------------------------------ ##
14613 ## Report this to the AC_PACKAGE_NAME lists. ##
14614 ## ------------------------------------------ ##
14615 _ASBOX
14617 sed "s/^/$as_me: WARNING: /" >&2
14619 esac
14620 echo "$as_me:$LINENO: checking for $ac_header" >&5
14621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625 eval "$as_ac_Header=\$ac_header_preproc"
14627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14634 _ACEOF
14638 done
14641 for ac_func in getpagesize
14643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14644 echo "$as_me:$LINENO: checking for $ac_func" >&5
14645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14646 if eval "test \"\${$as_ac_var+set}\" = set"; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14657 #define $ac_func innocuous_$ac_func
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char $ac_func (); below.
14661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662 <limits.h> exists even on freestanding compilers. */
14664 #ifdef __STDC__
14665 # include <limits.h>
14666 #else
14667 # include <assert.h>
14668 #endif
14670 #undef $ac_func
14672 /* Override any gcc2 internal prototype to avoid an error. */
14673 #ifdef __cplusplus
14674 extern "C"
14676 #endif
14677 /* We use char because int might match the return type of a gcc2
14678 builtin and then its argument prototype would still apply. */
14679 char $ac_func ();
14680 /* The GNU C library defines this for functions which it implements
14681 to always fail with ENOSYS. Some functions are actually named
14682 something starting with __ and the normal name is an alias. */
14683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14684 choke me
14685 #else
14686 char (*f) () = $ac_func;
14687 #endif
14688 #ifdef __cplusplus
14690 #endif
14693 main ()
14695 return f != $ac_func;
14697 return 0;
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 eval "$as_ac_var=yes"
14723 else
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 eval "$as_ac_var=no"
14729 rm -f conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14734 if test `eval echo '${'$as_ac_var'}'` = yes; then
14735 cat >>confdefs.h <<_ACEOF
14736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14737 _ACEOF
14740 done
14742 echo "$as_me:$LINENO: checking for working mmap" >&5
14743 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14744 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747 if test "$cross_compiling" = yes; then
14748 ac_cv_func_mmap_fixed_mapped=no
14749 else
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 $ac_includes_default
14757 /* malloc might have been renamed as rpl_malloc. */
14758 #undef malloc
14760 /* Thanks to Mike Haertel and Jim Avera for this test.
14761 Here is a matrix of mmap possibilities:
14762 mmap private not fixed
14763 mmap private fixed at somewhere currently unmapped
14764 mmap private fixed at somewhere already mapped
14765 mmap shared not fixed
14766 mmap shared fixed at somewhere currently unmapped
14767 mmap shared fixed at somewhere already mapped
14768 For private mappings, we should verify that changes cannot be read()
14769 back from the file, nor mmap's back from the file at a different
14770 address. (There have been systems where private was not correctly
14771 implemented like the infamous i386 svr4.0, and systems where the
14772 VM page cache was not coherent with the file system buffer cache
14773 like early versions of FreeBSD and possibly contemporary NetBSD.)
14774 For shared mappings, we should conversely verify that changes get
14775 propagated back to all the places they're supposed to be.
14777 Grep wants private fixed already mapped.
14778 The main things grep needs to know about mmap are:
14779 * does it exist and is it safe to write into the mmap'd area
14780 * how to use it (BSD variants) */
14782 #include <fcntl.h>
14783 #include <sys/mman.h>
14785 #if !STDC_HEADERS && !HAVE_STDLIB_H
14786 char *malloc ();
14787 #endif
14789 /* This mess was copied from the GNU getpagesize.h. */
14790 #if !HAVE_GETPAGESIZE
14791 /* Assume that all systems that can run configure have sys/param.h. */
14792 # if !HAVE_SYS_PARAM_H
14793 # define HAVE_SYS_PARAM_H 1
14794 # endif
14796 # ifdef _SC_PAGESIZE
14797 # define getpagesize() sysconf(_SC_PAGESIZE)
14798 # else /* no _SC_PAGESIZE */
14799 # if HAVE_SYS_PARAM_H
14800 # include <sys/param.h>
14801 # ifdef EXEC_PAGESIZE
14802 # define getpagesize() EXEC_PAGESIZE
14803 # else /* no EXEC_PAGESIZE */
14804 # ifdef NBPG
14805 # define getpagesize() NBPG * CLSIZE
14806 # ifndef CLSIZE
14807 # define CLSIZE 1
14808 # endif /* no CLSIZE */
14809 # else /* no NBPG */
14810 # ifdef NBPC
14811 # define getpagesize() NBPC
14812 # else /* no NBPC */
14813 # ifdef PAGESIZE
14814 # define getpagesize() PAGESIZE
14815 # endif /* PAGESIZE */
14816 # endif /* no NBPC */
14817 # endif /* no NBPG */
14818 # endif /* no EXEC_PAGESIZE */
14819 # else /* no HAVE_SYS_PARAM_H */
14820 # define getpagesize() 8192 /* punt totally */
14821 # endif /* no HAVE_SYS_PARAM_H */
14822 # endif /* no _SC_PAGESIZE */
14824 #endif /* no HAVE_GETPAGESIZE */
14827 main ()
14829 char *data, *data2, *data3;
14830 int i, pagesize;
14831 int fd;
14833 pagesize = getpagesize ();
14835 /* First, make a file with some known garbage in it. */
14836 data = (char *) malloc (pagesize);
14837 if (!data)
14838 exit (1);
14839 for (i = 0; i < pagesize; ++i)
14840 *(data + i) = rand ();
14841 umask (0);
14842 fd = creat ("conftest.mmap", 0600);
14843 if (fd < 0)
14844 exit (1);
14845 if (write (fd, data, pagesize) != pagesize)
14846 exit (1);
14847 close (fd);
14849 /* Next, try to mmap the file at a fixed address which already has
14850 something else allocated at it. If we can, also make sure that
14851 we see the same garbage. */
14852 fd = open ("conftest.mmap", O_RDWR);
14853 if (fd < 0)
14854 exit (1);
14855 data2 = (char *) malloc (2 * pagesize);
14856 if (!data2)
14857 exit (1);
14858 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14859 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14860 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14861 exit (1);
14862 for (i = 0; i < pagesize; ++i)
14863 if (*(data + i) != *(data2 + i))
14864 exit (1);
14866 /* Finally, make sure that changes to the mapped area do not
14867 percolate back to the file as seen by read(). (This is a bug on
14868 some variants of i386 svr4.0.) */
14869 for (i = 0; i < pagesize; ++i)
14870 *(data2 + i) = *(data2 + i) + 1;
14871 data3 = (char *) malloc (pagesize);
14872 if (!data3)
14873 exit (1);
14874 if (read (fd, data3, pagesize) != pagesize)
14875 exit (1);
14876 for (i = 0; i < pagesize; ++i)
14877 if (*(data + i) != *(data3 + i))
14878 exit (1);
14879 close (fd);
14880 exit (0);
14882 _ACEOF
14883 rm -f conftest$ac_exeext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_func_mmap_fixed_mapped=yes
14895 else
14896 echo "$as_me: program exited with status $ac_status" >&5
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 ( exit $ac_status )
14901 ac_cv_func_mmap_fixed_mapped=no
14903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14906 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14907 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14908 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_MMAP 1
14912 _ACEOF
14915 rm -f conftest.mmap
14917 echo "$as_me:$LINENO: checking for pid_t" >&5
14918 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14919 if test "${ac_cv_type_pid_t+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h. */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 $ac_includes_default
14930 main ()
14932 if ((pid_t *) 0)
14933 return 0;
14934 if (sizeof (pid_t))
14935 return 0;
14937 return 0;
14939 _ACEOF
14940 rm -f conftest.$ac_objext
14941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14942 (eval $ac_compile) 2>conftest.er1
14943 ac_status=$?
14944 grep -v '^ *+' conftest.er1 >conftest.err
14945 rm -f conftest.er1
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -z "$ac_c_werror_flag"
14950 || test ! -s conftest.err'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; } &&
14956 { ac_try='test -s conftest.$ac_objext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_type_pid_t=yes
14963 else
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 ac_cv_type_pid_t=no
14969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14971 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14972 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14973 if test $ac_cv_type_pid_t = yes; then
14975 else
14977 cat >>confdefs.h <<_ACEOF
14978 #define pid_t int
14979 _ACEOF
14985 for ac_header in unistd.h vfork.h
14987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14989 echo "$as_me:$LINENO: checking for $ac_header" >&5
14990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14996 else
14997 # Is the header compilable?
14998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 $ac_includes_default
15007 #include <$ac_header>
15008 _ACEOF
15009 rm -f conftest.$ac_objext
15010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15011 (eval $ac_compile) 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try='test -z "$ac_c_werror_flag"
15019 || test ! -s conftest.err'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; } &&
15025 { ac_try='test -s conftest.$ac_objext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_header_compiler=yes
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_header_compiler=no
15038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15040 echo "${ECHO_T}$ac_header_compiler" >&6
15042 # Is the header present?
15043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h. */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 #include <$ac_header>
15052 _ACEOF
15053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15055 ac_status=$?
15056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } >/dev/null; then
15061 if test -s conftest.err; then
15062 ac_cpp_err=$ac_c_preproc_warn_flag
15063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15064 else
15065 ac_cpp_err=
15067 else
15068 ac_cpp_err=yes
15070 if test -z "$ac_cpp_err"; then
15071 ac_header_preproc=yes
15072 else
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_header_preproc=no
15078 rm -f conftest.err conftest.$ac_ext
15079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15080 echo "${ECHO_T}$ac_header_preproc" >&6
15082 # So? What about this header?
15083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15084 yes:no: )
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15089 ac_header_preproc=yes
15091 no:yes:* )
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15105 cat <<\_ASBOX
15106 ## ------------------------------------------ ##
15107 ## Report this to the AC_PACKAGE_NAME lists. ##
15108 ## ------------------------------------------ ##
15109 _ASBOX
15111 sed "s/^/$as_me: WARNING: /" >&2
15113 esac
15114 echo "$as_me:$LINENO: checking for $ac_header" >&5
15115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119 eval "$as_ac_Header=\$ac_header_preproc"
15121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15126 cat >>confdefs.h <<_ACEOF
15127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15128 _ACEOF
15132 done
15136 for ac_func in fork vfork
15138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15139 echo "$as_me:$LINENO: checking for $ac_func" >&5
15140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15141 if eval "test \"\${$as_ac_var+set}\" = set"; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h. */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15152 #define $ac_func innocuous_$ac_func
15154 /* System header to define __stub macros and hopefully few prototypes,
15155 which can conflict with char $ac_func (); below.
15156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15157 <limits.h> exists even on freestanding compilers. */
15159 #ifdef __STDC__
15160 # include <limits.h>
15161 #else
15162 # include <assert.h>
15163 #endif
15165 #undef $ac_func
15167 /* Override any gcc2 internal prototype to avoid an error. */
15168 #ifdef __cplusplus
15169 extern "C"
15171 #endif
15172 /* We use char because int might match the return type of a gcc2
15173 builtin and then its argument prototype would still apply. */
15174 char $ac_func ();
15175 /* The GNU C library defines this for functions which it implements
15176 to always fail with ENOSYS. Some functions are actually named
15177 something starting with __ and the normal name is an alias. */
15178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15179 choke me
15180 #else
15181 char (*f) () = $ac_func;
15182 #endif
15183 #ifdef __cplusplus
15185 #endif
15188 main ()
15190 return f != $ac_func;
15192 return 0;
15194 _ACEOF
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197 (eval $ac_link) 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try='test -z "$ac_c_werror_flag"
15205 || test ! -s conftest.err'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try='test -s conftest$ac_exeext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 eval "$as_ac_var=yes"
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 eval "$as_ac_var=no"
15224 rm -f conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15229 if test `eval echo '${'$as_ac_var'}'` = yes; then
15230 cat >>confdefs.h <<_ACEOF
15231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15232 _ACEOF
15235 done
15237 if test "x$ac_cv_func_fork" = xyes; then
15238 echo "$as_me:$LINENO: checking for working fork" >&5
15239 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15240 if test "${ac_cv_func_fork_works+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 else
15243 if test "$cross_compiling" = yes; then
15244 ac_cv_func_fork_works=cross
15245 else
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* By Ruediger Kuhlmann. */
15248 #include <sys/types.h>
15249 #if HAVE_UNISTD_H
15250 # include <unistd.h>
15251 #endif
15252 /* Some systems only have a dummy stub for fork() */
15253 int main ()
15255 if (fork() < 0)
15256 exit (1);
15257 exit (0);
15259 _ACEOF
15260 rm -f conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15271 ac_cv_func_fork_works=yes
15272 else
15273 echo "$as_me: program exited with status $ac_status" >&5
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ( exit $ac_status )
15278 ac_cv_func_fork_works=no
15280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15283 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15284 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15286 else
15287 ac_cv_func_fork_works=$ac_cv_func_fork
15289 if test "x$ac_cv_func_fork_works" = xcross; then
15290 case $host in
15291 *-*-amigaos* | *-*-msdosdjgpp*)
15292 # Override, as these systems have only a dummy fork() stub
15293 ac_cv_func_fork_works=no
15296 ac_cv_func_fork_works=yes
15298 esac
15299 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15300 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15302 ac_cv_func_vfork_works=$ac_cv_func_vfork
15303 if test "x$ac_cv_func_vfork" = xyes; then
15304 echo "$as_me:$LINENO: checking for working vfork" >&5
15305 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15306 if test "${ac_cv_func_vfork_works+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 else
15309 if test "$cross_compiling" = yes; then
15310 ac_cv_func_vfork_works=cross
15311 else
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 /* Thanks to Paul Eggert for this test. */
15319 #include <stdio.h>
15320 #include <stdlib.h>
15321 #include <sys/types.h>
15322 #include <sys/stat.h>
15323 #include <sys/wait.h>
15324 #if HAVE_UNISTD_H
15325 # include <unistd.h>
15326 #endif
15327 #if HAVE_VFORK_H
15328 # include <vfork.h>
15329 #endif
15330 /* On some sparc systems, changes by the child to local and incoming
15331 argument registers are propagated back to the parent. The compiler
15332 is told about this with #include <vfork.h>, but some compilers
15333 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15334 static variable whose address is put into a register that is
15335 clobbered by the vfork. */
15336 static void
15337 #ifdef __cplusplus
15338 sparc_address_test (int arg)
15339 # else
15340 sparc_address_test (arg) int arg;
15341 #endif
15343 static pid_t child;
15344 if (!child) {
15345 child = vfork ();
15346 if (child < 0) {
15347 perror ("vfork");
15348 _exit(2);
15350 if (!child) {
15351 arg = getpid();
15352 write(-1, "", 0);
15353 _exit (arg);
15359 main ()
15361 pid_t parent = getpid ();
15362 pid_t child;
15364 sparc_address_test (0);
15366 child = vfork ();
15368 if (child == 0) {
15369 /* Here is another test for sparc vfork register problems. This
15370 test uses lots of local variables, at least as many local
15371 variables as main has allocated so far including compiler
15372 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15373 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15374 reuse the register of parent for one of the local variables,
15375 since it will think that parent can't possibly be used any more
15376 in this routine. Assigning to the local variable will thus
15377 munge parent in the parent process. */
15378 pid_t
15379 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15380 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15381 /* Convince the compiler that p..p7 are live; otherwise, it might
15382 use the same hardware register for all 8 local variables. */
15383 if (p != p1 || p != p2 || p != p3 || p != p4
15384 || p != p5 || p != p6 || p != p7)
15385 _exit(1);
15387 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15388 from child file descriptors. If the child closes a descriptor
15389 before it execs or exits, this munges the parent's descriptor
15390 as well. Test for this by closing stdout in the child. */
15391 _exit(close(fileno(stdout)) != 0);
15392 } else {
15393 int status;
15394 struct stat st;
15396 while (wait(&status) != child)
15398 exit(
15399 /* Was there some problem with vforking? */
15400 child < 0
15402 /* Did the child fail? (This shouldn't happen.) */
15403 || status
15405 /* Did the vfork/compiler bug occur? */
15406 || parent != getpid()
15408 /* Did the file descriptor bug occur? */
15409 || fstat(fileno(stdout), &st) != 0
15413 _ACEOF
15414 rm -f conftest$ac_exeext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15416 (eval $ac_link) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_cv_func_vfork_works=yes
15426 else
15427 echo "$as_me: program exited with status $ac_status" >&5
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ( exit $ac_status )
15432 ac_cv_func_vfork_works=no
15434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15437 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15438 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15441 if test "x$ac_cv_func_fork_works" = xcross; then
15442 ac_cv_func_vfork_works=$ac_cv_func_vfork
15443 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15444 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15447 if test "x$ac_cv_func_vfork_works" = xyes; then
15449 cat >>confdefs.h <<\_ACEOF
15450 #define HAVE_WORKING_VFORK 1
15451 _ACEOF
15453 else
15455 cat >>confdefs.h <<\_ACEOF
15456 #define vfork fork
15457 _ACEOF
15460 if test "x$ac_cv_func_fork_works" = xyes; then
15462 cat >>confdefs.h <<\_ACEOF
15463 #define HAVE_WORKING_FORK 1
15464 _ACEOF
15470 for ac_func in canonicalize_file_name realpath
15472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15473 echo "$as_me:$LINENO: checking for $ac_func" >&5
15474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15475 if eval "test \"\${$as_ac_var+set}\" = set"; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h. */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15486 #define $ac_func innocuous_$ac_func
15488 /* System header to define __stub macros and hopefully few prototypes,
15489 which can conflict with char $ac_func (); below.
15490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15491 <limits.h> exists even on freestanding compilers. */
15493 #ifdef __STDC__
15494 # include <limits.h>
15495 #else
15496 # include <assert.h>
15497 #endif
15499 #undef $ac_func
15501 /* Override any gcc2 internal prototype to avoid an error. */
15502 #ifdef __cplusplus
15503 extern "C"
15505 #endif
15506 /* We use char because int might match the return type of a gcc2
15507 builtin and then its argument prototype would still apply. */
15508 char $ac_func ();
15509 /* The GNU C library defines this for functions which it implements
15510 to always fail with ENOSYS. Some functions are actually named
15511 something starting with __ and the normal name is an alias. */
15512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15513 choke me
15514 #else
15515 char (*f) () = $ac_func;
15516 #endif
15517 #ifdef __cplusplus
15519 #endif
15522 main ()
15524 return f != $ac_func;
15526 return 0;
15528 _ACEOF
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15531 (eval $ac_link) 2>conftest.er1
15532 ac_status=$?
15533 grep -v '^ *+' conftest.er1 >conftest.err
15534 rm -f conftest.er1
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -z "$ac_c_werror_flag"
15539 || test ! -s conftest.err'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest$ac_exeext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 eval "$as_ac_var=yes"
15552 else
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 eval "$as_ac_var=no"
15558 rm -f conftest.err conftest.$ac_objext \
15559 conftest$ac_exeext conftest.$ac_ext
15561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15563 if test `eval echo '${'$as_ac_var'}'` = yes; then
15564 cat >>confdefs.h <<_ACEOF
15565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15566 _ACEOF
15569 done
15573 for ac_func in getuid getgid
15575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15576 echo "$as_me:$LINENO: checking for $ac_func" >&5
15577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15578 if eval "test \"\${$as_ac_var+set}\" = set"; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h. */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15589 #define $ac_func innocuous_$ac_func
15591 /* System header to define __stub macros and hopefully few prototypes,
15592 which can conflict with char $ac_func (); below.
15593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15594 <limits.h> exists even on freestanding compilers. */
15596 #ifdef __STDC__
15597 # include <limits.h>
15598 #else
15599 # include <assert.h>
15600 #endif
15602 #undef $ac_func
15604 /* Override any gcc2 internal prototype to avoid an error. */
15605 #ifdef __cplusplus
15606 extern "C"
15608 #endif
15609 /* We use char because int might match the return type of a gcc2
15610 builtin and then its argument prototype would still apply. */
15611 char $ac_func ();
15612 /* The GNU C library defines this for functions which it implements
15613 to always fail with ENOSYS. Some functions are actually named
15614 something starting with __ and the normal name is an alias. */
15615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15616 choke me
15617 #else
15618 char (*f) () = $ac_func;
15619 #endif
15620 #ifdef __cplusplus
15622 #endif
15625 main ()
15627 return f != $ac_func;
15629 return 0;
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15634 (eval $ac_link) 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
15641 { ac_try='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest$ac_exeext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 eval "$as_ac_var=yes"
15655 else
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 eval "$as_ac_var=no"
15661 rm -f conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15666 if test `eval echo '${'$as_ac_var'}'` = yes; then
15667 cat >>confdefs.h <<_ACEOF
15668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15669 _ACEOF
15672 done
15675 for ac_func in poll
15677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15678 echo "$as_me:$LINENO: checking for $ac_func" >&5
15679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15680 if eval "test \"\${$as_ac_var+set}\" = set"; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h. */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15691 #define $ac_func innocuous_$ac_func
15693 /* System header to define __stub macros and hopefully few prototypes,
15694 which can conflict with char $ac_func (); below.
15695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15696 <limits.h> exists even on freestanding compilers. */
15698 #ifdef __STDC__
15699 # include <limits.h>
15700 #else
15701 # include <assert.h>
15702 #endif
15704 #undef $ac_func
15706 /* Override any gcc2 internal prototype to avoid an error. */
15707 #ifdef __cplusplus
15708 extern "C"
15710 #endif
15711 /* We use char because int might match the return type of a gcc2
15712 builtin and then its argument prototype would still apply. */
15713 char $ac_func ();
15714 /* The GNU C library defines this for functions which it implements
15715 to always fail with ENOSYS. Some functions are actually named
15716 something starting with __ and the normal name is an alias. */
15717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15718 choke me
15719 #else
15720 char (*f) () = $ac_func;
15721 #endif
15722 #ifdef __cplusplus
15724 #endif
15727 main ()
15729 return f != $ac_func;
15731 return 0;
15733 _ACEOF
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736 (eval $ac_link) 2>conftest.er1
15737 ac_status=$?
15738 grep -v '^ *+' conftest.er1 >conftest.err
15739 rm -f conftest.er1
15740 cat conftest.err >&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -z "$ac_c_werror_flag"
15744 || test ! -s conftest.err'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; } &&
15750 { ac_try='test -s conftest$ac_exeext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 eval "$as_ac_var=yes"
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 eval "$as_ac_var=no"
15763 rm -f conftest.err conftest.$ac_objext \
15764 conftest$ac_exeext conftest.$ac_ext
15766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15768 if test `eval echo '${'$as_ac_var'}'` = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15771 _ACEOF
15774 done
15777 for ac_func in pread64
15779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15780 echo "$as_me:$LINENO: checking for $ac_func" >&5
15781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15782 if eval "test \"\${$as_ac_var+set}\" = set"; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785 cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h. */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15793 #define $ac_func innocuous_$ac_func
15795 /* System header to define __stub macros and hopefully few prototypes,
15796 which can conflict with char $ac_func (); below.
15797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15798 <limits.h> exists even on freestanding compilers. */
15800 #ifdef __STDC__
15801 # include <limits.h>
15802 #else
15803 # include <assert.h>
15804 #endif
15806 #undef $ac_func
15808 /* Override any gcc2 internal prototype to avoid an error. */
15809 #ifdef __cplusplus
15810 extern "C"
15812 #endif
15813 /* We use char because int might match the return type of a gcc2
15814 builtin and then its argument prototype would still apply. */
15815 char $ac_func ();
15816 /* The GNU C library defines this for functions which it implements
15817 to always fail with ENOSYS. Some functions are actually named
15818 something starting with __ and the normal name is an alias. */
15819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15820 choke me
15821 #else
15822 char (*f) () = $ac_func;
15823 #endif
15824 #ifdef __cplusplus
15826 #endif
15829 main ()
15831 return f != $ac_func;
15833 return 0;
15835 _ACEOF
15836 rm -f conftest.$ac_objext conftest$ac_exeext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838 (eval $ac_link) 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag"
15846 || test ! -s conftest.err'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest$ac_exeext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 eval "$as_ac_var=yes"
15859 else
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 eval "$as_ac_var=no"
15865 rm -f conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
15868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15870 if test `eval echo '${'$as_ac_var'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15873 _ACEOF
15876 done
15879 for ac_func in sbrk
15881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15882 echo "$as_me:$LINENO: checking for $ac_func" >&5
15883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15884 if eval "test \"\${$as_ac_var+set}\" = set"; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h. */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15895 #define $ac_func innocuous_$ac_func
15897 /* System header to define __stub macros and hopefully few prototypes,
15898 which can conflict with char $ac_func (); below.
15899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15900 <limits.h> exists even on freestanding compilers. */
15902 #ifdef __STDC__
15903 # include <limits.h>
15904 #else
15905 # include <assert.h>
15906 #endif
15908 #undef $ac_func
15910 /* Override any gcc2 internal prototype to avoid an error. */
15911 #ifdef __cplusplus
15912 extern "C"
15914 #endif
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917 char $ac_func ();
15918 /* The GNU C library defines this for functions which it implements
15919 to always fail with ENOSYS. Some functions are actually named
15920 something starting with __ and the normal name is an alias. */
15921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15922 choke me
15923 #else
15924 char (*f) () = $ac_func;
15925 #endif
15926 #ifdef __cplusplus
15928 #endif
15931 main ()
15933 return f != $ac_func;
15935 return 0;
15937 _ACEOF
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15940 (eval $ac_link) 2>conftest.er1
15941 ac_status=$?
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -z "$ac_c_werror_flag"
15948 || test ! -s conftest.err'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest$ac_exeext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 eval "$as_ac_var=yes"
15961 else
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 eval "$as_ac_var=no"
15967 rm -f conftest.err conftest.$ac_objext \
15968 conftest$ac_exeext conftest.$ac_ext
15970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15972 if test `eval echo '${'$as_ac_var'}'` = yes; then
15973 cat >>confdefs.h <<_ACEOF
15974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15975 _ACEOF
15978 done
15982 for ac_func in setpgid setpgrp
15984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15985 echo "$as_me:$LINENO: checking for $ac_func" >&5
15986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15987 if eval "test \"\${$as_ac_var+set}\" = set"; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h. */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15998 #define $ac_func innocuous_$ac_func
16000 /* System header to define __stub macros and hopefully few prototypes,
16001 which can conflict with char $ac_func (); below.
16002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16003 <limits.h> exists even on freestanding compilers. */
16005 #ifdef __STDC__
16006 # include <limits.h>
16007 #else
16008 # include <assert.h>
16009 #endif
16011 #undef $ac_func
16013 /* Override any gcc2 internal prototype to avoid an error. */
16014 #ifdef __cplusplus
16015 extern "C"
16017 #endif
16018 /* We use char because int might match the return type of a gcc2
16019 builtin and then its argument prototype would still apply. */
16020 char $ac_func ();
16021 /* The GNU C library defines this for functions which it implements
16022 to always fail with ENOSYS. Some functions are actually named
16023 something starting with __ and the normal name is an alias. */
16024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16025 choke me
16026 #else
16027 char (*f) () = $ac_func;
16028 #endif
16029 #ifdef __cplusplus
16031 #endif
16034 main ()
16036 return f != $ac_func;
16038 return 0;
16040 _ACEOF
16041 rm -f conftest.$ac_objext conftest$ac_exeext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16043 (eval $ac_link) 2>conftest.er1
16044 ac_status=$?
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest$ac_exeext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063 eval "$as_ac_var=yes"
16064 else
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 eval "$as_ac_var=no"
16070 rm -f conftest.err conftest.$ac_objext \
16071 conftest$ac_exeext conftest.$ac_ext
16073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16075 if test `eval echo '${'$as_ac_var'}'` = yes; then
16076 cat >>confdefs.h <<_ACEOF
16077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16078 _ACEOF
16081 done
16086 for ac_func in sigaction sigprocmask sigsetmask
16088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 echo "$as_me:$LINENO: checking for $ac_func" >&5
16090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16091 if eval "test \"\${$as_ac_var+set}\" = set"; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h. */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16102 #define $ac_func innocuous_$ac_func
16104 /* System header to define __stub macros and hopefully few prototypes,
16105 which can conflict with char $ac_func (); below.
16106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16107 <limits.h> exists even on freestanding compilers. */
16109 #ifdef __STDC__
16110 # include <limits.h>
16111 #else
16112 # include <assert.h>
16113 #endif
16115 #undef $ac_func
16117 /* Override any gcc2 internal prototype to avoid an error. */
16118 #ifdef __cplusplus
16119 extern "C"
16121 #endif
16122 /* We use char because int might match the return type of a gcc2
16123 builtin and then its argument prototype would still apply. */
16124 char $ac_func ();
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16129 choke me
16130 #else
16131 char (*f) () = $ac_func;
16132 #endif
16133 #ifdef __cplusplus
16135 #endif
16138 main ()
16140 return f != $ac_func;
16142 return 0;
16144 _ACEOF
16145 rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147 (eval $ac_link) 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag"
16155 || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest$ac_exeext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 eval "$as_ac_var=yes"
16168 else
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 eval "$as_ac_var=no"
16174 rm -f conftest.err conftest.$ac_objext \
16175 conftest$ac_exeext conftest.$ac_ext
16177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16179 if test `eval echo '${'$as_ac_var'}'` = yes; then
16180 cat >>confdefs.h <<_ACEOF
16181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16182 _ACEOF
16185 done
16188 for ac_func in socketpair
16190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16191 echo "$as_me:$LINENO: checking for $ac_func" >&5
16192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16193 if eval "test \"\${$as_ac_var+set}\" = set"; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16204 #define $ac_func innocuous_$ac_func
16206 /* System header to define __stub macros and hopefully few prototypes,
16207 which can conflict with char $ac_func (); below.
16208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16209 <limits.h> exists even on freestanding compilers. */
16211 #ifdef __STDC__
16212 # include <limits.h>
16213 #else
16214 # include <assert.h>
16215 #endif
16217 #undef $ac_func
16219 /* Override any gcc2 internal prototype to avoid an error. */
16220 #ifdef __cplusplus
16221 extern "C"
16223 #endif
16224 /* We use char because int might match the return type of a gcc2
16225 builtin and then its argument prototype would still apply. */
16226 char $ac_func ();
16227 /* The GNU C library defines this for functions which it implements
16228 to always fail with ENOSYS. Some functions are actually named
16229 something starting with __ and the normal name is an alias. */
16230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16231 choke me
16232 #else
16233 char (*f) () = $ac_func;
16234 #endif
16235 #ifdef __cplusplus
16237 #endif
16240 main ()
16242 return f != $ac_func;
16244 return 0;
16246 _ACEOF
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16249 (eval $ac_link) 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag"
16257 || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try='test -s conftest$ac_exeext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 eval "$as_ac_var=yes"
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 eval "$as_ac_var=no"
16276 rm -f conftest.err conftest.$ac_objext \
16277 conftest$ac_exeext conftest.$ac_ext
16279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h <<_ACEOF
16283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16284 _ACEOF
16287 done
16290 for ac_func in syscall
16292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16293 echo "$as_me:$LINENO: checking for $ac_func" >&5
16294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16295 if eval "test \"\${$as_ac_var+set}\" = set"; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298 cat >conftest.$ac_ext <<_ACEOF
16299 /* confdefs.h. */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16306 #define $ac_func innocuous_$ac_func
16308 /* System header to define __stub macros and hopefully few prototypes,
16309 which can conflict with char $ac_func (); below.
16310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16311 <limits.h> exists even on freestanding compilers. */
16313 #ifdef __STDC__
16314 # include <limits.h>
16315 #else
16316 # include <assert.h>
16317 #endif
16319 #undef $ac_func
16321 /* Override any gcc2 internal prototype to avoid an error. */
16322 #ifdef __cplusplus
16323 extern "C"
16325 #endif
16326 /* We use char because int might match the return type of a gcc2
16327 builtin and then its argument prototype would still apply. */
16328 char $ac_func ();
16329 /* The GNU C library defines this for functions which it implements
16330 to always fail with ENOSYS. Some functions are actually named
16331 something starting with __ and the normal name is an alias. */
16332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16333 choke me
16334 #else
16335 char (*f) () = $ac_func;
16336 #endif
16337 #ifdef __cplusplus
16339 #endif
16342 main ()
16344 return f != $ac_func;
16346 return 0;
16348 _ACEOF
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16351 (eval $ac_link) 2>conftest.er1
16352 ac_status=$?
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag"
16359 || test ! -s conftest.err'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; } &&
16365 { ac_try='test -s conftest$ac_exeext'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16368 ac_status=$?
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16371 eval "$as_ac_var=yes"
16372 else
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 eval "$as_ac_var=no"
16378 rm -f conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16383 if test `eval echo '${'$as_ac_var'}'` = yes; then
16384 cat >>confdefs.h <<_ACEOF
16385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16386 _ACEOF
16389 done
16392 for ac_func in ttrace
16394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16395 echo "$as_me:$LINENO: checking for $ac_func" >&5
16396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16397 if eval "test \"\${$as_ac_var+set}\" = set"; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h. */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16408 #define $ac_func innocuous_$ac_func
16410 /* System header to define __stub macros and hopefully few prototypes,
16411 which can conflict with char $ac_func (); below.
16412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16413 <limits.h> exists even on freestanding compilers. */
16415 #ifdef __STDC__
16416 # include <limits.h>
16417 #else
16418 # include <assert.h>
16419 #endif
16421 #undef $ac_func
16423 /* Override any gcc2 internal prototype to avoid an error. */
16424 #ifdef __cplusplus
16425 extern "C"
16427 #endif
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430 char $ac_func ();
16431 /* The GNU C library defines this for functions which it implements
16432 to always fail with ENOSYS. Some functions are actually named
16433 something starting with __ and the normal name is an alias. */
16434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16435 choke me
16436 #else
16437 char (*f) () = $ac_func;
16438 #endif
16439 #ifdef __cplusplus
16441 #endif
16444 main ()
16446 return f != $ac_func;
16448 return 0;
16450 _ACEOF
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>conftest.er1
16454 ac_status=$?
16455 grep -v '^ *+' conftest.er1 >conftest.err
16456 rm -f conftest.er1
16457 cat conftest.err >&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -z "$ac_c_werror_flag"
16461 || test ! -s conftest.err'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 eval "$as_ac_var=yes"
16474 else
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 eval "$as_ac_var=no"
16480 rm -f conftest.err conftest.$ac_objext \
16481 conftest$ac_exeext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16485 if test `eval echo '${'$as_ac_var'}'` = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16488 _ACEOF
16491 done
16494 for ac_func in wborder
16496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16497 echo "$as_me:$LINENO: checking for $ac_func" >&5
16498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16499 if eval "test \"\${$as_ac_var+set}\" = set"; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h. */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16510 #define $ac_func innocuous_$ac_func
16512 /* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func (); below.
16514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16515 <limits.h> exists even on freestanding compilers. */
16517 #ifdef __STDC__
16518 # include <limits.h>
16519 #else
16520 # include <assert.h>
16521 #endif
16523 #undef $ac_func
16525 /* Override any gcc2 internal prototype to avoid an error. */
16526 #ifdef __cplusplus
16527 extern "C"
16529 #endif
16530 /* We use char because int might match the return type of a gcc2
16531 builtin and then its argument prototype would still apply. */
16532 char $ac_func ();
16533 /* The GNU C library defines this for functions which it implements
16534 to always fail with ENOSYS. Some functions are actually named
16535 something starting with __ and the normal name is an alias. */
16536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16537 choke me
16538 #else
16539 char (*f) () = $ac_func;
16540 #endif
16541 #ifdef __cplusplus
16543 #endif
16546 main ()
16548 return f != $ac_func;
16550 return 0;
16552 _ACEOF
16553 rm -f conftest.$ac_objext conftest$ac_exeext
16554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16555 (eval $ac_link) 2>conftest.er1
16556 ac_status=$?
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } &&
16562 { ac_try='test -z "$ac_c_werror_flag"
16563 || test ! -s conftest.err'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; } &&
16569 { ac_try='test -s conftest$ac_exeext'
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
16575 eval "$as_ac_var=yes"
16576 else
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 eval "$as_ac_var=no"
16582 rm -f conftest.err conftest.$ac_objext \
16583 conftest$ac_exeext conftest.$ac_ext
16585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16587 if test `eval echo '${'$as_ac_var'}'` = yes; then
16588 cat >>confdefs.h <<_ACEOF
16589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16590 _ACEOF
16593 done
16596 # Check the return and argument types of ptrace. No canned test for
16597 # this, so roll our own.
16598 gdb_ptrace_headers='
16599 #if HAVE_SYS_TYPES_H
16600 # include <sys/types.h>
16601 #endif
16602 #if HAVE_SYS_PTRACE_H
16603 # include <sys/ptrace.h>
16604 #endif
16605 #if HAVE_UNISTD_H
16606 # include <unistd.h>
16607 #endif
16609 # There is no point in checking if we don't have a prototype.
16610 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16611 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16612 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 $gdb_ptrace_headers
16624 main ()
16626 #ifndef ptrace
16627 char *p = (char *) ptrace;
16628 #endif
16631 return 0;
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16636 (eval $ac_compile) 2>conftest.er1
16637 ac_status=$?
16638 grep -v '^ *+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag"
16644 || test ! -s conftest.err'
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16647 ac_status=$?
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; } &&
16650 { ac_try='test -s conftest.$ac_objext'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 ac_cv_have_decl_ptrace=yes
16657 else
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 ac_cv_have_decl_ptrace=no
16663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16665 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16666 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16667 if test $ac_cv_have_decl_ptrace = yes; then
16669 cat >>confdefs.h <<_ACEOF
16670 #define HAVE_DECL_PTRACE 1
16671 _ACEOF
16674 else
16675 cat >>confdefs.h <<_ACEOF
16676 #define HAVE_DECL_PTRACE 0
16677 _ACEOF
16680 : ${gdb_cv_func_ptrace_ret='int'}
16681 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16686 # Check return type.
16687 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16688 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16689 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 $gdb_ptrace_headers
16700 main ()
16702 extern int ptrace ();
16704 return 0;
16706 _ACEOF
16707 rm -f conftest.$ac_objext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709 (eval $ac_compile) 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag"
16717 || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest.$ac_objext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 gdb_cv_func_ptrace_ret='int'
16730 else
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 gdb_cv_func_ptrace_ret='long'
16736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16738 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16739 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16741 cat >>confdefs.h <<_ACEOF
16742 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16743 _ACEOF
16745 # Check argument types.
16746 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16747 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16748 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16752 for gdb_arg1 in 'int' 'long'; do
16753 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16754 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16755 for gdb_arg4 in 'int' 'long'; do
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h. */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 $gdb_ptrace_headers
16764 main ()
16767 extern $gdb_cv_func_ptrace_ret
16768 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16771 return 0;
16773 _ACEOF
16774 rm -f conftest.$ac_objext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16797 break 4;
16798 else
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16804 for gdb_arg5 in 'int *' 'int' 'long'; do
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h. */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 $gdb_ptrace_headers
16813 main ()
16816 extern $gdb_cv_func_ptrace_ret
16817 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16820 return 0;
16822 _ACEOF
16823 rm -f conftest.$ac_objext
16824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16825 (eval $ac_compile) 2>conftest.er1
16826 ac_status=$?
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try='test -z "$ac_c_werror_flag"
16833 || test ! -s conftest.err'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest.$ac_objext'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16846 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16847 break 5;
16848 else
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16854 done
16855 done
16856 done
16857 done
16858 done
16859 # Provide a safe default value.
16860 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16863 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16864 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16865 ac_save_IFS=$IFS; IFS=','
16866 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16867 IFS=$ac_save_IFS
16868 shift
16870 cat >>confdefs.h <<_ACEOF
16871 #define PTRACE_TYPE_ARG3 $3
16872 _ACEOF
16874 if test -n "$5"; then
16876 cat >>confdefs.h <<_ACEOF
16877 #define PTRACE_TYPE_ARG5 $5
16878 _ACEOF
16882 if test "$cross_compiling" = no; then
16883 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16884 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16885 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888 if test "$cross_compiling" = yes; then
16889 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16890 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16891 { (exit 1); exit 1; }; }
16892 else
16893 cat >conftest.$ac_ext <<_ACEOF
16894 /* confdefs.h. */
16895 _ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16899 #if HAVE_UNISTD_H
16900 # include <unistd.h>
16901 #endif
16904 main ()
16906 /* If this system has a BSD-style setpgrp which takes arguments,
16907 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16908 exit successfully. */
16909 exit (setpgrp (1,1) == -1 ? 0 : 1);
16911 return 0;
16913 _ACEOF
16914 rm -f conftest$ac_exeext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16916 (eval $ac_link) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_cv_func_setpgrp_void=no
16926 else
16927 echo "$as_me: program exited with status $ac_status" >&5
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16931 ( exit $ac_status )
16932 ac_cv_func_setpgrp_void=yes
16934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16937 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16938 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16939 if test $ac_cv_func_setpgrp_void = yes; then
16941 cat >>confdefs.h <<\_ACEOF
16942 #define SETPGRP_VOID 1
16943 _ACEOF
16947 else
16948 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16949 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16950 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953 cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h. */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16960 #include <unistd.h>
16963 main ()
16966 if (setpgrp(1,1) == -1)
16967 exit (0);
16968 else
16969 exit (1);
16972 return 0;
16974 _ACEOF
16975 rm -f conftest.$ac_objext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16977 (eval $ac_compile) 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag"
16985 || test ! -s conftest.err'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; } &&
16991 { ac_try='test -s conftest.$ac_objext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_func_setpgrp_void=no
16998 else
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 ac_cv_func_setpgrp_void=yes
17004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17006 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17007 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17008 if test $ac_cv_func_setpgrp_void = yes; then
17009 cat >>confdefs.h <<\_ACEOF
17010 #define SETPGRP_VOID 1
17011 _ACEOF
17016 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17017 # since sigsetjmp might only be defined as a macro.
17018 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17019 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17020 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 else
17023 cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h. */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17030 #include <setjmp.h>
17033 main ()
17035 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
17037 return 0;
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17042 (eval $ac_compile) 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -z "$ac_c_werror_flag"
17050 || test ! -s conftest.err'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; } &&
17056 { ac_try='test -s conftest.$ac_objext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 gdb_cv_func_sigsetjmp=yes
17063 else
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 gdb_cv_func_sigsetjmp=no
17069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17071 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17072 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
17073 if test $gdb_cv_func_sigsetjmp = yes; then
17075 cat >>confdefs.h <<\_ACEOF
17076 #define HAVE_SIGSETJMP 1
17077 _ACEOF
17081 # Assume we'll default to using the included libiberty regex.
17082 gdb_use_included_regex=yes
17084 # However, if the system regex is GNU regex, then default to *not*
17085 # using the included regex.
17086 echo "$as_me:$LINENO: checking for GNU regex" >&5
17087 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17088 if test "${gdb_cv_have_gnu_regex+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 else
17091 cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h. */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 #include <gnu-versions.h>
17099 main ()
17101 #define REGEX_INTERFACE_VERSION 1
17102 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17103 # error "Version mismatch"
17104 #endif
17106 return 0;
17108 _ACEOF
17109 rm -f conftest.$ac_objext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17111 (eval $ac_compile) 2>conftest.er1
17112 ac_status=$?
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
17118 { ac_try='test -z "$ac_c_werror_flag"
17119 || test ! -s conftest.err'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest.$ac_objext'
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 gdb_cv_have_gnu_regex=yes
17132 else
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 gdb_cv_have_gnu_regex=no
17138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17140 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
17141 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
17142 if test $gdb_cv_have_gnu_regex = yes; then
17143 gdb_use_included_regex=no
17147 # Check whether --with-included-regex or --without-included-regex was given.
17148 if test "${with_included_regex+set}" = set; then
17149 withval="$with_included_regex"
17150 gdb_with_regex=$withval
17151 else
17152 gdb_with_regex=$gdb_use_included_regex
17154 if test "$gdb_with_regex" = yes; then
17156 cat >>confdefs.h <<\_ACEOF
17157 #define USE_INCLUDED_REGEX 1
17158 _ACEOF
17162 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
17163 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
17164 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
17165 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168 cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h. */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 #include <sys/param.h>
17175 #include <sys/proc.h>
17179 main ()
17181 static struct thread ac_aggr;
17182 if (ac_aggr.td_pcb)
17183 return 0;
17185 return 0;
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 ac_cv_member_struct_thread_td_pcb=yes
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h. */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17221 #include <sys/param.h>
17222 #include <sys/proc.h>
17226 main ()
17228 static struct thread ac_aggr;
17229 if (sizeof ac_aggr.td_pcb)
17230 return 0;
17232 return 0;
17234 _ACEOF
17235 rm -f conftest.$ac_objext
17236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17237 (eval $ac_compile) 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag"
17245 || test ! -s conftest.err'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest.$ac_objext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_member_struct_thread_td_pcb=yes
17258 else
17259 echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 ac_cv_member_struct_thread_td_pcb=no
17264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17268 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
17269 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
17270 if test $ac_cv_member_struct_thread_td_pcb = yes; then
17272 cat >>confdefs.h <<_ACEOF
17273 #define HAVE_STRUCT_THREAD_TD_PCB 1
17274 _ACEOF
17280 # See if <sys/lwp.h> defines `struct lwp`.
17281 echo "$as_me:$LINENO: checking for struct lwp" >&5
17282 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
17283 if test "${gdb_cv_struct_lwp+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h. */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292 #include <sys/param.h>
17293 #include <sys/lwp.h>
17295 main ()
17297 struct lwp l;
17299 return 0;
17301 _ACEOF
17302 rm -f conftest.$ac_objext
17303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17304 (eval $ac_compile) 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -z "$ac_c_werror_flag"
17312 || test ! -s conftest.err'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest.$ac_objext'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 gdb_cv_struct_lwp=yes
17325 else
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 gdb_cv_struct_lwp=no
17331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17333 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
17334 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
17335 if test $gdb_cv_struct_lwp = yes; then
17337 cat >>confdefs.h <<\_ACEOF
17338 #define HAVE_STRUCT_LWP 1
17339 _ACEOF
17343 # See if <machine/reg.h> degines `struct reg'.
17344 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
17345 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
17346 if test "${gdb_cv_struct_reg+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
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 #include <sys/types.h>
17356 #include <machine/reg.h>
17358 main ()
17360 struct reg r;
17362 return 0;
17364 _ACEOF
17365 rm -f conftest.$ac_objext
17366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17367 (eval $ac_compile) 2>conftest.er1
17368 ac_status=$?
17369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -z "$ac_c_werror_flag"
17375 || test ! -s conftest.err'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 gdb_cv_struct_reg=yes
17388 else
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 gdb_cv_struct_reg=no
17394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17396 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
17397 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
17398 if test $gdb_cv_struct_reg = yes; then
17400 cat >>confdefs.h <<\_ACEOF
17401 #define HAVE_STRUCT_REG 1
17402 _ACEOF
17406 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
17407 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
17408 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
17409 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
17410 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413 cat >conftest.$ac_ext <<_ACEOF
17414 /* confdefs.h. */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 #include <machine/reg.h>
17422 main ()
17424 static struct reg ac_aggr;
17425 if (ac_aggr.r_fs)
17426 return 0;
17428 return 0;
17430 _ACEOF
17431 rm -f conftest.$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433 (eval $ac_compile) 2>conftest.er1
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } &&
17440 { ac_try='test -z "$ac_c_werror_flag"
17441 || test ! -s conftest.err'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest.$ac_objext'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 ac_cv_member_struct_reg_r_fs=yes
17454 else
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 #include <machine/reg.h>
17467 main ()
17469 static struct reg ac_aggr;
17470 if (sizeof ac_aggr.r_fs)
17471 return 0;
17473 return 0;
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478 (eval $ac_compile) 2>conftest.er1
17479 ac_status=$?
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -z "$ac_c_werror_flag"
17486 || test ! -s conftest.err'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 ac_cv_member_struct_reg_r_fs=yes
17499 else
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17503 ac_cv_member_struct_reg_r_fs=no
17505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17509 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17510 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17511 if test $ac_cv_member_struct_reg_r_fs = yes; then
17513 cat >>confdefs.h <<_ACEOF
17514 #define HAVE_STRUCT_REG_R_FS 1
17515 _ACEOF
17519 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17520 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17521 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 else
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h. */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 #include <machine/reg.h>
17533 main ()
17535 static struct reg ac_aggr;
17536 if (ac_aggr.r_gs)
17537 return 0;
17539 return 0;
17541 _ACEOF
17542 rm -f conftest.$ac_objext
17543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17544 (eval $ac_compile) 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag"
17552 || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest.$ac_objext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 ac_cv_member_struct_reg_r_gs=yes
17565 else
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 #include <machine/reg.h>
17578 main ()
17580 static struct reg ac_aggr;
17581 if (sizeof ac_aggr.r_gs)
17582 return 0;
17584 return 0;
17586 _ACEOF
17587 rm -f conftest.$ac_objext
17588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17589 (eval $ac_compile) 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try='test -z "$ac_c_werror_flag"
17597 || test ! -s conftest.err'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest.$ac_objext'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
17609 ac_cv_member_struct_reg_r_gs=yes
17610 else
17611 echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.$ac_ext >&5
17614 ac_cv_member_struct_reg_r_gs=no
17616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17621 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17622 if test $ac_cv_member_struct_reg_r_gs = yes; then
17624 cat >>confdefs.h <<_ACEOF
17625 #define HAVE_STRUCT_REG_R_GS 1
17626 _ACEOF
17632 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17633 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17634 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17635 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638 cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h. */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 #include <sys/ptrace.h>
17646 main ()
17648 PTRACE_GETREGS;
17650 return 0;
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag"
17663 || test ! -s conftest.err'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 gdb_cv_have_ptrace_getregs=yes
17676 else
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 gdb_cv_have_ptrace_getregs=no
17682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17685 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17686 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17687 if test $gdb_cv_have_ptrace_getregs = yes; then
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_PTRACE_GETREGS 1
17691 _ACEOF
17695 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17696 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17697 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17698 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701 cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h. */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 #include <sys/ptrace.h>
17709 main ()
17711 PTRACE_GETFPXREGS;
17713 return 0;
17715 _ACEOF
17716 rm -f conftest.$ac_objext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17718 (eval $ac_compile) 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_c_werror_flag"
17726 || test ! -s conftest.err'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest.$ac_objext'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 gdb_cv_have_ptrace_getfpxregs=yes
17739 else
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 gdb_cv_have_ptrace_getfpxregs=no
17745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17748 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17749 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17750 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17752 cat >>confdefs.h <<\_ACEOF
17753 #define HAVE_PTRACE_GETFPXREGS 1
17754 _ACEOF
17758 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17759 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17760 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17761 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h. */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 #include <sys/types.h>
17771 #include <sys/ptrace.h>
17773 main ()
17775 PT_GETDBREGS;
17777 return 0;
17779 _ACEOF
17780 rm -f conftest.$ac_objext
17781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17782 (eval $ac_compile) 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag"
17790 || test ! -s conftest.err'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest.$ac_objext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 gdb_cv_have_pt_getdbregs=yes
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17807 gdb_cv_have_pt_getdbregs=no
17809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17812 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17813 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17814 if test $gdb_cv_have_pt_getdbregs = yes; then
17816 cat >>confdefs.h <<\_ACEOF
17817 #define HAVE_PT_GETDBREGS 1
17818 _ACEOF
17822 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17823 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17824 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17825 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828 cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h. */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 #include <sys/types.h>
17835 #include <sys/ptrace.h>
17837 main ()
17839 PT_GETXMMREGS;
17841 return 0;
17843 _ACEOF
17844 rm -f conftest.$ac_objext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17846 (eval $ac_compile) 2>conftest.er1
17847 ac_status=$?
17848 grep -v '^ *+' conftest.er1 >conftest.err
17849 rm -f conftest.er1
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag"
17854 || test ! -s conftest.err'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 gdb_cv_have_pt_getxmmregs=yes
17867 else
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 gdb_cv_have_pt_getxmmregs=no
17873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17877 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17878 if test $gdb_cv_have_pt_getxmmregs = yes; then
17880 cat >>confdefs.h <<\_ACEOF
17881 #define HAVE_PT_GETXMMREGS 1
17882 _ACEOF
17886 # If we are configured native on GNU/Linux, work around problems with
17887 # sys/procfs.h
17888 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17890 if test "${target}" = "${host}"; then
17891 case "${host}" in
17892 i[3456]86-*-linux*)
17894 cat >>confdefs.h <<\_ACEOF
17895 #define START_INFERIOR_TRAPS_EXPECTED 2
17896 _ACEOF
17899 cat >>confdefs.h <<\_ACEOF
17900 #define sys_quotactl 1
17901 _ACEOF
17904 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17906 cat >>confdefs.h <<\_ACEOF
17907 #define NEW_PROC_API 1
17908 _ACEOF
17911 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17913 cat >>confdefs.h <<\_ACEOF
17914 #define NEW_PROC_API 1
17915 _ACEOF
17918 mips-sgi-irix5*)
17919 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17921 cat >>confdefs.h <<\_ACEOF
17922 #define _KMEMUSER 1
17923 _ACEOF
17926 esac
17929 if test "$ac_cv_header_sys_procfs_h" = yes; then
17930 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17931 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17932 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 else
17935 cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h. */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17942 #define _SYSCALL32
17943 #include <sys/procfs.h>
17945 main ()
17947 pstatus_t avar
17949 return 0;
17951 _ACEOF
17952 rm -f conftest.$ac_objext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17954 (eval $ac_compile) 2>conftest.er1
17955 ac_status=$?
17956 grep -v '^ *+' conftest.er1 >conftest.err
17957 rm -f conftest.er1
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
17961 { ac_try='test -z "$ac_c_werror_flag"
17962 || test ! -s conftest.err'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest.$ac_objext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17975 else
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 bfd_cv_have_sys_procfs_type_pstatus_t=no
17982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17985 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17987 cat >>confdefs.h <<\_ACEOF
17988 #define HAVE_PSTATUS_T 1
17989 _ACEOF
17992 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17993 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17995 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17996 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17997 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18007 #define _SYSCALL32
18008 #include <sys/procfs.h>
18010 main ()
18012 prrun_t avar
18014 return 0;
18016 _ACEOF
18017 rm -f conftest.$ac_objext
18018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18019 (eval $ac_compile) 2>conftest.er1
18020 ac_status=$?
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -z "$ac_c_werror_flag"
18027 || test ! -s conftest.err'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 bfd_cv_have_sys_procfs_type_prrun_t=yes
18040 else
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 bfd_cv_have_sys_procfs_type_prrun_t=no
18047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18050 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
18052 cat >>confdefs.h <<\_ACEOF
18053 #define HAVE_PRRUN_T 1
18054 _ACEOF
18057 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18058 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
18060 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18061 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18062 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065 cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h. */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18072 #define _SYSCALL32
18073 #include <sys/procfs.h>
18075 main ()
18077 gregset_t avar
18079 return 0;
18081 _ACEOF
18082 rm -f conftest.$ac_objext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18084 (eval $ac_compile) 2>conftest.er1
18085 ac_status=$?
18086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest.$ac_objext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 bfd_cv_have_sys_procfs_type_gregset_t=yes
18105 else
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 bfd_cv_have_sys_procfs_type_gregset_t=no
18112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18115 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
18117 cat >>confdefs.h <<\_ACEOF
18118 #define HAVE_GREGSET_T 1
18119 _ACEOF
18122 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18123 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
18125 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18126 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18127 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130 cat >conftest.$ac_ext <<_ACEOF
18131 /* confdefs.h. */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18137 #define _SYSCALL32
18138 #include <sys/procfs.h>
18140 main ()
18142 fpregset_t avar
18144 return 0;
18146 _ACEOF
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag"
18157 || test ! -s conftest.err'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest.$ac_objext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 bfd_cv_have_sys_procfs_type_fpregset_t=yes
18170 else
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 bfd_cv_have_sys_procfs_type_fpregset_t=no
18177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE_FPREGSET_T 1
18184 _ACEOF
18187 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
18188 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
18190 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
18191 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
18192 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18194 else
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h. */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18202 #define _SYSCALL32
18203 #include <sys/procfs.h>
18205 main ()
18207 prgregset_t avar
18209 return 0;
18211 _ACEOF
18212 rm -f conftest.$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>conftest.er1
18215 ac_status=$?
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_c_werror_flag"
18222 || test ! -s conftest.err'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest.$ac_objext'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 bfd_cv_have_sys_procfs_type_prgregset_t=yes
18235 else
18236 echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18239 bfd_cv_have_sys_procfs_type_prgregset_t=no
18242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18245 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE_PRGREGSET_T 1
18249 _ACEOF
18252 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
18253 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
18255 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
18256 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
18257 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18267 #define _SYSCALL32
18268 #include <sys/procfs.h>
18270 main ()
18272 prfpregset_t avar
18274 return 0;
18276 _ACEOF
18277 rm -f conftest.$ac_objext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18279 (eval $ac_compile) 2>conftest.er1
18280 ac_status=$?
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag"
18287 || test ! -s conftest.err'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 bfd_cv_have_sys_procfs_type_prfpregset_t=no
18307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18310 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE_PRFPREGSET_T 1
18314 _ACEOF
18317 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
18318 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
18320 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
18321 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
18322 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 else
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18332 #define _SYSCALL32
18333 #include <sys/procfs.h>
18335 main ()
18337 prgregset32_t avar
18339 return 0;
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>conftest.er1
18345 ac_status=$?
18346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -z "$ac_c_werror_flag"
18352 || test ! -s conftest.err'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest.$ac_objext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
18365 else
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18369 bfd_cv_have_sys_procfs_type_prgregset32_t=no
18372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18375 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
18377 cat >>confdefs.h <<\_ACEOF
18378 #define HAVE_PRGREGSET32_T 1
18379 _ACEOF
18382 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
18383 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
18385 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
18386 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
18387 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390 cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h. */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h. */
18397 #define _SYSCALL32
18398 #include <sys/procfs.h>
18400 main ()
18402 prfpregset32_t avar
18404 return 0;
18406 _ACEOF
18407 rm -f conftest.$ac_objext
18408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18409 (eval $ac_compile) 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -z "$ac_c_werror_flag"
18417 || test ! -s conftest.err'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } &&
18423 { ac_try='test -s conftest.$ac_objext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
18430 else
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
18437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18440 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE_PRFPREGSET32_T 1
18444 _ACEOF
18447 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18448 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18450 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18451 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18452 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h. */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18462 #define _SYSCALL32
18463 #include <sys/procfs.h>
18465 main ()
18467 lwpid_t avar
18469 return 0;
18471 _ACEOF
18472 rm -f conftest.$ac_objext
18473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18474 (eval $ac_compile) 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } &&
18481 { ac_try='test -z "$ac_c_werror_flag"
18482 || test ! -s conftest.err'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; } &&
18488 { ac_try='test -s conftest.$ac_objext'
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18495 else
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18499 bfd_cv_have_sys_procfs_type_lwpid_t=no
18502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18505 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18507 cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_LWPID_T 1
18509 _ACEOF
18512 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18513 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18515 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18516 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18517 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 #define _SYSCALL32
18528 #include <sys/procfs.h>
18530 main ()
18532 psaddr_t avar
18534 return 0;
18536 _ACEOF
18537 rm -f conftest.$ac_objext
18538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18539 (eval $ac_compile) 2>conftest.er1
18540 ac_status=$?
18541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } &&
18546 { ac_try='test -z "$ac_c_werror_flag"
18547 || test ! -s conftest.err'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest.$ac_objext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18560 else
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18564 bfd_cv_have_sys_procfs_type_psaddr_t=no
18567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18570 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18572 cat >>confdefs.h <<\_ACEOF
18573 #define HAVE_PSADDR_T 1
18574 _ACEOF
18577 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18578 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18580 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18581 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18582 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18592 #define _SYSCALL32
18593 #include <sys/procfs.h>
18595 main ()
18597 prsysent_t avar
18599 return 0;
18601 _ACEOF
18602 rm -f conftest.$ac_objext
18603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604 (eval $ac_compile) 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag"
18612 || test ! -s conftest.err'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 bfd_cv_have_sys_procfs_type_prsysent_t=no
18632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18635 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18637 cat >>confdefs.h <<\_ACEOF
18638 #define HAVE_PRSYSENT_T 1
18639 _ACEOF
18642 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18643 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18645 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18646 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18647 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650 cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h. */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18657 #define _SYSCALL32
18658 #include <sys/procfs.h>
18660 main ()
18662 pr_sigset_t avar
18664 return 0;
18666 _ACEOF
18667 rm -f conftest.$ac_objext
18668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18669 (eval $ac_compile) 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
18676 { ac_try='test -z "$ac_c_werror_flag"
18677 || test ! -s conftest.err'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest.$ac_objext'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18690 else
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18694 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18700 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_PR_SIGSET_T 1
18704 _ACEOF
18707 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18708 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18710 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18711 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18712 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 else
18715 cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h. */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18722 #define _SYSCALL32
18723 #include <sys/procfs.h>
18725 main ()
18727 pr_sigaction64_t avar
18729 return 0;
18731 _ACEOF
18732 rm -f conftest.$ac_objext
18733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18734 (eval $ac_compile) 2>conftest.er1
18735 ac_status=$?
18736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } &&
18741 { ac_try='test -z "$ac_c_werror_flag"
18742 || test ! -s conftest.err'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest.$ac_objext'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18754 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18755 else
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18759 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18765 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE_PR_SIGACTION64_T 1
18769 _ACEOF
18772 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18773 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18775 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18776 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18777 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18779 else
18780 cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h. */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18787 #define _SYSCALL32
18788 #include <sys/procfs.h>
18790 main ()
18792 pr_siginfo64_t avar
18794 return 0;
18796 _ACEOF
18797 rm -f conftest.$ac_objext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18799 (eval $ac_compile) 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_c_werror_flag"
18807 || test ! -s conftest.err'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; } &&
18813 { ac_try='test -s conftest.$ac_objext'
18814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18816 ac_status=$?
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; }; then
18819 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18820 else
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18830 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define HAVE_PR_SIGINFO64_T 1
18834 _ACEOF
18837 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18838 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18844 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18845 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18846 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18847 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18849 else
18850 if test "$cross_compiling" = yes; then
18851 gdb_cv_prfpregset_t_broken=yes
18852 else
18853 cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h. */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 #include <sys/procfs.h>
18860 int main ()
18862 if (sizeof (prfpregset_t) == sizeof (void *))
18863 return 1;
18864 return 0;
18866 _ACEOF
18867 rm -f conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 gdb_cv_prfpregset_t_broken=no
18879 else
18880 echo "$as_me: program exited with status $ac_status" >&5
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ( exit $ac_status )
18885 gdb_cv_prfpregset_t_broken=yes
18887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18891 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18892 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18893 if test $gdb_cv_prfpregset_t_broken = yes; then
18895 cat >>confdefs.h <<\_ACEOF
18896 #define PRFPREGSET_T_BROKEN 1
18897 _ACEOF
18903 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18904 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18905 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 else
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h. */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 #include <unistd.h>
18915 #include <sys/types.h>
18916 #include <sys/procfs.h>
18919 main ()
18922 int dummy;;
18923 dummy = ioctl(0, PIOCSET, &dummy);
18926 return 0;
18928 _ACEOF
18929 rm -f conftest.$ac_objext
18930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18931 (eval $ac_compile) 2>conftest.er1
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try='test -z "$ac_c_werror_flag"
18939 || test ! -s conftest.err'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } &&
18945 { ac_try='test -s conftest.$ac_objext'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
18951 gdb_cv_have_procfs_piocset=yes
18952 else
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18956 gdb_cv_have_procfs_piocset=no
18958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18961 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18962 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18963 if test $gdb_cv_have_procfs_piocset = yes; then
18965 cat >>confdefs.h <<\_ACEOF
18966 #define HAVE_PROCFS_PIOCSET 1
18967 _ACEOF
18972 if test ${host} = ${target} ; then
18974 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18975 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18976 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979 cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h. */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18985 #include <link.h>
18987 main ()
18989 struct link_map lm; (void) lm.l_addr;
18991 return 0;
18993 _ACEOF
18994 rm -f conftest.$ac_objext
18995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18996 (eval $ac_compile) 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag"
19004 || test ! -s conftest.err'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest.$ac_objext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 gdb_cv_have_struct_link_map_with_l_members=yes
19017 else
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19021 gdb_cv_have_struct_link_map_with_l_members=no
19023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19026 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19027 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
19028 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
19030 cat >>confdefs.h <<\_ACEOF
19031 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
19032 _ACEOF
19037 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19038 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19039 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042 cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h. */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 #include <sys/types.h>
19049 #include <link.h>
19051 main ()
19053 struct link_map lm; (void) lm.lm_addr;
19055 return 0;
19057 _ACEOF
19058 rm -f conftest.$ac_objext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19060 (eval $ac_compile) 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_c_werror_flag"
19068 || test ! -s conftest.err'
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; } &&
19074 { ac_try='test -s conftest.$ac_objext'
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 gdb_cv_have_struct_link_map_with_lm_members=yes
19081 else
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 gdb_cv_have_struct_link_map_with_lm_members=no
19087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19090 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19091 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
19092 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
19094 cat >>confdefs.h <<\_ACEOF
19095 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
19096 _ACEOF
19101 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19102 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19103 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106 cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h. */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 #include <sys/types.h>
19113 #ifdef HAVE_NLIST_H
19114 #include <nlist.h>
19115 #endif
19116 #include <link.h>
19118 main ()
19120 struct so_map lm; (void) lm.som_addr;
19122 return 0;
19124 _ACEOF
19125 rm -f conftest.$ac_objext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19127 (eval $ac_compile) 2>conftest.er1
19128 ac_status=$?
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag"
19135 || test ! -s conftest.err'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest.$ac_objext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 gdb_cv_have_struct_so_map_with_som_members=yes
19148 else
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 gdb_cv_have_struct_so_map_with_som_members=no
19154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19157 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
19158 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
19159 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
19163 _ACEOF
19168 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
19169 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
19170 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 else
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h. */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 #define _SYSCALL32
19180 #include <sys/link.h>
19182 main ()
19184 struct link_map32 l;
19186 return 0;
19188 _ACEOF
19189 rm -f conftest.$ac_objext
19190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19191 (eval $ac_compile) 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -z "$ac_c_werror_flag"
19199 || test ! -s conftest.err'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try='test -s conftest.$ac_objext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 gdb_cv_have_struct_link_map32=yes
19212 else
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 gdb_cv_have_struct_link_map32=no
19218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19221 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
19222 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
19223 if test $gdb_cv_have_struct_link_map32 = yes; then
19225 cat >>confdefs.h <<\_ACEOF
19226 #define HAVE_STRUCT_LINK_MAP32 1
19227 _ACEOF
19230 cat >>confdefs.h <<\_ACEOF
19231 #define _SYSCALL32 1
19232 _ACEOF
19237 # Check if the compiler supports the `long long' type.
19239 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
19240 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
19241 if test "${gdb_cv_c_long_long+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h. */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 extern long long foo;
19252 main ()
19254 switch (foo & 2) { case 0: return 1; }
19256 return 0;
19258 _ACEOF
19259 rm -f conftest.$ac_objext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19261 (eval $ac_compile) 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag"
19269 || test ! -s conftest.err'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 gdb_cv_c_long_long=yes
19282 else
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 gdb_cv_c_long_long=no
19288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19290 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
19291 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
19292 if test $gdb_cv_c_long_long = yes; then
19294 cat >>confdefs.h <<\_ACEOF
19295 #define CC_HAS_LONG_LONG 1
19296 _ACEOF
19300 # Check if the compiler and runtime support printing long longs.
19302 echo "$as_me:$LINENO: checking for long long support in printf" >&5
19303 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
19304 if test "${gdb_cv_printf_has_long_long+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307 if test "$cross_compiling" = yes; then
19308 gdb_cv_printf_has_long_long=no
19309 else
19310 cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h. */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 $ac_includes_default
19318 main ()
19320 char buf[32];
19321 long long l = 0;
19322 l = (l << 16) + 0x0123;
19323 l = (l << 16) + 0x4567;
19324 l = (l << 16) + 0x89ab;
19325 l = (l << 16) + 0xcdef;
19326 sprintf (buf, "0x%016llx", l);
19327 return (strcmp ("0x0123456789abcdef", buf));
19329 return 0;
19331 _ACEOF
19332 rm -f conftest$ac_exeext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19334 (eval $ac_link) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 gdb_cv_printf_has_long_long=yes
19344 else
19345 echo "$as_me: program exited with status $ac_status" >&5
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ( exit $ac_status )
19350 gdb_cv_printf_has_long_long=no
19352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19355 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
19356 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
19357 if test $gdb_cv_printf_has_long_long = yes; then
19359 cat >>confdefs.h <<\_ACEOF
19360 #define PRINTF_HAS_LONG_LONG 1
19361 _ACEOF
19365 # Check if the compiler supports the `long double' type. We can't use
19366 # AC_C_LONG_DOUBLE because that one does additional checks on the
19367 # constants defined in <float.h> that fail on some systems,
19368 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
19370 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
19371 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
19372 if test "${gdb_cv_c_long_double+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375 cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h. */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 long double foo;
19382 _ACEOF
19383 rm -f conftest.$ac_objext
19384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19385 (eval $ac_compile) 2>conftest.er1
19386 ac_status=$?
19387 grep -v '^ *+' conftest.er1 >conftest.err
19388 rm -f conftest.er1
19389 cat conftest.err >&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } &&
19392 { ac_try='test -z "$ac_c_werror_flag"
19393 || test ! -s conftest.err'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; } &&
19399 { ac_try='test -s conftest.$ac_objext'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405 gdb_cv_c_long_double=yes
19406 else
19407 echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19410 gdb_cv_c_long_double=no
19412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19414 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
19415 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
19416 if test $gdb_cv_c_long_double = yes; then
19418 cat >>confdefs.h <<\_ACEOF
19419 #define HAVE_LONG_DOUBLE 1
19420 _ACEOF
19424 # Check if the compiler and runtime support printing long doubles.
19426 echo "$as_me:$LINENO: checking for long double support in printf" >&5
19427 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
19428 if test "${gdb_cv_printf_has_long_double+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431 if test "$cross_compiling" = yes; then
19432 gdb_cv_printf_has_long_double=no
19433 else
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h. */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 $ac_includes_default
19442 main ()
19444 char buf[16];
19445 long double f = 3.141592653;
19446 sprintf (buf, "%Lg", f);
19447 return (strncmp ("3.14159", buf, 7));
19449 return 0;
19451 _ACEOF
19452 rm -f conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454 (eval $ac_link) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 gdb_cv_printf_has_long_double=yes
19464 else
19465 echo "$as_me: program exited with status $ac_status" >&5
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ( exit $ac_status )
19470 gdb_cv_printf_has_long_double=no
19472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19475 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19476 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19477 if test $gdb_cv_printf_has_long_double = yes; then
19479 cat >>confdefs.h <<\_ACEOF
19480 #define PRINTF_HAS_LONG_DOUBLE 1
19481 _ACEOF
19485 # Check if the compiler and runtime support scanning long doubles.
19487 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19488 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19489 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492 if test "$cross_compiling" = yes; then
19493 gdb_cv_scanf_has_long_double=no
19494 else
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h. */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19501 #include <stdio.h>
19503 main ()
19505 char *buf = "3.141592653";
19506 long double f = 0;
19507 sscanf (buf, "%Lg", &f);
19508 return !(f > 3.14159 && f < 3.14160);
19510 return 0;
19512 _ACEOF
19513 rm -f conftest$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515 (eval $ac_link) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 gdb_cv_scanf_has_long_double=yes
19525 else
19526 echo "$as_me: program exited with status $ac_status" >&5
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ( exit $ac_status )
19531 gdb_cv_scanf_has_long_double=no
19533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19536 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19537 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19538 if test $gdb_cv_scanf_has_long_double = yes; then
19540 cat >>confdefs.h <<\_ACEOF
19541 #define SCANF_HAS_LONG_DOUBLE 1
19542 _ACEOF
19546 case ${host_os} in
19547 aix*)
19548 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19549 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19550 if test "${gdb_cv_bigtoc+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 else
19554 SAVE_LDFLAGS=$LDFLAGS
19556 case $GCC in
19557 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19558 *) gdb_cv_bigtoc=-bbigtoc ;;
19559 esac
19561 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19570 main ()
19572 int i;
19574 return 0;
19576 _ACEOF
19577 rm -f conftest.$ac_objext conftest$ac_exeext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19579 (eval $ac_link) 2>conftest.er1
19580 ac_status=$?
19581 grep -v '^ *+' conftest.er1 >conftest.err
19582 rm -f conftest.er1
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -z "$ac_c_werror_flag"
19587 || test ! -s conftest.err'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest$ac_exeext'
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 gdb_cv_bigtoc=
19606 rm -f conftest.err conftest.$ac_objext \
19607 conftest$ac_exeext conftest.$ac_ext
19608 LDFLAGS="${SAVE_LDFLAGS}"
19611 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19612 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19613 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19615 esac
19619 if test ${build} = ${host} -a ${host} = ${target} ; then
19620 case ${host_os} in
19621 hpux*)
19622 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19623 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19624 if test -f /usr/include/dce/cma_config.h ; then
19625 if test "$GCC" = "yes" ; then
19626 echo "$as_me:$LINENO: result: yes" >&5
19627 echo "${ECHO_T}yes" >&6
19629 cat >>confdefs.h <<\_ACEOF
19630 #define HAVE_HPUX_THREAD_SUPPORT 1
19631 _ACEOF
19633 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19634 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19635 else
19636 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19637 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19639 else
19640 echo "$as_me:$LINENO: result: no" >&5
19641 echo "${ECHO_T}no" >&6
19644 solaris*)
19645 # See if thread_db library is around for Solaris thread debugging.
19646 # Note that we must explicitly test for version 1 of the library
19647 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19648 # the same API.
19649 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19650 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19651 if test -f /usr/lib/libthread_db.so.1 ; then
19652 echo "$as_me:$LINENO: result: yes" >&5
19653 echo "${ECHO_T}yes" >&6
19655 cat >>confdefs.h <<\_ACEOF
19656 #define HAVE_THREAD_DB_LIB 1
19657 _ACEOF
19659 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19660 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19662 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 else
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-ldl $LIBS"
19669 cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h. */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19676 /* Override any gcc2 internal prototype to avoid an error. */
19677 #ifdef __cplusplus
19678 extern "C"
19679 #endif
19680 /* We use char because int might match the return type of a gcc2
19681 builtin and then its argument prototype would still apply. */
19682 char dlopen ();
19684 main ()
19686 dlopen ();
19688 return 0;
19690 _ACEOF
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>conftest.er1
19694 ac_status=$?
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -f conftest.er1
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try='test -z "$ac_c_werror_flag"
19701 || test ! -s conftest.err'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_cv_lib_dl_dlopen=yes
19714 else
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_lib_dl_dlopen=no
19720 rm -f conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19726 if test $ac_cv_lib_dl_dlopen = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728 #define HAVE_LIBDL 1
19729 _ACEOF
19731 LIBS="-ldl $LIBS"
19735 if test "$GCC" = "yes" ; then
19736 # The GNU linker requires the -export-dynamic option to make
19737 # all symbols visible in the dynamic symbol table.
19738 hold_ldflags=$LDFLAGS
19739 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19740 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19741 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19750 main ()
19752 int i;
19754 return 0;
19756 _ACEOF
19757 rm -f conftest.$ac_objext conftest$ac_exeext
19758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19759 (eval $ac_link) 2>conftest.er1
19760 ac_status=$?
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } &&
19766 { ac_try='test -z "$ac_c_werror_flag"
19767 || test ! -s conftest.err'
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest$ac_exeext'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 found=yes
19780 else
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 found=no
19786 rm -f conftest.err conftest.$ac_objext \
19787 conftest$ac_exeext conftest.$ac_ext
19788 LDFLAGS=$hold_ldflags
19789 echo "$as_me:$LINENO: result: $found" >&5
19790 echo "${ECHO_T}$found" >&6
19791 if test $found = yes; then
19792 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19795 # Sun randomly tweaked the prototypes in <proc_service.h>
19796 # at one point.
19797 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19798 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19799 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 #include <proc_service.h>
19811 ps_err_e ps_pdwrite
19812 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19815 main ()
19819 return 0;
19821 _ACEOF
19822 rm -f conftest.$ac_objext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19824 (eval $ac_compile) 2>conftest.er1
19825 ac_status=$?
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 gdb_cv_proc_service_is_old=no
19845 else
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 gdb_cv_proc_service_is_old=yes
19851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19855 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19856 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19857 if test $gdb_cv_proc_service_is_old = yes; then
19859 cat >>confdefs.h <<\_ACEOF
19860 #define PROC_SERVICE_IS_OLD 1
19861 _ACEOF
19864 else
19865 echo "$as_me:$LINENO: result: no" >&5
19866 echo "${ECHO_T}no" >&6
19869 aix*)
19870 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19871 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19872 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875 cat >conftest.$ac_ext <<_ACEOF
19876 /* confdefs.h. */
19877 _ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881 #include <sys/pthdebug.h>
19883 main ()
19885 #ifndef PTHDB_VERSION_3
19886 #error
19887 #endif
19889 return 0;
19891 _ACEOF
19892 rm -f conftest.$ac_objext
19893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19894 (eval $ac_compile) 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } &&
19901 { ac_try='test -z "$ac_c_werror_flag"
19902 || test ! -s conftest.err'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; } &&
19908 { ac_try='test -s conftest.$ac_objext'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 gdb_cv_have_aix_thread_debug=yes
19915 else
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 gdb_cv_have_aix_thread_debug=no
19921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19924 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19925 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19926 if test $gdb_cv_have_aix_thread_debug = yes; then
19927 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19928 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19929 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19932 esac
19936 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19937 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19938 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19939 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942 cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h. */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19948 #include <thread_db.h>
19950 main ()
19952 int i = TD_NOTALLOC;
19954 return 0;
19956 _ACEOF
19957 rm -f conftest.$ac_objext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>conftest.er1
19960 ac_status=$?
19961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -z "$ac_c_werror_flag"
19967 || test ! -s conftest.err'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 gdb_cv_thread_db_h_has_td_notalloc=yes
19980 else
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 gdb_cv_thread_db_h_has_td_notalloc=no
19987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19990 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19991 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19993 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19995 cat >>confdefs.h <<\_ACEOF
19996 #define THREAD_DB_HAS_TD_NOTALLOC 1
19997 _ACEOF
20001 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
20002 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
20003 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
20004 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h. */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013 #include <sys/syscall.h>
20015 main ()
20017 int i = __NR_tkill;
20019 return 0;
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20024 (eval $ac_compile) 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try='test -z "$ac_c_werror_flag"
20032 || test ! -s conftest.err'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; } &&
20038 { ac_try='test -s conftest.$ac_objext'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 gdb_cv_sys_syscall_h_has_tkill=yes
20045 else
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 gdb_cv_sys_syscall_h_has_tkill=no
20052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20055 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20056 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
20058 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
20060 cat >>confdefs.h <<\_ACEOF
20061 #define HAVE_TKILL_SYSCALL 1
20062 _ACEOF
20068 # Check whether --with-sysroot or --without-sysroot was given.
20069 if test "${with_sysroot+set}" = set; then
20070 withval="$with_sysroot"
20072 case ${with_sysroot} in
20073 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
20074 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20075 esac
20077 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20079 if test "x$exec_prefix" = xNONE; then
20080 if test "x$prefix" = xNONE; then
20081 test_prefix=/usr/local
20082 else
20083 test_prefix=$prefix
20085 else
20086 test_prefix=$exec_prefix
20088 case ${TARGET_SYSTEM_ROOT} in
20089 "${test_prefix}"|"${test_prefix}/"*|\
20090 '${exec_prefix}'|'${exec_prefix}/'*)
20091 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20092 TARGET_SYSTEM_ROOT_DEFINE="$t"
20094 esac
20096 else
20098 TARGET_SYSTEM_ROOT=
20099 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20105 # Check whether --enable-werror or --disable-werror was given.
20106 if test "${enable_werror+set}" = set; then
20107 enableval="$enable_werror"
20108 case "${enableval}" in
20109 yes | y) ERROR_ON_WARNING="yes" ;;
20110 no | n) ERROR_ON_WARNING="no" ;;
20111 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
20112 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
20113 { (exit 1); exit 1; }; } ;;
20114 esac
20117 WERROR_CFLAGS=""
20118 if test "${ERROR_ON_WARNING}" = yes ; then
20119 WERROR_CFLAGS="-Werror"
20122 # NOTE: Don't add -Wall or -Wunused, they both include
20123 # -Wunused-parameter which reports bogus warnings.
20124 # NOTE: If you add to this list, remember to update
20125 # gdb/doc/gdbint.texinfo.
20126 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
20127 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
20128 -Wunused-label -Wunused-function -Wno-pointer-sign"
20130 # GCC supports -Wuninitialized only with -O or -On, n != 0.
20131 if test x${CFLAGS+set} = xset; then
20132 case "${CFLAGS}" in
20133 *"-O0"* ) ;;
20134 *"-O"* )
20135 build_warnings="${build_warnings} -Wuninitialized"
20137 esac
20138 else
20139 build_warnings="${build_warnings} -Wuninitialized"
20142 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
20143 # -Wunused-function -Wunused-variable -Wunused-value
20144 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
20145 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
20146 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
20147 # -Woverloaded-virtual -Winline -Werror"
20148 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20149 if test "${enable_build_warnings+set}" = set; then
20150 enableval="$enable_build_warnings"
20151 case "${enableval}" in
20152 yes) ;;
20153 no) build_warnings="-w";;
20154 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20155 build_warnings="${build_warnings} ${t}";;
20156 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20157 build_warnings="${t} ${build_warnings}";;
20158 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20159 esac
20160 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20161 echo "Setting compiler warning flags = $build_warnings" 6>&1
20163 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20164 if test "${enable_gdb_build_warnings+set}" = set; then
20165 enableval="$enable_gdb_build_warnings"
20166 case "${enableval}" in
20167 yes) ;;
20168 no) build_warnings="-w";;
20169 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20170 build_warnings="${build_warnings} ${t}";;
20171 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
20172 build_warnings="${t} ${build_warnings}";;
20173 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20174 esac
20175 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
20176 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20178 fi; WARN_CFLAGS=""
20179 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20180 then
20181 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20182 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20183 # Separate out the -Werror flag as some files just cannot be
20184 # compiled with it enabled.
20185 for w in ${build_warnings}; do
20186 case $w in
20187 -Werr*) WERROR_CFLAGS=-Werror ;;
20188 *) # Check that GCC accepts it
20189 saved_CFLAGS="$CFLAGS"
20190 CFLAGS="$CFLAGS $w"
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h. */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20199 main ()
20203 return 0;
20205 _ACEOF
20206 rm -f conftest.$ac_objext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208 (eval $ac_compile) 2>conftest.er1
20209 ac_status=$?
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
20215 { ac_try='test -z "$ac_c_werror_flag"
20216 || test ! -s conftest.err'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 WARN_CFLAGS="${WARN_CFLAGS} $w"
20229 else
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 CFLAGS="$saved_CFLAGS"
20236 esac
20237 done
20238 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
20239 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
20244 # In the Cygwin environment, we need some additional flags.
20245 echo "$as_me:$LINENO: checking for cygwin" >&5
20246 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20247 if test "${gdb_cv_os_cygwin+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20258 lose
20259 #endif
20260 _ACEOF
20261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20262 $EGREP "lose" >/dev/null 2>&1; then
20263 gdb_cv_os_cygwin=yes
20264 else
20265 gdb_cv_os_cygwin=no
20267 rm -f conftest*
20270 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20271 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20274 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20275 case ${host} in
20276 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20277 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20278 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20279 esac
20282 # libreadline needs libuser32.a in a cygwin environment
20283 WIN32LIBS=
20284 if test x$gdb_cv_os_cygwin = xyes; then
20285 WIN32LIBS="-luser32"
20286 case "${target}" in
20287 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20289 esac
20292 # The ser-tcp.c module requires sockets.
20293 case ${host} in
20294 *mingw32*)
20296 cat >>confdefs.h <<\_ACEOF
20297 #define USE_WIN32API 1
20298 _ACEOF
20300 WIN32LIBS="$WIN32LIBS -lws2_32"
20302 esac
20305 # Add any host-specific objects to GDB.
20306 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20308 LIBGUI="../libgui/src/libgui.a"
20309 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20313 WIN32LDAPP=
20317 case "${host}" in
20318 *-*-cygwin*)
20319 configdir="win"
20322 configdir="unix"
20324 esac
20326 GDBTKLIBS=
20327 if test "${enable_gdbtk}" = "yes"; then
20329 # Gdbtk must have an absolute path to srcdir in order to run
20330 # properly when not installed.
20331 here=`pwd`
20332 cd ${srcdir}
20333 GDBTK_SRC_DIR=`pwd`
20334 cd $here
20338 # Ok, lets find the tcl configuration
20339 # First, look for one uninstalled.
20340 # the alternative search directory is invoked by --with-tclconfig
20343 if test x"${no_tcl}" = x ; then
20344 # we reset no_tcl in case something fails here
20345 no_tcl=true
20347 # Check whether --with-tclconfig or --without-tclconfig was given.
20348 if test "${with_tclconfig+set}" = set; then
20349 withval="$with_tclconfig"
20350 with_tclconfig=${withval}
20352 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20353 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20354 if test "${ac_cv_c_tclconfig+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20359 # First check to see if --with-tclconfig was specified.
20360 if test x"${with_tclconfig}" != x ; then
20361 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20362 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20363 else
20364 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20365 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20366 { (exit 1); exit 1; }; }
20370 # then check for a private Tcl installation
20371 if test x"${ac_cv_c_tclconfig}" = x ; then
20372 for i in \
20373 ../tcl \
20374 `ls -dr ../tcl[7-9]* 2>/dev/null` \
20375 ../../tcl \
20376 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
20377 ../../../tcl \
20378 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
20379 if test -f "$i/${configdir}/tclConfig.sh" ; then
20380 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20381 break
20383 done
20385 # check in a few common install locations
20386 if test x"${ac_cv_c_tclconfig}" = x ; then
20387 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20388 if test -f "$i/tclConfig.sh" ; then
20389 ac_cv_c_tclconfig=`(cd $i; pwd)`
20390 break
20392 done
20394 # check in a few other private locations
20395 if test x"${ac_cv_c_tclconfig}" = x ; then
20396 for i in \
20397 ${srcdir}/../tcl \
20398 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
20399 if test -f "$i/${configdir}/tclConfig.sh" ; then
20400 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
20401 break
20403 done
20408 if test x"${ac_cv_c_tclconfig}" = x ; then
20409 TCLCONFIG="# no Tcl configs found"
20410 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20411 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20412 else
20413 no_tcl=
20414 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
20415 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
20416 echo "${ECHO_T}found $TCLCONFIG" >&6
20420 if test -z "${no_tcl}"; then
20422 . $TCLCONFIG
20451 # Ok, lets find the tk configuration
20452 # First, look for one uninstalled.
20453 # the alternative search directory is invoked by --with-tkconfig
20456 if test x"${no_tk}" = x ; then
20457 # we reset no_tk in case something fails here
20458 no_tk=true
20460 # Check whether --with-tkconfig or --without-tkconfig was given.
20461 if test "${with_tkconfig+set}" = set; then
20462 withval="$with_tkconfig"
20463 with_tkconfig=${withval}
20465 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20466 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20467 if test "${ac_cv_c_tkconfig+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20472 # First check to see if --with-tkconfig was specified.
20473 if test x"${with_tkconfig}" != x ; then
20474 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20475 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20476 else
20477 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20478 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20479 { (exit 1); exit 1; }; }
20483 # then check for a private Tk library
20484 if test x"${ac_cv_c_tkconfig}" = x ; then
20485 for i in \
20486 ../tk \
20487 `ls -dr ../tk[4-9]* 2>/dev/null` \
20488 ../../tk \
20489 `ls -dr ../../tk[4-9]* 2>/dev/null` \
20490 ../../../tk \
20491 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
20492 if test -f "$i/${configdir}/tkConfig.sh" ; then
20493 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20494 break
20496 done
20498 # check in a few common install locations
20499 if test x"${ac_cv_c_tkconfig}" = x ; then
20500 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20501 if test -f "$i/tkConfig.sh" ; then
20502 ac_cv_c_tkconfig=`(cd $i; pwd)`
20503 break
20505 done
20507 # check in a few other private locations
20508 if test x"${ac_cv_c_tkconfig}" = x ; then
20509 for i in \
20510 ${srcdir}/../tk \
20511 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20512 if test -f "$i/${configdir}/tkConfig.sh" ; then
20513 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20514 break
20516 done
20521 if test x"${ac_cv_c_tkconfig}" = x ; then
20522 TKCONFIG="# no Tk configs found"
20523 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20524 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20525 else
20526 no_tk=
20527 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20528 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20529 echo "${ECHO_T}found $TKCONFIG" >&6
20535 # now look for Tcl library stuff
20537 tcldir="../tcl/${configdir}/"
20539 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20541 # If $no_tk is nonempty, then we can't do Tk, and there is no
20542 # point to doing Tcl.
20543 if test -z "${no_tk}"; then
20545 if test -f "$TKCONFIG" ; then
20546 . $TKCONFIG
20563 # Ok, lets find the tcl source trees so we can use the headers
20564 # Warning: transition of version 9 to 10 will break this algorithm
20565 # because 10 sorts before 9. We also look for just tcl. We have to
20566 # be careful that we don't match stuff like tclX by accident.
20567 # the alternative search directory is involked by --with-tclinclude
20570 no_tcl=true
20571 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20572 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20574 # Check whether --with-tclinclude or --without-tclinclude was given.
20575 if test "${with_tclinclude+set}" = set; then
20576 withval="$with_tclinclude"
20577 with_tclinclude=${withval}
20579 if test "${ac_cv_c_tclh+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20583 # first check to see if --with-tclinclude was specified
20584 if test x"${with_tclinclude}" != x ; then
20585 if test -f ${with_tclinclude}/tclInt.h ; then
20586 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20587 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20588 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20589 else
20590 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20591 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20592 { (exit 1); exit 1; }; }
20596 # next check if it came with Tcl configuration file
20597 if test x"${ac_cv_c_tclconfig}" = x ; then
20598 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20599 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20603 # next check in private source directory
20605 # since ls returns lowest version numbers first, reverse its output
20606 if test x"${ac_cv_c_tclh}" = x ; then
20607 for i in \
20608 ${srcdir}/../tcl \
20609 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20610 ${srcdir}/../../tcl \
20611 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20612 ${srcdir}/../../../tcl \
20613 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20614 if test -f $i/generic/tclInt.h ; then
20615 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20616 break
20618 done
20620 # finally check in a few common install locations
20622 # since ls returns lowest version numbers first, reverse its output
20623 if test x"${ac_cv_c_tclh}" = x ; then
20624 for i in \
20625 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20626 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20627 /usr/local/src/tcl \
20628 /usr/local/lib/tcl \
20629 ${prefix}/include ; do
20630 if test -f $i/generic/tclInt.h ; then
20631 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20632 break
20634 done
20636 # see if one is installed
20637 if test x"${ac_cv_c_tclh}" = x ; then
20638 if test "${ac_cv_header_tclInt_h+set}" = set; then
20639 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20640 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20641 if test "${ac_cv_header_tclInt_h+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20645 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20646 else
20647 # Is the header compilable?
20648 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20649 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20650 cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656 $ac_includes_default
20657 #include <tclInt.h>
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20661 (eval $ac_compile) 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
20668 { ac_try='test -z "$ac_c_werror_flag"
20669 || test ! -s conftest.err'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest.$ac_objext'
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681 ac_header_compiler=yes
20682 else
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_header_compiler=no
20688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20690 echo "${ECHO_T}$ac_header_compiler" >&6
20692 # Is the header present?
20693 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20694 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20695 cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h. */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20701 #include <tclInt.h>
20702 _ACEOF
20703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20705 ac_status=$?
20706 grep -v '^ *+' conftest.er1 >conftest.err
20707 rm -f conftest.er1
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } >/dev/null; then
20711 if test -s conftest.err; then
20712 ac_cpp_err=$ac_c_preproc_warn_flag
20713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20714 else
20715 ac_cpp_err=
20717 else
20718 ac_cpp_err=yes
20720 if test -z "$ac_cpp_err"; then
20721 ac_header_preproc=yes
20722 else
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20726 ac_header_preproc=no
20728 rm -f conftest.err conftest.$ac_ext
20729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20730 echo "${ECHO_T}$ac_header_preproc" >&6
20732 # So? What about this header?
20733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20734 yes:no: )
20735 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20736 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20737 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20738 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20739 ac_header_preproc=yes
20741 no:yes:* )
20742 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20743 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20744 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20745 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20746 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20747 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20748 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20749 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20750 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20751 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20753 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20755 cat <<\_ASBOX
20756 ## ------------------------------------------ ##
20757 ## Report this to the AC_PACKAGE_NAME lists. ##
20758 ## ------------------------------------------ ##
20759 _ASBOX
20761 sed "s/^/$as_me: WARNING: /" >&2
20763 esac
20764 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20765 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20766 if test "${ac_cv_header_tclInt_h+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769 ac_cv_header_tclInt_h=$ac_header_preproc
20771 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20772 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20775 if test $ac_cv_header_tclInt_h = yes; then
20776 ac_cv_c_tclh=installed
20777 else
20778 ac_cv_c_tclh=""
20786 if test x"${ac_cv_c_tclh}" = x ; then
20787 TCLHDIR="# no Tcl private headers found"
20788 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20789 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20790 { (exit 1); exit 1; }; }
20792 if test x"${ac_cv_c_tclh}" != x ; then
20793 no_tcl=""
20794 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20795 echo "$as_me:$LINENO: result: is installed" >&5
20796 echo "${ECHO_T}is installed" >&6
20797 TCLHDIR=""
20798 else
20799 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20800 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20801 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20802 TCLHDIR="-I${ac_cv_c_tclh}"
20810 # Ok, lets find the tk source trees so we can use the headers
20811 # If the directory (presumably symlink) named "tk" exists, use that one
20812 # in preference to any others. Same logic is used when choosing library
20813 # and again with Tcl. The search order is the best place to look first, then in
20814 # decreasing significance. The loop breaks if the trigger file is found.
20815 # Note the gross little conversion here of srcdir by cd'ing to the found
20816 # directory. This converts the path from a relative to an absolute, so
20817 # recursive cache variables for the path will work right. We check all
20818 # the possible paths in one loop rather than many seperate loops to speed
20819 # things up.
20820 # the alternative search directory is involked by --with-tkinclude
20822 no_tk=true
20823 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20824 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20826 # Check whether --with-tkinclude or --without-tkinclude was given.
20827 if test "${with_tkinclude+set}" = set; then
20828 withval="$with_tkinclude"
20829 with_tkinclude=${withval}
20831 if test "${ac_cv_c_tkh+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20835 # first check to see if --with-tkinclude was specified
20836 if test x"${with_tkinclude}" != x ; then
20837 if test -f ${with_tkinclude}/tk.h ; then
20838 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20839 elif test -f ${with_tkinclude}/generic/tk.h ; then
20840 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20841 else
20842 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20843 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20844 { (exit 1); exit 1; }; }
20848 # next check if it came with Tk configuration file
20849 if test x"${ac_cv_c_tkconfig}" = x ; then
20850 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20851 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20855 # next check in private source directory
20857 # since ls returns lowest version numbers first, reverse its output
20858 if test x"${ac_cv_c_tkh}" = x ; then
20859 for i in \
20860 ${srcdir}/../tk \
20861 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20862 ${srcdir}/../../tk \
20863 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20864 ${srcdir}/../../../tk \
20865 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20866 if test -f $i/generic/tk.h ; then
20867 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20868 break
20870 done
20872 # finally check in a few common install locations
20874 # since ls returns lowest version numbers first, reverse its output
20875 if test x"${ac_cv_c_tkh}" = x ; then
20876 for i in \
20877 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20878 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20879 /usr/local/src/tk \
20880 /usr/local/lib/tk \
20881 ${prefix}/include ; do
20882 if test -f $i/generic/tk.h ; then
20883 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20884 break
20886 done
20888 # see if one is installed
20889 if test x"${ac_cv_c_tkh}" = x ; then
20890 if test "${ac_cv_header_tk_h+set}" = set; then
20891 echo "$as_me:$LINENO: checking for tk.h" >&5
20892 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20893 if test "${ac_cv_header_tk_h+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20897 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20898 else
20899 # Is the header compilable?
20900 echo "$as_me:$LINENO: checking tk.h usability" >&5
20901 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20902 cat >conftest.$ac_ext <<_ACEOF
20903 /* confdefs.h. */
20904 _ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20908 $ac_includes_default
20909 #include <tk.h>
20910 _ACEOF
20911 rm -f conftest.$ac_objext
20912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20913 (eval $ac_compile) 2>conftest.er1
20914 ac_status=$?
20915 grep -v '^ *+' conftest.er1 >conftest.err
20916 rm -f conftest.er1
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } &&
20920 { ac_try='test -z "$ac_c_werror_flag"
20921 || test ! -s conftest.err'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20924 ac_status=$?
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; } &&
20927 { ac_try='test -s conftest.$ac_objext'
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; }; then
20933 ac_header_compiler=yes
20934 else
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_header_compiler=no
20940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20942 echo "${ECHO_T}$ac_header_compiler" >&6
20944 # Is the header present?
20945 echo "$as_me:$LINENO: checking tk.h presence" >&5
20946 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20947 cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h. */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 #include <tk.h>
20954 _ACEOF
20955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } >/dev/null; then
20963 if test -s conftest.err; then
20964 ac_cpp_err=$ac_c_preproc_warn_flag
20965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20966 else
20967 ac_cpp_err=
20969 else
20970 ac_cpp_err=yes
20972 if test -z "$ac_cpp_err"; then
20973 ac_header_preproc=yes
20974 else
20975 echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ac_header_preproc=no
20980 rm -f conftest.err conftest.$ac_ext
20981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20982 echo "${ECHO_T}$ac_header_preproc" >&6
20984 # So? What about this header?
20985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20986 yes:no: )
20987 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20988 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20990 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20991 ac_header_preproc=yes
20993 no:yes:* )
20994 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20995 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20996 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20997 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20998 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20999 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
21000 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
21001 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
21003 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
21005 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
21007 cat <<\_ASBOX
21008 ## ------------------------------------------ ##
21009 ## Report this to the AC_PACKAGE_NAME lists. ##
21010 ## ------------------------------------------ ##
21011 _ASBOX
21013 sed "s/^/$as_me: WARNING: /" >&2
21015 esac
21016 echo "$as_me:$LINENO: checking for tk.h" >&5
21017 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
21018 if test "${ac_cv_header_tk_h+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021 ac_cv_header_tk_h=$ac_header_preproc
21023 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21024 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21027 if test $ac_cv_header_tk_h = yes; then
21028 ac_cv_c_tkh=installed
21029 else
21030 ac_cv_c_tkh=""
21038 if test x"${ac_cv_c_tkh}" != x ; then
21039 no_tk=""
21040 if test x"${ac_cv_c_tkh}" = x"installed" ; then
21041 echo "$as_me:$LINENO: result: is installed" >&5
21042 echo "${ECHO_T}is installed" >&6
21043 TKHDIR=""
21044 else
21045 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21046 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
21047 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21048 TKHDIR="-I${ac_cv_c_tkh}"
21050 else
21051 TKHDIR="# no Tk directory found"
21052 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21053 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
21054 no_tk=true
21060 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21061 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
21062 if test x"${ac_cv_c_itclh}" = x ; then
21063 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21064 if test -f $i/generic/itcl.h ; then
21065 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21066 break
21068 done
21070 if test x"${ac_cv_c_itclh}" = x ; then
21071 ITCLHDIR="# no Itcl private headers found"
21072 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21073 echo "$as_me: error: Can't find Itcl private headers" >&2;}
21074 { (exit 1); exit 1; }; }
21076 if test x"${ac_cv_c_itclh}" != x ; then
21077 ITCLHDIR="-I${ac_cv_c_itclh}"
21079 # should always be here
21080 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
21082 #AC_SUBST(ITCLLIB)
21085 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21086 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
21087 if test x"${ac_cv_c_itkh}" = x ; then
21088 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21089 if test -f $i/generic/itk.h ; then
21090 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21091 break
21093 done
21095 if test x"${ac_cv_c_itkh}" = x ; then
21096 ITKHDIR="# no Itk private headers found"
21097 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21098 echo "$as_me: error: Can't find Itk private headers" >&2;}
21099 { (exit 1); exit 1; }; }
21101 if test x"${ac_cv_c_itkh}" != x ; then
21102 ITKHDIR="-I${ac_cv_c_itkh}"
21104 # should always be here
21105 # ITKLIB="../itcl/itk/unix/libitk.a"
21107 #AC_SUBST(ITKLIB)
21111 # now look for Tk library stuff
21113 tkdir="../tk/${configdir}/"
21115 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21117 # now look for Itcl library stuff
21121 # Ok, lets find the itcl configuration
21122 # First, look for one uninstalled.
21123 # the alternative search directory is invoked by --with-itclconfig
21126 if test x"${no_itcl}" = x ; then
21127 # we reset no_itcl in case something fails here
21128 no_itcl=true
21130 # Check whether --with-itclconfig or --without-itclconfig was given.
21131 if test "${with_itclconfig+set}" = set; then
21132 withval="$with_itclconfig"
21133 with_itclconfig=${withval}
21135 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
21136 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
21137 if test "${ac_cv_c_itclconfig+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21142 # First check to see if --with-itclconfig was specified.
21143 if test x"${with_itclconfig}" != x ; then
21144 if test -f "${with_itclconfig}/itclConfig.sh" ; then
21145 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
21146 else
21147 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
21148 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
21149 { (exit 1); exit 1; }; }
21153 # then check for a private Itcl library
21154 if test x"${ac_cv_c_itclconfig}" = x ; then
21155 for i in \
21156 ../itcl/itcl \
21157 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
21158 ../../itcl \
21159 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
21160 ../../../itcl \
21161 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
21162 if test -f "$i/itclConfig.sh" ; then
21163 ac_cv_c_itclconfig=`(cd $i; pwd)`
21164 break
21166 done
21168 # check in a few common install locations
21169 if test x"${ac_cv_c_itclconfig}" = x ; then
21170 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21171 if test -f "$i/itclConfig.sh" ; then
21172 ac_cv_c_itclconfig=`(cd $i; pwd)`
21173 break
21175 done
21177 # check in a few other private locations
21178 if test x"${ac_cv_c_itclconfig}" = x ; then
21179 for i in \
21180 ${srcdir}/../itcl/itcl \
21181 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
21182 if test -f "$i/itclConfig.sh" ; then
21183 ac_cv_c_itclconfig=`(cd $i; pwd)`
21184 break
21186 done
21191 if test x"${ac_cv_c_itclconfig}" = x ; then
21192 ITCLCONFIG="# no Itcl configs found"
21193 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
21194 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
21195 else
21196 no_itcl=
21197 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
21198 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
21199 echo "${ECHO_T}found $ITCLCONFIG" >&6
21203 if test -z "${no_itcl}"; then
21205 if test -f "$ITCLCONFIG" ; then
21206 . $ITCLCONFIG
21220 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
21221 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
21225 # now look for Itk library stuff
21228 # Ok, lets find the itk configuration
21229 # First, look for one uninstalled.
21230 # the alternative search directory is invoked by --with-itkconfig
21233 if test x"${no_itk}" = x ; then
21234 # we reset no_itk in case something fails here
21235 no_itk=true
21237 # Check whether --with-itkconfig or --without-itkconfig was given.
21238 if test "${with_itkconfig+set}" = set; then
21239 withval="$with_itkconfig"
21240 with_itkconfig=${withval}
21242 echo "$as_me:$LINENO: checking for Itk configuration" >&5
21243 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
21244 if test "${ac_cv_c_itkconfig+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21249 # First check to see if --with-itkconfig was specified.
21250 if test x"${with_itkconfig}" != x ; then
21251 if test -f "${with_itkconfig}/itkConfig.sh" ; then
21252 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
21253 else
21254 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
21255 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
21256 { (exit 1); exit 1; }; }
21260 # then check for a private Itk library
21261 if test x"${ac_cv_c_itkconfig}" = x ; then
21262 for i in \
21263 ../itcl/itk \
21264 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
21265 ../../itk \
21266 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
21267 ../../../itk \
21268 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
21269 if test -f "$i/itkConfig.sh" ; then
21270 ac_cv_c_itkconfig=`(cd $i; pwd)`
21271 break
21273 done
21275 # check in a few common install locations
21276 if test x"${ac_cv_c_itkconfig}" = x ; then
21277 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21278 if test -f "$i/itkConfig.sh" ; then
21279 ac_cv_c_itkconfig=`(cd $i; pwd)`
21280 break
21282 done
21284 # check in a few other private locations
21285 if test x"${ac_cv_c_itkconfig}" = x ; then
21286 for i in \
21287 ${srcdir}/../itcl/itk \
21288 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
21289 if test -f "$i/itkConfig.sh" ; then
21290 ac_cv_c_itkconfig=`(cd $i; pwd)`
21291 break
21293 done
21298 if test x"${ac_cv_c_itkconfig}" = x ; then
21299 ITKCONFIG="# no Itk configs found"
21300 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
21301 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
21302 else
21303 no_itk=
21304 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
21305 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
21306 echo "${ECHO_T}found $ITKCONFIG" >&6
21311 if test -z "${no_itcl}"; then
21313 if test -f "$ITKCONFIG" ; then
21314 . $ITKCONFIG
21328 ITKLIB="${ITK_BUILD_LIB_SPEC}"
21329 ITK_DEPS="${ITK_LIB_FULL_PATH}"
21332 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
21334 # Include some libraries that Tcl and Tk want.
21335 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
21336 # Yes, the ordering seems wrong here. But it isn't.
21337 # TK_LIBS is the list of libraries that need to be linked
21338 # after Tcl/Tk. Note that this isn't put into LIBS. If it
21339 # were in LIBS then any link tests after this point would
21340 # try to include things like `$(LIBGUI)', which wouldn't work.
21341 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
21343 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
21344 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
21345 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
21346 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
21347 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
21348 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
21349 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
21351 if test x$gdb_cv_os_cygwin = xyes; then
21352 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
21353 WIN32LDAPP="-Wl,--subsystem,console"
21354 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
21361 subdirs="$subdirs gdbtk"
21378 echo "$as_me:$LINENO: checking for X" >&5
21379 echo $ECHO_N "checking for X... $ECHO_C" >&6
21382 # Check whether --with-x or --without-x was given.
21383 if test "${with_x+set}" = set; then
21384 withval="$with_x"
21387 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21388 if test "x$with_x" = xno; then
21389 # The user explicitly disabled X.
21390 have_x=disabled
21391 else
21392 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21393 # Both variables are already set.
21394 have_x=yes
21395 else
21396 if test "${ac_cv_have_x+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 else
21399 # One or both of the vars are not set, and there is no cached value.
21400 ac_x_includes=no ac_x_libraries=no
21401 rm -fr conftest.dir
21402 if mkdir conftest.dir; then
21403 cd conftest.dir
21404 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21405 cat >Imakefile <<'_ACEOF'
21406 acfindx:
21407 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21408 _ACEOF
21409 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21411 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21413 for ac_extension in a so sl; do
21414 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21415 test -f $ac_im_libdir/libX11.$ac_extension; then
21416 ac_im_usrlibdir=$ac_im_libdir; break
21418 done
21419 # Screen out bogus values from the imake configuration. They are
21420 # bogus both because they are the default anyway, and because
21421 # using them would break gcc on systems where it needs fixed includes.
21422 case $ac_im_incroot in
21423 /usr/include) ;;
21424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21425 esac
21426 case $ac_im_usrlibdir in
21427 /usr/lib | /lib) ;;
21428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21429 esac
21431 cd ..
21432 rm -fr conftest.dir
21435 # Standard set of common directories for X headers.
21436 # Check X11 before X11Rn because it is often a symlink to the current release.
21437 ac_x_header_dirs='
21438 /usr/X11/include
21439 /usr/X11R6/include
21440 /usr/X11R5/include
21441 /usr/X11R4/include
21443 /usr/include/X11
21444 /usr/include/X11R6
21445 /usr/include/X11R5
21446 /usr/include/X11R4
21448 /usr/local/X11/include
21449 /usr/local/X11R6/include
21450 /usr/local/X11R5/include
21451 /usr/local/X11R4/include
21453 /usr/local/include/X11
21454 /usr/local/include/X11R6
21455 /usr/local/include/X11R5
21456 /usr/local/include/X11R4
21458 /usr/X386/include
21459 /usr/x386/include
21460 /usr/XFree86/include/X11
21462 /usr/include
21463 /usr/local/include
21464 /usr/unsupported/include
21465 /usr/athena/include
21466 /usr/local/x11r5/include
21467 /usr/lpp/Xamples/include
21469 /usr/openwin/include
21470 /usr/openwin/share/include'
21472 if test "$ac_x_includes" = no; then
21473 # Guess where to find include files, by looking for Intrinsic.h.
21474 # First, try using that file with no special directory specified.
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h. */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 #include <X11/Intrinsic.h>
21482 _ACEOF
21483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } >/dev/null; then
21491 if test -s conftest.err; then
21492 ac_cpp_err=$ac_c_preproc_warn_flag
21493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21494 else
21495 ac_cpp_err=
21497 else
21498 ac_cpp_err=yes
21500 if test -z "$ac_cpp_err"; then
21501 # We can compile using X headers with no special include directory.
21502 ac_x_includes=
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 for ac_dir in $ac_x_header_dirs; do
21508 if test -r "$ac_dir/X11/Intrinsic.h"; then
21509 ac_x_includes=$ac_dir
21510 break
21512 done
21514 rm -f conftest.err conftest.$ac_ext
21515 fi # $ac_x_includes = no
21517 if test "$ac_x_libraries" = no; then
21518 # Check for the libraries.
21519 # See if we find them without any special options.
21520 # Don't add to $LIBS permanently.
21521 ac_save_LIBS=$LIBS
21522 LIBS="-lXt $LIBS"
21523 cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h. */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 #include <X11/Intrinsic.h>
21531 main ()
21533 XtMalloc (0)
21535 return 0;
21537 _ACEOF
21538 rm -f conftest.$ac_objext conftest$ac_exeext
21539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21540 (eval $ac_link) 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
21547 { ac_try='test -z "$ac_c_werror_flag"
21548 || test ! -s conftest.err'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; } &&
21554 { ac_try='test -s conftest$ac_exeext'
21555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; }; then
21560 LIBS=$ac_save_LIBS
21561 # We can link X programs with no special library path.
21562 ac_x_libraries=
21563 else
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 LIBS=$ac_save_LIBS
21568 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21570 # Don't even attempt the hair of trying to link an X program!
21571 for ac_extension in a so sl; do
21572 if test -r $ac_dir/libXt.$ac_extension; then
21573 ac_x_libraries=$ac_dir
21574 break 2
21576 done
21577 done
21579 rm -f conftest.err conftest.$ac_objext \
21580 conftest$ac_exeext conftest.$ac_ext
21581 fi # $ac_x_libraries = no
21583 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21584 # Didn't find X anywhere. Cache the known absence of X.
21585 ac_cv_have_x="have_x=no"
21586 else
21587 # Record where we found X for the cache.
21588 ac_cv_have_x="have_x=yes \
21589 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21594 eval "$ac_cv_have_x"
21595 fi # $with_x != no
21597 if test "$have_x" != yes; then
21598 echo "$as_me:$LINENO: result: $have_x" >&5
21599 echo "${ECHO_T}$have_x" >&6
21600 no_x=yes
21601 else
21602 # If each of the values was on the command line, it overrides each guess.
21603 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21604 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21605 # Update the cache value to reflect the command line values.
21606 ac_cv_have_x="have_x=yes \
21607 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21608 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21609 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21613 # Check whether we should enable the TUI, but only do so if we really
21614 # can.
21615 if test x"$enable_tui" = xyes; then
21616 if test -d $srcdir/tui; then
21617 if test "$ac_cv_search_waddstr" != no; then
21618 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21619 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21620 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21621 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21622 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21623 CONFIG_ALL="${CONFIG_ALL} all-tui"
21624 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21625 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21626 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21627 else
21628 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21629 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21634 # Unlike the sim directory, whether a simulator is linked is controlled by
21635 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21636 # This code just checks for a few cases where we'd like to ignore those
21637 # definitions, even when they're present in the '.mt' file. These cases
21638 # are when --disable-sim is specified, or if the simulator directory is
21639 # not part of the source tree.
21641 # Check whether --enable-sim or --disable-sim was given.
21642 if test "${enable_sim+set}" = set; then
21643 enableval="$enable_sim"
21644 echo "enable_sim = $enable_sim";
21645 echo "enableval = ${enableval}";
21646 case "${enableval}" in
21647 yes) ignore_sim=false ;;
21648 no) ignore_sim=true ;;
21649 *) ignore_sim=false ;;
21650 esac
21651 else
21652 ignore_sim=false
21655 if test ! -d "${srcdir}/../sim"; then
21656 ignore_sim=true
21659 if test "${ignore_sim}" = "true"; then
21660 IGNORE_SIM="SIM="
21661 IGNORE_SIM_OBS="SIM_OBS="
21662 else
21663 IGNORE_SIM=""
21664 IGNORE_SIM_OBS=""
21666 cat >>confdefs.h <<\_ACEOF
21667 #define WITH_SIM 1
21668 _ACEOF
21685 # List of host floatformats.
21687 cat >>confdefs.h <<_ACEOF
21688 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21689 _ACEOF
21692 cat >>confdefs.h <<_ACEOF
21693 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21694 _ACEOF
21697 cat >>confdefs.h <<_ACEOF
21698 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21699 _ACEOF
21702 # target_subdir is used by the testsuite to find the target libraries.
21703 target_subdir=
21704 if test "${host}" != "${target}"; then
21705 target_subdir="${target_alias}/"
21709 frags=
21710 if test "${target}" = "${host}"; then
21711 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21712 if test ! -f ${host_makefile_frag}; then
21713 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21714 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21715 { (exit 1); exit 1; }; }
21717 frags="$frags $host_makefile_frag"
21718 else
21719 host_makefile_frag=/dev/null
21722 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21723 if test ! -f ${target_makefile_frag}; then
21724 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21725 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21726 { (exit 1); exit 1; }; }
21728 frags="$frags $target_makefile_frag"
21734 hostfile=`sed -n '
21735 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21736 ' ${host_makefile_frag}`
21738 targetfile=`sed -n '
21739 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21740 ' ${target_makefile_frag}`
21742 if test "${target}" = "${host}"; then
21743 # We pick this up from the host configuration file (.mh) because we
21744 # do not have a native configuration Makefile fragment.
21745 nativefile=`sed -n '
21746 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21747 ' ${host_makefile_frag}`
21751 if test x"${gdb_osabi}" != x ; then
21753 cat >>confdefs.h <<_ACEOF
21754 #define GDB_OSABI_DEFAULT $gdb_osabi
21755 _ACEOF
21759 # Enable multi-ice-gdb-server.
21760 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21761 if test "${enable_multi_ice+set}" = set; then
21762 enableval="$enable_multi_ice"
21763 case $enableval in
21764 yes | no)
21766 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21767 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21768 { (exit 1); exit 1; }; } ;;
21769 esac
21771 if test "x$enable_multi_ice" = xyes; then
21774 subdirs="$subdirs multi-ice"
21778 # We only build gdbserver automatically if host and target are the same.
21779 if test "x$target" = "x$host"; then
21780 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21781 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21782 if test "x$build_gdbserver" = xyes; then
21783 echo "$as_me:$LINENO: result: yes" >&5
21784 echo "${ECHO_T}yes" >&6
21787 subdirs="$subdirs gdbserver"
21789 else
21790 echo "$as_me:$LINENO: result: no" >&5
21791 echo "${ECHO_T}no" >&6
21795 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21796 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21797 # to an empty version.
21799 files=
21800 links=
21802 rm -f xm.h
21803 xm_h=""
21804 if test "${hostfile}" != ""; then
21805 xm_h=xm.h
21806 case "${hostfile}" in
21807 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21808 * ) GDB_XM_FILE="${hostfile}"
21809 esac
21810 files="${files} ${GDB_XM_FILE}"
21811 links="${links} xm.h"
21813 cat >>confdefs.h <<_ACEOF
21814 #define GDB_XM_FILE "${GDB_XM_FILE}"
21815 _ACEOF
21820 rm -f tm.h
21821 tm_h=""
21822 if test "${targetfile}" != ""; then
21823 tm_h=tm.h
21824 case "${targetfile}" in
21825 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21826 * ) GDB_TM_FILE="${targetfile}"
21827 esac
21828 files="${files} ${GDB_TM_FILE}"
21829 links="${links} tm.h"
21831 cat >>confdefs.h <<_ACEOF
21832 #define GDB_TM_FILE "${GDB_TM_FILE}"
21833 _ACEOF
21838 rm -f nm.h
21839 nm_h=""
21840 if test "${nativefile}" != ""; then
21841 nm_h=nm.h
21842 case "${nativefile}" in
21843 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21844 * ) GDB_NM_FILE="${nativefile}"
21845 esac
21846 files="${files} ${GDB_NM_FILE}"
21847 links="${links} nm.h"
21849 cat >>confdefs.h <<_ACEOF
21850 #define GDB_NM_FILE "${GDB_NM_FILE}"
21851 _ACEOF
21856 ac_sources="$files"
21857 ac_dests="$links"
21858 while test -n "$ac_sources"; do
21859 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21860 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21861 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21862 done
21863 ac_config_links="$ac_config_links $ac_config_links_1"
21870 cat >>confdefs.h <<\_ACEOF
21871 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21872 _ACEOF
21878 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21879 if test "${with_libiconv_prefix+set}" = set; then
21880 withval="$with_libiconv_prefix"
21882 for dir in `echo "$withval" | tr : ' '`; do
21883 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21884 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21885 done
21889 echo "$as_me:$LINENO: checking for iconv" >&5
21890 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21891 if test "${am_cv_func_iconv+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21895 am_cv_func_iconv="no, consider installing GNU libiconv"
21896 am_cv_lib_iconv=no
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h. */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 #include <stdlib.h>
21904 #include <iconv.h>
21906 main ()
21908 iconv_t cd = iconv_open("","");
21909 iconv(cd,NULL,NULL,NULL,NULL);
21910 iconv_close(cd);
21912 return 0;
21914 _ACEOF
21915 rm -f conftest.$ac_objext conftest$ac_exeext
21916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21917 (eval $ac_link) 2>conftest.er1
21918 ac_status=$?
21919 grep -v '^ *+' conftest.er1 >conftest.err
21920 rm -f conftest.er1
21921 cat conftest.err >&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } &&
21924 { ac_try='test -z "$ac_c_werror_flag"
21925 || test ! -s conftest.err'
21926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927 (eval $ac_try) 2>&5
21928 ac_status=$?
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); }; } &&
21931 { ac_try='test -s conftest$ac_exeext'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21934 ac_status=$?
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; }; then
21937 am_cv_func_iconv=yes
21938 else
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21943 rm -f conftest.err conftest.$ac_objext \
21944 conftest$ac_exeext conftest.$ac_ext
21945 if test "$am_cv_func_iconv" != yes; then
21946 am_save_LIBS="$LIBS"
21947 LIBS="$LIBS -liconv"
21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h. */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21954 #include <stdlib.h>
21955 #include <iconv.h>
21957 main ()
21959 iconv_t cd = iconv_open("","");
21960 iconv(cd,NULL,NULL,NULL,NULL);
21961 iconv_close(cd);
21963 return 0;
21965 _ACEOF
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968 (eval $ac_link) 2>conftest.er1
21969 ac_status=$?
21970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_c_werror_flag"
21976 || test ! -s conftest.err'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21979 ac_status=$?
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; } &&
21982 { ac_try='test -s conftest$ac_exeext'
21983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984 (eval $ac_try) 2>&5
21985 ac_status=$?
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 am_cv_lib_iconv=yes
21989 am_cv_func_iconv=yes
21990 else
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21995 rm -f conftest.err conftest.$ac_objext \
21996 conftest$ac_exeext conftest.$ac_ext
21997 LIBS="$am_save_LIBS"
22001 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22002 echo "${ECHO_T}$am_cv_func_iconv" >&6
22003 if test "$am_cv_func_iconv" = yes; then
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_ICONV 1
22007 _ACEOF
22009 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22010 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22011 if test "${am_cv_proto_iconv+set}" = set; then
22012 echo $ECHO_N "(cached) $ECHO_C" >&6
22013 else
22015 cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h. */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22022 #include <stdlib.h>
22023 #include <iconv.h>
22024 extern
22025 #ifdef __cplusplus
22027 #endif
22028 #if defined(__STDC__) || defined(__cplusplus)
22029 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22030 #else
22031 size_t iconv();
22032 #endif
22035 main ()
22039 return 0;
22041 _ACEOF
22042 rm -f conftest.$ac_objext
22043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22044 (eval $ac_compile) 2>conftest.er1
22045 ac_status=$?
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try='test -z "$ac_c_werror_flag"
22052 || test ! -s conftest.err'
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); }; } &&
22058 { ac_try='test -s conftest.$ac_objext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 am_cv_proto_iconv_arg1=""
22065 else
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 am_cv_proto_iconv_arg1="const"
22071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22072 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);"
22075 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22076 echo "$as_me:$LINENO: result: ${ac_t:-
22077 }$am_cv_proto_iconv" >&5
22078 echo "${ECHO_T}${ac_t:-
22079 }$am_cv_proto_iconv" >&6
22081 cat >>confdefs.h <<_ACEOF
22082 #define ICONV_CONST $am_cv_proto_iconv_arg1
22083 _ACEOF
22086 LIBICONV=
22087 if test "$am_cv_lib_iconv" = yes; then
22088 LIBICONV="-liconv"
22093 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22094 ac_config_commands="$ac_config_commands default"
22095 cat >confcache <<\_ACEOF
22096 # This file is a shell script that caches the results of configure
22097 # tests run on this system so they can be shared between configure
22098 # scripts and configure runs, see configure's option --config-cache.
22099 # It is not useful on other systems. If it contains results you don't
22100 # want to keep, you may remove or edit it.
22102 # config.status only pays attention to the cache file if you give it
22103 # the --recheck option to rerun configure.
22105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22107 # following values.
22109 _ACEOF
22111 # The following way of writing the cache mishandles newlines in values,
22112 # but we know of no workaround that is simple, portable, and efficient.
22113 # So, don't put newlines in cache variables' values.
22114 # Ultrix sh set writes to stderr and can't be redirected directly,
22115 # and sets the high bit in the cache file unless we assign to the vars.
22117 (set) 2>&1 |
22118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22119 *ac_space=\ *)
22120 # `set' does not quote correctly, so add quotes (double-quote
22121 # substitution turns \\\\ into \\, and sed turns \\ into \).
22122 sed -n \
22123 "s/'/'\\\\''/g;
22124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22127 # `set' quotes correctly as required by POSIX, so do not add quotes.
22128 sed -n \
22129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22131 esac;
22133 sed '
22134 t clear
22135 : clear
22136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22137 t end
22138 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22139 : end' >>confcache
22140 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22141 if test -w $cache_file; then
22142 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22143 cat confcache >$cache_file
22144 else
22145 echo "not updating unwritable cache $cache_file"
22148 rm -f confcache
22150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22151 # Let make expand exec_prefix.
22152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22154 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22155 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22156 # trailing colons and then remove the whole line if VPATH becomes empty
22157 # (actually we leave an empty line to preserve line numbers).
22158 if test "x$srcdir" = x.; then
22159 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22160 s/:*\$(srcdir):*/:/;
22161 s/:*\${srcdir}:*/:/;
22162 s/:*@srcdir@:*/:/;
22163 s/^\([^=]*=[ ]*\):*/\1/;
22164 s/:*$//;
22165 s/^[^=]*=[ ]*$//;
22169 DEFS=-DHAVE_CONFIG_H
22171 ac_libobjs=
22172 ac_ltlibobjs=
22173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22174 # 1. Remove the extension, and $U if already installed.
22175 ac_i=`echo "$ac_i" |
22176 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22177 # 2. Add them.
22178 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22179 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22180 done
22181 LIBOBJS=$ac_libobjs
22183 LTLIBOBJS=$ac_ltlibobjs
22186 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22187 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22188 Usually this means the macro was only invoked conditionally." >&5
22189 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22190 Usually this means the macro was only invoked conditionally." >&2;}
22191 { (exit 1); exit 1; }; }
22194 : ${CONFIG_STATUS=./config.status}
22195 ac_clean_files_save=$ac_clean_files
22196 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22197 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22198 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22199 cat >$CONFIG_STATUS <<_ACEOF
22200 #! $SHELL
22201 # Generated by $as_me.
22202 # Run this file to recreate the current configuration.
22203 # Compiler output produced by configure, useful for debugging
22204 # configure, is in config.log if it exists.
22206 debug=false
22207 ac_cs_recheck=false
22208 ac_cs_silent=false
22209 SHELL=\${CONFIG_SHELL-$SHELL}
22210 _ACEOF
22212 cat >>$CONFIG_STATUS <<\_ACEOF
22213 ## --------------------- ##
22214 ## M4sh Initialization. ##
22215 ## --------------------- ##
22217 # Be Bourne compatible
22218 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22219 emulate sh
22220 NULLCMD=:
22221 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22222 # is contrary to our usage. Disable this feature.
22223 alias -g '${1+"$@"}'='"$@"'
22224 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22225 set -o posix
22227 DUALCASE=1; export DUALCASE # for MKS sh
22229 # Support unset when possible.
22230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22231 as_unset=unset
22232 else
22233 as_unset=false
22237 # Work around bugs in pre-3.0 UWIN ksh.
22238 $as_unset ENV MAIL MAILPATH
22239 PS1='$ '
22240 PS2='> '
22241 PS4='+ '
22243 # NLS nuisances.
22244 for as_var in \
22245 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22246 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22247 LC_TELEPHONE LC_TIME
22249 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22250 eval $as_var=C; export $as_var
22251 else
22252 $as_unset $as_var
22254 done
22256 # Required to use basename.
22257 if expr a : '\(a\)' >/dev/null 2>&1; then
22258 as_expr=expr
22259 else
22260 as_expr=false
22263 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22264 as_basename=basename
22265 else
22266 as_basename=false
22270 # Name of the executable.
22271 as_me=`$as_basename "$0" ||
22272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22273 X"$0" : 'X\(//\)$' \| \
22274 X"$0" : 'X\(/\)$' \| \
22275 . : '\(.\)' 2>/dev/null ||
22276 echo X/"$0" |
22277 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22278 /^X\/\(\/\/\)$/{ s//\1/; q; }
22279 /^X\/\(\/\).*/{ s//\1/; q; }
22280 s/.*/./; q'`
22283 # PATH needs CR, and LINENO needs CR and PATH.
22284 # Avoid depending upon Character Ranges.
22285 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22286 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22287 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22288 as_cr_digits='0123456789'
22289 as_cr_alnum=$as_cr_Letters$as_cr_digits
22291 # The user is always right.
22292 if test "${PATH_SEPARATOR+set}" != set; then
22293 echo "#! /bin/sh" >conf$$.sh
22294 echo "exit 0" >>conf$$.sh
22295 chmod +x conf$$.sh
22296 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22297 PATH_SEPARATOR=';'
22298 else
22299 PATH_SEPARATOR=:
22301 rm -f conf$$.sh
22305 as_lineno_1=$LINENO
22306 as_lineno_2=$LINENO
22307 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22308 test "x$as_lineno_1" != "x$as_lineno_2" &&
22309 test "x$as_lineno_3" = "x$as_lineno_2" || {
22310 # Find who we are. Look in the path if we contain no path at all
22311 # relative or not.
22312 case $0 in
22313 *[\\/]* ) as_myself=$0 ;;
22314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22315 for as_dir in $PATH
22317 IFS=$as_save_IFS
22318 test -z "$as_dir" && as_dir=.
22319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22320 done
22323 esac
22324 # We did not find ourselves, most probably we were run as `sh COMMAND'
22325 # in which case we are not to be found in the path.
22326 if test "x$as_myself" = x; then
22327 as_myself=$0
22329 if test ! -f "$as_myself"; then
22330 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22331 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22332 { (exit 1); exit 1; }; }
22334 case $CONFIG_SHELL in
22336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22337 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22339 IFS=$as_save_IFS
22340 test -z "$as_dir" && as_dir=.
22341 for as_base in sh bash ksh sh5; do
22342 case $as_dir in
22344 if ("$as_dir/$as_base" -c '
22345 as_lineno_1=$LINENO
22346 as_lineno_2=$LINENO
22347 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22348 test "x$as_lineno_1" != "x$as_lineno_2" &&
22349 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22350 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22351 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22352 CONFIG_SHELL=$as_dir/$as_base
22353 export CONFIG_SHELL
22354 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22355 fi;;
22356 esac
22357 done
22358 done
22360 esac
22362 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22363 # uniformly replaced by the line number. The first 'sed' inserts a
22364 # line-number line before each line; the second 'sed' does the real
22365 # work. The second script uses 'N' to pair each line-number line
22366 # with the numbered line, and appends trailing '-' during
22367 # substitution so that $LINENO is not a special case at line end.
22368 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22369 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22370 sed '=' <$as_myself |
22371 sed '
22373 s,$,-,
22374 : loop
22375 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22376 t loop
22377 s,-$,,
22378 s,^['$as_cr_digits']*\n,,
22379 ' >$as_me.lineno &&
22380 chmod +x $as_me.lineno ||
22381 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22382 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22383 { (exit 1); exit 1; }; }
22385 # Don't try to exec as it changes $[0], causing all sort of problems
22386 # (the dirname of $[0] is not the place where we might find the
22387 # original and so on. Autoconf is especially sensible to this).
22388 . ./$as_me.lineno
22389 # Exit status is that of the last command.
22390 exit
22394 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22395 *c*,-n*) ECHO_N= ECHO_C='
22396 ' ECHO_T=' ' ;;
22397 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22398 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22399 esac
22401 if expr a : '\(a\)' >/dev/null 2>&1; then
22402 as_expr=expr
22403 else
22404 as_expr=false
22407 rm -f conf$$ conf$$.exe conf$$.file
22408 echo >conf$$.file
22409 if ln -s conf$$.file conf$$ 2>/dev/null; then
22410 # We could just check for DJGPP; but this test a) works b) is more generic
22411 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22412 if test -f conf$$.exe; then
22413 # Don't use ln at all; we don't have any links
22414 as_ln_s='cp -p'
22415 else
22416 as_ln_s='ln -s'
22418 elif ln conf$$.file conf$$ 2>/dev/null; then
22419 as_ln_s=ln
22420 else
22421 as_ln_s='cp -p'
22423 rm -f conf$$ conf$$.exe conf$$.file
22425 if mkdir -p . 2>/dev/null; then
22426 as_mkdir_p=:
22427 else
22428 test -d ./-p && rmdir ./-p
22429 as_mkdir_p=false
22432 as_executable_p="test -f"
22434 # Sed expression to map a string onto a valid CPP name.
22435 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22437 # Sed expression to map a string onto a valid variable name.
22438 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22441 # IFS
22442 # We need space, tab and new line, in precisely that order.
22443 as_nl='
22445 IFS=" $as_nl"
22447 # CDPATH.
22448 $as_unset CDPATH
22450 exec 6>&1
22452 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22453 # report actual input values of CONFIG_FILES etc. instead of their
22454 # values after options handling. Logging --version etc. is OK.
22455 exec 5>>config.log
22457 echo
22458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22459 ## Running $as_me. ##
22460 _ASBOX
22461 } >&5
22462 cat >&5 <<_CSEOF
22464 This file was extended by $as_me, which was
22465 generated by GNU Autoconf 2.59. Invocation command line was
22467 CONFIG_FILES = $CONFIG_FILES
22468 CONFIG_HEADERS = $CONFIG_HEADERS
22469 CONFIG_LINKS = $CONFIG_LINKS
22470 CONFIG_COMMANDS = $CONFIG_COMMANDS
22471 $ $0 $@
22473 _CSEOF
22474 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22475 echo >&5
22476 _ACEOF
22478 # Files that config.status was made for.
22479 if test -n "$ac_config_files"; then
22480 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22483 if test -n "$ac_config_headers"; then
22484 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22487 if test -n "$ac_config_links"; then
22488 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22491 if test -n "$ac_config_commands"; then
22492 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22495 cat >>$CONFIG_STATUS <<\_ACEOF
22497 ac_cs_usage="\
22498 \`$as_me' instantiates files from templates according to the
22499 current configuration.
22501 Usage: $0 [OPTIONS] [FILE]...
22503 -h, --help print this help, then exit
22504 -V, --version print version number, then exit
22505 -q, --quiet do not print progress messages
22506 -d, --debug don't remove temporary files
22507 --recheck update $as_me by reconfiguring in the same conditions
22508 --file=FILE[:TEMPLATE]
22509 instantiate the configuration file FILE
22510 --header=FILE[:TEMPLATE]
22511 instantiate the configuration header FILE
22513 Configuration files:
22514 $config_files
22516 Configuration headers:
22517 $config_headers
22519 Configuration links:
22520 $config_links
22522 Configuration commands:
22523 $config_commands
22525 Report bugs to <bug-autoconf@gnu.org>."
22526 _ACEOF
22528 cat >>$CONFIG_STATUS <<_ACEOF
22529 ac_cs_version="\\
22530 config.status
22531 configured by $0, generated by GNU Autoconf 2.59,
22532 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22534 Copyright (C) 2003 Free Software Foundation, Inc.
22535 This config.status script is free software; the Free Software Foundation
22536 gives unlimited permission to copy, distribute and modify it."
22537 srcdir=$srcdir
22538 INSTALL="$INSTALL"
22539 _ACEOF
22541 cat >>$CONFIG_STATUS <<\_ACEOF
22542 # If no file are specified by the user, then we need to provide default
22543 # value. By we need to know if files were specified by the user.
22544 ac_need_defaults=:
22545 while test $# != 0
22547 case $1 in
22548 --*=*)
22549 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22550 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22551 ac_shift=:
22554 ac_option=$1
22555 ac_optarg=$2
22556 ac_shift=shift
22558 *) # This is not an option, so the user has probably given explicit
22559 # arguments.
22560 ac_option=$1
22561 ac_need_defaults=false;;
22562 esac
22564 case $ac_option in
22565 # Handling of the options.
22566 _ACEOF
22567 cat >>$CONFIG_STATUS <<\_ACEOF
22568 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22569 ac_cs_recheck=: ;;
22570 --version | --vers* | -V )
22571 echo "$ac_cs_version"; exit 0 ;;
22572 --he | --h)
22573 # Conflict between --help and --header
22574 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22575 Try \`$0 --help' for more information." >&5
22576 echo "$as_me: error: ambiguous option: $1
22577 Try \`$0 --help' for more information." >&2;}
22578 { (exit 1); exit 1; }; };;
22579 --help | --hel | -h )
22580 echo "$ac_cs_usage"; exit 0 ;;
22581 --debug | --d* | -d )
22582 debug=: ;;
22583 --file | --fil | --fi | --f )
22584 $ac_shift
22585 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22586 ac_need_defaults=false;;
22587 --header | --heade | --head | --hea )
22588 $ac_shift
22589 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22590 ac_need_defaults=false;;
22591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22593 ac_cs_silent=: ;;
22595 # This is an error.
22596 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22597 Try \`$0 --help' for more information." >&5
22598 echo "$as_me: error: unrecognized option: $1
22599 Try \`$0 --help' for more information." >&2;}
22600 { (exit 1); exit 1; }; } ;;
22602 *) ac_config_targets="$ac_config_targets $1" ;;
22604 esac
22605 shift
22606 done
22608 ac_configure_extra_args=
22610 if $ac_cs_silent; then
22611 exec 6>/dev/null
22612 ac_configure_extra_args="$ac_configure_extra_args --silent"
22615 _ACEOF
22616 cat >>$CONFIG_STATUS <<_ACEOF
22617 if \$ac_cs_recheck; then
22618 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22619 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22622 _ACEOF
22624 cat >>$CONFIG_STATUS <<_ACEOF
22626 # INIT-COMMANDS section.
22630 gdb_host_cpu=$gdb_host_cpu
22631 gdb_target_cpu=$gdb_target_cpu
22632 nativefile=$nativefile
22635 _ACEOF
22639 cat >>$CONFIG_STATUS <<\_ACEOF
22640 for ac_config_target in $ac_config_targets
22642 case "$ac_config_target" in
22643 # Handling of arguments.
22644 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22645 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22646 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22647 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22648 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22649 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22650 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22651 { (exit 1); exit 1; }; };;
22652 esac
22653 done
22655 # If the user did not use the arguments to specify the items to instantiate,
22656 # then the envvar interface is used. Set only those that are not.
22657 # We use the long form for the default assignment because of an extremely
22658 # bizarre bug on SunOS 4.1.3.
22659 if $ac_need_defaults; then
22660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22661 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22662 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22666 # Have a temporary directory for convenience. Make it in the build tree
22667 # simply because there is no reason to put it here, and in addition,
22668 # creating and moving files from /tmp can sometimes cause problems.
22669 # Create a temporary directory, and hook for its removal unless debugging.
22670 $debug ||
22672 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22673 trap '{ (exit 1); exit 1; }' 1 2 13 15
22676 # Create a (secure) tmp directory for tmp files.
22679 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22680 test -n "$tmp" && test -d "$tmp"
22681 } ||
22683 tmp=./confstat$$-$RANDOM
22684 (umask 077 && mkdir $tmp)
22685 } ||
22687 echo "$me: cannot create a temporary directory in ." >&2
22688 { (exit 1); exit 1; }
22691 _ACEOF
22693 cat >>$CONFIG_STATUS <<_ACEOF
22696 # CONFIG_FILES section.
22699 # No need to generate the scripts if there are no CONFIG_FILES.
22700 # This happens for instance when ./config.status config.h
22701 if test -n "\$CONFIG_FILES"; then
22702 # Protect against being on the right side of a sed subst in config.status.
22703 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22704 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22705 s,@SHELL@,$SHELL,;t t
22706 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22707 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22708 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22709 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22710 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22711 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22712 s,@exec_prefix@,$exec_prefix,;t t
22713 s,@prefix@,$prefix,;t t
22714 s,@program_transform_name@,$program_transform_name,;t t
22715 s,@bindir@,$bindir,;t t
22716 s,@sbindir@,$sbindir,;t t
22717 s,@libexecdir@,$libexecdir,;t t
22718 s,@datadir@,$datadir,;t t
22719 s,@sysconfdir@,$sysconfdir,;t t
22720 s,@sharedstatedir@,$sharedstatedir,;t t
22721 s,@localstatedir@,$localstatedir,;t t
22722 s,@libdir@,$libdir,;t t
22723 s,@includedir@,$includedir,;t t
22724 s,@oldincludedir@,$oldincludedir,;t t
22725 s,@infodir@,$infodir,;t t
22726 s,@mandir@,$mandir,;t t
22727 s,@build_alias@,$build_alias,;t t
22728 s,@host_alias@,$host_alias,;t t
22729 s,@target_alias@,$target_alias,;t t
22730 s,@DEFS@,$DEFS,;t t
22731 s,@ECHO_C@,$ECHO_C,;t t
22732 s,@ECHO_N@,$ECHO_N,;t t
22733 s,@ECHO_T@,$ECHO_T,;t t
22734 s,@LIBS@,$LIBS,;t t
22735 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22736 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22737 s,@MAINT@,$MAINT,;t t
22738 s,@CC@,$CC,;t t
22739 s,@CFLAGS@,$CFLAGS,;t t
22740 s,@LDFLAGS@,$LDFLAGS,;t t
22741 s,@CPPFLAGS@,$CPPFLAGS,;t t
22742 s,@ac_ct_CC@,$ac_ct_CC,;t t
22743 s,@EXEEXT@,$EXEEXT,;t t
22744 s,@OBJEXT@,$OBJEXT,;t t
22745 s,@CPP@,$CPP,;t t
22746 s,@EGREP@,$EGREP,;t t
22747 s,@build@,$build,;t t
22748 s,@build_cpu@,$build_cpu,;t t
22749 s,@build_vendor@,$build_vendor,;t t
22750 s,@build_os@,$build_os,;t t
22751 s,@host@,$host,;t t
22752 s,@host_cpu@,$host_cpu,;t t
22753 s,@host_vendor@,$host_vendor,;t t
22754 s,@host_os@,$host_os,;t t
22755 s,@target@,$target,;t t
22756 s,@target_cpu@,$target_cpu,;t t
22757 s,@target_vendor@,$target_vendor,;t t
22758 s,@target_os@,$target_os,;t t
22759 s,@SET_MAKE@,$SET_MAKE,;t t
22760 s,@RANLIB@,$RANLIB,;t t
22761 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22762 s,@ALLOCA@,$ALLOCA,;t t
22763 s,@USE_NLS@,$USE_NLS,;t t
22764 s,@MSGFMT@,$MSGFMT,;t t
22765 s,@GMSGFMT@,$GMSGFMT,;t t
22766 s,@XGETTEXT@,$XGETTEXT,;t t
22767 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22768 s,@CATALOGS@,$CATALOGS,;t t
22769 s,@CATOBJEXT@,$CATOBJEXT,;t t
22770 s,@DATADIRNAME@,$DATADIRNAME,;t t
22771 s,@GMOFILES@,$GMOFILES,;t t
22772 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22773 s,@INTLDEPS@,$INTLDEPS,;t t
22774 s,@INTLLIBS@,$INTLLIBS,;t t
22775 s,@INTLOBJS@,$INTLOBJS,;t t
22776 s,@POFILES@,$POFILES,;t t
22777 s,@POSUB@,$POSUB,;t t
22778 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22779 s,@GT_NO@,$GT_NO,;t t
22780 s,@GT_YES@,$GT_YES,;t t
22781 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22782 s,@l@,$l,;t t
22783 s,@localedir@,$localedir,;t t
22784 s,@PACKAGE@,$PACKAGE,;t t
22785 s,@subdirs@,$subdirs,;t t
22786 s,@AWK@,$AWK,;t t
22787 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22788 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22789 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22790 s,@LN_S@,$LN_S,;t t
22791 s,@YACC@,$YACC,;t t
22792 s,@AR@,$AR,;t t
22793 s,@ac_ct_AR@,$ac_ct_AR,;t t
22794 s,@DLLTOOL@,$DLLTOOL,;t t
22795 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22796 s,@WINDRES@,$WINDRES,;t t
22797 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22798 s,@MIG@,$MIG,;t t
22799 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22800 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22801 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22802 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22803 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22804 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22805 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22806 s,@WIN32LIBS@,$WIN32LIBS,;t t
22807 s,@LIBGUI@,$LIBGUI,;t t
22808 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22809 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22810 s,@TCL_VERSION@,$TCL_VERSION,;t t
22811 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22812 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22813 s,@TCL_CC@,$TCL_CC,;t t
22814 s,@TCL_DEFS@,$TCL_DEFS,;t t
22815 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22816 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22817 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22818 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22819 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22820 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22821 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22822 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22823 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22824 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22825 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22826 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22827 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22828 s,@TK_VERSION@,$TK_VERSION,;t t
22829 s,@TK_DEFS@,$TK_DEFS,;t t
22830 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22831 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22832 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22833 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22834 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22835 s,@TCLHDIR@,$TCLHDIR,;t t
22836 s,@TKHDIR@,$TKHDIR,;t t
22837 s,@ITCLHDIR@,$ITCLHDIR,;t t
22838 s,@ITKHDIR@,$ITKHDIR,;t t
22839 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22840 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22841 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22842 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22843 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22844 s,@ITK_VERSION@,$ITK_VERSION,;t t
22845 s,@ITK_DEFS@,$ITK_DEFS,;t t
22846 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22847 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22848 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22849 s,@X_CFLAGS@,$X_CFLAGS,;t t
22850 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22851 s,@X_LIBS@,$X_LIBS,;t t
22852 s,@TCL_DEPS@,$TCL_DEPS,;t t
22853 s,@TK_DEPS@,$TK_DEPS,;t t
22854 s,@ITCLLIB@,$ITCLLIB,;t t
22855 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22856 s,@ITKLIB@,$ITKLIB,;t t
22857 s,@ITK_DEPS@,$ITK_DEPS,;t t
22858 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22859 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22860 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22861 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22862 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22863 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22864 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22865 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22866 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22867 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22868 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22869 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22870 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22871 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22872 s,@target_subdir@,$target_subdir,;t t
22873 s,@frags@,$frags,;t t
22874 s,@xm_h@,$xm_h,;t t
22875 s,@tm_h@,$tm_h,;t t
22876 s,@nm_h@,$nm_h,;t t
22877 s,@LIBICONV@,$LIBICONV,;t t
22878 s,@LIBOBJS@,$LIBOBJS,;t t
22879 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22880 /@host_makefile_frag@/r $host_makefile_frag
22881 s,@host_makefile_frag@,,;t t
22882 /@target_makefile_frag@/r $target_makefile_frag
22883 s,@target_makefile_frag@,,;t t
22884 CEOF
22886 _ACEOF
22888 cat >>$CONFIG_STATUS <<\_ACEOF
22889 # Split the substitutions into bite-sized pieces for seds with
22890 # small command number limits, like on Digital OSF/1 and HP-UX.
22891 ac_max_sed_lines=48
22892 ac_sed_frag=1 # Number of current file.
22893 ac_beg=1 # First line for current file.
22894 ac_end=$ac_max_sed_lines # Line after last line for current file.
22895 ac_more_lines=:
22896 ac_sed_cmds=
22897 while $ac_more_lines; do
22898 if test $ac_beg -gt 1; then
22899 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22900 else
22901 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22903 if test ! -s $tmp/subs.frag; then
22904 ac_more_lines=false
22905 else
22906 # The purpose of the label and of the branching condition is to
22907 # speed up the sed processing (if there are no `@' at all, there
22908 # is no need to browse any of the substitutions).
22909 # These are the two extra sed commands mentioned above.
22910 (echo ':t
22911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22912 if test -z "$ac_sed_cmds"; then
22913 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22914 else
22915 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22917 ac_sed_frag=`expr $ac_sed_frag + 1`
22918 ac_beg=$ac_end
22919 ac_end=`expr $ac_end + $ac_max_sed_lines`
22921 done
22922 if test -z "$ac_sed_cmds"; then
22923 ac_sed_cmds=cat
22925 fi # test -n "$CONFIG_FILES"
22927 _ACEOF
22928 cat >>$CONFIG_STATUS <<\_ACEOF
22929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22931 case $ac_file in
22932 - | *:- | *:-:* ) # input from stdin
22933 cat >$tmp/stdin
22934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22938 * ) ac_file_in=$ac_file.in ;;
22939 esac
22941 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22942 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944 X"$ac_file" : 'X\(//\)[^/]' \| \
22945 X"$ac_file" : 'X\(//\)$' \| \
22946 X"$ac_file" : 'X\(/\)' \| \
22947 . : '\(.\)' 2>/dev/null ||
22948 echo X"$ac_file" |
22949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951 /^X\(\/\/\)$/{ s//\1/; q; }
22952 /^X\(\/\).*/{ s//\1/; q; }
22953 s/.*/./; q'`
22954 { if $as_mkdir_p; then
22955 mkdir -p "$ac_dir"
22956 else
22957 as_dir="$ac_dir"
22958 as_dirs=
22959 while test ! -d "$as_dir"; do
22960 as_dirs="$as_dir $as_dirs"
22961 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22963 X"$as_dir" : 'X\(//\)[^/]' \| \
22964 X"$as_dir" : 'X\(//\)$' \| \
22965 X"$as_dir" : 'X\(/\)' \| \
22966 . : '\(.\)' 2>/dev/null ||
22967 echo X"$as_dir" |
22968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22970 /^X\(\/\/\)$/{ s//\1/; q; }
22971 /^X\(\/\).*/{ s//\1/; q; }
22972 s/.*/./; q'`
22973 done
22974 test ! -n "$as_dirs" || mkdir $as_dirs
22975 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22977 { (exit 1); exit 1; }; }; }
22979 ac_builddir=.
22981 if test "$ac_dir" != .; then
22982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22983 # A "../" for each directory in $ac_dir_suffix.
22984 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22985 else
22986 ac_dir_suffix= ac_top_builddir=
22989 case $srcdir in
22990 .) # No --srcdir option. We are building in place.
22991 ac_srcdir=.
22992 if test -z "$ac_top_builddir"; then
22993 ac_top_srcdir=.
22994 else
22995 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22996 fi ;;
22997 [\\/]* | ?:[\\/]* ) # Absolute path.
22998 ac_srcdir=$srcdir$ac_dir_suffix;
22999 ac_top_srcdir=$srcdir ;;
23000 *) # Relative path.
23001 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23002 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23003 esac
23005 # Do not use `cd foo && pwd` to compute absolute paths, because
23006 # the directories may not exist.
23007 case `pwd` in
23008 .) ac_abs_builddir="$ac_dir";;
23010 case "$ac_dir" in
23011 .) ac_abs_builddir=`pwd`;;
23012 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23013 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23014 esac;;
23015 esac
23016 case $ac_abs_builddir in
23017 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23019 case ${ac_top_builddir}. in
23020 .) ac_abs_top_builddir=$ac_abs_builddir;;
23021 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23022 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23023 esac;;
23024 esac
23025 case $ac_abs_builddir in
23026 .) ac_abs_srcdir=$ac_srcdir;;
23028 case $ac_srcdir in
23029 .) ac_abs_srcdir=$ac_abs_builddir;;
23030 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23031 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23032 esac;;
23033 esac
23034 case $ac_abs_builddir in
23035 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23037 case $ac_top_srcdir in
23038 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23039 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23040 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23041 esac;;
23042 esac
23045 case $INSTALL in
23046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23047 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23048 esac
23050 if test x"$ac_file" != x-; then
23051 { echo "$as_me:$LINENO: creating $ac_file" >&5
23052 echo "$as_me: creating $ac_file" >&6;}
23053 rm -f "$ac_file"
23055 # Let's still pretend it is `configure' which instantiates (i.e., don't
23056 # use $as_me), people would be surprised to read:
23057 # /* config.h. Generated by config.status. */
23058 if test x"$ac_file" = x-; then
23059 configure_input=
23060 else
23061 configure_input="$ac_file. "
23063 configure_input=$configure_input"Generated from `echo $ac_file_in |
23064 sed 's,.*/,,'` by configure."
23066 # First look for the input files in the build tree, otherwise in the
23067 # src tree.
23068 ac_file_inputs=`IFS=:
23069 for f in $ac_file_in; do
23070 case $f in
23071 -) echo $tmp/stdin ;;
23072 [\\/$]*)
23073 # Absolute (can't be DOS-style, as IFS=:)
23074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23075 echo "$as_me: error: cannot find input file: $f" >&2;}
23076 { (exit 1); exit 1; }; }
23077 echo "$f";;
23078 *) # Relative
23079 if test -f "$f"; then
23080 # Build tree
23081 echo "$f"
23082 elif test -f "$srcdir/$f"; then
23083 # Source tree
23084 echo "$srcdir/$f"
23085 else
23086 # /dev/null tree
23087 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23088 echo "$as_me: error: cannot find input file: $f" >&2;}
23089 { (exit 1); exit 1; }; }
23090 fi;;
23091 esac
23092 done` || { (exit 1); exit 1; }
23093 _ACEOF
23094 cat >>$CONFIG_STATUS <<_ACEOF
23095 sed "$ac_vpsub
23096 $extrasub
23097 _ACEOF
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23101 s,@configure_input@,$configure_input,;t t
23102 s,@srcdir@,$ac_srcdir,;t t
23103 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23104 s,@top_srcdir@,$ac_top_srcdir,;t t
23105 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23106 s,@builddir@,$ac_builddir,;t t
23107 s,@abs_builddir@,$ac_abs_builddir,;t t
23108 s,@top_builddir@,$ac_top_builddir,;t t
23109 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23110 s,@INSTALL@,$ac_INSTALL,;t t
23111 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23112 rm -f $tmp/stdin
23113 if test x"$ac_file" != x-; then
23114 mv $tmp/out $ac_file
23115 else
23116 cat $tmp/out
23117 rm -f $tmp/out
23120 done
23121 _ACEOF
23122 cat >>$CONFIG_STATUS <<\_ACEOF
23125 # CONFIG_HEADER section.
23128 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23129 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23131 # ac_d sets the value in "#define NAME VALUE" lines.
23132 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23133 ac_dB='[ ].*$,\1#\2'
23134 ac_dC=' '
23135 ac_dD=',;t'
23136 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23137 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23138 ac_uB='$,\1#\2define\3'
23139 ac_uC=' '
23140 ac_uD=',;t'
23142 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23144 case $ac_file in
23145 - | *:- | *:-:* ) # input from stdin
23146 cat >$tmp/stdin
23147 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23149 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23151 * ) ac_file_in=$ac_file.in ;;
23152 esac
23154 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23155 echo "$as_me: creating $ac_file" >&6;}
23157 # First look for the input files in the build tree, otherwise in the
23158 # src tree.
23159 ac_file_inputs=`IFS=:
23160 for f in $ac_file_in; do
23161 case $f in
23162 -) echo $tmp/stdin ;;
23163 [\\/$]*)
23164 # Absolute (can't be DOS-style, as IFS=:)
23165 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23166 echo "$as_me: error: cannot find input file: $f" >&2;}
23167 { (exit 1); exit 1; }; }
23168 # Do quote $f, to prevent DOS paths from being IFS'd.
23169 echo "$f";;
23170 *) # Relative
23171 if test -f "$f"; then
23172 # Build tree
23173 echo "$f"
23174 elif test -f "$srcdir/$f"; then
23175 # Source tree
23176 echo "$srcdir/$f"
23177 else
23178 # /dev/null tree
23179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23180 echo "$as_me: error: cannot find input file: $f" >&2;}
23181 { (exit 1); exit 1; }; }
23182 fi;;
23183 esac
23184 done` || { (exit 1); exit 1; }
23185 # Remove the trailing spaces.
23186 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23188 _ACEOF
23190 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23191 # `conftest.undefs', that substitutes the proper values into
23192 # config.h.in to produce config.h. The first handles `#define'
23193 # templates, and the second `#undef' templates.
23194 # And first: Protect against being on the right side of a sed subst in
23195 # config.status. Protect against being in an unquoted here document
23196 # in config.status.
23197 rm -f conftest.defines conftest.undefs
23198 # Using a here document instead of a string reduces the quoting nightmare.
23199 # Putting comments in sed scripts is not portable.
23201 # `end' is used to avoid that the second main sed command (meant for
23202 # 0-ary CPP macros) applies to n-ary macro definitions.
23203 # See the Autoconf documentation for `clear'.
23204 cat >confdef2sed.sed <<\_ACEOF
23205 s/[\\&,]/\\&/g
23206 s,[\\$`],\\&,g
23207 t clear
23208 : clear
23209 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23210 t end
23211 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23212 : end
23213 _ACEOF
23214 # If some macros were called several times there might be several times
23215 # the same #defines, which is useless. Nevertheless, we may not want to
23216 # sort them, since we want the *last* AC-DEFINE to be honored.
23217 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23218 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23219 rm -f confdef2sed.sed
23221 # This sed command replaces #undef with comments. This is necessary, for
23222 # example, in the case of _POSIX_SOURCE, which is predefined and required
23223 # on some systems where configure will not decide to define it.
23224 cat >>conftest.undefs <<\_ACEOF
23225 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23226 _ACEOF
23228 # Break up conftest.defines because some shells have a limit on the size
23229 # of here documents, and old seds have small limits too (100 cmds).
23230 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23231 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23232 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23233 echo ' :' >>$CONFIG_STATUS
23234 rm -f conftest.tail
23235 while grep . conftest.defines >/dev/null
23237 # Write a limited-size here document to $tmp/defines.sed.
23238 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23239 # Speed up: don't consider the non `#define' lines.
23240 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23241 # Work around the forget-to-reset-the-flag bug.
23242 echo 't clr' >>$CONFIG_STATUS
23243 echo ': clr' >>$CONFIG_STATUS
23244 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23245 echo 'CEOF
23246 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23247 rm -f $tmp/in
23248 mv $tmp/out $tmp/in
23249 ' >>$CONFIG_STATUS
23250 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23251 rm -f conftest.defines
23252 mv conftest.tail conftest.defines
23253 done
23254 rm -f conftest.defines
23255 echo ' fi # grep' >>$CONFIG_STATUS
23256 echo >>$CONFIG_STATUS
23258 # Break up conftest.undefs because some shells have a limit on the size
23259 # of here documents, and old seds have small limits too (100 cmds).
23260 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23261 rm -f conftest.tail
23262 while grep . conftest.undefs >/dev/null
23264 # Write a limited-size here document to $tmp/undefs.sed.
23265 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23266 # Speed up: don't consider the non `#undef'
23267 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23268 # Work around the forget-to-reset-the-flag bug.
23269 echo 't clr' >>$CONFIG_STATUS
23270 echo ': clr' >>$CONFIG_STATUS
23271 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23272 echo 'CEOF
23273 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23274 rm -f $tmp/in
23275 mv $tmp/out $tmp/in
23276 ' >>$CONFIG_STATUS
23277 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23278 rm -f conftest.undefs
23279 mv conftest.tail conftest.undefs
23280 done
23281 rm -f conftest.undefs
23283 cat >>$CONFIG_STATUS <<\_ACEOF
23284 # Let's still pretend it is `configure' which instantiates (i.e., don't
23285 # use $as_me), people would be surprised to read:
23286 # /* config.h. Generated by config.status. */
23287 if test x"$ac_file" = x-; then
23288 echo "/* Generated by configure. */" >$tmp/config.h
23289 else
23290 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23292 cat $tmp/in >>$tmp/config.h
23293 rm -f $tmp/in
23294 if test x"$ac_file" != x-; then
23295 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23296 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23297 echo "$as_me: $ac_file is unchanged" >&6;}
23298 else
23299 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23301 X"$ac_file" : 'X\(//\)[^/]' \| \
23302 X"$ac_file" : 'X\(//\)$' \| \
23303 X"$ac_file" : 'X\(/\)' \| \
23304 . : '\(.\)' 2>/dev/null ||
23305 echo X"$ac_file" |
23306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23308 /^X\(\/\/\)$/{ s//\1/; q; }
23309 /^X\(\/\).*/{ s//\1/; q; }
23310 s/.*/./; q'`
23311 { if $as_mkdir_p; then
23312 mkdir -p "$ac_dir"
23313 else
23314 as_dir="$ac_dir"
23315 as_dirs=
23316 while test ! -d "$as_dir"; do
23317 as_dirs="$as_dir $as_dirs"
23318 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23320 X"$as_dir" : 'X\(//\)[^/]' \| \
23321 X"$as_dir" : 'X\(//\)$' \| \
23322 X"$as_dir" : 'X\(/\)' \| \
23323 . : '\(.\)' 2>/dev/null ||
23324 echo X"$as_dir" |
23325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23327 /^X\(\/\/\)$/{ s//\1/; q; }
23328 /^X\(\/\).*/{ s//\1/; q; }
23329 s/.*/./; q'`
23330 done
23331 test ! -n "$as_dirs" || mkdir $as_dirs
23332 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23333 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23334 { (exit 1); exit 1; }; }; }
23336 rm -f $ac_file
23337 mv $tmp/config.h $ac_file
23339 else
23340 cat $tmp/config.h
23341 rm -f $tmp/config.h
23343 done
23344 _ACEOF
23345 cat >>$CONFIG_STATUS <<\_ACEOF
23348 # CONFIG_LINKS section.
23351 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23352 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23353 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23355 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23356 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23358 if test ! -r $srcdir/$ac_source; then
23359 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23360 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23361 { (exit 1); exit 1; }; }
23363 rm -f $ac_dest
23365 # Make relative symlinks.
23366 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23367 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23368 X"$ac_dest" : 'X\(//\)[^/]' \| \
23369 X"$ac_dest" : 'X\(//\)$' \| \
23370 X"$ac_dest" : 'X\(/\)' \| \
23371 . : '\(.\)' 2>/dev/null ||
23372 echo X"$ac_dest" |
23373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23375 /^X\(\/\/\)$/{ s//\1/; q; }
23376 /^X\(\/\).*/{ s//\1/; q; }
23377 s/.*/./; q'`
23378 { if $as_mkdir_p; then
23379 mkdir -p "$ac_dest_dir"
23380 else
23381 as_dir="$ac_dest_dir"
23382 as_dirs=
23383 while test ! -d "$as_dir"; do
23384 as_dirs="$as_dir $as_dirs"
23385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23387 X"$as_dir" : 'X\(//\)[^/]' \| \
23388 X"$as_dir" : 'X\(//\)$' \| \
23389 X"$as_dir" : 'X\(/\)' \| \
23390 . : '\(.\)' 2>/dev/null ||
23391 echo X"$as_dir" |
23392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23394 /^X\(\/\/\)$/{ s//\1/; q; }
23395 /^X\(\/\).*/{ s//\1/; q; }
23396 s/.*/./; q'`
23397 done
23398 test ! -n "$as_dirs" || mkdir $as_dirs
23399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23400 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23401 { (exit 1); exit 1; }; }; }
23403 ac_builddir=.
23405 if test "$ac_dest_dir" != .; then
23406 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23407 # A "../" for each directory in $ac_dir_suffix.
23408 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23409 else
23410 ac_dir_suffix= ac_top_builddir=
23413 case $srcdir in
23414 .) # No --srcdir option. We are building in place.
23415 ac_srcdir=.
23416 if test -z "$ac_top_builddir"; then
23417 ac_top_srcdir=.
23418 else
23419 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23420 fi ;;
23421 [\\/]* | ?:[\\/]* ) # Absolute path.
23422 ac_srcdir=$srcdir$ac_dir_suffix;
23423 ac_top_srcdir=$srcdir ;;
23424 *) # Relative path.
23425 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23426 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23427 esac
23429 # Do not use `cd foo && pwd` to compute absolute paths, because
23430 # the directories may not exist.
23431 case `pwd` in
23432 .) ac_abs_builddir="$ac_dest_dir";;
23434 case "$ac_dest_dir" in
23435 .) ac_abs_builddir=`pwd`;;
23436 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23437 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23438 esac;;
23439 esac
23440 case $ac_abs_builddir in
23441 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23443 case ${ac_top_builddir}. in
23444 .) ac_abs_top_builddir=$ac_abs_builddir;;
23445 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23446 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23447 esac;;
23448 esac
23449 case $ac_abs_builddir in
23450 .) ac_abs_srcdir=$ac_srcdir;;
23452 case $ac_srcdir in
23453 .) ac_abs_srcdir=$ac_abs_builddir;;
23454 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23455 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23456 esac;;
23457 esac
23458 case $ac_abs_builddir in
23459 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23461 case $ac_top_srcdir in
23462 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23463 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23464 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23465 esac;;
23466 esac
23469 case $srcdir in
23470 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23471 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23472 esac
23474 # Try a symlink, then a hard link, then a copy.
23475 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23476 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23477 cp -p $srcdir/$ac_source $ac_dest ||
23478 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23479 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23480 { (exit 1); exit 1; }; }
23481 done
23482 _ACEOF
23483 cat >>$CONFIG_STATUS <<\_ACEOF
23486 # CONFIG_COMMANDS section.
23488 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23489 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23490 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23491 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23492 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23493 X"$ac_dest" : 'X\(//\)[^/]' \| \
23494 X"$ac_dest" : 'X\(//\)$' \| \
23495 X"$ac_dest" : 'X\(/\)' \| \
23496 . : '\(.\)' 2>/dev/null ||
23497 echo X"$ac_dest" |
23498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23500 /^X\(\/\/\)$/{ s//\1/; q; }
23501 /^X\(\/\).*/{ s//\1/; q; }
23502 s/.*/./; q'`
23503 { if $as_mkdir_p; then
23504 mkdir -p "$ac_dir"
23505 else
23506 as_dir="$ac_dir"
23507 as_dirs=
23508 while test ! -d "$as_dir"; do
23509 as_dirs="$as_dir $as_dirs"
23510 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23512 X"$as_dir" : 'X\(//\)[^/]' \| \
23513 X"$as_dir" : 'X\(//\)$' \| \
23514 X"$as_dir" : 'X\(/\)' \| \
23515 . : '\(.\)' 2>/dev/null ||
23516 echo X"$as_dir" |
23517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23519 /^X\(\/\/\)$/{ s//\1/; q; }
23520 /^X\(\/\).*/{ s//\1/; q; }
23521 s/.*/./; q'`
23522 done
23523 test ! -n "$as_dirs" || mkdir $as_dirs
23524 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23525 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23526 { (exit 1); exit 1; }; }; }
23528 ac_builddir=.
23530 if test "$ac_dir" != .; then
23531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23532 # A "../" for each directory in $ac_dir_suffix.
23533 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23534 else
23535 ac_dir_suffix= ac_top_builddir=
23538 case $srcdir in
23539 .) # No --srcdir option. We are building in place.
23540 ac_srcdir=.
23541 if test -z "$ac_top_builddir"; then
23542 ac_top_srcdir=.
23543 else
23544 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23545 fi ;;
23546 [\\/]* | ?:[\\/]* ) # Absolute path.
23547 ac_srcdir=$srcdir$ac_dir_suffix;
23548 ac_top_srcdir=$srcdir ;;
23549 *) # Relative path.
23550 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23551 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23552 esac
23554 # Do not use `cd foo && pwd` to compute absolute paths, because
23555 # the directories may not exist.
23556 case `pwd` in
23557 .) ac_abs_builddir="$ac_dir";;
23559 case "$ac_dir" in
23560 .) ac_abs_builddir=`pwd`;;
23561 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23562 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23563 esac;;
23564 esac
23565 case $ac_abs_builddir in
23566 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23568 case ${ac_top_builddir}. in
23569 .) ac_abs_top_builddir=$ac_abs_builddir;;
23570 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23571 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23572 esac;;
23573 esac
23574 case $ac_abs_builddir in
23575 .) ac_abs_srcdir=$ac_srcdir;;
23577 case $ac_srcdir in
23578 .) ac_abs_srcdir=$ac_abs_builddir;;
23579 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23580 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23581 esac;;
23582 esac
23583 case $ac_abs_builddir in
23584 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23586 case $ac_top_srcdir in
23587 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23588 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23589 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23590 esac;;
23591 esac
23594 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23595 echo "$as_me: executing $ac_dest commands" >&6;}
23596 case $ac_dest in
23597 default )
23599 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23600 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23601 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23602 mv -f Makefile.tmp Makefile
23605 case x$CONFIG_HEADERS in
23606 xconfig.h:config.in)
23607 echo > stamp-h ;;
23608 esac
23610 esac
23611 done
23612 _ACEOF
23614 cat >>$CONFIG_STATUS <<\_ACEOF
23616 { (exit 0); exit 0; }
23617 _ACEOF
23618 chmod +x $CONFIG_STATUS
23619 ac_clean_files=$ac_clean_files_save
23622 # configure is writing to config.log, and then calls config.status.
23623 # config.status does its own redirection, appending to config.log.
23624 # Unfortunately, on DOS this fails, as config.log is still kept open
23625 # by configure, so config.status won't be able to write to it; its
23626 # output is simply discarded. So we exec the FD to /dev/null,
23627 # effectively closing config.log, so it can be properly (re)opened and
23628 # appended to by config.status. When coming back to configure, we
23629 # need to make the FD available again.
23630 if test "$no_create" != yes; then
23631 ac_cs_success=:
23632 ac_config_status_args=
23633 test "$silent" = yes &&
23634 ac_config_status_args="$ac_config_status_args --quiet"
23635 exec 5>/dev/null
23636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23637 exec 5>>config.log
23638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23639 # would make configure fail if this is the last instruction.
23640 $ac_cs_success || { (exit 1); exit 1; }
23644 # CONFIG_SUBDIRS section.
23646 if test "$no_recursion" != yes; then
23648 # Remove --cache-file and --srcdir arguments so they do not pile up.
23649 ac_sub_configure_args=
23650 ac_prev=
23651 for ac_arg in $ac_configure_args; do
23652 if test -n "$ac_prev"; then
23653 ac_prev=
23654 continue
23656 case $ac_arg in
23657 -cache-file | --cache-file | --cache-fil | --cache-fi \
23658 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23659 ac_prev=cache_file ;;
23660 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23661 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23662 | --c=*)
23664 --config-cache | -C)
23666 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23667 ac_prev=srcdir ;;
23668 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23670 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23671 ac_prev=prefix ;;
23672 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23674 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23675 esac
23676 done
23678 # Always prepend --prefix to ensure using the same prefix
23679 # in subdir configurations.
23680 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23682 ac_popdir=`pwd`
23683 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23685 # Do not complain, so a configure script can configure whichever
23686 # parts of a large source tree are present.
23687 test -d $srcdir/$ac_dir || continue
23689 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23690 echo "$as_me: configuring in $ac_dir" >&6;}
23691 { if $as_mkdir_p; then
23692 mkdir -p "$ac_dir"
23693 else
23694 as_dir="$ac_dir"
23695 as_dirs=
23696 while test ! -d "$as_dir"; do
23697 as_dirs="$as_dir $as_dirs"
23698 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23700 X"$as_dir" : 'X\(//\)[^/]' \| \
23701 X"$as_dir" : 'X\(//\)$' \| \
23702 X"$as_dir" : 'X\(/\)' \| \
23703 . : '\(.\)' 2>/dev/null ||
23704 echo X"$as_dir" |
23705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23707 /^X\(\/\/\)$/{ s//\1/; q; }
23708 /^X\(\/\).*/{ s//\1/; q; }
23709 s/.*/./; q'`
23710 done
23711 test ! -n "$as_dirs" || mkdir $as_dirs
23712 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23713 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23714 { (exit 1); exit 1; }; }; }
23716 ac_builddir=.
23718 if test "$ac_dir" != .; then
23719 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23720 # A "../" for each directory in $ac_dir_suffix.
23721 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23722 else
23723 ac_dir_suffix= ac_top_builddir=
23726 case $srcdir in
23727 .) # No --srcdir option. We are building in place.
23728 ac_srcdir=.
23729 if test -z "$ac_top_builddir"; then
23730 ac_top_srcdir=.
23731 else
23732 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23733 fi ;;
23734 [\\/]* | ?:[\\/]* ) # Absolute path.
23735 ac_srcdir=$srcdir$ac_dir_suffix;
23736 ac_top_srcdir=$srcdir ;;
23737 *) # Relative path.
23738 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23739 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23740 esac
23742 # Do not use `cd foo && pwd` to compute absolute paths, because
23743 # the directories may not exist.
23744 case `pwd` in
23745 .) ac_abs_builddir="$ac_dir";;
23747 case "$ac_dir" in
23748 .) ac_abs_builddir=`pwd`;;
23749 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23750 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23751 esac;;
23752 esac
23753 case $ac_abs_builddir in
23754 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23756 case ${ac_top_builddir}. in
23757 .) ac_abs_top_builddir=$ac_abs_builddir;;
23758 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23759 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23760 esac;;
23761 esac
23762 case $ac_abs_builddir in
23763 .) ac_abs_srcdir=$ac_srcdir;;
23765 case $ac_srcdir in
23766 .) ac_abs_srcdir=$ac_abs_builddir;;
23767 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23768 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23769 esac;;
23770 esac
23771 case $ac_abs_builddir in
23772 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23774 case $ac_top_srcdir in
23775 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23776 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23777 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23778 esac;;
23779 esac
23782 cd $ac_dir
23784 # Check for guested configure; otherwise get Cygnus style configure.
23785 if test -f $ac_srcdir/configure.gnu; then
23786 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23787 elif test -f $ac_srcdir/configure; then
23788 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23789 elif test -f $ac_srcdir/configure.in; then
23790 ac_sub_configure=$ac_configure
23791 else
23792 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23793 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23794 ac_sub_configure=
23797 # The recursion is here.
23798 if test -n "$ac_sub_configure"; then
23799 # Make the cache file name correct relative to the subdirectory.
23800 case $cache_file in
23801 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23802 *) # Relative path.
23803 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23804 esac
23806 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23807 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23808 # The eval makes quoting arguments work.
23809 eval $ac_sub_configure $ac_sub_configure_args \
23810 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23811 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23812 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23813 { (exit 1); exit 1; }; }
23816 cd $ac_popdir
23817 done
23821 exit 0